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 OPENWIN_HOME 668 X_EXTRA_LIBS 669 X_LIBS 670 X_PRE_LIBS 671 X_CFLAGS 672 XMKMF 673 FIXPATH 674 ZIP_DEBUGINFO_FILES 675 ENABLE_DEBUG_SYMBOLS 676 CFLAGS_WARNINGS_ARE_ERRORS 677 COMPILER_SUPPORTS_TARGET_BITS_FLAG 678 ZERO_ARCHFLAG 679 LDFLAGS_CXX_JDK 680 LDFLAGS_JDKEXE_SUFFIX 681 LDFLAGS_JDKLIB_SUFFIX 682 LDFLAGS_JDKEXE 683 LDFLAGS_JDKLIB 684 CXXFLAGS_JDKEXE 685 CXXFLAGS_JDKLIB 686 CFLAGS_JDKEXE 687 CFLAGS_JDKLIB 688 MACOSX_VERSION_MIN 689 LEGACY_EXTRA_LDFLAGS 690 LEGACY_EXTRA_CXXFLAGS 691 LEGACY_EXTRA_CFLAGS 692 CXX_O_FLAG_NONE 693 CXX_O_FLAG_NORM 694 CXX_O_FLAG_HI 695 CXX_O_FLAG_HIGHEST 696 C_O_FLAG_NONE 697 C_O_FLAG_NORM 698 C_O_FLAG_HI 699 C_O_FLAG_HIGHEST 700 CXXFLAGS_DEBUG_SYMBOLS 701 CFLAGS_DEBUG_SYMBOLS 702 CXX_FLAG_DEPS 703 C_FLAG_DEPS 704 SET_SHARED_LIBRARY_MAPFILE 705 SET_SHARED_LIBRARY_NAME 706 SET_SHARED_LIBRARY_ORIGIN 707 SET_EXECUTABLE_ORIGIN 708 SHARED_LIBRARY_FLAGS 709 CXX_FLAG_REORDER 710 C_FLAG_REORDER 711 RC_FLAGS 712 AR_OUT_OPTION 713 LD_OUT_OPTION 714 EXE_OUT_OPTION 715 CC_OUT_OPTION 716 POST_MCS_CMD 717 POST_STRIP_CMD 718 ARFLAGS 719 COMPILER_TARGET_BITS_FLAG 720 JT_HOME 721 JTREGEXE 722 USING_BROKEN_SUSE_LD 723 PACKAGE_PATH 724 LDEXECXX 725 LDEXE 726 USE_CLANG 727 HOTSPOT_LD 728 HOTSPOT_CXX 729 HOTSPOT_RC 730 HOTSPOT_MT 731 BUILD_LD 732 BUILD_CXX 733 BUILD_CC 734 ac_ct_OBJDUMP 735 OBJDUMP 736 ac_ct_OBJCOPY 737 OBJCOPY 738 ac_ct_NM 739 ac_ct_STRIP 740 MCS 741 GNM 742 NM 743 STRIP 744 DUMPBIN 745 RC 746 MT 747 LIPO 748 ac_ct_OBJC 749 OBJCFLAGS 750 OBJC 751 ac_ct_AR 752 AR 753 AS 754 LDCXX 755 LD 756 CXXCPP 757 CPP 758 ac_ct_CXX 759 CXXFLAGS 760 CXX 761 ac_ct_PROPER_COMPILER_CXX 762 PROPER_COMPILER_CXX 763 TOOLS_DIR_CXX 764 POTENTIAL_CXX 765 OBJEXT 766 EXEEXT 767 ac_ct_CC 768 CPPFLAGS 769 LDFLAGS 770 CFLAGS 771 CC 772 ac_ct_PROPER_COMPILER_CC 773 PROPER_COMPILER_CC 774 TOOLS_DIR_CC 775 POTENTIAL_CC 776 VS_PATH 777 VS_LIB 778 VS_INCLUDE 779 CYGWIN_LINK 780 EXE_SUFFIX 781 OBJ_SUFFIX 782 STATIC_LIBRARY 783 SHARED_LIBRARY 784 STATIC_LIBRARY_SUFFIX 785 SHARED_LIBRARY_SUFFIX 786 LIBRARY_PREFIX 787 TOOLCHAIN_TYPE 788 BUILD_HOTSPOT 789 HOTSPOT_DIST 790 BUILD_OUTPUT 791 OVERRIDE_SRC_ROOT 792 ADD_SRC_ROOT 793 JDK_TOPDIR 794 NASHORN_TOPDIR 795 HOTSPOT_TOPDIR 796 JAXWS_TOPDIR 797 JAXP_TOPDIR 798 CORBA_TOPDIR 799 LANGTOOLS_TOPDIR 800 JAVA_FLAGS_SMALL 801 JAVA_FLAGS_BIG 802 JAVA_FLAGS 803 JAVAC_FLAGS 804 BOOT_JDK_SOURCETARGET 805 JARSIGNER 806 NATIVE2ASCII 807 JAR 808 JAVAH 809 JAVAC 810 JAVA 811 BOOT_JDK 812 BOOT_TOOLSJAR 813 BOOT_RTJAR 814 JAVA_CHECK 815 JAVAC_CHECK 816 COOKED_BUILD_NUMBER 817 JDK_VERSION 818 COPYRIGHT_YEAR 819 MACOSX_BUNDLE_ID_BASE 820 MACOSX_BUNDLE_NAME_BASE 821 COMPANY_NAME 822 JDK_RC_PLATFORM_NAME 823 PRODUCT_SUFFIX 824 PRODUCT_NAME 825 LAUNCHER_NAME 826 MILESTONE 827 JDK_BUILD_NUMBER 828 JDK_UPDATE_VERSION 829 JDK_MICRO_VERSION 830 JDK_MINOR_VERSION 831 JDK_MAJOR_VERSION 832 USER_RELEASE_SUFFIX 833 COMPRESS_JARS 834 RMICONNECTOR_IIOP 835 UNLIMITED_CRYPTO 836 CACERTS_FILE 837 TEST_IN_BUILD 838 BUILD_HEADLESS 839 SUPPORT_HEADFUL 840 SUPPORT_HEADLESS 841 BDEPS_FTP 842 BDEPS_UNZIP 843 OS_VERSION_MICRO 844 OS_VERSION_MINOR 845 OS_VERSION_MAJOR 846 PKG_CONFIG 847 CODESIGN 848 XATTR 849 DSYMUTIL 850 IS_GNU_TIME 851 TIME 852 STAT 853 HG 854 READELF 855 OTOOL 856 LDD 857 ZIP 858 UNZIP 859 FIND_DELETE 860 MAKE 861 CHECK_TOOLSDIR_MAKE 862 CHECK_TOOLSDIR_GMAKE 863 CHECK_MAKE 864 CHECK_GMAKE 865 PKGHANDLER 866 OUTPUT_ROOT 867 CONF_NAME 868 SPEC 869 BUILD_VARIANT_RELEASE 870 DEBUG_CLASSFILES 871 FASTDEBUG 872 VARIANT 873 DEBUG_LEVEL 874 MACOSX_UNIVERSAL 875 INCLUDE_SA 876 JVM_VARIANT_CORE 877 JVM_VARIANT_ZEROSHARK 878 JVM_VARIANT_ZERO 879 JVM_VARIANT_KERNEL 880 JVM_VARIANT_MINIMAL1 881 JVM_VARIANT_CLIENT 882 JVM_VARIANT_SERVER 883 JVM_VARIANTS 884 JVM_INTERPRETER 885 JDK_VARIANT 886 SET_OPENJDK 887 BUILD_LOG_WRAPPER 888 BUILD_LOG_PREVIOUS 889 BUILD_LOG 890 SYS_ROOT 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 with_sys_root 1024 with_tools_dir 1025 with_devkit 1026 enable_openjdk_only 1027 with_custom_make_dir 1028 with_jdk_variant 1029 with_jvm_interpreter 1030 with_jvm_variants 1031 enable_debug 1032 with_debug_level 1033 with_conf_name 1034 with_builddeps_conf 1035 with_builddeps_server 1036 with_builddeps_dir 1037 with_builddeps_group 1038 enable_headful 1039 enable_hotspot_test_in_build 1040 with_cacerts_file 1041 enable_unlimited_crypto 1042 enable_rmiconnector_iiop 1043 with_milestone 1044 with_update_version 1045 with_user_release_suffix 1046 with_build_number 1047 with_boot_jdk 1048 with_boot_jdk_jvmargs 1049 with_add_source_root 1050 with_override_source_root 1051 with_adds_and_overrides 1052 with_override_langtools 1053 with_override_corba 1054 with_override_jaxp 1055 with_override_jaxws 1056 with_override_hotspot 1057 with_override_nashorn 1058 with_override_jdk 1059 with_import_hotspot 1060 with_toolchain_type 1061 with_jtreg 1062 with_extra_cflags 1063 with_extra_cxxflags 1064 with_extra_ldflags 1065 enable_debug_symbols 1066 enable_zip_debug_info 1067 enable_macosx_runtime_support 1068 with_x 1069 with_cups 1070 with_cups_include 1071 with_freetype 1072 with_freetype_include 1073 with_freetype_lib 1074 enable_freetype_bundling 1075 with_alsa 1076 with_alsa_include 1077 with_alsa_lib 1078 with_giflib 1079 with_libpng 1080 with_zlib 1081 with_stdc__lib 1082 with_msvcr_dll 1083 with_dxsdk 1084 with_dxsdk_lib 1085 with_dxsdk_include 1086 with_num_cores 1087 with_memory_size 1088 with_jobs 1089 with_sjavac_server_java 1090 enable_sjavac 1091 enable_precompiled_headers 1092 enable_ccache 1093 with_ccache_dir 1094 ' 1095 ac_precious_vars='build_alias 1096 host_alias 1097 target_alias 1098 BASENAME 1099 BASH 1100 CAT 1101 CHMOD 1102 CMP 1103 COMM 1104 CP 1105 CPIO 1106 CUT 1107 DATE 1108 DIFF 1109 DIRNAME 1110 ECHO 1111 EXPR 1112 FILE 1113 FIND 1114 HEAD 1115 LN 1116 LS 1117 MKDIR 1118 MKTEMP 1119 MV 1120 NAWK 1121 PRINTF 1122 RM 1123 SH 1124 SORT 1125 TAIL 1126 TAR 1127 TEE 1128 TOUCH 1129 TR 1130 UNAME 1131 UNIQ 1132 WC 1133 WHICH 1134 XARGS 1135 AWK 1136 GREP 1137 EGREP 1138 FGREP 1139 SED 1140 CYGPATH 1141 READLINK 1142 DF 1143 SETFILE 1144 UNZIP 1145 ZIP 1146 LDD 1147 OTOOL 1148 READELF 1149 HG 1150 STAT 1151 TIME 1152 DSYMUTIL 1153 XATTR 1154 CODESIGN 1155 PKG_CONFIG 1156 JAVA 1157 JAVAC 1158 JAVAH 1159 JAR 1160 NATIVE2ASCII 1161 JARSIGNER 1162 CC 1163 CFLAGS 1164 LDFLAGS 1165 LIBS 1166 CPPFLAGS 1167 CXX 1168 CXXFLAGS 1169 CCC 1170 CPP 1171 CXXCPP 1172 AS 1173 AR 1174 OBJC 1175 OBJCFLAGS 1176 LIPO 1177 STRIP 1178 NM 1179 GNM 1180 MCS 1181 OBJCOPY 1182 OBJDUMP 1183 BUILD_CC 1184 BUILD_CXX 1185 BUILD_LD 1186 JTREGEXE 1187 XMKMF 1188 FREETYPE_CFLAGS 1189 FREETYPE_LIBS 1190 ALSA_CFLAGS 1191 ALSA_LIBS 1192 PNG_CFLAGS 1193 PNG_LIBS 1194 LIBFFI_CFLAGS 1195 LIBFFI_LIBS 1196 CCACHE' 1197 1198 1199 # Initialize some variables set by options. 1200 ac_init_help= 1201 ac_init_version=false 1202 ac_unrecognized_opts= 1203 ac_unrecognized_sep= 1204 # The variables have the same names as the options, with 1205 # dashes changed to underlines. 1206 cache_file=/dev/null 1207 exec_prefix=NONE 1208 no_create= 1209 no_recursion= 1210 prefix=NONE 1211 program_prefix=NONE 1212 program_suffix=NONE 1213 program_transform_name=s,x,x, 1214 silent= 1215 site= 1216 srcdir= 1217 verbose= 1218 x_includes=NONE 1219 x_libraries=NONE 1220 1221 # Installation directory options. 1222 # These are left unexpanded so users can "make install exec_prefix=/foo" 1223 # and all the variables that are supposed to be based on exec_prefix 1224 # by default will actually change. 1225 # Use braces instead of parens because sh, perl, etc. also accept them. 1226 # (The list follows the same order as the GNU Coding Standards.) 1227 bindir='${exec_prefix}/bin' 1228 sbindir='${exec_prefix}/sbin' 1229 libexecdir='${exec_prefix}/libexec' 1230 datarootdir='${prefix}/share' 1231 datadir='${datarootdir}' 1232 sysconfdir='${prefix}/etc' 1233 sharedstatedir='${prefix}/com' 1234 localstatedir='${prefix}/var' 1235 includedir='${prefix}/include' 1236 oldincludedir='/usr/include' 1237 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1238 infodir='${datarootdir}/info' 1239 htmldir='${docdir}' 1240 dvidir='${docdir}' 1241 pdfdir='${docdir}' 1242 psdir='${docdir}' 1243 libdir='${exec_prefix}/lib' 1244 localedir='${datarootdir}/locale' 1245 mandir='${datarootdir}/man' 1246 1247 ac_prev= 1248 ac_dashdash= 1249 for ac_option 1250 do 1251 # If the previous option needs an argument, assign it. 1252 if test -n "$ac_prev"; then 1253 eval $ac_prev=\$ac_option 1254 ac_prev= 1255 continue 1256 fi 1257 1258 case $ac_option in 1259 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1260 *=) ac_optarg= ;; 1261 *) ac_optarg=yes ;; 1262 esac 1263 1264 # Accept the important Cygnus configure options, so we can diagnose typos. 1265 1266 case $ac_dashdash$ac_option in 1267 --) 1268 ac_dashdash=yes ;; 1269 1270 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1271 ac_prev=bindir ;; 1272 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1273 bindir=$ac_optarg ;; 1274 1275 -build | --build | --buil | --bui | --bu) 1276 ac_prev=build_alias ;; 1277 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1278 build_alias=$ac_optarg ;; 1279 1280 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1281 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1282 ac_prev=cache_file ;; 1283 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1284 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1285 cache_file=$ac_optarg ;; 1286 1287 --config-cache | -C) 1288 cache_file=config.cache ;; 1289 1290 -datadir | --datadir | --datadi | --datad) 1291 ac_prev=datadir ;; 1292 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1293 datadir=$ac_optarg ;; 1294 1295 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1296 | --dataroo | --dataro | --datar) 1297 ac_prev=datarootdir ;; 1298 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1299 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1300 datarootdir=$ac_optarg ;; 1301 1302 -disable-* | --disable-*) 1303 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1304 # Reject names that are not valid shell variable names. 1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1306 as_fn_error $? "invalid feature name: $ac_useropt" 1307 ac_useropt_orig=$ac_useropt 1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1309 case $ac_user_opts in 1310 *" 1311 "enable_$ac_useropt" 1312 "*) ;; 1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1314 ac_unrecognized_sep=', ';; 1315 esac 1316 eval enable_$ac_useropt=no ;; 1317 1318 -docdir | --docdir | --docdi | --doc | --do) 1319 ac_prev=docdir ;; 1320 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1321 docdir=$ac_optarg ;; 1322 1323 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1324 ac_prev=dvidir ;; 1325 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1326 dvidir=$ac_optarg ;; 1327 1328 -enable-* | --enable-*) 1329 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1330 # Reject names that are not valid shell variable names. 1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1332 as_fn_error $? "invalid feature name: $ac_useropt" 1333 ac_useropt_orig=$ac_useropt 1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1335 case $ac_user_opts in 1336 *" 1337 "enable_$ac_useropt" 1338 "*) ;; 1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1340 ac_unrecognized_sep=', ';; 1341 esac 1342 eval enable_$ac_useropt=\$ac_optarg ;; 1343 1344 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1345 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1346 | --exec | --exe | --ex) 1347 ac_prev=exec_prefix ;; 1348 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1349 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1350 | --exec=* | --exe=* | --ex=*) 1351 exec_prefix=$ac_optarg ;; 1352 1353 -gas | --gas | --ga | --g) 1354 # Obsolete; use --with-gas. 1355 with_gas=yes ;; 1356 1357 -help | --help | --hel | --he | -h) 1358 ac_init_help=long ;; 1359 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1360 ac_init_help=recursive ;; 1361 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1362 ac_init_help=short ;; 1363 1364 -host | --host | --hos | --ho) 1365 ac_prev=host_alias ;; 1366 -host=* | --host=* | --hos=* | --ho=*) 1367 host_alias=$ac_optarg ;; 1368 1369 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1370 ac_prev=htmldir ;; 1371 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1372 | --ht=*) 1373 htmldir=$ac_optarg ;; 1374 1375 -includedir | --includedir | --includedi | --included | --include \ 1376 | --includ | --inclu | --incl | --inc) 1377 ac_prev=includedir ;; 1378 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1379 | --includ=* | --inclu=* | --incl=* | --inc=*) 1380 includedir=$ac_optarg ;; 1381 1382 -infodir | --infodir | --infodi | --infod | --info | --inf) 1383 ac_prev=infodir ;; 1384 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1385 infodir=$ac_optarg ;; 1386 1387 -libdir | --libdir | --libdi | --libd) 1388 ac_prev=libdir ;; 1389 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1390 libdir=$ac_optarg ;; 1391 1392 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1393 | --libexe | --libex | --libe) 1394 ac_prev=libexecdir ;; 1395 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1396 | --libexe=* | --libex=* | --libe=*) 1397 libexecdir=$ac_optarg ;; 1398 1399 -localedir | --localedir | --localedi | --localed | --locale) 1400 ac_prev=localedir ;; 1401 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1402 localedir=$ac_optarg ;; 1403 1404 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1405 | --localstate | --localstat | --localsta | --localst | --locals) 1406 ac_prev=localstatedir ;; 1407 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1408 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1409 localstatedir=$ac_optarg ;; 1410 1411 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1412 ac_prev=mandir ;; 1413 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1414 mandir=$ac_optarg ;; 1415 1416 -nfp | --nfp | --nf) 1417 # Obsolete; use --without-fp. 1418 with_fp=no ;; 1419 1420 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1421 | --no-cr | --no-c | -n) 1422 no_create=yes ;; 1423 1424 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1425 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1426 no_recursion=yes ;; 1427 1428 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1429 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1430 | --oldin | --oldi | --old | --ol | --o) 1431 ac_prev=oldincludedir ;; 1432 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1433 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1434 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1435 oldincludedir=$ac_optarg ;; 1436 1437 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1438 ac_prev=prefix ;; 1439 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1440 prefix=$ac_optarg ;; 1441 1442 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1443 | --program-pre | --program-pr | --program-p) 1444 ac_prev=program_prefix ;; 1445 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1446 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1447 program_prefix=$ac_optarg ;; 1448 1449 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1450 | --program-suf | --program-su | --program-s) 1451 ac_prev=program_suffix ;; 1452 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1453 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1454 program_suffix=$ac_optarg ;; 1455 1456 -program-transform-name | --program-transform-name \ 1457 | --program-transform-nam | --program-transform-na \ 1458 | --program-transform-n | --program-transform- \ 1459 | --program-transform | --program-transfor \ 1460 | --program-transfo | --program-transf \ 1461 | --program-trans | --program-tran \ 1462 | --progr-tra | --program-tr | --program-t) 1463 ac_prev=program_transform_name ;; 1464 -program-transform-name=* | --program-transform-name=* \ 1465 | --program-transform-nam=* | --program-transform-na=* \ 1466 | --program-transform-n=* | --program-transform-=* \ 1467 | --program-transform=* | --program-transfor=* \ 1468 | --program-transfo=* | --program-transf=* \ 1469 | --program-trans=* | --program-tran=* \ 1470 | --progr-tra=* | --program-tr=* | --program-t=*) 1471 program_transform_name=$ac_optarg ;; 1472 1473 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1474 ac_prev=pdfdir ;; 1475 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1476 pdfdir=$ac_optarg ;; 1477 1478 -psdir | --psdir | --psdi | --psd | --ps) 1479 ac_prev=psdir ;; 1480 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1481 psdir=$ac_optarg ;; 1482 1483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1484 | -silent | --silent | --silen | --sile | --sil) 1485 silent=yes ;; 1486 1487 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1488 ac_prev=sbindir ;; 1489 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1490 | --sbi=* | --sb=*) 1491 sbindir=$ac_optarg ;; 1492 1493 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1494 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1495 | --sharedst | --shareds | --shared | --share | --shar \ 1496 | --sha | --sh) 1497 ac_prev=sharedstatedir ;; 1498 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1499 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1500 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1501 | --sha=* | --sh=*) 1502 sharedstatedir=$ac_optarg ;; 1503 1504 -site | --site | --sit) 1505 ac_prev=site ;; 1506 -site=* | --site=* | --sit=*) 1507 site=$ac_optarg ;; 1508 1509 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1510 ac_prev=srcdir ;; 1511 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1512 srcdir=$ac_optarg ;; 1513 1514 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1515 | --syscon | --sysco | --sysc | --sys | --sy) 1516 ac_prev=sysconfdir ;; 1517 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1518 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1519 sysconfdir=$ac_optarg ;; 1520 1521 -target | --target | --targe | --targ | --tar | --ta | --t) 1522 ac_prev=target_alias ;; 1523 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1524 target_alias=$ac_optarg ;; 1525 1526 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1527 verbose=yes ;; 1528 1529 -version | --version | --versio | --versi | --vers | -V) 1530 ac_init_version=: ;; 1531 1532 -with-* | --with-*) 1533 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1534 # Reject names that are not valid shell variable names. 1535 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1536 as_fn_error $? "invalid package name: $ac_useropt" 1537 ac_useropt_orig=$ac_useropt 1538 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1539 case $ac_user_opts in 1540 *" 1541 "with_$ac_useropt" 1542 "*) ;; 1543 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1544 ac_unrecognized_sep=', ';; 1545 esac 1546 eval with_$ac_useropt=\$ac_optarg ;; 1547 1548 -without-* | --without-*) 1549 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1550 # Reject names that are not valid shell variable names. 1551 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1552 as_fn_error $? "invalid package name: $ac_useropt" 1553 ac_useropt_orig=$ac_useropt 1554 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1555 case $ac_user_opts in 1556 *" 1557 "with_$ac_useropt" 1558 "*) ;; 1559 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1560 ac_unrecognized_sep=', ';; 1561 esac 1562 eval with_$ac_useropt=no ;; 1563 1564 --x) 1565 # Obsolete; use --with-x. 1566 with_x=yes ;; 1567 1568 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1569 | --x-incl | --x-inc | --x-in | --x-i) 1570 ac_prev=x_includes ;; 1571 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1572 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1573 x_includes=$ac_optarg ;; 1574 1575 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1576 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1577 ac_prev=x_libraries ;; 1578 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1579 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1580 x_libraries=$ac_optarg ;; 1581 1582 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1583 Try \`$0 --help' for more information" 1584 ;; 1585 1586 *=*) 1587 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1588 # Reject names that are not valid shell variable names. 1589 case $ac_envvar in #( 1590 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1591 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1592 esac 1593 eval $ac_envvar=\$ac_optarg 1594 export $ac_envvar ;; 1595 1596 *) 1597 # FIXME: should be removed in autoconf 3.0. 1598 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1599 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1600 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1601 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1602 ;; 1603 1604 esac 1605 done 1606 1607 if test -n "$ac_prev"; then 1608 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1609 as_fn_error $? "missing argument to $ac_option" 1610 fi 1611 1612 if test -n "$ac_unrecognized_opts"; then 1613 case $enable_option_checking in 1614 no) ;; 1615 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1616 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1617 esac 1618 fi 1619 1620 # Check all directory arguments for consistency. 1621 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1622 datadir sysconfdir sharedstatedir localstatedir includedir \ 1623 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1624 libdir localedir mandir 1625 do 1626 eval ac_val=\$$ac_var 1627 # Remove trailing slashes. 1628 case $ac_val in 1629 */ ) 1630 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1631 eval $ac_var=\$ac_val;; 1632 esac 1633 # Be sure to have absolute directory names. 1634 case $ac_val in 1635 [\\/$]* | ?:[\\/]* ) continue;; 1636 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1637 esac 1638 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1639 done 1640 1641 # There might be people who depend on the old broken behavior: `$host' 1642 # used to hold the argument of --host etc. 1643 # FIXME: To remove some day. 1644 build=$build_alias 1645 host=$host_alias 1646 target=$target_alias 1647 1648 # FIXME: To remove some day. 1649 if test "x$host_alias" != x; then 1650 if test "x$build_alias" = x; then 1651 cross_compiling=maybe 1652 elif test "x$build_alias" != "x$host_alias"; then 1653 cross_compiling=yes 1654 fi 1655 fi 1656 1657 ac_tool_prefix= 1658 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1659 1660 test "$silent" = yes && exec 6>/dev/null 1661 1662 1663 ac_pwd=`pwd` && test -n "$ac_pwd" && 1664 ac_ls_di=`ls -di .` && 1665 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1666 as_fn_error $? "working directory cannot be determined" 1667 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1668 as_fn_error $? "pwd does not report name of working directory" 1669 1670 1671 # Find the source files, if location was not specified. 1672 if test -z "$srcdir"; then 1673 ac_srcdir_defaulted=yes 1674 # Try the directory containing this script, then the parent directory. 1675 ac_confdir=`$as_dirname -- "$as_myself" || 1676 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1677 X"$as_myself" : 'X\(//\)[^/]' \| \ 1678 X"$as_myself" : 'X\(//\)$' \| \ 1679 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1680 $as_echo X"$as_myself" | 1681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1682 s//\1/ 1683 q 1684 } 1685 /^X\(\/\/\)[^/].*/{ 1686 s//\1/ 1687 q 1688 } 1689 /^X\(\/\/\)$/{ 1690 s//\1/ 1691 q 1692 } 1693 /^X\(\/\).*/{ 1694 s//\1/ 1695 q 1696 } 1697 s/.*/./; q'` 1698 srcdir=$ac_confdir 1699 if test ! -r "$srcdir/$ac_unique_file"; then 1700 srcdir=.. 1701 fi 1702 else 1703 ac_srcdir_defaulted=no 1704 fi 1705 if test ! -r "$srcdir/$ac_unique_file"; then 1706 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1707 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1708 fi 1709 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1710 ac_abs_confdir=`( 1711 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1712 pwd)` 1713 # When building in place, set srcdir=. 1714 if test "$ac_abs_confdir" = "$ac_pwd"; then 1715 srcdir=. 1716 fi 1717 # Remove unnecessary trailing slashes from srcdir. 1718 # Double slashes in file names in object file debugging info 1719 # mess up M-x gdb in Emacs. 1720 case $srcdir in 1721 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1722 esac 1723 for ac_var in $ac_precious_vars; do 1724 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1725 eval ac_env_${ac_var}_value=\$${ac_var} 1726 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1727 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1728 done 1729 1730 # 1731 # Report the --help message. 1732 # 1733 if test "$ac_init_help" = "long"; then 1734 # Omit some internal or obsolete options to make the list less imposing. 1735 # This message is too long to be a string in the A/UX 3.1 sh. 1736 cat <<_ACEOF 1737 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1738 1739 Usage: $0 [OPTION]... [VAR=VALUE]... 1740 1741 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1742 VAR=VALUE. See below for descriptions of some of the useful variables. 1743 1744 Defaults for the options are specified in brackets. 1745 1746 Configuration: 1747 -h, --help display this help and exit 1748 --help=short display options specific to this package 1749 --help=recursive display the short help of all the included packages 1750 -V, --version display version information and exit 1751 -q, --quiet, --silent do not print \`checking ...' messages 1752 --cache-file=FILE cache test results in FILE [disabled] 1753 -C, --config-cache alias for \`--cache-file=config.cache' 1754 -n, --no-create do not create output files 1755 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1756 1757 Installation directories: 1758 --prefix=PREFIX install architecture-independent files in PREFIX 1759 [$ac_default_prefix] 1760 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1761 [PREFIX] 1762 1763 By default, \`make install' will install all the files in 1764 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1765 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1766 for instance \`--prefix=\$HOME'. 1767 1768 For better control, use the options below. 1769 1770 Fine tuning of the installation directories: 1771 --bindir=DIR user executables [EPREFIX/bin] 1772 --sbindir=DIR system admin executables [EPREFIX/sbin] 1773 --libexecdir=DIR program executables [EPREFIX/libexec] 1774 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1775 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1776 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1777 --libdir=DIR object code libraries [EPREFIX/lib] 1778 --includedir=DIR C header files [PREFIX/include] 1779 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1780 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1781 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1782 --infodir=DIR info documentation [DATAROOTDIR/info] 1783 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1784 --mandir=DIR man documentation [DATAROOTDIR/man] 1785 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1786 --htmldir=DIR html documentation [DOCDIR] 1787 --dvidir=DIR dvi documentation [DOCDIR] 1788 --pdfdir=DIR pdf documentation [DOCDIR] 1789 --psdir=DIR ps documentation [DOCDIR] 1790 _ACEOF 1791 1792 cat <<\_ACEOF 1793 1794 X features: 1795 --x-includes=DIR X include files are in DIR 1796 --x-libraries=DIR X library files are in DIR 1797 1798 System types: 1799 --build=BUILD configure for building on BUILD [guessed] 1800 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1801 --target=TARGET configure for building compilers for TARGET [HOST] 1802 _ACEOF 1803 fi 1804 1805 if test -n "$ac_init_help"; then 1806 case $ac_init_help in 1807 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1808 esac 1809 cat <<\_ACEOF 1810 1811 Optional Features: 1812 --disable-option-checking ignore unrecognized --enable/--with options 1813 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1814 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1815 --enable-openjdk-only suppress building custom source even if present 1816 [disabled] 1817 --enable-debug set the debug level to fastdebug (shorthand for 1818 --with-debug-level=fastdebug) [disabled] 1819 --disable-headful disable building headful support (graphical UI 1820 support) [enabled] 1821 --enable-hotspot-test-in-build 1822 run the Queens test after Hotspot build [disabled] 1823 --enable-unlimited-crypto 1824 Enable unlimited crypto policy [disabled] 1825 --enable-rmiconnector-iiop 1826 enable the JMX RMIConnector iiop transport 1827 [disabled] 1828 --disable-debug-symbols disable generation of debug symbols [enabled] 1829 --disable-zip-debug-info 1830 disable zipping of debug-info files [enabled] 1831 --enable-macosx-runtime-support 1832 Deprecated. Option is kept for backwards 1833 compatibility and is ignored 1834 --disable-freetype-bundling 1835 disable bundling of the freetype library with the 1836 build result [enabled on Windows or when using 1837 --with-freetype, disabled otherwise] 1838 --enable-sjavac use sjavac to do fast incremental compiles 1839 [disabled] 1840 --disable-precompiled-headers 1841 disable using precompiled headers when compiling C++ 1842 [enabled] 1843 --enable-ccache enable using ccache to speed up recompilations 1844 [disabled] 1845 1846 Optional Packages: 1847 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1848 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1849 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1850 support it), e.g. --with-target-bits=32 [guessed] 1851 --with-sys-root pass this sys-root to the compilers and tools (for 1852 cross-compiling) 1853 --with-tools-dir search this directory for compilers and tools (for 1854 cross-compiling) 1855 --with-devkit use this directory as base for tools-dir and 1856 sys-root (for cross-compiling) 1857 --with-custom-make-dir Deprecated. Option is kept for backwards 1858 compatibility and is ignored 1859 --with-jdk-variant JDK variant to build (normal) [normal] 1860 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1861 --with-jvm-variants JVM variants (separated by commas) to build (server, 1862 client, minimal1, kernel, zero, zeroshark, core) 1863 [server] 1864 --with-debug-level set the debug level (release, fastdebug, slowdebug) 1865 [release] 1866 --with-conf-name use this as the name of the configuration [generated 1867 from important configuration options] 1868 --with-builddeps-conf use this configuration file for the builddeps 1869 --with-builddeps-server download and use build dependencies from this server 1870 url 1871 --with-builddeps-dir store downloaded build dependencies here 1872 [/localhome/builddeps] 1873 --with-builddeps-group chgrp the downloaded build dependencies to this 1874 group 1875 --with-cacerts-file specify alternative cacerts file 1876 --with-milestone Set milestone value for build [internal] 1877 --with-update-version Set update version value for build [b00] 1878 --with-user-release-suffix 1879 Add a custom string to the version string if build 1880 number is not set.[username_builddateb00] 1881 --with-build-number Set build number value for build [b00] 1882 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1883 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 1884 invocations of boot JDK, overriding the default 1885 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1886 -enableassertions" 1887 --with-add-source-root for each and every source directory, look in this 1888 additional source root for the same directory; if it 1889 exists and have files in it, include it in the build 1890 --with-override-source-root 1891 for each and every source directory, look in this 1892 override source root for the same directory; if it 1893 exists, use that directory instead and ignore the 1894 directory in the original source root 1895 --with-adds-and-overrides 1896 use the subdirs 'adds' and 'overrides' in the 1897 specified directory as add-source-root and 1898 override-source-root 1899 --with-override-langtools 1900 use this langtools dir for the build 1901 --with-override-corba use this corba dir for the build 1902 --with-override-jaxp use this jaxp dir for the build 1903 --with-override-jaxws use this jaxws dir for the build 1904 --with-override-hotspot use this hotspot dir for the build 1905 --with-override-nashorn use this nashorn dir for the build 1906 --with-override-jdk use this jdk dir for the build 1907 --with-import-hotspot import hotspot binaries from this jdk image or 1908 hotspot build dist dir instead of building from 1909 source 1910 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1911 to show possible values [platform dependent] 1912 --with-jtreg Regression Test Harness [probed] 1913 --with-extra-cflags extra flags to be used when compiling jdk c-files 1914 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1915 --with-extra-ldflags extra flags to be used when linking jdk 1916 --with-x use the X Window System 1917 --with-cups specify prefix directory for the cups package 1918 (expecting the headers under PATH/include) 1919 --with-cups-include specify directory for the cups include files 1920 --with-freetype specify prefix directory for the freetype package 1921 (expecting the libraries under PATH/lib and the 1922 headers under PATH/include) 1923 --with-freetype-include specify directory for the freetype include files 1924 --with-freetype-lib specify directory for the freetype library 1925 --with-alsa specify prefix directory for the alsa package 1926 (expecting the libraries under PATH/lib and the 1927 headers under PATH/include) 1928 --with-alsa-include specify directory for the alsa include files 1929 --with-alsa-lib specify directory for the alsa library 1930 --with-giflib use giflib from build system or OpenJDK source 1931 (system, bundled) [bundled] 1932 --with-libpng use libpng from build system or OpenJDK source 1933 (system, bundled) [bundled] 1934 --with-zlib use zlib from build system or OpenJDK source 1935 (system, bundled) [bundled] 1936 --with-stdc++lib=<static>,<dynamic>,<default> 1937 force linking of the C++ runtime on Linux to either 1938 static or dynamic, default is static with dynamic as 1939 fallback 1940 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1941 only) [probed] 1942 --with-dxsdk Deprecated. Option is kept for backwards 1943 compatibility and is ignored 1944 --with-dxsdk-lib Deprecated. Option is kept for backwards 1945 compatibility and is ignored 1946 --with-dxsdk-include Deprecated. Option is kept for backwards 1947 compatibility and is ignored 1948 --with-num-cores number of cores in the build system, e.g. 1949 --with-num-cores=8 [probed] 1950 --with-memory-size memory (in MB) available in the build system, e.g. 1951 --with-memory-size=1024 [probed] 1952 --with-jobs number of parallel jobs to let make run [calculated 1953 based on cores and memory] 1954 --with-sjavac-server-java 1955 use this java binary for running the sjavac 1956 background server [Boot JDK java] 1957 --with-ccache-dir where to store ccache files [~/.ccache] 1958 1959 Some influential environment variables: 1960 BASENAME Override default value for BASENAME 1961 BASH Override default value for BASH 1962 CAT Override default value for CAT 1963 CHMOD Override default value for CHMOD 1964 CMP Override default value for CMP 1965 COMM Override default value for COMM 1966 CP Override default value for CP 1967 CPIO Override default value for CPIO 1968 CUT Override default value for CUT 1969 DATE Override default value for DATE 1970 DIFF Override default value for DIFF 1971 DIRNAME Override default value for DIRNAME 1972 ECHO Override default value for ECHO 1973 EXPR Override default value for EXPR 1974 FILE Override default value for FILE 1975 FIND Override default value for FIND 1976 HEAD Override default value for HEAD 1977 LN Override default value for LN 1978 LS Override default value for LS 1979 MKDIR Override default value for MKDIR 1980 MKTEMP Override default value for MKTEMP 1981 MV Override default value for MV 1982 NAWK Override default value for NAWK 1983 PRINTF Override default value for PRINTF 1984 RM Override default value for RM 1985 SH Override default value for SH 1986 SORT Override default value for SORT 1987 TAIL Override default value for TAIL 1988 TAR Override default value for TAR 1989 TEE Override default value for TEE 1990 TOUCH Override default value for TOUCH 1991 TR Override default value for TR 1992 UNAME Override default value for UNAME 1993 UNIQ Override default value for UNIQ 1994 WC Override default value for WC 1995 WHICH Override default value for WHICH 1996 XARGS Override default value for XARGS 1997 AWK Override default value for AWK 1998 GREP Override default value for GREP 1999 EGREP Override default value for EGREP 2000 FGREP Override default value for FGREP 2001 SED Override default value for SED 2002 CYGPATH Override default value for CYGPATH 2003 READLINK Override default value for READLINK 2004 DF Override default value for DF 2005 SETFILE Override default value for SETFILE 2006 UNZIP Override default value for UNZIP 2007 ZIP Override default value for ZIP 2008 LDD Override default value for LDD 2009 OTOOL Override default value for OTOOL 2010 READELF Override default value for READELF 2011 HG Override default value for HG 2012 STAT Override default value for STAT 2013 TIME Override default value for TIME 2014 DSYMUTIL Override default value for DSYMUTIL 2015 XATTR Override default value for XATTR 2016 CODESIGN Override default value for CODESIGN 2017 PKG_CONFIG path to pkg-config utility 2018 JAVA Override default value for JAVA 2019 JAVAC Override default value for JAVAC 2020 JAVAH Override default value for JAVAH 2021 JAR Override default value for JAR 2022 NATIVE2ASCII 2023 Override default value for NATIVE2ASCII 2024 JARSIGNER Override default value for JARSIGNER 2025 CC C compiler command 2026 CFLAGS C compiler flags 2027 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2028 nonstandard directory <lib dir> 2029 LIBS libraries to pass to the linker, e.g. -l<library> 2030 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2031 you have headers in a nonstandard directory <include dir> 2032 CXX C++ compiler command 2033 CXXFLAGS C++ compiler flags 2034 CPP C preprocessor 2035 CXXCPP C++ preprocessor 2036 AS Override default value for AS 2037 AR Override default value for AR 2038 OBJC Objective C compiler command 2039 OBJCFLAGS Objective C compiler flags 2040 LIPO Override default value for LIPO 2041 STRIP Override default value for STRIP 2042 NM Override default value for NM 2043 GNM Override default value for GNM 2044 MCS Override default value for MCS 2045 OBJCOPY Override default value for OBJCOPY 2046 OBJDUMP Override default value for OBJDUMP 2047 BUILD_CC Override default value for BUILD_CC 2048 BUILD_CXX Override default value for BUILD_CXX 2049 BUILD_LD Override default value for BUILD_LD 2050 JTREGEXE Override default value for JTREGEXE 2051 XMKMF Path to xmkmf, Makefile generator for X Window System 2052 FREETYPE_CFLAGS 2053 C compiler flags for FREETYPE, overriding pkg-config 2054 FREETYPE_LIBS 2055 linker flags for FREETYPE, overriding pkg-config 2056 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2057 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2058 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2059 PNG_LIBS linker flags for PNG, overriding pkg-config 2060 LIBFFI_CFLAGS 2061 C compiler flags for LIBFFI, overriding pkg-config 2062 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2063 CCACHE Override default value for CCACHE 2064 2065 Use these variables to override the choices made by `configure' or to help 2066 it to find libraries and programs with nonstandard names/locations. 2067 2068 Report bugs to <build-dev@openjdk.java.net>. 2069 OpenJDK home page: <http://openjdk.java.net>. 2070 _ACEOF 2071 ac_status=$? 2072 fi 2073 2074 if test "$ac_init_help" = "recursive"; then 2075 # If there are subdirs, report their specific --help. 2076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2077 test -d "$ac_dir" || 2078 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2079 continue 2080 ac_builddir=. 2081 2082 case "$ac_dir" in 2083 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2084 *) 2085 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2086 # A ".." for each directory in $ac_dir_suffix. 2087 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2088 case $ac_top_builddir_sub in 2089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2091 esac ;; 2092 esac 2093 ac_abs_top_builddir=$ac_pwd 2094 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2095 # for backward compatibility: 2096 ac_top_builddir=$ac_top_build_prefix 2097 2098 case $srcdir in 2099 .) # We are building in place. 2100 ac_srcdir=. 2101 ac_top_srcdir=$ac_top_builddir_sub 2102 ac_abs_top_srcdir=$ac_pwd ;; 2103 [\\/]* | ?:[\\/]* ) # Absolute name. 2104 ac_srcdir=$srcdir$ac_dir_suffix; 2105 ac_top_srcdir=$srcdir 2106 ac_abs_top_srcdir=$srcdir ;; 2107 *) # Relative name. 2108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2109 ac_top_srcdir=$ac_top_build_prefix$srcdir 2110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2111 esac 2112 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2113 2114 cd "$ac_dir" || { ac_status=$?; continue; } 2115 # Check for guested configure. 2116 if test -f "$ac_srcdir/configure.gnu"; then 2117 echo && 2118 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2119 elif test -f "$ac_srcdir/configure"; then 2120 echo && 2121 $SHELL "$ac_srcdir/configure" --help=recursive 2122 else 2123 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2124 fi || ac_status=$? 2125 cd "$ac_pwd" || { ac_status=$?; break; } 2126 done 2127 fi 2128 2129 test -n "$ac_init_help" && exit $ac_status 2130 if $ac_init_version; then 2131 cat <<\_ACEOF 2132 OpenJDK configure jdk9 2133 generated by GNU Autoconf 2.69 2134 2135 Copyright (C) 2012 Free Software Foundation, Inc. 2136 This configure script is free software; the Free Software Foundation 2137 gives unlimited permission to copy, distribute and modify it. 2138 _ACEOF 2139 exit 2140 fi 2141 2142 ## ------------------------ ## 2143 ## Autoconf initialization. ## 2144 ## ------------------------ ## 2145 2146 # ac_fn_c_try_compile LINENO 2147 # -------------------------- 2148 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2149 ac_fn_c_try_compile () 2150 { 2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2152 rm -f conftest.$ac_objext 2153 if { { ac_try="$ac_compile" 2154 case "(($ac_try" in 2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2156 *) ac_try_echo=$ac_try;; 2157 esac 2158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2159 $as_echo "$ac_try_echo"; } >&5 2160 (eval "$ac_compile") 2>conftest.err 2161 ac_status=$? 2162 if test -s conftest.err; then 2163 grep -v '^ *+' conftest.err >conftest.er1 2164 cat conftest.er1 >&5 2165 mv -f conftest.er1 conftest.err 2166 fi 2167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2168 test $ac_status = 0; } && { 2169 test -z "$ac_c_werror_flag" || 2170 test ! -s conftest.err 2171 } && test -s conftest.$ac_objext; then : 2172 ac_retval=0 2173 else 2174 $as_echo "$as_me: failed program was:" >&5 2175 sed 's/^/| /' conftest.$ac_ext >&5 2176 2177 ac_retval=1 2178 fi 2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2180 as_fn_set_status $ac_retval 2181 2182 } # ac_fn_c_try_compile 2183 2184 # ac_fn_cxx_try_compile LINENO 2185 # ---------------------------- 2186 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2187 ac_fn_cxx_try_compile () 2188 { 2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2190 rm -f conftest.$ac_objext 2191 if { { ac_try="$ac_compile" 2192 case "(($ac_try" in 2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2194 *) ac_try_echo=$ac_try;; 2195 esac 2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2197 $as_echo "$ac_try_echo"; } >&5 2198 (eval "$ac_compile") 2>conftest.err 2199 ac_status=$? 2200 if test -s conftest.err; then 2201 grep -v '^ *+' conftest.err >conftest.er1 2202 cat conftest.er1 >&5 2203 mv -f conftest.er1 conftest.err 2204 fi 2205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2206 test $ac_status = 0; } && { 2207 test -z "$ac_cxx_werror_flag" || 2208 test ! -s conftest.err 2209 } && test -s conftest.$ac_objext; then : 2210 ac_retval=0 2211 else 2212 $as_echo "$as_me: failed program was:" >&5 2213 sed 's/^/| /' conftest.$ac_ext >&5 2214 2215 ac_retval=1 2216 fi 2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2218 as_fn_set_status $ac_retval 2219 2220 } # ac_fn_cxx_try_compile 2221 2222 # ac_fn_c_try_cpp LINENO 2223 # ---------------------- 2224 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2225 ac_fn_c_try_cpp () 2226 { 2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2228 if { { ac_try="$ac_cpp conftest.$ac_ext" 2229 case "(($ac_try" in 2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2231 *) ac_try_echo=$ac_try;; 2232 esac 2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2234 $as_echo "$ac_try_echo"; } >&5 2235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2236 ac_status=$? 2237 if test -s conftest.err; then 2238 grep -v '^ *+' conftest.err >conftest.er1 2239 cat conftest.er1 >&5 2240 mv -f conftest.er1 conftest.err 2241 fi 2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2243 test $ac_status = 0; } > conftest.i && { 2244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2245 test ! -s conftest.err 2246 }; then : 2247 ac_retval=0 2248 else 2249 $as_echo "$as_me: failed program was:" >&5 2250 sed 's/^/| /' conftest.$ac_ext >&5 2251 2252 ac_retval=1 2253 fi 2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2255 as_fn_set_status $ac_retval 2256 2257 } # ac_fn_c_try_cpp 2258 2259 # ac_fn_cxx_try_cpp LINENO 2260 # ------------------------ 2261 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2262 ac_fn_cxx_try_cpp () 2263 { 2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2265 if { { ac_try="$ac_cpp conftest.$ac_ext" 2266 case "(($ac_try" in 2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2268 *) ac_try_echo=$ac_try;; 2269 esac 2270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2271 $as_echo "$ac_try_echo"; } >&5 2272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2273 ac_status=$? 2274 if test -s conftest.err; then 2275 grep -v '^ *+' conftest.err >conftest.er1 2276 cat conftest.er1 >&5 2277 mv -f conftest.er1 conftest.err 2278 fi 2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2280 test $ac_status = 0; } > conftest.i && { 2281 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2282 test ! -s conftest.err 2283 }; then : 2284 ac_retval=0 2285 else 2286 $as_echo "$as_me: failed program was:" >&5 2287 sed 's/^/| /' conftest.$ac_ext >&5 2288 2289 ac_retval=1 2290 fi 2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2292 as_fn_set_status $ac_retval 2293 2294 } # ac_fn_cxx_try_cpp 2295 2296 # ac_fn_objc_try_compile LINENO 2297 # ----------------------------- 2298 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2299 ac_fn_objc_try_compile () 2300 { 2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2302 rm -f conftest.$ac_objext 2303 if { { ac_try="$ac_compile" 2304 case "(($ac_try" in 2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2306 *) ac_try_echo=$ac_try;; 2307 esac 2308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2309 $as_echo "$ac_try_echo"; } >&5 2310 (eval "$ac_compile") 2>conftest.err 2311 ac_status=$? 2312 if test -s conftest.err; then 2313 grep -v '^ *+' conftest.err >conftest.er1 2314 cat conftest.er1 >&5 2315 mv -f conftest.er1 conftest.err 2316 fi 2317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2318 test $ac_status = 0; } && { 2319 test -z "$ac_objc_werror_flag" || 2320 test ! -s conftest.err 2321 } && test -s conftest.$ac_objext; then : 2322 ac_retval=0 2323 else 2324 $as_echo "$as_me: failed program was:" >&5 2325 sed 's/^/| /' conftest.$ac_ext >&5 2326 2327 ac_retval=1 2328 fi 2329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2330 as_fn_set_status $ac_retval 2331 2332 } # ac_fn_objc_try_compile 2333 2334 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2335 # --------------------------------------------------------- 2336 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2337 # the include files in INCLUDES and setting the cache variable VAR 2338 # accordingly. 2339 ac_fn_cxx_check_header_mongrel () 2340 { 2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2342 if eval \${$3+:} false; then : 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2344 $as_echo_n "checking for $2... " >&6; } 2345 if eval \${$3+:} false; then : 2346 $as_echo_n "(cached) " >&6 2347 fi 2348 eval ac_res=\$$3 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2350 $as_echo "$ac_res" >&6; } 2351 else 2352 # Is the header compilable? 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2354 $as_echo_n "checking $2 usability... " >&6; } 2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2356 /* end confdefs.h. */ 2357 $4 2358 #include <$2> 2359 _ACEOF 2360 if ac_fn_cxx_try_compile "$LINENO"; then : 2361 ac_header_compiler=yes 2362 else 2363 ac_header_compiler=no 2364 fi 2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2367 $as_echo "$ac_header_compiler" >&6; } 2368 2369 # Is the header present? 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2371 $as_echo_n "checking $2 presence... " >&6; } 2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2373 /* end confdefs.h. */ 2374 #include <$2> 2375 _ACEOF 2376 if ac_fn_cxx_try_cpp "$LINENO"; then : 2377 ac_header_preproc=yes 2378 else 2379 ac_header_preproc=no 2380 fi 2381 rm -f conftest.err conftest.i conftest.$ac_ext 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2383 $as_echo "$ac_header_preproc" >&6; } 2384 2385 # So? What about this header? 2386 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2387 yes:no: ) 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2389 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2391 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2392 ;; 2393 no:yes:* ) 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2395 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2397 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2399 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2401 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2403 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2404 ( $as_echo "## ----------------------------------------- ## 2405 ## Report this to build-dev@openjdk.java.net ## 2406 ## ----------------------------------------- ##" 2407 ) | sed "s/^/$as_me: WARNING: /" >&2 2408 ;; 2409 esac 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2411 $as_echo_n "checking for $2... " >&6; } 2412 if eval \${$3+:} false; then : 2413 $as_echo_n "(cached) " >&6 2414 else 2415 eval "$3=\$ac_header_compiler" 2416 fi 2417 eval ac_res=\$$3 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2419 $as_echo "$ac_res" >&6; } 2420 fi 2421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2422 2423 } # ac_fn_cxx_check_header_mongrel 2424 2425 # ac_fn_cxx_try_run LINENO 2426 # ------------------------ 2427 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2428 # that executables *can* be run. 2429 ac_fn_cxx_try_run () 2430 { 2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2432 if { { ac_try="$ac_link" 2433 case "(($ac_try" in 2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2435 *) ac_try_echo=$ac_try;; 2436 esac 2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2438 $as_echo "$ac_try_echo"; } >&5 2439 (eval "$ac_link") 2>&5 2440 ac_status=$? 2441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2442 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2443 { { case "(($ac_try" in 2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2445 *) ac_try_echo=$ac_try;; 2446 esac 2447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2448 $as_echo "$ac_try_echo"; } >&5 2449 (eval "$ac_try") 2>&5 2450 ac_status=$? 2451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2452 test $ac_status = 0; }; }; then : 2453 ac_retval=0 2454 else 2455 $as_echo "$as_me: program exited with status $ac_status" >&5 2456 $as_echo "$as_me: failed program was:" >&5 2457 sed 's/^/| /' conftest.$ac_ext >&5 2458 2459 ac_retval=$ac_status 2460 fi 2461 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2463 as_fn_set_status $ac_retval 2464 2465 } # ac_fn_cxx_try_run 2466 2467 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2468 # --------------------------------------------------------- 2469 # Tests whether HEADER exists and can be compiled using the include files in 2470 # INCLUDES, setting the cache variable VAR accordingly. 2471 ac_fn_cxx_check_header_compile () 2472 { 2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2475 $as_echo_n "checking for $2... " >&6; } 2476 if eval \${$3+:} false; then : 2477 $as_echo_n "(cached) " >&6 2478 else 2479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2480 /* end confdefs.h. */ 2481 $4 2482 #include <$2> 2483 _ACEOF 2484 if ac_fn_cxx_try_compile "$LINENO"; then : 2485 eval "$3=yes" 2486 else 2487 eval "$3=no" 2488 fi 2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2490 fi 2491 eval ac_res=\$$3 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2493 $as_echo "$ac_res" >&6; } 2494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2495 2496 } # ac_fn_cxx_check_header_compile 2497 2498 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2499 # ---------------------------------------------- 2500 # Tries to find the compile-time value of EXPR in a program that includes 2501 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2502 # computed 2503 ac_fn_cxx_compute_int () 2504 { 2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2506 if test "$cross_compiling" = yes; then 2507 # Depending upon the size, compute the lo and hi bounds. 2508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2509 /* end confdefs.h. */ 2510 $4 2511 int 2512 main () 2513 { 2514 static int test_array [1 - 2 * !(($2) >= 0)]; 2515 test_array [0] = 0; 2516 return test_array [0]; 2517 2518 ; 2519 return 0; 2520 } 2521 _ACEOF 2522 if ac_fn_cxx_try_compile "$LINENO"; then : 2523 ac_lo=0 ac_mid=0 2524 while :; do 2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2526 /* end confdefs.h. */ 2527 $4 2528 int 2529 main () 2530 { 2531 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2532 test_array [0] = 0; 2533 return test_array [0]; 2534 2535 ; 2536 return 0; 2537 } 2538 _ACEOF 2539 if ac_fn_cxx_try_compile "$LINENO"; then : 2540 ac_hi=$ac_mid; break 2541 else 2542 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2543 if test $ac_lo -le $ac_mid; then 2544 ac_lo= ac_hi= 2545 break 2546 fi 2547 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2548 fi 2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2550 done 2551 else 2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2553 /* end confdefs.h. */ 2554 $4 2555 int 2556 main () 2557 { 2558 static int test_array [1 - 2 * !(($2) < 0)]; 2559 test_array [0] = 0; 2560 return test_array [0]; 2561 2562 ; 2563 return 0; 2564 } 2565 _ACEOF 2566 if ac_fn_cxx_try_compile "$LINENO"; then : 2567 ac_hi=-1 ac_mid=-1 2568 while :; do 2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2570 /* end confdefs.h. */ 2571 $4 2572 int 2573 main () 2574 { 2575 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2576 test_array [0] = 0; 2577 return test_array [0]; 2578 2579 ; 2580 return 0; 2581 } 2582 _ACEOF 2583 if ac_fn_cxx_try_compile "$LINENO"; then : 2584 ac_lo=$ac_mid; break 2585 else 2586 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2587 if test $ac_mid -le $ac_hi; then 2588 ac_lo= ac_hi= 2589 break 2590 fi 2591 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2592 fi 2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2594 done 2595 else 2596 ac_lo= ac_hi= 2597 fi 2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2599 fi 2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2601 # Binary search between lo and hi bounds. 2602 while test "x$ac_lo" != "x$ac_hi"; do 2603 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2605 /* end confdefs.h. */ 2606 $4 2607 int 2608 main () 2609 { 2610 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2611 test_array [0] = 0; 2612 return test_array [0]; 2613 2614 ; 2615 return 0; 2616 } 2617 _ACEOF 2618 if ac_fn_cxx_try_compile "$LINENO"; then : 2619 ac_hi=$ac_mid 2620 else 2621 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2622 fi 2623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2624 done 2625 case $ac_lo in #(( 2626 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2627 '') ac_retval=1 ;; 2628 esac 2629 else 2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2631 /* end confdefs.h. */ 2632 $4 2633 static long int longval () { return $2; } 2634 static unsigned long int ulongval () { return $2; } 2635 #include <stdio.h> 2636 #include <stdlib.h> 2637 int 2638 main () 2639 { 2640 2641 FILE *f = fopen ("conftest.val", "w"); 2642 if (! f) 2643 return 1; 2644 if (($2) < 0) 2645 { 2646 long int i = longval (); 2647 if (i != ($2)) 2648 return 1; 2649 fprintf (f, "%ld", i); 2650 } 2651 else 2652 { 2653 unsigned long int i = ulongval (); 2654 if (i != ($2)) 2655 return 1; 2656 fprintf (f, "%lu", i); 2657 } 2658 /* Do not output a trailing newline, as this causes \r\n confusion 2659 on some platforms. */ 2660 return ferror (f) || fclose (f) != 0; 2661 2662 ; 2663 return 0; 2664 } 2665 _ACEOF 2666 if ac_fn_cxx_try_run "$LINENO"; then : 2667 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2668 else 2669 ac_retval=1 2670 fi 2671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2672 conftest.$ac_objext conftest.beam conftest.$ac_ext 2673 rm -f conftest.val 2674 2675 fi 2676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2677 as_fn_set_status $ac_retval 2678 2679 } # ac_fn_cxx_compute_int 2680 2681 # ac_fn_cxx_try_link LINENO 2682 # ------------------------- 2683 # Try to link conftest.$ac_ext, and return whether this succeeded. 2684 ac_fn_cxx_try_link () 2685 { 2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2687 rm -f conftest.$ac_objext conftest$ac_exeext 2688 if { { ac_try="$ac_link" 2689 case "(($ac_try" in 2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2691 *) ac_try_echo=$ac_try;; 2692 esac 2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2694 $as_echo "$ac_try_echo"; } >&5 2695 (eval "$ac_link") 2>conftest.err 2696 ac_status=$? 2697 if test -s conftest.err; then 2698 grep -v '^ *+' conftest.err >conftest.er1 2699 cat conftest.er1 >&5 2700 mv -f conftest.er1 conftest.err 2701 fi 2702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2703 test $ac_status = 0; } && { 2704 test -z "$ac_cxx_werror_flag" || 2705 test ! -s conftest.err 2706 } && test -s conftest$ac_exeext && { 2707 test "$cross_compiling" = yes || 2708 test -x conftest$ac_exeext 2709 }; then : 2710 ac_retval=0 2711 else 2712 $as_echo "$as_me: failed program was:" >&5 2713 sed 's/^/| /' conftest.$ac_ext >&5 2714 2715 ac_retval=1 2716 fi 2717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2719 # interfere with the next link command; also delete a directory that is 2720 # left behind by Apple's compiler. We do this before executing the actions. 2721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2723 as_fn_set_status $ac_retval 2724 2725 } # ac_fn_cxx_try_link 2726 2727 # ac_fn_cxx_check_func LINENO FUNC VAR 2728 # ------------------------------------ 2729 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2730 ac_fn_cxx_check_func () 2731 { 2732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2734 $as_echo_n "checking for $2... " >&6; } 2735 if eval \${$3+:} false; then : 2736 $as_echo_n "(cached) " >&6 2737 else 2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2739 /* end confdefs.h. */ 2740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2741 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2742 #define $2 innocuous_$2 2743 2744 /* System header to define __stub macros and hopefully few prototypes, 2745 which can conflict with char $2 (); below. 2746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2747 <limits.h> exists even on freestanding compilers. */ 2748 2749 #ifdef __STDC__ 2750 # include <limits.h> 2751 #else 2752 # include <assert.h> 2753 #endif 2754 2755 #undef $2 2756 2757 /* Override any GCC internal prototype to avoid an error. 2758 Use char because int might match the return type of a GCC 2759 builtin and then its argument prototype would still apply. */ 2760 #ifdef __cplusplus 2761 extern "C" 2762 #endif 2763 char $2 (); 2764 /* The GNU C library defines this for functions which it implements 2765 to always fail with ENOSYS. Some functions are actually named 2766 something starting with __ and the normal name is an alias. */ 2767 #if defined __stub_$2 || defined __stub___$2 2768 choke me 2769 #endif 2770 2771 int 2772 main () 2773 { 2774 return $2 (); 2775 ; 2776 return 0; 2777 } 2778 _ACEOF 2779 if ac_fn_cxx_try_link "$LINENO"; then : 2780 eval "$3=yes" 2781 else 2782 eval "$3=no" 2783 fi 2784 rm -f core conftest.err conftest.$ac_objext \ 2785 conftest$ac_exeext conftest.$ac_ext 2786 fi 2787 eval ac_res=\$$3 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2789 $as_echo "$ac_res" >&6; } 2790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2791 2792 } # ac_fn_cxx_check_func 2793 2794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2795 # ------------------------------------------------------- 2796 # Tests whether HEADER exists and can be compiled using the include files in 2797 # INCLUDES, setting the cache variable VAR accordingly. 2798 ac_fn_c_check_header_compile () 2799 { 2800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2802 $as_echo_n "checking for $2... " >&6; } 2803 if eval \${$3+:} false; then : 2804 $as_echo_n "(cached) " >&6 2805 else 2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2807 /* end confdefs.h. */ 2808 $4 2809 #include <$2> 2810 _ACEOF 2811 if ac_fn_c_try_compile "$LINENO"; then : 2812 eval "$3=yes" 2813 else 2814 eval "$3=no" 2815 fi 2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2817 fi 2818 eval ac_res=\$$3 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2820 $as_echo "$ac_res" >&6; } 2821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2822 2823 } # ac_fn_c_check_header_compile 2824 cat >config.log <<_ACEOF 2825 This file contains any messages produced by compilers while 2826 running configure, to aid debugging if configure makes a mistake. 2827 2828 It was created by OpenJDK $as_me jdk9, which was 2829 generated by GNU Autoconf 2.69. Invocation command line was 2830 2831 $ $0 $@ 2832 2833 _ACEOF 2834 exec 5>>config.log 2835 { 2836 cat <<_ASUNAME 2837 ## --------- ## 2838 ## Platform. ## 2839 ## --------- ## 2840 2841 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2842 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2843 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2844 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2845 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2846 2847 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2848 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2849 2850 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2851 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2852 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2853 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2854 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2855 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2856 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2857 2858 _ASUNAME 2859 2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2861 for as_dir in $PATH 2862 do 2863 IFS=$as_save_IFS 2864 test -z "$as_dir" && as_dir=. 2865 $as_echo "PATH: $as_dir" 2866 done 2867 IFS=$as_save_IFS 2868 2869 } >&5 2870 2871 cat >&5 <<_ACEOF 2872 2873 2874 ## ----------- ## 2875 ## Core tests. ## 2876 ## ----------- ## 2877 2878 _ACEOF 2879 2880 2881 # Keep a trace of the command line. 2882 # Strip out --no-create and --no-recursion so they do not pile up. 2883 # Strip out --silent because we don't want to record it for future runs. 2884 # Also quote any args containing shell meta-characters. 2885 # Make two passes to allow for proper duplicate-argument suppression. 2886 ac_configure_args= 2887 ac_configure_args0= 2888 ac_configure_args1= 2889 ac_must_keep_next=false 2890 for ac_pass in 1 2 2891 do 2892 for ac_arg 2893 do 2894 case $ac_arg in 2895 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2897 | -silent | --silent | --silen | --sile | --sil) 2898 continue ;; 2899 *\'*) 2900 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2901 esac 2902 case $ac_pass in 2903 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2904 2) 2905 as_fn_append ac_configure_args1 " '$ac_arg'" 2906 if test $ac_must_keep_next = true; then 2907 ac_must_keep_next=false # Got value, back to normal. 2908 else 2909 case $ac_arg in 2910 *=* | --config-cache | -C | -disable-* | --disable-* \ 2911 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2912 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2913 | -with-* | --with-* | -without-* | --without-* | --x) 2914 case "$ac_configure_args0 " in 2915 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2916 esac 2917 ;; 2918 -* ) ac_must_keep_next=true ;; 2919 esac 2920 fi 2921 as_fn_append ac_configure_args " '$ac_arg'" 2922 ;; 2923 esac 2924 done 2925 done 2926 { ac_configure_args0=; unset ac_configure_args0;} 2927 { ac_configure_args1=; unset ac_configure_args1;} 2928 2929 # When interrupted or exit'd, cleanup temporary files, and complete 2930 # config.log. We remove comments because anyway the quotes in there 2931 # would cause problems or look ugly. 2932 # WARNING: Use '\'' to represent an apostrophe within the trap. 2933 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2934 trap 'exit_status=$? 2935 # Save into config.log some information that might help in debugging. 2936 { 2937 echo 2938 2939 $as_echo "## ---------------- ## 2940 ## Cache variables. ## 2941 ## ---------------- ##" 2942 echo 2943 # The following way of writing the cache mishandles newlines in values, 2944 ( 2945 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2946 eval ac_val=\$$ac_var 2947 case $ac_val in #( 2948 *${as_nl}*) 2949 case $ac_var in #( 2950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2952 esac 2953 case $ac_var in #( 2954 _ | IFS | as_nl) ;; #( 2955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2956 *) { eval $ac_var=; unset $ac_var;} ;; 2957 esac ;; 2958 esac 2959 done 2960 (set) 2>&1 | 2961 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2962 *${as_nl}ac_space=\ *) 2963 sed -n \ 2964 "s/'\''/'\''\\\\'\'''\''/g; 2965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2966 ;; #( 2967 *) 2968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2969 ;; 2970 esac | 2971 sort 2972 ) 2973 echo 2974 2975 $as_echo "## ----------------- ## 2976 ## Output variables. ## 2977 ## ----------------- ##" 2978 echo 2979 for ac_var in $ac_subst_vars 2980 do 2981 eval ac_val=\$$ac_var 2982 case $ac_val in 2983 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2984 esac 2985 $as_echo "$ac_var='\''$ac_val'\''" 2986 done | sort 2987 echo 2988 2989 if test -n "$ac_subst_files"; then 2990 $as_echo "## ------------------- ## 2991 ## File substitutions. ## 2992 ## ------------------- ##" 2993 echo 2994 for ac_var in $ac_subst_files 2995 do 2996 eval ac_val=\$$ac_var 2997 case $ac_val in 2998 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2999 esac 3000 $as_echo "$ac_var='\''$ac_val'\''" 3001 done | sort 3002 echo 3003 fi 3004 3005 if test -s confdefs.h; then 3006 $as_echo "## ----------- ## 3007 ## confdefs.h. ## 3008 ## ----------- ##" 3009 echo 3010 cat confdefs.h 3011 echo 3012 fi 3013 test "$ac_signal" != 0 && 3014 $as_echo "$as_me: caught signal $ac_signal" 3015 $as_echo "$as_me: exit $exit_status" 3016 } >&5 3017 rm -f core *.core core.conftest.* && 3018 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3019 exit $exit_status 3020 ' 0 3021 for ac_signal in 1 2 13 15; do 3022 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3023 done 3024 ac_signal=0 3025 3026 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3027 rm -f -r conftest* confdefs.h 3028 3029 $as_echo "/* confdefs.h */" > confdefs.h 3030 3031 # Predefined preprocessor variables. 3032 3033 cat >>confdefs.h <<_ACEOF 3034 #define PACKAGE_NAME "$PACKAGE_NAME" 3035 _ACEOF 3036 3037 cat >>confdefs.h <<_ACEOF 3038 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3039 _ACEOF 3040 3041 cat >>confdefs.h <<_ACEOF 3042 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3043 _ACEOF 3044 3045 cat >>confdefs.h <<_ACEOF 3046 #define PACKAGE_STRING "$PACKAGE_STRING" 3047 _ACEOF 3048 3049 cat >>confdefs.h <<_ACEOF 3050 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3051 _ACEOF 3052 3053 cat >>confdefs.h <<_ACEOF 3054 #define PACKAGE_URL "$PACKAGE_URL" 3055 _ACEOF 3056 3057 3058 # Let the site file select an alternate cache file if it wants to. 3059 # Prefer an explicitly selected file to automatically selected ones. 3060 ac_site_file1=NONE 3061 ac_site_file2=NONE 3062 if test -n "$CONFIG_SITE"; then 3063 # We do not want a PATH search for config.site. 3064 case $CONFIG_SITE in #(( 3065 -*) ac_site_file1=./$CONFIG_SITE;; 3066 */*) ac_site_file1=$CONFIG_SITE;; 3067 *) ac_site_file1=./$CONFIG_SITE;; 3068 esac 3069 elif test "x$prefix" != xNONE; then 3070 ac_site_file1=$prefix/share/config.site 3071 ac_site_file2=$prefix/etc/config.site 3072 else 3073 ac_site_file1=$ac_default_prefix/share/config.site 3074 ac_site_file2=$ac_default_prefix/etc/config.site 3075 fi 3076 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3077 do 3078 test "x$ac_site_file" = xNONE && continue 3079 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3081 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3082 sed 's/^/| /' "$ac_site_file" >&5 3083 . "$ac_site_file" \ 3084 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3086 as_fn_error $? "failed to load site script $ac_site_file 3087 See \`config.log' for more details" "$LINENO" 5; } 3088 fi 3089 done 3090 3091 if test -r "$cache_file"; then 3092 # Some versions of bash will fail to source /dev/null (special files 3093 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3094 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3096 $as_echo "$as_me: loading cache $cache_file" >&6;} 3097 case $cache_file in 3098 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3099 *) . "./$cache_file";; 3100 esac 3101 fi 3102 else 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3104 $as_echo "$as_me: creating cache $cache_file" >&6;} 3105 >$cache_file 3106 fi 3107 3108 # Check that the precious variables saved in the cache have kept the same 3109 # value. 3110 ac_cache_corrupted=false 3111 for ac_var in $ac_precious_vars; do 3112 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3113 eval ac_new_set=\$ac_env_${ac_var}_set 3114 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3115 eval ac_new_val=\$ac_env_${ac_var}_value 3116 case $ac_old_set,$ac_new_set in 3117 set,) 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3119 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3120 ac_cache_corrupted=: ;; 3121 ,set) 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3123 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3124 ac_cache_corrupted=: ;; 3125 ,);; 3126 *) 3127 if test "x$ac_old_val" != "x$ac_new_val"; then 3128 # differences in whitespace do not lead to failure. 3129 ac_old_val_w=`echo x $ac_old_val` 3130 ac_new_val_w=`echo x $ac_new_val` 3131 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3133 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3134 ac_cache_corrupted=: 3135 else 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3137 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3138 eval $ac_var=\$ac_old_val 3139 fi 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3141 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3143 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3144 fi;; 3145 esac 3146 # Pass precious variables to config.status. 3147 if test "$ac_new_set" = set; then 3148 case $ac_new_val in 3149 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3150 *) ac_arg=$ac_var=$ac_new_val ;; 3151 esac 3152 case " $ac_configure_args " in 3153 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3154 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3155 esac 3156 fi 3157 done 3158 if $ac_cache_corrupted; then 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3162 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3163 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3164 fi 3165 ## -------------------- ## 3166 ## Main body of script. ## 3167 ## -------------------- ## 3168 3169 ac_ext=c 3170 ac_cpp='$CPP $CPPFLAGS' 3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3174 3175 3176 3177 ac_aux_dir= 3178 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3179 if test -f "$ac_dir/install-sh"; then 3180 ac_aux_dir=$ac_dir 3181 ac_install_sh="$ac_aux_dir/install-sh -c" 3182 break 3183 elif test -f "$ac_dir/install.sh"; then 3184 ac_aux_dir=$ac_dir 3185 ac_install_sh="$ac_aux_dir/install.sh -c" 3186 break 3187 elif test -f "$ac_dir/shtool"; then 3188 ac_aux_dir=$ac_dir 3189 ac_install_sh="$ac_aux_dir/shtool install -c" 3190 break 3191 fi 3192 done 3193 if test -z "$ac_aux_dir"; then 3194 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 3195 fi 3196 3197 # These three variables are undocumented and unsupported, 3198 # and are intended to be withdrawn in a future Autoconf release. 3199 # They can cause serious problems if a builder's source tree is in a directory 3200 # whose full name contains unusual characters. 3201 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3202 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3203 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3204 3205 3206 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3207 3208 # 3209 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3210 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3211 # 3212 # This code is free software; you can redistribute it and/or modify it 3213 # under the terms of the GNU General Public License version 2 only, as 3214 # published by the Free Software Foundation. Oracle designates this 3215 # particular file as subject to the "Classpath" exception as provided 3216 # by Oracle in the LICENSE file that accompanied this code. 3217 # 3218 # This code is distributed in the hope that it will be useful, but WITHOUT 3219 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3220 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3221 # version 2 for more details (a copy is included in the LICENSE file that 3222 # accompanied this code). 3223 # 3224 # You should have received a copy of the GNU General Public License version 3225 # 2 along with this work; if not, write to the Free Software Foundation, 3226 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3227 # 3228 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3229 # or visit www.oracle.com if you need additional information or have any 3230 # questions. 3231 # 3232 3233 # 3234 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3235 # 3236 # This program is free software; you can redistribute it and/or modify 3237 # it under the terms of the GNU General Public License as published by 3238 # the Free Software Foundation; either version 2 of the License, or 3239 # (at your option) any later version. 3240 # 3241 # This program is distributed in the hope that it will be useful, but 3242 # WITHOUT ANY WARRANTY; without even the implied warranty of 3243 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3244 # General Public License for more details. 3245 # 3246 # You should have received a copy of the GNU General Public License 3247 # along with this program; if not, write to the Free Software 3248 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3249 # 3250 # As a special exception to the GNU General Public License, if you 3251 # distribute this file as part of a program that contains a 3252 # configuration script generated by Autoconf, you may include it under 3253 # the same distribution terms that you use for the rest of that program. 3254 3255 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3256 # ---------------------------------- 3257 # PKG_PROG_PKG_CONFIG 3258 3259 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3260 # 3261 # Check to see whether a particular set of modules exists. Similar 3262 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3263 # 3264 # 3265 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3266 # this or PKG_CHECK_MODULES is called, or make sure to call 3267 # PKG_CHECK_EXISTS manually 3268 # -------------------------------------------------------------- 3269 3270 3271 3272 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3273 # --------------------------------------------- 3274 # _PKG_CONFIG 3275 3276 # _PKG_SHORT_ERRORS_SUPPORTED 3277 # ----------------------------- 3278 # _PKG_SHORT_ERRORS_SUPPORTED 3279 3280 3281 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3282 # [ACTION-IF-NOT-FOUND]) 3283 # 3284 # 3285 # Note that if there is a possibility the first call to 3286 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3287 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3288 # 3289 # 3290 # -------------------------------------------------------------- 3291 # PKG_CHECK_MODULES 3292 3293 3294 # Include these first... 3295 # 3296 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3297 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3298 # 3299 # This code is free software; you can redistribute it and/or modify it 3300 # under the terms of the GNU General Public License version 2 only, as 3301 # published by the Free Software Foundation. Oracle designates this 3302 # particular file as subject to the "Classpath" exception as provided 3303 # by Oracle in the LICENSE file that accompanied this code. 3304 # 3305 # This code is distributed in the hope that it will be useful, but WITHOUT 3306 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3307 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3308 # version 2 for more details (a copy is included in the LICENSE file that 3309 # accompanied this code). 3310 # 3311 # You should have received a copy of the GNU General Public License version 3312 # 2 along with this work; if not, write to the Free Software Foundation, 3313 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3314 # 3315 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3316 # or visit www.oracle.com if you need additional information or have any 3317 # questions. 3318 # 3319 3320 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3321 # If so, then append $1 to $2 \ 3322 # Also set JVM_ARG_OK to true/false depending on outcome. 3323 3324 3325 # Appends a string to a path variable, only adding the : when needed. 3326 3327 3328 # This will make sure the given variable points to a full and proper 3329 # path. This means: 3330 # 1) There will be no spaces in the path. On posix platforms, 3331 # spaces in the path will result in an error. On Windows, 3332 # the path will be rewritten using short-style to be space-free. 3333 # 2) The path will be absolute, and it will be in unix-style (on 3334 # cygwin). 3335 # $1: The name of the variable to fix 3336 3337 3338 # This will make sure the given variable points to a executable 3339 # with a full and proper path. This means: 3340 # 1) There will be no spaces in the path. On posix platforms, 3341 # spaces in the path will result in an error. On Windows, 3342 # the path will be rewritten using short-style to be space-free. 3343 # 2) The path will be absolute, and it will be in unix-style (on 3344 # cygwin). 3345 # Any arguments given to the executable is preserved. 3346 # If the input variable does not have a directory specification, then 3347 # it need to be in the PATH. 3348 # $1: The name of the variable to fix 3349 3350 3351 3352 3353 # Register a --with argument but mark it as deprecated 3354 # $1: The name of the with argument to deprecate, not including --with- 3355 3356 3357 # Register a --enable argument but mark it as deprecated 3358 # $1: The name of the with argument to deprecate, not including --enable- 3359 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3360 3361 3362 3363 3364 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3365 # $1: variable to check 3366 3367 3368 # Check that there are no unprocessed overridden variables left. 3369 # If so, they are an incorrect argument and we will exit with an error. 3370 3371 3372 # Setup a tool for the given variable. If correctly specified by the user, 3373 # use that value, otherwise search for the tool using the supplied code snippet. 3374 # $1: variable to set 3375 # $2: code snippet to call to look for the tool 3376 3377 3378 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3379 # $1: variable to set 3380 # $2: executable name (or list of names) to look for 3381 3382 3383 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3384 # $1: variable to set 3385 # $2: executable name (or list of names) to look for 3386 3387 3388 # Like BASIC_PATH_PROGS but fails if no tool was found. 3389 # $1: variable to set 3390 # $2: executable name (or list of names) to look for 3391 3392 3393 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3394 # $1: variable to set 3395 # $2: autoconf macro to call to look for the special tool 3396 3397 3398 # Setup the most fundamental tools that relies on not much else to set up, 3399 # but is used by much of the early bootstrap code. 3400 3401 3402 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3403 3404 3405 3406 3407 3408 3409 3410 #%%% Simple tools %%% 3411 3412 # Check if we have found a usable version of make 3413 # $1: the path to a potential make binary (or empty) 3414 # $2: the description on how we found this 3415 3416 3417 # Goes looking for a usable version of GNU make. 3418 3419 3420 3421 3422 3423 3424 # Check if build directory is on local disk. If not possible to determine, 3425 # we prefer to claim it's local. 3426 # Argument 1: directory to test 3427 # Argument 2: what to do if it is on local disk 3428 # Argument 3: what to do otherwise (remote disk or failure) 3429 3430 3431 # Check that source files have basic read permissions set. This might 3432 # not be the case in cygwin in certain conditions. 3433 3434 3435 3436 3437 # 3438 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3439 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3440 # 3441 # This code is free software; you can redistribute it and/or modify it 3442 # under the terms of the GNU General Public License version 2 only, as 3443 # published by the Free Software Foundation. Oracle designates this 3444 # particular file as subject to the "Classpath" exception as provided 3445 # by Oracle in the LICENSE file that accompanied this code. 3446 # 3447 # This code is distributed in the hope that it will be useful, but WITHOUT 3448 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3449 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3450 # version 2 for more details (a copy is included in the LICENSE file that 3451 # accompanied this code). 3452 # 3453 # You should have received a copy of the GNU General Public License version 3454 # 2 along with this work; if not, write to the Free Software Foundation, 3455 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3456 # 3457 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3458 # or visit www.oracle.com if you need additional information or have any 3459 # questions. 3460 # 3461 3462 3463 3464 3465 3466 # Helper function which possibly converts a path using DOS-style short mode. 3467 # If so, the updated path is stored in $new_path. 3468 # $1: The path to check 3469 3470 3471 # Helper function which possibly converts a path using DOS-style short mode. 3472 # If so, the updated path is stored in $new_path. 3473 # $1: The path to check 3474 3475 3476 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3477 # and could probably be heavily simplified. However, all changes in this 3478 # area tend to need lot of testing in different scenarios, and in lack of 3479 # proper unit testing, cleaning this up has not been deemed worth the effort 3480 # at the moment. 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3491 3492 3493 3494 3495 # 3496 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3497 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3498 # 3499 # This code is free software; you can redistribute it and/or modify it 3500 # under the terms of the GNU General Public License version 2 only, as 3501 # published by the Free Software Foundation. Oracle designates this 3502 # particular file as subject to the "Classpath" exception as provided 3503 # by Oracle in the LICENSE file that accompanied this code. 3504 # 3505 # This code is distributed in the hope that it will be useful, but WITHOUT 3506 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3507 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3508 # version 2 for more details (a copy is included in the LICENSE file that 3509 # accompanied this code). 3510 # 3511 # You should have received a copy of the GNU General Public License version 3512 # 2 along with this work; if not, write to the Free Software Foundation, 3513 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3514 # 3515 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3516 # or visit www.oracle.com if you need additional information or have any 3517 # questions. 3518 # 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 # ... then the rest 3531 # 3532 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3533 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3534 # 3535 # This code is free software; you can redistribute it and/or modify it 3536 # under the terms of the GNU General Public License version 2 only, as 3537 # published by the Free Software Foundation. Oracle designates this 3538 # particular file as subject to the "Classpath" exception as provided 3539 # by Oracle in the LICENSE file that accompanied this code. 3540 # 3541 # This code is distributed in the hope that it will be useful, but WITHOUT 3542 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3543 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3544 # version 2 for more details (a copy is included in the LICENSE file that 3545 # accompanied this code). 3546 # 3547 # You should have received a copy of the GNU General Public License version 3548 # 2 along with this work; if not, write to the Free Software Foundation, 3549 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3550 # 3551 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3552 # or visit www.oracle.com if you need additional information or have any 3553 # questions. 3554 # 3555 3556 ######################################################################## 3557 # This file handles detection of the Boot JDK. The Boot JDK detection 3558 # process has been developed as a response to solve a complex real-world 3559 # problem. Initially, it was simple, but it has grown as platform after 3560 # platform, idiosyncracy after idiosyncracy has been supported. 3561 # 3562 # The basic idea is this: 3563 # 1) You need an acceptable *) JDK to use as a Boot JDK 3564 # 2) There are several ways to locate a JDK, that are mostly platform 3565 # dependent **) 3566 # 3) You can have multiple JDKs installed 3567 # 4) If possible, configure should try to dig out an acceptable JDK 3568 # automatically, without having to resort to command-line options 3569 # 3570 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3571 # javac) and not a JRE, etc. 3572 # 3573 # **) On Windows we typically use a well-known path. 3574 # On MacOSX we typically use the tool java_home. 3575 # On Linux we typically find javac in the $PATH, and then follow a 3576 # chain of symlinks that often ends up in a real JDK. 3577 # 3578 # This leads to the code where we check in different ways to locate a 3579 # JDK, and if one is found, check if it is acceptable. If not, we print 3580 # our reasons for rejecting it (useful when debugging non-working 3581 # configure situations) and continue checking the next one. 3582 ######################################################################## 3583 3584 # Execute the check given as argument, and verify the result 3585 # If the Boot JDK was previously found, do nothing 3586 # $1 A command line (typically autoconf macro) to execute 3587 3588 3589 # Test: Is bootjdk explicitely set by command line arguments? 3590 3591 3592 # Test: Is bootjdk available from builddeps? 3593 3594 3595 # Test: Is $JAVA_HOME set? 3596 3597 3598 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3599 3600 3601 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3602 # $1: Argument to the java_home binary (optional) 3603 3604 3605 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3606 3607 3608 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3609 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3610 # $1 = Path to directory containing jdk installations. 3611 # $2 = String to append to the found JDK directory to get the proper JDK home 3612 3613 3614 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3615 # environmental variable as base for where to look. 3616 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3617 3618 3619 # Test: Is there a JDK installed in default, well-known locations? 3620 3621 3622 # Check that a command-line tool in the Boot JDK is correct 3623 # $1 = name of variable to assign 3624 # $2 = name of binary 3625 3626 3627 ############################################################################### 3628 # 3629 # We need a Boot JDK to bootstrap the build. 3630 # 3631 3632 3633 3634 3635 3636 # 3637 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3638 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3639 # 3640 # This code is free software; you can redistribute it and/or modify it 3641 # under the terms of the GNU General Public License version 2 only, as 3642 # published by the Free Software Foundation. Oracle designates this 3643 # particular file as subject to the "Classpath" exception as provided 3644 # by Oracle in the LICENSE file that accompanied this code. 3645 # 3646 # This code is distributed in the hope that it will be useful, but WITHOUT 3647 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3648 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3649 # version 2 for more details (a copy is included in the LICENSE file that 3650 # accompanied this code). 3651 # 3652 # You should have received a copy of the GNU General Public License version 3653 # 2 along with this work; if not, write to the Free Software Foundation, 3654 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3655 # 3656 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3657 # or visit www.oracle.com if you need additional information or have any 3658 # questions. 3659 # 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 # 3681 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3682 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3683 # 3684 # This code is free software; you can redistribute it and/or modify it 3685 # under the terms of the GNU General Public License version 2 only, as 3686 # published by the Free Software Foundation. Oracle designates this 3687 # particular file as subject to the "Classpath" exception as provided 3688 # by Oracle in the LICENSE file that accompanied this code. 3689 # 3690 # This code is distributed in the hope that it will be useful, but WITHOUT 3691 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3692 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3693 # version 2 for more details (a copy is included in the LICENSE file that 3694 # accompanied this code). 3695 # 3696 # You should have received a copy of the GNU General Public License version 3697 # 2 along with this work; if not, write to the Free Software Foundation, 3698 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3699 # 3700 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3701 # or visit www.oracle.com if you need additional information or have any 3702 # questions. 3703 # 3704 3705 3706 3707 3708 3709 # Documentation on common flags used for solstudio in HIGHEST. 3710 # 3711 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3712 # done with care, there are some assumptions below that need to 3713 # be understood about the use of pointers, and IEEE behavior. 3714 # 3715 # -fns: Use non-standard floating point mode (not IEEE 754) 3716 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3717 # -fsingle: Use single precision floating point with 'float' 3718 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3719 # (Source with excessing pointer casting and data access with mixed 3720 # pointer types are not recommended) 3721 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3722 # (If you expect perfect errno behavior, do not use this) 3723 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3724 # -xrestrict: Pointer parameters to functions do not overlap 3725 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3726 # If you pass in multiple pointers to the same data, do not use this) 3727 # -xlibmil: Inline some library routines 3728 # (If you expect perfect errno behavior, do not use this) 3729 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3730 # (If you expect perfect errno behavior, do not use this) 3731 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3732 3733 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3734 # Bug? 3735 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3736 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3737 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3738 #fi 3739 3740 3741 3742 3743 3744 3745 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3746 # [RUN-IF-FALSE]) 3747 # ------------------------------------------------------------ 3748 # Check that the c and c++ compilers support an argument 3749 3750 3751 3752 3753 # 3754 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3755 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3756 # 3757 # This code is free software; you can redistribute it and/or modify it 3758 # under the terms of the GNU General Public License version 2 only, as 3759 # published by the Free Software Foundation. Oracle designates this 3760 # particular file as subject to the "Classpath" exception as provided 3761 # by Oracle in the LICENSE file that accompanied this code. 3762 # 3763 # This code is distributed in the hope that it will be useful, but WITHOUT 3764 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3765 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3766 # version 2 for more details (a copy is included in the LICENSE file that 3767 # accompanied this code). 3768 # 3769 # You should have received a copy of the GNU General Public License version 3770 # 2 along with this work; if not, write to the Free Software Foundation, 3771 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3772 # 3773 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3774 # or visit www.oracle.com if you need additional information or have any 3775 # questions. 3776 # 3777 3778 3779 3780 3781 3782 cygwin_help() { 3783 case $1 in 3784 unzip) 3785 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3786 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3787 ;; 3788 zip) 3789 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3790 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3791 ;; 3792 make) 3793 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3794 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3795 ;; 3796 freetype) 3797 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 3798 HELP_MSG="To install freetype, run: 3799 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe 3800 chmod +x /tmp/freetype-setup.exe 3801 /tmp/freetype-setup.exe 3802 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\". 3803 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll." 3804 else 3805 HELP_MSG="You need to build a 64-bit version of freetype. 3806 This is not readily available. 3807 You can find source code and build instructions on 3808 http://www.freetype.org/ 3809 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically." 3810 fi 3811 ;; 3812 esac 3813 } 3814 3815 msys_help() { 3816 PKGHANDLER_COMMAND="" 3817 } 3818 3819 apt_help() { 3820 case $1 in 3821 devkit) 3822 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3823 openjdk) 3824 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3825 alsa) 3826 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3827 cups) 3828 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3829 freetype) 3830 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3831 pulse) 3832 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3833 x11) 3834 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3835 ccache) 3836 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3837 esac 3838 } 3839 3840 yum_help() { 3841 case $1 in 3842 devkit) 3843 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3844 openjdk) 3845 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3846 alsa) 3847 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3848 cups) 3849 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3850 freetype) 3851 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3852 pulse) 3853 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3854 x11) 3855 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3856 ccache) 3857 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3858 esac 3859 } 3860 3861 port_help() { 3862 PKGHANDLER_COMMAND="" 3863 } 3864 3865 pkgutil_help() { 3866 PKGHANDLER_COMMAND="" 3867 } 3868 3869 pkgadd_help() { 3870 PKGHANDLER_COMMAND="" 3871 } 3872 3873 # This function will check if we're called from the "configure" wrapper while 3874 # printing --help. If so, we will print out additional information that can 3875 # only be extracted within the autoconf script, and then exit. This must be 3876 # called at the very beginning in configure.ac. 3877 3878 3879 3880 3881 # 3882 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3883 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3884 # 3885 # This code is free software; you can redistribute it and/or modify it 3886 # under the terms of the GNU General Public License version 2 only, as 3887 # published by the Free Software Foundation. Oracle designates this 3888 # particular file as subject to the "Classpath" exception as provided 3889 # by Oracle in the LICENSE file that accompanied this code. 3890 # 3891 # This code is distributed in the hope that it will be useful, but WITHOUT 3892 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3893 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3894 # version 2 for more details (a copy is included in the LICENSE file that 3895 # accompanied this code). 3896 # 3897 # You should have received a copy of the GNU General Public License version 3898 # 2 along with this work; if not, write to the Free Software Foundation, 3899 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3900 # 3901 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3902 # or visit www.oracle.com if you need additional information or have any 3903 # questions. 3904 # 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 ############################################################################### 3916 # 3917 # Should we build only OpenJDK even if closed sources are present? 3918 # 3919 3920 3921 3922 3923 ############################################################################### 3924 # 3925 # Setup version numbers 3926 # 3927 3928 3929 3930 3931 3932 3933 # 3934 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3935 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3936 # 3937 # This code is free software; you can redistribute it and/or modify it 3938 # under the terms of the GNU General Public License version 2 only, as 3939 # published by the Free Software Foundation. Oracle designates this 3940 # particular file as subject to the "Classpath" exception as provided 3941 # by Oracle in the LICENSE file that accompanied this code. 3942 # 3943 # This code is distributed in the hope that it will be useful, but WITHOUT 3944 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3945 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3946 # version 2 for more details (a copy is included in the LICENSE file that 3947 # accompanied this code). 3948 # 3949 # You should have received a copy of the GNU General Public License version 3950 # 2 along with this work; if not, write to the Free Software Foundation, 3951 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3952 # 3953 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3954 # or visit www.oracle.com if you need additional information or have any 3955 # questions. 3956 # 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 # 3977 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3978 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3979 # 3980 # This code is free software; you can redistribute it and/or modify it 3981 # under the terms of the GNU General Public License version 2 only, as 3982 # published by the Free Software Foundation. Oracle designates this 3983 # particular file as subject to the "Classpath" exception as provided 3984 # by Oracle in the LICENSE file that accompanied this code. 3985 # 3986 # This code is distributed in the hope that it will be useful, but WITHOUT 3987 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3988 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3989 # version 2 for more details (a copy is included in the LICENSE file that 3990 # accompanied this code). 3991 # 3992 # You should have received a copy of the GNU General Public License version 3993 # 2 along with this work; if not, write to the Free Software Foundation, 3994 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3995 # 3996 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3997 # or visit www.oracle.com if you need additional information or have any 3998 # questions. 3999 # 4000 4001 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4002 # Converts autoconf style CPU name to OpenJDK style, into 4003 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4004 4005 4006 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4007 # Converts autoconf style OS name to OpenJDK style, into 4008 # VAR_OS and VAR_OS_API. 4009 4010 4011 # Expects $host_os $host_cpu $build_os and $build_cpu 4012 # and $with_target_bits to have been setup! 4013 # 4014 # Translate the standard triplet(quadruplet) definition 4015 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4016 # OPENJDK_BUILD_OS, etc. 4017 4018 4019 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4020 # accordingly. Must be done after setting up build and target system, but before 4021 # doing anything else with these values. 4022 4023 4024 # Setup the legacy variables, for controlling the old makefiles. 4025 # 4026 4027 4028 4029 4030 #%%% Build and target systems %%% 4031 4032 4033 4034 4035 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4036 # Add -mX to various FLAGS variables. 4037 4038 4039 4040 4041 4042 4043 # 4044 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4045 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4046 # 4047 # This code is free software; you can redistribute it and/or modify it 4048 # under the terms of the GNU General Public License version 2 only, as 4049 # published by the Free Software Foundation. Oracle designates this 4050 # particular file as subject to the "Classpath" exception as provided 4051 # by Oracle in the LICENSE file that accompanied this code. 4052 # 4053 # This code is distributed in the hope that it will be useful, but WITHOUT 4054 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4055 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4056 # version 2 for more details (a copy is included in the LICENSE file that 4057 # accompanied this code). 4058 # 4059 # You should have received a copy of the GNU General Public License version 4060 # 2 along with this work; if not, write to the Free Software Foundation, 4061 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4062 # 4063 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4064 # or visit www.oracle.com if you need additional information or have any 4065 # questions. 4066 # 4067 4068 4069 4070 4071 4072 4073 4074 4075 # 4076 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4077 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4078 # 4079 # This code is free software; you can redistribute it and/or modify it 4080 # under the terms of the GNU General Public License version 2 only, as 4081 # published by the Free Software Foundation. Oracle designates this 4082 # particular file as subject to the "Classpath" exception as provided 4083 # by Oracle in the LICENSE file that accompanied this code. 4084 # 4085 # This code is distributed in the hope that it will be useful, but WITHOUT 4086 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4087 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4088 # version 2 for more details (a copy is included in the LICENSE file that 4089 # accompanied this code). 4090 # 4091 # You should have received a copy of the GNU General Public License version 4092 # 2 along with this work; if not, write to the Free Software Foundation, 4093 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4094 # 4095 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4096 # or visit www.oracle.com if you need additional information or have any 4097 # questions. 4098 # 4099 4100 ######################################################################## 4101 # This file is responsible for detecting, verifying and setting up the 4102 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4103 # proper paths to the binaries, but it will not setup any flags. 4104 # 4105 # The binaries used is determined by the toolchain type, which is the family of 4106 # compilers and related tools that are used. 4107 ######################################################################## 4108 4109 4110 # All valid toolchains, regardless of platform (used by help.m4) 4111 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4112 4113 # These toolchains are valid on different platforms 4114 VALID_TOOLCHAINS_linux="gcc clang" 4115 VALID_TOOLCHAINS_solaris="solstudio" 4116 VALID_TOOLCHAINS_macosx="gcc clang" 4117 VALID_TOOLCHAINS_aix="xlc" 4118 VALID_TOOLCHAINS_windows="microsoft" 4119 4120 # Toolchain descriptions 4121 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4122 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4123 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4124 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4125 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4126 4127 # Setup a number of variables describing how native output files are 4128 # named on this platform/toolchain. 4129 4130 4131 # Determine which toolchain type to use, and make sure it is valid for this 4132 # platform. Setup various information about the selected toolchain. 4133 4134 4135 # Before we start detecting the toolchain executables, we might need some 4136 # special setup, e.g. additional paths etc. 4137 4138 4139 # Restore path, etc 4140 4141 4142 # Check if a compiler is of the toolchain type we expect, and save the version 4143 # information from it. If the compiler does not match the expected type, 4144 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4145 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4146 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4147 # 4148 # $1 = compiler to test (CC or CXX) 4149 # $2 = human readable name of compiler (C or C++) 4150 4151 4152 # Try to locate the given C or C++ compiler in the path, or otherwise. 4153 # 4154 # $1 = compiler to test (CC or CXX) 4155 # $2 = human readable name of compiler (C or C++) 4156 # $3 = list of compiler names to search for 4157 4158 4159 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4160 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4161 # archiver (AR). Verify that the compilers are correct according to the 4162 # toolchain type. 4163 4164 4165 # Setup additional tools that is considered a part of the toolchain, but not the 4166 # core part. Many of these are highly platform-specific and do not exist, 4167 # and/or are not needed on all platforms. 4168 4169 4170 # Setup the build tools (i.e, the compiler and linker used to build programs 4171 # that should be run on the build platform, not the target platform, as a build 4172 # helper). Since the non-cross-compile case uses the normal, target compilers 4173 # for this, we can only do this after these have been setup. 4174 4175 4176 # Setup legacy variables that are still needed as alternative ways to refer to 4177 # parts of the toolchain. 4178 4179 4180 # Do some additional checks on the detected tools. 4181 4182 4183 # Setup the JTReg Regression Test Harness. 4184 4185 4186 # 4187 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4188 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4189 # 4190 # This code is free software; you can redistribute it and/or modify it 4191 # under the terms of the GNU General Public License version 2 only, as 4192 # published by the Free Software Foundation. Oracle designates this 4193 # particular file as subject to the "Classpath" exception as provided 4194 # by Oracle in the LICENSE file that accompanied this code. 4195 # 4196 # This code is distributed in the hope that it will be useful, but WITHOUT 4197 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4198 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4199 # version 2 for more details (a copy is included in the LICENSE file that 4200 # accompanied this code). 4201 # 4202 # You should have received a copy of the GNU General Public License version 4203 # 2 along with this work; if not, write to the Free Software Foundation, 4204 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4205 # 4206 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4207 # or visit www.oracle.com if you need additional information or have any 4208 # questions. 4209 # 4210 4211 4212 4213 4214 4215 4216 4217 # Check if the VS env variables were setup prior to running configure. 4218 # If not, then find vcvarsall.bat and run it automatically, and integrate 4219 # the set env variables into the spec file. 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 # This line needs to be here, verbatim, after all includes and the dummy hook 4231 # definitions. It is replaced with custom functionality when building 4232 # custom sources. 4233 #CUSTOM_AUTOCONF_INCLUDE 4234 4235 # Do not change or remove the following line, it is needed for consistency checks: 4236 DATE_WHEN_GENERATED=1395236071 4237 4238 ############################################################################### 4239 # 4240 # Initialization / Boot-strapping 4241 # 4242 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4243 # thus it jumps back and forth, each time gaining something needed later on. 4244 # 4245 ############################################################################### 4246 4247 # If we are requested to print additional help, do that and then exit. 4248 # This must be the very first call. 4249 4250 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4251 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4252 $PRINTF "Which are valid to use depends on the build platform.\n" 4253 for toolchain in $VALID_TOOLCHAINS_all; do 4254 # Use indirect variable referencing 4255 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4256 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4257 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4258 done 4259 4260 # And now exit directly 4261 exit 0 4262 fi 4263 4264 4265 # Basic initialization that must happen first of all in the normal process. 4266 4267 # Save the original command line. This is passed to us by the wrapper configure script. 4268 4269 DATE_WHEN_CONFIGURED=`LANG=C date` 4270 4271 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4272 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4274 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4275 4276 4277 # Start with tools that do not need have cross compilation support 4278 # and can be expected to be found in the default PATH. These tools are 4279 # used by configure. Nor are these tools expected to be found in the 4280 # devkit from the builddeps server either, since they are 4281 # needed to download the devkit. 4282 4283 # First are all the simple required tools. 4284 4285 4286 4287 # Publish this variable in the help. 4288 4289 4290 if test "x$BASENAME" = x; then 4291 # The variable is not set by user, try to locate tool using the code snippet 4292 for ac_prog in basename 4293 do 4294 # Extract the first word of "$ac_prog", so it can be a program name with args. 4295 set dummy $ac_prog; ac_word=$2 4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4297 $as_echo_n "checking for $ac_word... " >&6; } 4298 if ${ac_cv_path_BASENAME+:} false; then : 4299 $as_echo_n "(cached) " >&6 4300 else 4301 case $BASENAME in 4302 [\\/]* | ?:[\\/]*) 4303 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4304 ;; 4305 *) 4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4307 for as_dir in $PATH 4308 do 4309 IFS=$as_save_IFS 4310 test -z "$as_dir" && as_dir=. 4311 for ac_exec_ext in '' $ac_executable_extensions; do 4312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4313 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4315 break 2 4316 fi 4317 done 4318 done 4319 IFS=$as_save_IFS 4320 4321 ;; 4322 esac 4323 fi 4324 BASENAME=$ac_cv_path_BASENAME 4325 if test -n "$BASENAME"; then 4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4327 $as_echo "$BASENAME" >&6; } 4328 else 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4330 $as_echo "no" >&6; } 4331 fi 4332 4333 4334 test -n "$BASENAME" && break 4335 done 4336 4337 else 4338 # The variable is set, but is it from the command line or the environment? 4339 4340 # Try to remove the string !BASENAME! from our list. 4341 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4342 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4343 # If it failed, the variable was not from the command line. Ignore it, 4344 # but warn the user (except for BASH, which is always set by the calling BASH). 4345 if test "xBASENAME" != xBASH; then 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4347 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4348 fi 4349 # Try to locate tool using the code snippet 4350 for ac_prog in basename 4351 do 4352 # Extract the first word of "$ac_prog", so it can be a program name with args. 4353 set dummy $ac_prog; ac_word=$2 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4355 $as_echo_n "checking for $ac_word... " >&6; } 4356 if ${ac_cv_path_BASENAME+:} false; then : 4357 $as_echo_n "(cached) " >&6 4358 else 4359 case $BASENAME in 4360 [\\/]* | ?:[\\/]*) 4361 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4362 ;; 4363 *) 4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4365 for as_dir in $PATH 4366 do 4367 IFS=$as_save_IFS 4368 test -z "$as_dir" && as_dir=. 4369 for ac_exec_ext in '' $ac_executable_extensions; do 4370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4371 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4373 break 2 4374 fi 4375 done 4376 done 4377 IFS=$as_save_IFS 4378 4379 ;; 4380 esac 4381 fi 4382 BASENAME=$ac_cv_path_BASENAME 4383 if test -n "$BASENAME"; then 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4385 $as_echo "$BASENAME" >&6; } 4386 else 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4388 $as_echo "no" >&6; } 4389 fi 4390 4391 4392 test -n "$BASENAME" && break 4393 done 4394 4395 else 4396 # If it succeeded, then it was overridden by the user. We will use it 4397 # for the tool. 4398 4399 # First remove it from the list of overridden variables, so we can test 4400 # for unknown variables in the end. 4401 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4402 4403 # Check if the provided tool contains a complete path. 4404 tool_specified="$BASENAME" 4405 tool_basename="${tool_specified##*/}" 4406 if test "x$tool_basename" = "x$tool_specified"; then 4407 # A command without a complete path is provided, search $PATH. 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4409 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4410 # Extract the first word of "$tool_basename", so it can be a program name with args. 4411 set dummy $tool_basename; ac_word=$2 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4413 $as_echo_n "checking for $ac_word... " >&6; } 4414 if ${ac_cv_path_BASENAME+:} false; then : 4415 $as_echo_n "(cached) " >&6 4416 else 4417 case $BASENAME in 4418 [\\/]* | ?:[\\/]*) 4419 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4420 ;; 4421 *) 4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4423 for as_dir in $PATH 4424 do 4425 IFS=$as_save_IFS 4426 test -z "$as_dir" && as_dir=. 4427 for ac_exec_ext in '' $ac_executable_extensions; do 4428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4429 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4431 break 2 4432 fi 4433 done 4434 done 4435 IFS=$as_save_IFS 4436 4437 ;; 4438 esac 4439 fi 4440 BASENAME=$ac_cv_path_BASENAME 4441 if test -n "$BASENAME"; then 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4443 $as_echo "$BASENAME" >&6; } 4444 else 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4446 $as_echo "no" >&6; } 4447 fi 4448 4449 4450 if test "x$BASENAME" = x; then 4451 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4452 fi 4453 else 4454 # Otherwise we believe it is a complete path. Use it as it is. 4455 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4456 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4458 $as_echo_n "checking for BASENAME... " >&6; } 4459 if test ! -x "$tool_specified"; then 4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4461 $as_echo "not found" >&6; } 4462 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4463 fi 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4465 $as_echo "$tool_specified" >&6; } 4466 fi 4467 fi 4468 fi 4469 4470 4471 4472 if test "x$BASENAME" = x; then 4473 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4474 fi 4475 4476 4477 4478 4479 4480 # Publish this variable in the help. 4481 4482 4483 if test "x$BASH" = x; then 4484 # The variable is not set by user, try to locate tool using the code snippet 4485 for ac_prog in bash 4486 do 4487 # Extract the first word of "$ac_prog", so it can be a program name with args. 4488 set dummy $ac_prog; ac_word=$2 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4490 $as_echo_n "checking for $ac_word... " >&6; } 4491 if ${ac_cv_path_BASH+:} false; then : 4492 $as_echo_n "(cached) " >&6 4493 else 4494 case $BASH in 4495 [\\/]* | ?:[\\/]*) 4496 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4497 ;; 4498 *) 4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4500 for as_dir in $PATH 4501 do 4502 IFS=$as_save_IFS 4503 test -z "$as_dir" && as_dir=. 4504 for ac_exec_ext in '' $ac_executable_extensions; do 4505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4506 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4508 break 2 4509 fi 4510 done 4511 done 4512 IFS=$as_save_IFS 4513 4514 ;; 4515 esac 4516 fi 4517 BASH=$ac_cv_path_BASH 4518 if test -n "$BASH"; then 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4520 $as_echo "$BASH" >&6; } 4521 else 4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4523 $as_echo "no" >&6; } 4524 fi 4525 4526 4527 test -n "$BASH" && break 4528 done 4529 4530 else 4531 # The variable is set, but is it from the command line or the environment? 4532 4533 # Try to remove the string !BASH! from our list. 4534 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4535 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4536 # If it failed, the variable was not from the command line. Ignore it, 4537 # but warn the user (except for BASH, which is always set by the calling BASH). 4538 if test "xBASH" != xBASH; then 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4540 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4541 fi 4542 # Try to locate tool using the code snippet 4543 for ac_prog in bash 4544 do 4545 # Extract the first word of "$ac_prog", so it can be a program name with args. 4546 set dummy $ac_prog; ac_word=$2 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4548 $as_echo_n "checking for $ac_word... " >&6; } 4549 if ${ac_cv_path_BASH+:} false; then : 4550 $as_echo_n "(cached) " >&6 4551 else 4552 case $BASH in 4553 [\\/]* | ?:[\\/]*) 4554 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4555 ;; 4556 *) 4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4558 for as_dir in $PATH 4559 do 4560 IFS=$as_save_IFS 4561 test -z "$as_dir" && as_dir=. 4562 for ac_exec_ext in '' $ac_executable_extensions; do 4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4564 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4566 break 2 4567 fi 4568 done 4569 done 4570 IFS=$as_save_IFS 4571 4572 ;; 4573 esac 4574 fi 4575 BASH=$ac_cv_path_BASH 4576 if test -n "$BASH"; then 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4578 $as_echo "$BASH" >&6; } 4579 else 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4581 $as_echo "no" >&6; } 4582 fi 4583 4584 4585 test -n "$BASH" && break 4586 done 4587 4588 else 4589 # If it succeeded, then it was overridden by the user. We will use it 4590 # for the tool. 4591 4592 # First remove it from the list of overridden variables, so we can test 4593 # for unknown variables in the end. 4594 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4595 4596 # Check if the provided tool contains a complete path. 4597 tool_specified="$BASH" 4598 tool_basename="${tool_specified##*/}" 4599 if test "x$tool_basename" = "x$tool_specified"; then 4600 # A command without a complete path is provided, search $PATH. 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4602 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4603 # Extract the first word of "$tool_basename", so it can be a program name with args. 4604 set dummy $tool_basename; ac_word=$2 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4606 $as_echo_n "checking for $ac_word... " >&6; } 4607 if ${ac_cv_path_BASH+:} false; then : 4608 $as_echo_n "(cached) " >&6 4609 else 4610 case $BASH in 4611 [\\/]* | ?:[\\/]*) 4612 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4613 ;; 4614 *) 4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4616 for as_dir in $PATH 4617 do 4618 IFS=$as_save_IFS 4619 test -z "$as_dir" && as_dir=. 4620 for ac_exec_ext in '' $ac_executable_extensions; do 4621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4622 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4624 break 2 4625 fi 4626 done 4627 done 4628 IFS=$as_save_IFS 4629 4630 ;; 4631 esac 4632 fi 4633 BASH=$ac_cv_path_BASH 4634 if test -n "$BASH"; then 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4636 $as_echo "$BASH" >&6; } 4637 else 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4639 $as_echo "no" >&6; } 4640 fi 4641 4642 4643 if test "x$BASH" = x; then 4644 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4645 fi 4646 else 4647 # Otherwise we believe it is a complete path. Use it as it is. 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4649 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4651 $as_echo_n "checking for BASH... " >&6; } 4652 if test ! -x "$tool_specified"; then 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4654 $as_echo "not found" >&6; } 4655 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4656 fi 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4658 $as_echo "$tool_specified" >&6; } 4659 fi 4660 fi 4661 fi 4662 4663 4664 4665 if test "x$BASH" = x; then 4666 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4667 fi 4668 4669 4670 4671 4672 4673 # Publish this variable in the help. 4674 4675 4676 if test "x$CAT" = x; then 4677 # The variable is not set by user, try to locate tool using the code snippet 4678 for ac_prog in cat 4679 do 4680 # Extract the first word of "$ac_prog", so it can be a program name with args. 4681 set dummy $ac_prog; ac_word=$2 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4683 $as_echo_n "checking for $ac_word... " >&6; } 4684 if ${ac_cv_path_CAT+:} false; then : 4685 $as_echo_n "(cached) " >&6 4686 else 4687 case $CAT in 4688 [\\/]* | ?:[\\/]*) 4689 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4690 ;; 4691 *) 4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4693 for as_dir in $PATH 4694 do 4695 IFS=$as_save_IFS 4696 test -z "$as_dir" && as_dir=. 4697 for ac_exec_ext in '' $ac_executable_extensions; do 4698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4699 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4701 break 2 4702 fi 4703 done 4704 done 4705 IFS=$as_save_IFS 4706 4707 ;; 4708 esac 4709 fi 4710 CAT=$ac_cv_path_CAT 4711 if test -n "$CAT"; then 4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4713 $as_echo "$CAT" >&6; } 4714 else 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4716 $as_echo "no" >&6; } 4717 fi 4718 4719 4720 test -n "$CAT" && break 4721 done 4722 4723 else 4724 # The variable is set, but is it from the command line or the environment? 4725 4726 # Try to remove the string !CAT! from our list. 4727 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4728 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4729 # If it failed, the variable was not from the command line. Ignore it, 4730 # but warn the user (except for BASH, which is always set by the calling BASH). 4731 if test "xCAT" != xBASH; then 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4733 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4734 fi 4735 # Try to locate tool using the code snippet 4736 for ac_prog in cat 4737 do 4738 # Extract the first word of "$ac_prog", so it can be a program name with args. 4739 set dummy $ac_prog; ac_word=$2 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4741 $as_echo_n "checking for $ac_word... " >&6; } 4742 if ${ac_cv_path_CAT+:} false; then : 4743 $as_echo_n "(cached) " >&6 4744 else 4745 case $CAT in 4746 [\\/]* | ?:[\\/]*) 4747 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4748 ;; 4749 *) 4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4751 for as_dir in $PATH 4752 do 4753 IFS=$as_save_IFS 4754 test -z "$as_dir" && as_dir=. 4755 for ac_exec_ext in '' $ac_executable_extensions; do 4756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4757 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4759 break 2 4760 fi 4761 done 4762 done 4763 IFS=$as_save_IFS 4764 4765 ;; 4766 esac 4767 fi 4768 CAT=$ac_cv_path_CAT 4769 if test -n "$CAT"; then 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4771 $as_echo "$CAT" >&6; } 4772 else 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4774 $as_echo "no" >&6; } 4775 fi 4776 4777 4778 test -n "$CAT" && break 4779 done 4780 4781 else 4782 # If it succeeded, then it was overridden by the user. We will use it 4783 # for the tool. 4784 4785 # First remove it from the list of overridden variables, so we can test 4786 # for unknown variables in the end. 4787 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4788 4789 # Check if the provided tool contains a complete path. 4790 tool_specified="$CAT" 4791 tool_basename="${tool_specified##*/}" 4792 if test "x$tool_basename" = "x$tool_specified"; then 4793 # A command without a complete path is provided, search $PATH. 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4795 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4796 # Extract the first word of "$tool_basename", so it can be a program name with args. 4797 set dummy $tool_basename; ac_word=$2 4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4799 $as_echo_n "checking for $ac_word... " >&6; } 4800 if ${ac_cv_path_CAT+:} false; then : 4801 $as_echo_n "(cached) " >&6 4802 else 4803 case $CAT in 4804 [\\/]* | ?:[\\/]*) 4805 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4806 ;; 4807 *) 4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4809 for as_dir in $PATH 4810 do 4811 IFS=$as_save_IFS 4812 test -z "$as_dir" && as_dir=. 4813 for ac_exec_ext in '' $ac_executable_extensions; do 4814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4815 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4817 break 2 4818 fi 4819 done 4820 done 4821 IFS=$as_save_IFS 4822 4823 ;; 4824 esac 4825 fi 4826 CAT=$ac_cv_path_CAT 4827 if test -n "$CAT"; then 4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4829 $as_echo "$CAT" >&6; } 4830 else 4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4832 $as_echo "no" >&6; } 4833 fi 4834 4835 4836 if test "x$CAT" = x; then 4837 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4838 fi 4839 else 4840 # Otherwise we believe it is a complete path. Use it as it is. 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4842 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4844 $as_echo_n "checking for CAT... " >&6; } 4845 if test ! -x "$tool_specified"; then 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4847 $as_echo "not found" >&6; } 4848 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4849 fi 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4851 $as_echo "$tool_specified" >&6; } 4852 fi 4853 fi 4854 fi 4855 4856 4857 4858 if test "x$CAT" = x; then 4859 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4860 fi 4861 4862 4863 4864 4865 4866 # Publish this variable in the help. 4867 4868 4869 if test "x$CHMOD" = x; then 4870 # The variable is not set by user, try to locate tool using the code snippet 4871 for ac_prog in chmod 4872 do 4873 # Extract the first word of "$ac_prog", so it can be a program name with args. 4874 set dummy $ac_prog; ac_word=$2 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4876 $as_echo_n "checking for $ac_word... " >&6; } 4877 if ${ac_cv_path_CHMOD+:} false; then : 4878 $as_echo_n "(cached) " >&6 4879 else 4880 case $CHMOD in 4881 [\\/]* | ?:[\\/]*) 4882 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4883 ;; 4884 *) 4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4886 for as_dir in $PATH 4887 do 4888 IFS=$as_save_IFS 4889 test -z "$as_dir" && as_dir=. 4890 for ac_exec_ext in '' $ac_executable_extensions; do 4891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4892 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4894 break 2 4895 fi 4896 done 4897 done 4898 IFS=$as_save_IFS 4899 4900 ;; 4901 esac 4902 fi 4903 CHMOD=$ac_cv_path_CHMOD 4904 if test -n "$CHMOD"; then 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4906 $as_echo "$CHMOD" >&6; } 4907 else 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4909 $as_echo "no" >&6; } 4910 fi 4911 4912 4913 test -n "$CHMOD" && break 4914 done 4915 4916 else 4917 # The variable is set, but is it from the command line or the environment? 4918 4919 # Try to remove the string !CHMOD! from our list. 4920 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 4921 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4922 # If it failed, the variable was not from the command line. Ignore it, 4923 # but warn the user (except for BASH, which is always set by the calling BASH). 4924 if test "xCHMOD" != xBASH; then 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 4926 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 4927 fi 4928 # Try to locate tool using the code snippet 4929 for ac_prog in chmod 4930 do 4931 # Extract the first word of "$ac_prog", so it can be a program name with args. 4932 set dummy $ac_prog; ac_word=$2 4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4934 $as_echo_n "checking for $ac_word... " >&6; } 4935 if ${ac_cv_path_CHMOD+:} false; then : 4936 $as_echo_n "(cached) " >&6 4937 else 4938 case $CHMOD in 4939 [\\/]* | ?:[\\/]*) 4940 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4941 ;; 4942 *) 4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4944 for as_dir in $PATH 4945 do 4946 IFS=$as_save_IFS 4947 test -z "$as_dir" && as_dir=. 4948 for ac_exec_ext in '' $ac_executable_extensions; do 4949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4950 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4952 break 2 4953 fi 4954 done 4955 done 4956 IFS=$as_save_IFS 4957 4958 ;; 4959 esac 4960 fi 4961 CHMOD=$ac_cv_path_CHMOD 4962 if test -n "$CHMOD"; then 4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4964 $as_echo "$CHMOD" >&6; } 4965 else 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4967 $as_echo "no" >&6; } 4968 fi 4969 4970 4971 test -n "$CHMOD" && break 4972 done 4973 4974 else 4975 # If it succeeded, then it was overridden by the user. We will use it 4976 # for the tool. 4977 4978 # First remove it from the list of overridden variables, so we can test 4979 # for unknown variables in the end. 4980 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4981 4982 # Check if the provided tool contains a complete path. 4983 tool_specified="$CHMOD" 4984 tool_basename="${tool_specified##*/}" 4985 if test "x$tool_basename" = "x$tool_specified"; then 4986 # A command without a complete path is provided, search $PATH. 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 4988 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 4989 # Extract the first word of "$tool_basename", so it can be a program name with args. 4990 set dummy $tool_basename; ac_word=$2 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4992 $as_echo_n "checking for $ac_word... " >&6; } 4993 if ${ac_cv_path_CHMOD+:} false; then : 4994 $as_echo_n "(cached) " >&6 4995 else 4996 case $CHMOD in 4997 [\\/]* | ?:[\\/]*) 4998 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4999 ;; 5000 *) 5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5002 for as_dir in $PATH 5003 do 5004 IFS=$as_save_IFS 5005 test -z "$as_dir" && as_dir=. 5006 for ac_exec_ext in '' $ac_executable_extensions; do 5007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5008 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5010 break 2 5011 fi 5012 done 5013 done 5014 IFS=$as_save_IFS 5015 5016 ;; 5017 esac 5018 fi 5019 CHMOD=$ac_cv_path_CHMOD 5020 if test -n "$CHMOD"; then 5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5022 $as_echo "$CHMOD" >&6; } 5023 else 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5025 $as_echo "no" >&6; } 5026 fi 5027 5028 5029 if test "x$CHMOD" = x; then 5030 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5031 fi 5032 else 5033 # Otherwise we believe it is a complete path. Use it as it is. 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5035 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5037 $as_echo_n "checking for CHMOD... " >&6; } 5038 if test ! -x "$tool_specified"; then 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5040 $as_echo "not found" >&6; } 5041 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5042 fi 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5044 $as_echo "$tool_specified" >&6; } 5045 fi 5046 fi 5047 fi 5048 5049 5050 5051 if test "x$CHMOD" = x; then 5052 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5053 fi 5054 5055 5056 5057 5058 5059 # Publish this variable in the help. 5060 5061 5062 if test "x$CMP" = x; then 5063 # The variable is not set by user, try to locate tool using the code snippet 5064 for ac_prog in cmp 5065 do 5066 # Extract the first word of "$ac_prog", so it can be a program name with args. 5067 set dummy $ac_prog; ac_word=$2 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5069 $as_echo_n "checking for $ac_word... " >&6; } 5070 if ${ac_cv_path_CMP+:} false; then : 5071 $as_echo_n "(cached) " >&6 5072 else 5073 case $CMP in 5074 [\\/]* | ?:[\\/]*) 5075 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5076 ;; 5077 *) 5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5079 for as_dir in $PATH 5080 do 5081 IFS=$as_save_IFS 5082 test -z "$as_dir" && as_dir=. 5083 for ac_exec_ext in '' $ac_executable_extensions; do 5084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5085 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5087 break 2 5088 fi 5089 done 5090 done 5091 IFS=$as_save_IFS 5092 5093 ;; 5094 esac 5095 fi 5096 CMP=$ac_cv_path_CMP 5097 if test -n "$CMP"; then 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5099 $as_echo "$CMP" >&6; } 5100 else 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5102 $as_echo "no" >&6; } 5103 fi 5104 5105 5106 test -n "$CMP" && break 5107 done 5108 5109 else 5110 # The variable is set, but is it from the command line or the environment? 5111 5112 # Try to remove the string !CMP! from our list. 5113 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5114 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5115 # If it failed, the variable was not from the command line. Ignore it, 5116 # but warn the user (except for BASH, which is always set by the calling BASH). 5117 if test "xCMP" != xBASH; then 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5119 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5120 fi 5121 # Try to locate tool using the code snippet 5122 for ac_prog in cmp 5123 do 5124 # Extract the first word of "$ac_prog", so it can be a program name with args. 5125 set dummy $ac_prog; ac_word=$2 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5127 $as_echo_n "checking for $ac_word... " >&6; } 5128 if ${ac_cv_path_CMP+:} false; then : 5129 $as_echo_n "(cached) " >&6 5130 else 5131 case $CMP in 5132 [\\/]* | ?:[\\/]*) 5133 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5134 ;; 5135 *) 5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5137 for as_dir in $PATH 5138 do 5139 IFS=$as_save_IFS 5140 test -z "$as_dir" && as_dir=. 5141 for ac_exec_ext in '' $ac_executable_extensions; do 5142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5143 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5145 break 2 5146 fi 5147 done 5148 done 5149 IFS=$as_save_IFS 5150 5151 ;; 5152 esac 5153 fi 5154 CMP=$ac_cv_path_CMP 5155 if test -n "$CMP"; then 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5157 $as_echo "$CMP" >&6; } 5158 else 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5160 $as_echo "no" >&6; } 5161 fi 5162 5163 5164 test -n "$CMP" && break 5165 done 5166 5167 else 5168 # If it succeeded, then it was overridden by the user. We will use it 5169 # for the tool. 5170 5171 # First remove it from the list of overridden variables, so we can test 5172 # for unknown variables in the end. 5173 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5174 5175 # Check if the provided tool contains a complete path. 5176 tool_specified="$CMP" 5177 tool_basename="${tool_specified##*/}" 5178 if test "x$tool_basename" = "x$tool_specified"; then 5179 # A command without a complete path is provided, search $PATH. 5180 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5181 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5182 # Extract the first word of "$tool_basename", so it can be a program name with args. 5183 set dummy $tool_basename; ac_word=$2 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5185 $as_echo_n "checking for $ac_word... " >&6; } 5186 if ${ac_cv_path_CMP+:} false; then : 5187 $as_echo_n "(cached) " >&6 5188 else 5189 case $CMP in 5190 [\\/]* | ?:[\\/]*) 5191 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5192 ;; 5193 *) 5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5195 for as_dir in $PATH 5196 do 5197 IFS=$as_save_IFS 5198 test -z "$as_dir" && as_dir=. 5199 for ac_exec_ext in '' $ac_executable_extensions; do 5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5201 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5203 break 2 5204 fi 5205 done 5206 done 5207 IFS=$as_save_IFS 5208 5209 ;; 5210 esac 5211 fi 5212 CMP=$ac_cv_path_CMP 5213 if test -n "$CMP"; then 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5215 $as_echo "$CMP" >&6; } 5216 else 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5218 $as_echo "no" >&6; } 5219 fi 5220 5221 5222 if test "x$CMP" = x; then 5223 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5224 fi 5225 else 5226 # Otherwise we believe it is a complete path. Use it as it is. 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5228 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5230 $as_echo_n "checking for CMP... " >&6; } 5231 if test ! -x "$tool_specified"; then 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5233 $as_echo "not found" >&6; } 5234 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5235 fi 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5237 $as_echo "$tool_specified" >&6; } 5238 fi 5239 fi 5240 fi 5241 5242 5243 5244 if test "x$CMP" = x; then 5245 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5246 fi 5247 5248 5249 5250 5251 5252 # Publish this variable in the help. 5253 5254 5255 if test "x$COMM" = x; then 5256 # The variable is not set by user, try to locate tool using the code snippet 5257 for ac_prog in comm 5258 do 5259 # Extract the first word of "$ac_prog", so it can be a program name with args. 5260 set dummy $ac_prog; ac_word=$2 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5262 $as_echo_n "checking for $ac_word... " >&6; } 5263 if ${ac_cv_path_COMM+:} false; then : 5264 $as_echo_n "(cached) " >&6 5265 else 5266 case $COMM in 5267 [\\/]* | ?:[\\/]*) 5268 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5269 ;; 5270 *) 5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5272 for as_dir in $PATH 5273 do 5274 IFS=$as_save_IFS 5275 test -z "$as_dir" && as_dir=. 5276 for ac_exec_ext in '' $ac_executable_extensions; do 5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5278 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5280 break 2 5281 fi 5282 done 5283 done 5284 IFS=$as_save_IFS 5285 5286 ;; 5287 esac 5288 fi 5289 COMM=$ac_cv_path_COMM 5290 if test -n "$COMM"; then 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5292 $as_echo "$COMM" >&6; } 5293 else 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5295 $as_echo "no" >&6; } 5296 fi 5297 5298 5299 test -n "$COMM" && break 5300 done 5301 5302 else 5303 # The variable is set, but is it from the command line or the environment? 5304 5305 # Try to remove the string !COMM! from our list. 5306 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5307 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5308 # If it failed, the variable was not from the command line. Ignore it, 5309 # but warn the user (except for BASH, which is always set by the calling BASH). 5310 if test "xCOMM" != xBASH; then 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5312 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5313 fi 5314 # Try to locate tool using the code snippet 5315 for ac_prog in comm 5316 do 5317 # Extract the first word of "$ac_prog", so it can be a program name with args. 5318 set dummy $ac_prog; ac_word=$2 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5320 $as_echo_n "checking for $ac_word... " >&6; } 5321 if ${ac_cv_path_COMM+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323 else 5324 case $COMM in 5325 [\\/]* | ?:[\\/]*) 5326 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5327 ;; 5328 *) 5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5330 for as_dir in $PATH 5331 do 5332 IFS=$as_save_IFS 5333 test -z "$as_dir" && as_dir=. 5334 for ac_exec_ext in '' $ac_executable_extensions; do 5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5336 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5338 break 2 5339 fi 5340 done 5341 done 5342 IFS=$as_save_IFS 5343 5344 ;; 5345 esac 5346 fi 5347 COMM=$ac_cv_path_COMM 5348 if test -n "$COMM"; then 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5350 $as_echo "$COMM" >&6; } 5351 else 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5353 $as_echo "no" >&6; } 5354 fi 5355 5356 5357 test -n "$COMM" && break 5358 done 5359 5360 else 5361 # If it succeeded, then it was overridden by the user. We will use it 5362 # for the tool. 5363 5364 # First remove it from the list of overridden variables, so we can test 5365 # for unknown variables in the end. 5366 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5367 5368 # Check if the provided tool contains a complete path. 5369 tool_specified="$COMM" 5370 tool_basename="${tool_specified##*/}" 5371 if test "x$tool_basename" = "x$tool_specified"; then 5372 # A command without a complete path is provided, search $PATH. 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5374 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5375 # Extract the first word of "$tool_basename", so it can be a program name with args. 5376 set dummy $tool_basename; ac_word=$2 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5378 $as_echo_n "checking for $ac_word... " >&6; } 5379 if ${ac_cv_path_COMM+:} false; then : 5380 $as_echo_n "(cached) " >&6 5381 else 5382 case $COMM in 5383 [\\/]* | ?:[\\/]*) 5384 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5385 ;; 5386 *) 5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5388 for as_dir in $PATH 5389 do 5390 IFS=$as_save_IFS 5391 test -z "$as_dir" && as_dir=. 5392 for ac_exec_ext in '' $ac_executable_extensions; do 5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5394 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5396 break 2 5397 fi 5398 done 5399 done 5400 IFS=$as_save_IFS 5401 5402 ;; 5403 esac 5404 fi 5405 COMM=$ac_cv_path_COMM 5406 if test -n "$COMM"; then 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5408 $as_echo "$COMM" >&6; } 5409 else 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5411 $as_echo "no" >&6; } 5412 fi 5413 5414 5415 if test "x$COMM" = x; then 5416 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5417 fi 5418 else 5419 # Otherwise we believe it is a complete path. Use it as it is. 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5421 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5423 $as_echo_n "checking for COMM... " >&6; } 5424 if test ! -x "$tool_specified"; then 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5426 $as_echo "not found" >&6; } 5427 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5428 fi 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5430 $as_echo "$tool_specified" >&6; } 5431 fi 5432 fi 5433 fi 5434 5435 5436 5437 if test "x$COMM" = x; then 5438 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5439 fi 5440 5441 5442 5443 5444 5445 # Publish this variable in the help. 5446 5447 5448 if test "x$CP" = x; then 5449 # The variable is not set by user, try to locate tool using the code snippet 5450 for ac_prog in cp 5451 do 5452 # Extract the first word of "$ac_prog", so it can be a program name with args. 5453 set dummy $ac_prog; ac_word=$2 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5455 $as_echo_n "checking for $ac_word... " >&6; } 5456 if ${ac_cv_path_CP+:} false; then : 5457 $as_echo_n "(cached) " >&6 5458 else 5459 case $CP in 5460 [\\/]* | ?:[\\/]*) 5461 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5462 ;; 5463 *) 5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5465 for as_dir in $PATH 5466 do 5467 IFS=$as_save_IFS 5468 test -z "$as_dir" && as_dir=. 5469 for ac_exec_ext in '' $ac_executable_extensions; do 5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5471 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5473 break 2 5474 fi 5475 done 5476 done 5477 IFS=$as_save_IFS 5478 5479 ;; 5480 esac 5481 fi 5482 CP=$ac_cv_path_CP 5483 if test -n "$CP"; then 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5485 $as_echo "$CP" >&6; } 5486 else 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5488 $as_echo "no" >&6; } 5489 fi 5490 5491 5492 test -n "$CP" && break 5493 done 5494 5495 else 5496 # The variable is set, but is it from the command line or the environment? 5497 5498 # Try to remove the string !CP! from our list. 5499 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5500 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5501 # If it failed, the variable was not from the command line. Ignore it, 5502 # but warn the user (except for BASH, which is always set by the calling BASH). 5503 if test "xCP" != xBASH; then 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5505 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5506 fi 5507 # Try to locate tool using the code snippet 5508 for ac_prog in cp 5509 do 5510 # Extract the first word of "$ac_prog", so it can be a program name with args. 5511 set dummy $ac_prog; ac_word=$2 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5513 $as_echo_n "checking for $ac_word... " >&6; } 5514 if ${ac_cv_path_CP+:} false; then : 5515 $as_echo_n "(cached) " >&6 5516 else 5517 case $CP in 5518 [\\/]* | ?:[\\/]*) 5519 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5520 ;; 5521 *) 5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5523 for as_dir in $PATH 5524 do 5525 IFS=$as_save_IFS 5526 test -z "$as_dir" && as_dir=. 5527 for ac_exec_ext in '' $ac_executable_extensions; do 5528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5529 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5531 break 2 5532 fi 5533 done 5534 done 5535 IFS=$as_save_IFS 5536 5537 ;; 5538 esac 5539 fi 5540 CP=$ac_cv_path_CP 5541 if test -n "$CP"; then 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5543 $as_echo "$CP" >&6; } 5544 else 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5546 $as_echo "no" >&6; } 5547 fi 5548 5549 5550 test -n "$CP" && break 5551 done 5552 5553 else 5554 # If it succeeded, then it was overridden by the user. We will use it 5555 # for the tool. 5556 5557 # First remove it from the list of overridden variables, so we can test 5558 # for unknown variables in the end. 5559 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5560 5561 # Check if the provided tool contains a complete path. 5562 tool_specified="$CP" 5563 tool_basename="${tool_specified##*/}" 5564 if test "x$tool_basename" = "x$tool_specified"; then 5565 # A command without a complete path is provided, search $PATH. 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5567 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5568 # Extract the first word of "$tool_basename", so it can be a program name with args. 5569 set dummy $tool_basename; ac_word=$2 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5571 $as_echo_n "checking for $ac_word... " >&6; } 5572 if ${ac_cv_path_CP+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574 else 5575 case $CP in 5576 [\\/]* | ?:[\\/]*) 5577 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5578 ;; 5579 *) 5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5581 for as_dir in $PATH 5582 do 5583 IFS=$as_save_IFS 5584 test -z "$as_dir" && as_dir=. 5585 for ac_exec_ext in '' $ac_executable_extensions; do 5586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5587 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5589 break 2 5590 fi 5591 done 5592 done 5593 IFS=$as_save_IFS 5594 5595 ;; 5596 esac 5597 fi 5598 CP=$ac_cv_path_CP 5599 if test -n "$CP"; then 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5601 $as_echo "$CP" >&6; } 5602 else 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5604 $as_echo "no" >&6; } 5605 fi 5606 5607 5608 if test "x$CP" = x; then 5609 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5610 fi 5611 else 5612 # Otherwise we believe it is a complete path. Use it as it is. 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5614 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5616 $as_echo_n "checking for CP... " >&6; } 5617 if test ! -x "$tool_specified"; then 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5619 $as_echo "not found" >&6; } 5620 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5621 fi 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5623 $as_echo "$tool_specified" >&6; } 5624 fi 5625 fi 5626 fi 5627 5628 5629 5630 if test "x$CP" = x; then 5631 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5632 fi 5633 5634 5635 5636 5637 5638 # Publish this variable in the help. 5639 5640 5641 if test "x$CPIO" = x; then 5642 # The variable is not set by user, try to locate tool using the code snippet 5643 for ac_prog in cpio 5644 do 5645 # Extract the first word of "$ac_prog", so it can be a program name with args. 5646 set dummy $ac_prog; ac_word=$2 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5648 $as_echo_n "checking for $ac_word... " >&6; } 5649 if ${ac_cv_path_CPIO+:} false; then : 5650 $as_echo_n "(cached) " >&6 5651 else 5652 case $CPIO in 5653 [\\/]* | ?:[\\/]*) 5654 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5655 ;; 5656 *) 5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5658 for as_dir in $PATH 5659 do 5660 IFS=$as_save_IFS 5661 test -z "$as_dir" && as_dir=. 5662 for ac_exec_ext in '' $ac_executable_extensions; do 5663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5664 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5666 break 2 5667 fi 5668 done 5669 done 5670 IFS=$as_save_IFS 5671 5672 ;; 5673 esac 5674 fi 5675 CPIO=$ac_cv_path_CPIO 5676 if test -n "$CPIO"; then 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5678 $as_echo "$CPIO" >&6; } 5679 else 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5681 $as_echo "no" >&6; } 5682 fi 5683 5684 5685 test -n "$CPIO" && break 5686 done 5687 5688 else 5689 # The variable is set, but is it from the command line or the environment? 5690 5691 # Try to remove the string !CPIO! from our list. 5692 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 5693 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5694 # If it failed, the variable was not from the command line. Ignore it, 5695 # but warn the user (except for BASH, which is always set by the calling BASH). 5696 if test "xCPIO" != xBASH; then 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 5698 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 5699 fi 5700 # Try to locate tool using the code snippet 5701 for ac_prog in cpio 5702 do 5703 # Extract the first word of "$ac_prog", so it can be a program name with args. 5704 set dummy $ac_prog; ac_word=$2 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5706 $as_echo_n "checking for $ac_word... " >&6; } 5707 if ${ac_cv_path_CPIO+:} false; then : 5708 $as_echo_n "(cached) " >&6 5709 else 5710 case $CPIO in 5711 [\\/]* | ?:[\\/]*) 5712 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5713 ;; 5714 *) 5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5716 for as_dir in $PATH 5717 do 5718 IFS=$as_save_IFS 5719 test -z "$as_dir" && as_dir=. 5720 for ac_exec_ext in '' $ac_executable_extensions; do 5721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5722 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5724 break 2 5725 fi 5726 done 5727 done 5728 IFS=$as_save_IFS 5729 5730 ;; 5731 esac 5732 fi 5733 CPIO=$ac_cv_path_CPIO 5734 if test -n "$CPIO"; then 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5736 $as_echo "$CPIO" >&6; } 5737 else 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5739 $as_echo "no" >&6; } 5740 fi 5741 5742 5743 test -n "$CPIO" && break 5744 done 5745 5746 else 5747 # If it succeeded, then it was overridden by the user. We will use it 5748 # for the tool. 5749 5750 # First remove it from the list of overridden variables, so we can test 5751 # for unknown variables in the end. 5752 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5753 5754 # Check if the provided tool contains a complete path. 5755 tool_specified="$CPIO" 5756 tool_basename="${tool_specified##*/}" 5757 if test "x$tool_basename" = "x$tool_specified"; then 5758 # A command without a complete path is provided, search $PATH. 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 5760 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 5761 # Extract the first word of "$tool_basename", so it can be a program name with args. 5762 set dummy $tool_basename; ac_word=$2 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5764 $as_echo_n "checking for $ac_word... " >&6; } 5765 if ${ac_cv_path_CPIO+:} false; then : 5766 $as_echo_n "(cached) " >&6 5767 else 5768 case $CPIO in 5769 [\\/]* | ?:[\\/]*) 5770 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5771 ;; 5772 *) 5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5774 for as_dir in $PATH 5775 do 5776 IFS=$as_save_IFS 5777 test -z "$as_dir" && as_dir=. 5778 for ac_exec_ext in '' $ac_executable_extensions; do 5779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5780 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5782 break 2 5783 fi 5784 done 5785 done 5786 IFS=$as_save_IFS 5787 5788 ;; 5789 esac 5790 fi 5791 CPIO=$ac_cv_path_CPIO 5792 if test -n "$CPIO"; then 5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5794 $as_echo "$CPIO" >&6; } 5795 else 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5797 $as_echo "no" >&6; } 5798 fi 5799 5800 5801 if test "x$CPIO" = x; then 5802 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5803 fi 5804 else 5805 # Otherwise we believe it is a complete path. Use it as it is. 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 5807 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 5809 $as_echo_n "checking for CPIO... " >&6; } 5810 if test ! -x "$tool_specified"; then 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5812 $as_echo "not found" >&6; } 5813 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 5814 fi 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5816 $as_echo "$tool_specified" >&6; } 5817 fi 5818 fi 5819 fi 5820 5821 5822 5823 if test "x$CPIO" = x; then 5824 as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5 5825 fi 5826 5827 5828 5829 5830 5831 # Publish this variable in the help. 5832 5833 5834 if test "x$CUT" = x; then 5835 # The variable is not set by user, try to locate tool using the code snippet 5836 for ac_prog in cut 5837 do 5838 # Extract the first word of "$ac_prog", so it can be a program name with args. 5839 set dummy $ac_prog; ac_word=$2 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5841 $as_echo_n "checking for $ac_word... " >&6; } 5842 if ${ac_cv_path_CUT+:} false; then : 5843 $as_echo_n "(cached) " >&6 5844 else 5845 case $CUT in 5846 [\\/]* | ?:[\\/]*) 5847 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5848 ;; 5849 *) 5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5851 for as_dir in $PATH 5852 do 5853 IFS=$as_save_IFS 5854 test -z "$as_dir" && as_dir=. 5855 for ac_exec_ext in '' $ac_executable_extensions; do 5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5857 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5859 break 2 5860 fi 5861 done 5862 done 5863 IFS=$as_save_IFS 5864 5865 ;; 5866 esac 5867 fi 5868 CUT=$ac_cv_path_CUT 5869 if test -n "$CUT"; then 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5871 $as_echo "$CUT" >&6; } 5872 else 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5874 $as_echo "no" >&6; } 5875 fi 5876 5877 5878 test -n "$CUT" && break 5879 done 5880 5881 else 5882 # The variable is set, but is it from the command line or the environment? 5883 5884 # Try to remove the string !CUT! from our list. 5885 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5886 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5887 # If it failed, the variable was not from the command line. Ignore it, 5888 # but warn the user (except for BASH, which is always set by the calling BASH). 5889 if test "xCUT" != xBASH; then 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5891 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5892 fi 5893 # Try to locate tool using the code snippet 5894 for ac_prog in cut 5895 do 5896 # Extract the first word of "$ac_prog", so it can be a program name with args. 5897 set dummy $ac_prog; ac_word=$2 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5899 $as_echo_n "checking for $ac_word... " >&6; } 5900 if ${ac_cv_path_CUT+:} false; then : 5901 $as_echo_n "(cached) " >&6 5902 else 5903 case $CUT in 5904 [\\/]* | ?:[\\/]*) 5905 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5906 ;; 5907 *) 5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5909 for as_dir in $PATH 5910 do 5911 IFS=$as_save_IFS 5912 test -z "$as_dir" && as_dir=. 5913 for ac_exec_ext in '' $ac_executable_extensions; do 5914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5915 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5917 break 2 5918 fi 5919 done 5920 done 5921 IFS=$as_save_IFS 5922 5923 ;; 5924 esac 5925 fi 5926 CUT=$ac_cv_path_CUT 5927 if test -n "$CUT"; then 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5929 $as_echo "$CUT" >&6; } 5930 else 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5932 $as_echo "no" >&6; } 5933 fi 5934 5935 5936 test -n "$CUT" && break 5937 done 5938 5939 else 5940 # If it succeeded, then it was overridden by the user. We will use it 5941 # for the tool. 5942 5943 # First remove it from the list of overridden variables, so we can test 5944 # for unknown variables in the end. 5945 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5946 5947 # Check if the provided tool contains a complete path. 5948 tool_specified="$CUT" 5949 tool_basename="${tool_specified##*/}" 5950 if test "x$tool_basename" = "x$tool_specified"; then 5951 # A command without a complete path is provided, search $PATH. 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5953 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5954 # Extract the first word of "$tool_basename", so it can be a program name with args. 5955 set dummy $tool_basename; ac_word=$2 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5957 $as_echo_n "checking for $ac_word... " >&6; } 5958 if ${ac_cv_path_CUT+:} false; then : 5959 $as_echo_n "(cached) " >&6 5960 else 5961 case $CUT in 5962 [\\/]* | ?:[\\/]*) 5963 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5964 ;; 5965 *) 5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5967 for as_dir in $PATH 5968 do 5969 IFS=$as_save_IFS 5970 test -z "$as_dir" && as_dir=. 5971 for ac_exec_ext in '' $ac_executable_extensions; do 5972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5973 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5975 break 2 5976 fi 5977 done 5978 done 5979 IFS=$as_save_IFS 5980 5981 ;; 5982 esac 5983 fi 5984 CUT=$ac_cv_path_CUT 5985 if test -n "$CUT"; then 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5987 $as_echo "$CUT" >&6; } 5988 else 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5990 $as_echo "no" >&6; } 5991 fi 5992 5993 5994 if test "x$CUT" = x; then 5995 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5996 fi 5997 else 5998 # Otherwise we believe it is a complete path. Use it as it is. 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6000 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6002 $as_echo_n "checking for CUT... " >&6; } 6003 if test ! -x "$tool_specified"; then 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6005 $as_echo "not found" >&6; } 6006 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6007 fi 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6009 $as_echo "$tool_specified" >&6; } 6010 fi 6011 fi 6012 fi 6013 6014 6015 6016 if test "x$CUT" = x; then 6017 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6018 fi 6019 6020 6021 6022 6023 6024 # Publish this variable in the help. 6025 6026 6027 if test "x$DATE" = x; then 6028 # The variable is not set by user, try to locate tool using the code snippet 6029 for ac_prog in date 6030 do 6031 # Extract the first word of "$ac_prog", so it can be a program name with args. 6032 set dummy $ac_prog; ac_word=$2 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6034 $as_echo_n "checking for $ac_word... " >&6; } 6035 if ${ac_cv_path_DATE+:} false; then : 6036 $as_echo_n "(cached) " >&6 6037 else 6038 case $DATE in 6039 [\\/]* | ?:[\\/]*) 6040 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6041 ;; 6042 *) 6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6044 for as_dir in $PATH 6045 do 6046 IFS=$as_save_IFS 6047 test -z "$as_dir" && as_dir=. 6048 for ac_exec_ext in '' $ac_executable_extensions; do 6049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6050 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6052 break 2 6053 fi 6054 done 6055 done 6056 IFS=$as_save_IFS 6057 6058 ;; 6059 esac 6060 fi 6061 DATE=$ac_cv_path_DATE 6062 if test -n "$DATE"; then 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6064 $as_echo "$DATE" >&6; } 6065 else 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6067 $as_echo "no" >&6; } 6068 fi 6069 6070 6071 test -n "$DATE" && break 6072 done 6073 6074 else 6075 # The variable is set, but is it from the command line or the environment? 6076 6077 # Try to remove the string !DATE! from our list. 6078 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6079 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6080 # If it failed, the variable was not from the command line. Ignore it, 6081 # but warn the user (except for BASH, which is always set by the calling BASH). 6082 if test "xDATE" != xBASH; then 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6084 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6085 fi 6086 # Try to locate tool using the code snippet 6087 for ac_prog in date 6088 do 6089 # Extract the first word of "$ac_prog", so it can be a program name with args. 6090 set dummy $ac_prog; ac_word=$2 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6092 $as_echo_n "checking for $ac_word... " >&6; } 6093 if ${ac_cv_path_DATE+:} false; then : 6094 $as_echo_n "(cached) " >&6 6095 else 6096 case $DATE in 6097 [\\/]* | ?:[\\/]*) 6098 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6099 ;; 6100 *) 6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6102 for as_dir in $PATH 6103 do 6104 IFS=$as_save_IFS 6105 test -z "$as_dir" && as_dir=. 6106 for ac_exec_ext in '' $ac_executable_extensions; do 6107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6108 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6110 break 2 6111 fi 6112 done 6113 done 6114 IFS=$as_save_IFS 6115 6116 ;; 6117 esac 6118 fi 6119 DATE=$ac_cv_path_DATE 6120 if test -n "$DATE"; then 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6122 $as_echo "$DATE" >&6; } 6123 else 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6125 $as_echo "no" >&6; } 6126 fi 6127 6128 6129 test -n "$DATE" && break 6130 done 6131 6132 else 6133 # If it succeeded, then it was overridden by the user. We will use it 6134 # for the tool. 6135 6136 # First remove it from the list of overridden variables, so we can test 6137 # for unknown variables in the end. 6138 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6139 6140 # Check if the provided tool contains a complete path. 6141 tool_specified="$DATE" 6142 tool_basename="${tool_specified##*/}" 6143 if test "x$tool_basename" = "x$tool_specified"; then 6144 # A command without a complete path is provided, search $PATH. 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6146 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6147 # Extract the first word of "$tool_basename", so it can be a program name with args. 6148 set dummy $tool_basename; ac_word=$2 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6150 $as_echo_n "checking for $ac_word... " >&6; } 6151 if ${ac_cv_path_DATE+:} false; then : 6152 $as_echo_n "(cached) " >&6 6153 else 6154 case $DATE in 6155 [\\/]* | ?:[\\/]*) 6156 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6157 ;; 6158 *) 6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6160 for as_dir in $PATH 6161 do 6162 IFS=$as_save_IFS 6163 test -z "$as_dir" && as_dir=. 6164 for ac_exec_ext in '' $ac_executable_extensions; do 6165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6166 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6168 break 2 6169 fi 6170 done 6171 done 6172 IFS=$as_save_IFS 6173 6174 ;; 6175 esac 6176 fi 6177 DATE=$ac_cv_path_DATE 6178 if test -n "$DATE"; then 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6180 $as_echo "$DATE" >&6; } 6181 else 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6183 $as_echo "no" >&6; } 6184 fi 6185 6186 6187 if test "x$DATE" = x; then 6188 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6189 fi 6190 else 6191 # Otherwise we believe it is a complete path. Use it as it is. 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6193 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6195 $as_echo_n "checking for DATE... " >&6; } 6196 if test ! -x "$tool_specified"; then 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6198 $as_echo "not found" >&6; } 6199 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6200 fi 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6202 $as_echo "$tool_specified" >&6; } 6203 fi 6204 fi 6205 fi 6206 6207 6208 6209 if test "x$DATE" = x; then 6210 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6211 fi 6212 6213 6214 6215 6216 6217 # Publish this variable in the help. 6218 6219 6220 if test "x$DIFF" = x; then 6221 # The variable is not set by user, try to locate tool using the code snippet 6222 for ac_prog in gdiff diff 6223 do 6224 # Extract the first word of "$ac_prog", so it can be a program name with args. 6225 set dummy $ac_prog; ac_word=$2 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6227 $as_echo_n "checking for $ac_word... " >&6; } 6228 if ${ac_cv_path_DIFF+:} false; then : 6229 $as_echo_n "(cached) " >&6 6230 else 6231 case $DIFF in 6232 [\\/]* | ?:[\\/]*) 6233 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6234 ;; 6235 *) 6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6237 for as_dir in $PATH 6238 do 6239 IFS=$as_save_IFS 6240 test -z "$as_dir" && as_dir=. 6241 for ac_exec_ext in '' $ac_executable_extensions; do 6242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6243 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6245 break 2 6246 fi 6247 done 6248 done 6249 IFS=$as_save_IFS 6250 6251 ;; 6252 esac 6253 fi 6254 DIFF=$ac_cv_path_DIFF 6255 if test -n "$DIFF"; then 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6257 $as_echo "$DIFF" >&6; } 6258 else 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6260 $as_echo "no" >&6; } 6261 fi 6262 6263 6264 test -n "$DIFF" && break 6265 done 6266 6267 else 6268 # The variable is set, but is it from the command line or the environment? 6269 6270 # Try to remove the string !DIFF! from our list. 6271 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6272 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6273 # If it failed, the variable was not from the command line. Ignore it, 6274 # but warn the user (except for BASH, which is always set by the calling BASH). 6275 if test "xDIFF" != xBASH; then 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6277 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6278 fi 6279 # Try to locate tool using the code snippet 6280 for ac_prog in gdiff diff 6281 do 6282 # Extract the first word of "$ac_prog", so it can be a program name with args. 6283 set dummy $ac_prog; ac_word=$2 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6285 $as_echo_n "checking for $ac_word... " >&6; } 6286 if ${ac_cv_path_DIFF+:} false; then : 6287 $as_echo_n "(cached) " >&6 6288 else 6289 case $DIFF in 6290 [\\/]* | ?:[\\/]*) 6291 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6292 ;; 6293 *) 6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6295 for as_dir in $PATH 6296 do 6297 IFS=$as_save_IFS 6298 test -z "$as_dir" && as_dir=. 6299 for ac_exec_ext in '' $ac_executable_extensions; do 6300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6301 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6303 break 2 6304 fi 6305 done 6306 done 6307 IFS=$as_save_IFS 6308 6309 ;; 6310 esac 6311 fi 6312 DIFF=$ac_cv_path_DIFF 6313 if test -n "$DIFF"; then 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6315 $as_echo "$DIFF" >&6; } 6316 else 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6318 $as_echo "no" >&6; } 6319 fi 6320 6321 6322 test -n "$DIFF" && break 6323 done 6324 6325 else 6326 # If it succeeded, then it was overridden by the user. We will use it 6327 # for the tool. 6328 6329 # First remove it from the list of overridden variables, so we can test 6330 # for unknown variables in the end. 6331 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6332 6333 # Check if the provided tool contains a complete path. 6334 tool_specified="$DIFF" 6335 tool_basename="${tool_specified##*/}" 6336 if test "x$tool_basename" = "x$tool_specified"; then 6337 # A command without a complete path is provided, search $PATH. 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6339 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6340 # Extract the first word of "$tool_basename", so it can be a program name with args. 6341 set dummy $tool_basename; ac_word=$2 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6343 $as_echo_n "checking for $ac_word... " >&6; } 6344 if ${ac_cv_path_DIFF+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346 else 6347 case $DIFF in 6348 [\\/]* | ?:[\\/]*) 6349 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6350 ;; 6351 *) 6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6353 for as_dir in $PATH 6354 do 6355 IFS=$as_save_IFS 6356 test -z "$as_dir" && as_dir=. 6357 for ac_exec_ext in '' $ac_executable_extensions; do 6358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6359 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6361 break 2 6362 fi 6363 done 6364 done 6365 IFS=$as_save_IFS 6366 6367 ;; 6368 esac 6369 fi 6370 DIFF=$ac_cv_path_DIFF 6371 if test -n "$DIFF"; then 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6373 $as_echo "$DIFF" >&6; } 6374 else 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6376 $as_echo "no" >&6; } 6377 fi 6378 6379 6380 if test "x$DIFF" = x; then 6381 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6382 fi 6383 else 6384 # Otherwise we believe it is a complete path. Use it as it is. 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6386 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6388 $as_echo_n "checking for DIFF... " >&6; } 6389 if test ! -x "$tool_specified"; then 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6391 $as_echo "not found" >&6; } 6392 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6393 fi 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6395 $as_echo "$tool_specified" >&6; } 6396 fi 6397 fi 6398 fi 6399 6400 6401 6402 if test "x$DIFF" = x; then 6403 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6404 fi 6405 6406 6407 6408 6409 6410 # Publish this variable in the help. 6411 6412 6413 if test "x$DIRNAME" = x; then 6414 # The variable is not set by user, try to locate tool using the code snippet 6415 for ac_prog in dirname 6416 do 6417 # Extract the first word of "$ac_prog", so it can be a program name with args. 6418 set dummy $ac_prog; ac_word=$2 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6420 $as_echo_n "checking for $ac_word... " >&6; } 6421 if ${ac_cv_path_DIRNAME+:} false; then : 6422 $as_echo_n "(cached) " >&6 6423 else 6424 case $DIRNAME in 6425 [\\/]* | ?:[\\/]*) 6426 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6427 ;; 6428 *) 6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430 for as_dir in $PATH 6431 do 6432 IFS=$as_save_IFS 6433 test -z "$as_dir" && as_dir=. 6434 for ac_exec_ext in '' $ac_executable_extensions; do 6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6436 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6438 break 2 6439 fi 6440 done 6441 done 6442 IFS=$as_save_IFS 6443 6444 ;; 6445 esac 6446 fi 6447 DIRNAME=$ac_cv_path_DIRNAME 6448 if test -n "$DIRNAME"; then 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6450 $as_echo "$DIRNAME" >&6; } 6451 else 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6453 $as_echo "no" >&6; } 6454 fi 6455 6456 6457 test -n "$DIRNAME" && break 6458 done 6459 6460 else 6461 # The variable is set, but is it from the command line or the environment? 6462 6463 # Try to remove the string !DIRNAME! from our list. 6464 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6465 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6466 # If it failed, the variable was not from the command line. Ignore it, 6467 # but warn the user (except for BASH, which is always set by the calling BASH). 6468 if test "xDIRNAME" != xBASH; then 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6470 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6471 fi 6472 # Try to locate tool using the code snippet 6473 for ac_prog in dirname 6474 do 6475 # Extract the first word of "$ac_prog", so it can be a program name with args. 6476 set dummy $ac_prog; ac_word=$2 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6478 $as_echo_n "checking for $ac_word... " >&6; } 6479 if ${ac_cv_path_DIRNAME+:} false; then : 6480 $as_echo_n "(cached) " >&6 6481 else 6482 case $DIRNAME in 6483 [\\/]* | ?:[\\/]*) 6484 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6485 ;; 6486 *) 6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6488 for as_dir in $PATH 6489 do 6490 IFS=$as_save_IFS 6491 test -z "$as_dir" && as_dir=. 6492 for ac_exec_ext in '' $ac_executable_extensions; do 6493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6494 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6496 break 2 6497 fi 6498 done 6499 done 6500 IFS=$as_save_IFS 6501 6502 ;; 6503 esac 6504 fi 6505 DIRNAME=$ac_cv_path_DIRNAME 6506 if test -n "$DIRNAME"; then 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6508 $as_echo "$DIRNAME" >&6; } 6509 else 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6511 $as_echo "no" >&6; } 6512 fi 6513 6514 6515 test -n "$DIRNAME" && break 6516 done 6517 6518 else 6519 # If it succeeded, then it was overridden by the user. We will use it 6520 # for the tool. 6521 6522 # First remove it from the list of overridden variables, so we can test 6523 # for unknown variables in the end. 6524 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6525 6526 # Check if the provided tool contains a complete path. 6527 tool_specified="$DIRNAME" 6528 tool_basename="${tool_specified##*/}" 6529 if test "x$tool_basename" = "x$tool_specified"; then 6530 # A command without a complete path is provided, search $PATH. 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6532 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6533 # Extract the first word of "$tool_basename", so it can be a program name with args. 6534 set dummy $tool_basename; ac_word=$2 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6536 $as_echo_n "checking for $ac_word... " >&6; } 6537 if ${ac_cv_path_DIRNAME+:} false; then : 6538 $as_echo_n "(cached) " >&6 6539 else 6540 case $DIRNAME in 6541 [\\/]* | ?:[\\/]*) 6542 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6543 ;; 6544 *) 6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6546 for as_dir in $PATH 6547 do 6548 IFS=$as_save_IFS 6549 test -z "$as_dir" && as_dir=. 6550 for ac_exec_ext in '' $ac_executable_extensions; do 6551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6552 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6554 break 2 6555 fi 6556 done 6557 done 6558 IFS=$as_save_IFS 6559 6560 ;; 6561 esac 6562 fi 6563 DIRNAME=$ac_cv_path_DIRNAME 6564 if test -n "$DIRNAME"; then 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6566 $as_echo "$DIRNAME" >&6; } 6567 else 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6569 $as_echo "no" >&6; } 6570 fi 6571 6572 6573 if test "x$DIRNAME" = x; then 6574 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6575 fi 6576 else 6577 # Otherwise we believe it is a complete path. Use it as it is. 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6579 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6581 $as_echo_n "checking for DIRNAME... " >&6; } 6582 if test ! -x "$tool_specified"; then 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6584 $as_echo "not found" >&6; } 6585 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6586 fi 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6588 $as_echo "$tool_specified" >&6; } 6589 fi 6590 fi 6591 fi 6592 6593 6594 6595 if test "x$DIRNAME" = x; then 6596 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6597 fi 6598 6599 6600 6601 6602 6603 # Publish this variable in the help. 6604 6605 6606 if test "x$ECHO" = x; then 6607 # The variable is not set by user, try to locate tool using the code snippet 6608 for ac_prog in echo 6609 do 6610 # Extract the first word of "$ac_prog", so it can be a program name with args. 6611 set dummy $ac_prog; ac_word=$2 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6613 $as_echo_n "checking for $ac_word... " >&6; } 6614 if ${ac_cv_path_ECHO+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616 else 6617 case $ECHO in 6618 [\\/]* | ?:[\\/]*) 6619 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6620 ;; 6621 *) 6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6623 for as_dir in $PATH 6624 do 6625 IFS=$as_save_IFS 6626 test -z "$as_dir" && as_dir=. 6627 for ac_exec_ext in '' $ac_executable_extensions; do 6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6629 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6631 break 2 6632 fi 6633 done 6634 done 6635 IFS=$as_save_IFS 6636 6637 ;; 6638 esac 6639 fi 6640 ECHO=$ac_cv_path_ECHO 6641 if test -n "$ECHO"; then 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6643 $as_echo "$ECHO" >&6; } 6644 else 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6646 $as_echo "no" >&6; } 6647 fi 6648 6649 6650 test -n "$ECHO" && break 6651 done 6652 6653 else 6654 # The variable is set, but is it from the command line or the environment? 6655 6656 # Try to remove the string !ECHO! from our list. 6657 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6658 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6659 # If it failed, the variable was not from the command line. Ignore it, 6660 # but warn the user (except for BASH, which is always set by the calling BASH). 6661 if test "xECHO" != xBASH; then 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6663 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6664 fi 6665 # Try to locate tool using the code snippet 6666 for ac_prog in echo 6667 do 6668 # Extract the first word of "$ac_prog", so it can be a program name with args. 6669 set dummy $ac_prog; ac_word=$2 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6671 $as_echo_n "checking for $ac_word... " >&6; } 6672 if ${ac_cv_path_ECHO+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674 else 6675 case $ECHO in 6676 [\\/]* | ?:[\\/]*) 6677 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6678 ;; 6679 *) 6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681 for as_dir in $PATH 6682 do 6683 IFS=$as_save_IFS 6684 test -z "$as_dir" && as_dir=. 6685 for ac_exec_ext in '' $ac_executable_extensions; do 6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6687 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6689 break 2 6690 fi 6691 done 6692 done 6693 IFS=$as_save_IFS 6694 6695 ;; 6696 esac 6697 fi 6698 ECHO=$ac_cv_path_ECHO 6699 if test -n "$ECHO"; then 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6701 $as_echo "$ECHO" >&6; } 6702 else 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6704 $as_echo "no" >&6; } 6705 fi 6706 6707 6708 test -n "$ECHO" && break 6709 done 6710 6711 else 6712 # If it succeeded, then it was overridden by the user. We will use it 6713 # for the tool. 6714 6715 # First remove it from the list of overridden variables, so we can test 6716 # for unknown variables in the end. 6717 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6718 6719 # Check if the provided tool contains a complete path. 6720 tool_specified="$ECHO" 6721 tool_basename="${tool_specified##*/}" 6722 if test "x$tool_basename" = "x$tool_specified"; then 6723 # A command without a complete path is provided, search $PATH. 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6725 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6726 # Extract the first word of "$tool_basename", so it can be a program name with args. 6727 set dummy $tool_basename; ac_word=$2 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6729 $as_echo_n "checking for $ac_word... " >&6; } 6730 if ${ac_cv_path_ECHO+:} false; then : 6731 $as_echo_n "(cached) " >&6 6732 else 6733 case $ECHO in 6734 [\\/]* | ?:[\\/]*) 6735 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6736 ;; 6737 *) 6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6739 for as_dir in $PATH 6740 do 6741 IFS=$as_save_IFS 6742 test -z "$as_dir" && as_dir=. 6743 for ac_exec_ext in '' $ac_executable_extensions; do 6744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6745 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6747 break 2 6748 fi 6749 done 6750 done 6751 IFS=$as_save_IFS 6752 6753 ;; 6754 esac 6755 fi 6756 ECHO=$ac_cv_path_ECHO 6757 if test -n "$ECHO"; then 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6759 $as_echo "$ECHO" >&6; } 6760 else 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6762 $as_echo "no" >&6; } 6763 fi 6764 6765 6766 if test "x$ECHO" = x; then 6767 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6768 fi 6769 else 6770 # Otherwise we believe it is a complete path. Use it as it is. 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6772 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6774 $as_echo_n "checking for ECHO... " >&6; } 6775 if test ! -x "$tool_specified"; then 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6777 $as_echo "not found" >&6; } 6778 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6779 fi 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6781 $as_echo "$tool_specified" >&6; } 6782 fi 6783 fi 6784 fi 6785 6786 6787 6788 if test "x$ECHO" = x; then 6789 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6790 fi 6791 6792 6793 6794 6795 6796 # Publish this variable in the help. 6797 6798 6799 if test "x$EXPR" = x; then 6800 # The variable is not set by user, try to locate tool using the code snippet 6801 for ac_prog in expr 6802 do 6803 # Extract the first word of "$ac_prog", so it can be a program name with args. 6804 set dummy $ac_prog; ac_word=$2 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6806 $as_echo_n "checking for $ac_word... " >&6; } 6807 if ${ac_cv_path_EXPR+:} false; then : 6808 $as_echo_n "(cached) " >&6 6809 else 6810 case $EXPR in 6811 [\\/]* | ?:[\\/]*) 6812 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6813 ;; 6814 *) 6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6816 for as_dir in $PATH 6817 do 6818 IFS=$as_save_IFS 6819 test -z "$as_dir" && as_dir=. 6820 for ac_exec_ext in '' $ac_executable_extensions; do 6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6822 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6824 break 2 6825 fi 6826 done 6827 done 6828 IFS=$as_save_IFS 6829 6830 ;; 6831 esac 6832 fi 6833 EXPR=$ac_cv_path_EXPR 6834 if test -n "$EXPR"; then 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6836 $as_echo "$EXPR" >&6; } 6837 else 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6839 $as_echo "no" >&6; } 6840 fi 6841 6842 6843 test -n "$EXPR" && break 6844 done 6845 6846 else 6847 # The variable is set, but is it from the command line or the environment? 6848 6849 # Try to remove the string !EXPR! from our list. 6850 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6851 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6852 # If it failed, the variable was not from the command line. Ignore it, 6853 # but warn the user (except for BASH, which is always set by the calling BASH). 6854 if test "xEXPR" != xBASH; then 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6856 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6857 fi 6858 # Try to locate tool using the code snippet 6859 for ac_prog in expr 6860 do 6861 # Extract the first word of "$ac_prog", so it can be a program name with args. 6862 set dummy $ac_prog; ac_word=$2 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6864 $as_echo_n "checking for $ac_word... " >&6; } 6865 if ${ac_cv_path_EXPR+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867 else 6868 case $EXPR in 6869 [\\/]* | ?:[\\/]*) 6870 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6871 ;; 6872 *) 6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6874 for as_dir in $PATH 6875 do 6876 IFS=$as_save_IFS 6877 test -z "$as_dir" && as_dir=. 6878 for ac_exec_ext in '' $ac_executable_extensions; do 6879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6880 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6882 break 2 6883 fi 6884 done 6885 done 6886 IFS=$as_save_IFS 6887 6888 ;; 6889 esac 6890 fi 6891 EXPR=$ac_cv_path_EXPR 6892 if test -n "$EXPR"; then 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6894 $as_echo "$EXPR" >&6; } 6895 else 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6897 $as_echo "no" >&6; } 6898 fi 6899 6900 6901 test -n "$EXPR" && break 6902 done 6903 6904 else 6905 # If it succeeded, then it was overridden by the user. We will use it 6906 # for the tool. 6907 6908 # First remove it from the list of overridden variables, so we can test 6909 # for unknown variables in the end. 6910 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6911 6912 # Check if the provided tool contains a complete path. 6913 tool_specified="$EXPR" 6914 tool_basename="${tool_specified##*/}" 6915 if test "x$tool_basename" = "x$tool_specified"; then 6916 # A command without a complete path is provided, search $PATH. 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6918 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6919 # Extract the first word of "$tool_basename", so it can be a program name with args. 6920 set dummy $tool_basename; ac_word=$2 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6922 $as_echo_n "checking for $ac_word... " >&6; } 6923 if ${ac_cv_path_EXPR+:} false; then : 6924 $as_echo_n "(cached) " >&6 6925 else 6926 case $EXPR in 6927 [\\/]* | ?:[\\/]*) 6928 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6929 ;; 6930 *) 6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6932 for as_dir in $PATH 6933 do 6934 IFS=$as_save_IFS 6935 test -z "$as_dir" && as_dir=. 6936 for ac_exec_ext in '' $ac_executable_extensions; do 6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6938 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6940 break 2 6941 fi 6942 done 6943 done 6944 IFS=$as_save_IFS 6945 6946 ;; 6947 esac 6948 fi 6949 EXPR=$ac_cv_path_EXPR 6950 if test -n "$EXPR"; then 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6952 $as_echo "$EXPR" >&6; } 6953 else 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6955 $as_echo "no" >&6; } 6956 fi 6957 6958 6959 if test "x$EXPR" = x; then 6960 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6961 fi 6962 else 6963 # Otherwise we believe it is a complete path. Use it as it is. 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6965 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6967 $as_echo_n "checking for EXPR... " >&6; } 6968 if test ! -x "$tool_specified"; then 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6970 $as_echo "not found" >&6; } 6971 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6972 fi 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6974 $as_echo "$tool_specified" >&6; } 6975 fi 6976 fi 6977 fi 6978 6979 6980 6981 if test "x$EXPR" = x; then 6982 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6983 fi 6984 6985 6986 6987 6988 6989 # Publish this variable in the help. 6990 6991 6992 if test "x$FILE" = x; then 6993 # The variable is not set by user, try to locate tool using the code snippet 6994 for ac_prog in file 6995 do 6996 # Extract the first word of "$ac_prog", so it can be a program name with args. 6997 set dummy $ac_prog; ac_word=$2 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6999 $as_echo_n "checking for $ac_word... " >&6; } 7000 if ${ac_cv_path_FILE+:} false; then : 7001 $as_echo_n "(cached) " >&6 7002 else 7003 case $FILE in 7004 [\\/]* | ?:[\\/]*) 7005 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7006 ;; 7007 *) 7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7009 for as_dir in $PATH 7010 do 7011 IFS=$as_save_IFS 7012 test -z "$as_dir" && as_dir=. 7013 for ac_exec_ext in '' $ac_executable_extensions; do 7014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7015 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7017 break 2 7018 fi 7019 done 7020 done 7021 IFS=$as_save_IFS 7022 7023 ;; 7024 esac 7025 fi 7026 FILE=$ac_cv_path_FILE 7027 if test -n "$FILE"; then 7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7029 $as_echo "$FILE" >&6; } 7030 else 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7032 $as_echo "no" >&6; } 7033 fi 7034 7035 7036 test -n "$FILE" && break 7037 done 7038 7039 else 7040 # The variable is set, but is it from the command line or the environment? 7041 7042 # Try to remove the string !FILE! from our list. 7043 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7044 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7045 # If it failed, the variable was not from the command line. Ignore it, 7046 # but warn the user (except for BASH, which is always set by the calling BASH). 7047 if test "xFILE" != xBASH; then 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7049 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7050 fi 7051 # Try to locate tool using the code snippet 7052 for ac_prog in file 7053 do 7054 # Extract the first word of "$ac_prog", so it can be a program name with args. 7055 set dummy $ac_prog; ac_word=$2 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7057 $as_echo_n "checking for $ac_word... " >&6; } 7058 if ${ac_cv_path_FILE+:} false; then : 7059 $as_echo_n "(cached) " >&6 7060 else 7061 case $FILE in 7062 [\\/]* | ?:[\\/]*) 7063 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7064 ;; 7065 *) 7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7067 for as_dir in $PATH 7068 do 7069 IFS=$as_save_IFS 7070 test -z "$as_dir" && as_dir=. 7071 for ac_exec_ext in '' $ac_executable_extensions; do 7072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7073 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7075 break 2 7076 fi 7077 done 7078 done 7079 IFS=$as_save_IFS 7080 7081 ;; 7082 esac 7083 fi 7084 FILE=$ac_cv_path_FILE 7085 if test -n "$FILE"; then 7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7087 $as_echo "$FILE" >&6; } 7088 else 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7090 $as_echo "no" >&6; } 7091 fi 7092 7093 7094 test -n "$FILE" && break 7095 done 7096 7097 else 7098 # If it succeeded, then it was overridden by the user. We will use it 7099 # for the tool. 7100 7101 # First remove it from the list of overridden variables, so we can test 7102 # for unknown variables in the end. 7103 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7104 7105 # Check if the provided tool contains a complete path. 7106 tool_specified="$FILE" 7107 tool_basename="${tool_specified##*/}" 7108 if test "x$tool_basename" = "x$tool_specified"; then 7109 # A command without a complete path is provided, search $PATH. 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7111 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7112 # Extract the first word of "$tool_basename", so it can be a program name with args. 7113 set dummy $tool_basename; ac_word=$2 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7115 $as_echo_n "checking for $ac_word... " >&6; } 7116 if ${ac_cv_path_FILE+:} false; then : 7117 $as_echo_n "(cached) " >&6 7118 else 7119 case $FILE in 7120 [\\/]* | ?:[\\/]*) 7121 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7122 ;; 7123 *) 7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7125 for as_dir in $PATH 7126 do 7127 IFS=$as_save_IFS 7128 test -z "$as_dir" && as_dir=. 7129 for ac_exec_ext in '' $ac_executable_extensions; do 7130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7131 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7133 break 2 7134 fi 7135 done 7136 done 7137 IFS=$as_save_IFS 7138 7139 ;; 7140 esac 7141 fi 7142 FILE=$ac_cv_path_FILE 7143 if test -n "$FILE"; then 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7145 $as_echo "$FILE" >&6; } 7146 else 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7148 $as_echo "no" >&6; } 7149 fi 7150 7151 7152 if test "x$FILE" = x; then 7153 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7154 fi 7155 else 7156 # Otherwise we believe it is a complete path. Use it as it is. 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7158 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7160 $as_echo_n "checking for FILE... " >&6; } 7161 if test ! -x "$tool_specified"; then 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7163 $as_echo "not found" >&6; } 7164 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7165 fi 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7167 $as_echo "$tool_specified" >&6; } 7168 fi 7169 fi 7170 fi 7171 7172 7173 7174 if test "x$FILE" = x; then 7175 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7176 fi 7177 7178 7179 7180 7181 7182 # Publish this variable in the help. 7183 7184 7185 if test "x$FIND" = x; then 7186 # The variable is not set by user, try to locate tool using the code snippet 7187 for ac_prog in find 7188 do 7189 # Extract the first word of "$ac_prog", so it can be a program name with args. 7190 set dummy $ac_prog; ac_word=$2 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7192 $as_echo_n "checking for $ac_word... " >&6; } 7193 if ${ac_cv_path_FIND+:} false; then : 7194 $as_echo_n "(cached) " >&6 7195 else 7196 case $FIND in 7197 [\\/]* | ?:[\\/]*) 7198 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7199 ;; 7200 *) 7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7202 for as_dir in $PATH 7203 do 7204 IFS=$as_save_IFS 7205 test -z "$as_dir" && as_dir=. 7206 for ac_exec_ext in '' $ac_executable_extensions; do 7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7208 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7210 break 2 7211 fi 7212 done 7213 done 7214 IFS=$as_save_IFS 7215 7216 ;; 7217 esac 7218 fi 7219 FIND=$ac_cv_path_FIND 7220 if test -n "$FIND"; then 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7222 $as_echo "$FIND" >&6; } 7223 else 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7225 $as_echo "no" >&6; } 7226 fi 7227 7228 7229 test -n "$FIND" && break 7230 done 7231 7232 else 7233 # The variable is set, but is it from the command line or the environment? 7234 7235 # Try to remove the string !FIND! from our list. 7236 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7237 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7238 # If it failed, the variable was not from the command line. Ignore it, 7239 # but warn the user (except for BASH, which is always set by the calling BASH). 7240 if test "xFIND" != xBASH; then 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7242 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7243 fi 7244 # Try to locate tool using the code snippet 7245 for ac_prog in find 7246 do 7247 # Extract the first word of "$ac_prog", so it can be a program name with args. 7248 set dummy $ac_prog; ac_word=$2 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7250 $as_echo_n "checking for $ac_word... " >&6; } 7251 if ${ac_cv_path_FIND+:} false; then : 7252 $as_echo_n "(cached) " >&6 7253 else 7254 case $FIND in 7255 [\\/]* | ?:[\\/]*) 7256 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7257 ;; 7258 *) 7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7260 for as_dir in $PATH 7261 do 7262 IFS=$as_save_IFS 7263 test -z "$as_dir" && as_dir=. 7264 for ac_exec_ext in '' $ac_executable_extensions; do 7265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7266 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7268 break 2 7269 fi 7270 done 7271 done 7272 IFS=$as_save_IFS 7273 7274 ;; 7275 esac 7276 fi 7277 FIND=$ac_cv_path_FIND 7278 if test -n "$FIND"; then 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7280 $as_echo "$FIND" >&6; } 7281 else 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7283 $as_echo "no" >&6; } 7284 fi 7285 7286 7287 test -n "$FIND" && break 7288 done 7289 7290 else 7291 # If it succeeded, then it was overridden by the user. We will use it 7292 # for the tool. 7293 7294 # First remove it from the list of overridden variables, so we can test 7295 # for unknown variables in the end. 7296 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7297 7298 # Check if the provided tool contains a complete path. 7299 tool_specified="$FIND" 7300 tool_basename="${tool_specified##*/}" 7301 if test "x$tool_basename" = "x$tool_specified"; then 7302 # A command without a complete path is provided, search $PATH. 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7304 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7305 # Extract the first word of "$tool_basename", so it can be a program name with args. 7306 set dummy $tool_basename; ac_word=$2 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7308 $as_echo_n "checking for $ac_word... " >&6; } 7309 if ${ac_cv_path_FIND+:} false; then : 7310 $as_echo_n "(cached) " >&6 7311 else 7312 case $FIND in 7313 [\\/]* | ?:[\\/]*) 7314 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7315 ;; 7316 *) 7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7318 for as_dir in $PATH 7319 do 7320 IFS=$as_save_IFS 7321 test -z "$as_dir" && as_dir=. 7322 for ac_exec_ext in '' $ac_executable_extensions; do 7323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7324 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7326 break 2 7327 fi 7328 done 7329 done 7330 IFS=$as_save_IFS 7331 7332 ;; 7333 esac 7334 fi 7335 FIND=$ac_cv_path_FIND 7336 if test -n "$FIND"; then 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7338 $as_echo "$FIND" >&6; } 7339 else 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7341 $as_echo "no" >&6; } 7342 fi 7343 7344 7345 if test "x$FIND" = x; then 7346 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7347 fi 7348 else 7349 # Otherwise we believe it is a complete path. Use it as it is. 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7351 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7353 $as_echo_n "checking for FIND... " >&6; } 7354 if test ! -x "$tool_specified"; then 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7356 $as_echo "not found" >&6; } 7357 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7358 fi 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7360 $as_echo "$tool_specified" >&6; } 7361 fi 7362 fi 7363 fi 7364 7365 7366 7367 if test "x$FIND" = x; then 7368 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7369 fi 7370 7371 7372 7373 7374 7375 # Publish this variable in the help. 7376 7377 7378 if test "x$HEAD" = x; then 7379 # The variable is not set by user, try to locate tool using the code snippet 7380 for ac_prog in head 7381 do 7382 # Extract the first word of "$ac_prog", so it can be a program name with args. 7383 set dummy $ac_prog; ac_word=$2 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7385 $as_echo_n "checking for $ac_word... " >&6; } 7386 if ${ac_cv_path_HEAD+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388 else 7389 case $HEAD in 7390 [\\/]* | ?:[\\/]*) 7391 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7392 ;; 7393 *) 7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7395 for as_dir in $PATH 7396 do 7397 IFS=$as_save_IFS 7398 test -z "$as_dir" && as_dir=. 7399 for ac_exec_ext in '' $ac_executable_extensions; do 7400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7401 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7403 break 2 7404 fi 7405 done 7406 done 7407 IFS=$as_save_IFS 7408 7409 ;; 7410 esac 7411 fi 7412 HEAD=$ac_cv_path_HEAD 7413 if test -n "$HEAD"; then 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7415 $as_echo "$HEAD" >&6; } 7416 else 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7418 $as_echo "no" >&6; } 7419 fi 7420 7421 7422 test -n "$HEAD" && break 7423 done 7424 7425 else 7426 # The variable is set, but is it from the command line or the environment? 7427 7428 # Try to remove the string !HEAD! from our list. 7429 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7430 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7431 # If it failed, the variable was not from the command line. Ignore it, 7432 # but warn the user (except for BASH, which is always set by the calling BASH). 7433 if test "xHEAD" != xBASH; then 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7435 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7436 fi 7437 # Try to locate tool using the code snippet 7438 for ac_prog in head 7439 do 7440 # Extract the first word of "$ac_prog", so it can be a program name with args. 7441 set dummy $ac_prog; ac_word=$2 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7443 $as_echo_n "checking for $ac_word... " >&6; } 7444 if ${ac_cv_path_HEAD+:} false; then : 7445 $as_echo_n "(cached) " >&6 7446 else 7447 case $HEAD in 7448 [\\/]* | ?:[\\/]*) 7449 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7450 ;; 7451 *) 7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7453 for as_dir in $PATH 7454 do 7455 IFS=$as_save_IFS 7456 test -z "$as_dir" && as_dir=. 7457 for ac_exec_ext in '' $ac_executable_extensions; do 7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7459 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7461 break 2 7462 fi 7463 done 7464 done 7465 IFS=$as_save_IFS 7466 7467 ;; 7468 esac 7469 fi 7470 HEAD=$ac_cv_path_HEAD 7471 if test -n "$HEAD"; then 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7473 $as_echo "$HEAD" >&6; } 7474 else 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7476 $as_echo "no" >&6; } 7477 fi 7478 7479 7480 test -n "$HEAD" && break 7481 done 7482 7483 else 7484 # If it succeeded, then it was overridden by the user. We will use it 7485 # for the tool. 7486 7487 # First remove it from the list of overridden variables, so we can test 7488 # for unknown variables in the end. 7489 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7490 7491 # Check if the provided tool contains a complete path. 7492 tool_specified="$HEAD" 7493 tool_basename="${tool_specified##*/}" 7494 if test "x$tool_basename" = "x$tool_specified"; then 7495 # A command without a complete path is provided, search $PATH. 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7497 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7498 # Extract the first word of "$tool_basename", so it can be a program name with args. 7499 set dummy $tool_basename; ac_word=$2 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7501 $as_echo_n "checking for $ac_word... " >&6; } 7502 if ${ac_cv_path_HEAD+:} false; then : 7503 $as_echo_n "(cached) " >&6 7504 else 7505 case $HEAD in 7506 [\\/]* | ?:[\\/]*) 7507 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7508 ;; 7509 *) 7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7511 for as_dir in $PATH 7512 do 7513 IFS=$as_save_IFS 7514 test -z "$as_dir" && as_dir=. 7515 for ac_exec_ext in '' $ac_executable_extensions; do 7516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7517 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7519 break 2 7520 fi 7521 done 7522 done 7523 IFS=$as_save_IFS 7524 7525 ;; 7526 esac 7527 fi 7528 HEAD=$ac_cv_path_HEAD 7529 if test -n "$HEAD"; then 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7531 $as_echo "$HEAD" >&6; } 7532 else 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7534 $as_echo "no" >&6; } 7535 fi 7536 7537 7538 if test "x$HEAD" = x; then 7539 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7540 fi 7541 else 7542 # Otherwise we believe it is a complete path. Use it as it is. 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7544 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7546 $as_echo_n "checking for HEAD... " >&6; } 7547 if test ! -x "$tool_specified"; then 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7549 $as_echo "not found" >&6; } 7550 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7551 fi 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7553 $as_echo "$tool_specified" >&6; } 7554 fi 7555 fi 7556 fi 7557 7558 7559 7560 if test "x$HEAD" = x; then 7561 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7562 fi 7563 7564 7565 7566 7567 7568 # Publish this variable in the help. 7569 7570 7571 if test "x$LN" = x; then 7572 # The variable is not set by user, try to locate tool using the code snippet 7573 for ac_prog in ln 7574 do 7575 # Extract the first word of "$ac_prog", so it can be a program name with args. 7576 set dummy $ac_prog; ac_word=$2 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7578 $as_echo_n "checking for $ac_word... " >&6; } 7579 if ${ac_cv_path_LN+:} false; then : 7580 $as_echo_n "(cached) " >&6 7581 else 7582 case $LN in 7583 [\\/]* | ?:[\\/]*) 7584 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7585 ;; 7586 *) 7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7588 for as_dir in $PATH 7589 do 7590 IFS=$as_save_IFS 7591 test -z "$as_dir" && as_dir=. 7592 for ac_exec_ext in '' $ac_executable_extensions; do 7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7594 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7596 break 2 7597 fi 7598 done 7599 done 7600 IFS=$as_save_IFS 7601 7602 ;; 7603 esac 7604 fi 7605 LN=$ac_cv_path_LN 7606 if test -n "$LN"; then 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7608 $as_echo "$LN" >&6; } 7609 else 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7611 $as_echo "no" >&6; } 7612 fi 7613 7614 7615 test -n "$LN" && break 7616 done 7617 7618 else 7619 # The variable is set, but is it from the command line or the environment? 7620 7621 # Try to remove the string !LN! from our list. 7622 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7623 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7624 # If it failed, the variable was not from the command line. Ignore it, 7625 # but warn the user (except for BASH, which is always set by the calling BASH). 7626 if test "xLN" != xBASH; then 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7628 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7629 fi 7630 # Try to locate tool using the code snippet 7631 for ac_prog in ln 7632 do 7633 # Extract the first word of "$ac_prog", so it can be a program name with args. 7634 set dummy $ac_prog; ac_word=$2 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7636 $as_echo_n "checking for $ac_word... " >&6; } 7637 if ${ac_cv_path_LN+:} false; then : 7638 $as_echo_n "(cached) " >&6 7639 else 7640 case $LN in 7641 [\\/]* | ?:[\\/]*) 7642 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7643 ;; 7644 *) 7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7646 for as_dir in $PATH 7647 do 7648 IFS=$as_save_IFS 7649 test -z "$as_dir" && as_dir=. 7650 for ac_exec_ext in '' $ac_executable_extensions; do 7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7652 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7654 break 2 7655 fi 7656 done 7657 done 7658 IFS=$as_save_IFS 7659 7660 ;; 7661 esac 7662 fi 7663 LN=$ac_cv_path_LN 7664 if test -n "$LN"; then 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7666 $as_echo "$LN" >&6; } 7667 else 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7669 $as_echo "no" >&6; } 7670 fi 7671 7672 7673 test -n "$LN" && break 7674 done 7675 7676 else 7677 # If it succeeded, then it was overridden by the user. We will use it 7678 # for the tool. 7679 7680 # First remove it from the list of overridden variables, so we can test 7681 # for unknown variables in the end. 7682 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7683 7684 # Check if the provided tool contains a complete path. 7685 tool_specified="$LN" 7686 tool_basename="${tool_specified##*/}" 7687 if test "x$tool_basename" = "x$tool_specified"; then 7688 # A command without a complete path is provided, search $PATH. 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7690 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7691 # Extract the first word of "$tool_basename", so it can be a program name with args. 7692 set dummy $tool_basename; ac_word=$2 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7694 $as_echo_n "checking for $ac_word... " >&6; } 7695 if ${ac_cv_path_LN+:} false; then : 7696 $as_echo_n "(cached) " >&6 7697 else 7698 case $LN in 7699 [\\/]* | ?:[\\/]*) 7700 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7701 ;; 7702 *) 7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7704 for as_dir in $PATH 7705 do 7706 IFS=$as_save_IFS 7707 test -z "$as_dir" && as_dir=. 7708 for ac_exec_ext in '' $ac_executable_extensions; do 7709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7710 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7712 break 2 7713 fi 7714 done 7715 done 7716 IFS=$as_save_IFS 7717 7718 ;; 7719 esac 7720 fi 7721 LN=$ac_cv_path_LN 7722 if test -n "$LN"; then 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7724 $as_echo "$LN" >&6; } 7725 else 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7727 $as_echo "no" >&6; } 7728 fi 7729 7730 7731 if test "x$LN" = x; then 7732 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7733 fi 7734 else 7735 # Otherwise we believe it is a complete path. Use it as it is. 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7737 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7739 $as_echo_n "checking for LN... " >&6; } 7740 if test ! -x "$tool_specified"; then 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7742 $as_echo "not found" >&6; } 7743 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7744 fi 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7746 $as_echo "$tool_specified" >&6; } 7747 fi 7748 fi 7749 fi 7750 7751 7752 7753 if test "x$LN" = x; then 7754 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7755 fi 7756 7757 7758 7759 7760 7761 # Publish this variable in the help. 7762 7763 7764 if test "x$LS" = x; then 7765 # The variable is not set by user, try to locate tool using the code snippet 7766 for ac_prog in ls 7767 do 7768 # Extract the first word of "$ac_prog", so it can be a program name with args. 7769 set dummy $ac_prog; ac_word=$2 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7771 $as_echo_n "checking for $ac_word... " >&6; } 7772 if ${ac_cv_path_LS+:} false; then : 7773 $as_echo_n "(cached) " >&6 7774 else 7775 case $LS in 7776 [\\/]* | ?:[\\/]*) 7777 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7778 ;; 7779 *) 7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7781 for as_dir in $PATH 7782 do 7783 IFS=$as_save_IFS 7784 test -z "$as_dir" && as_dir=. 7785 for ac_exec_ext in '' $ac_executable_extensions; do 7786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7787 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7789 break 2 7790 fi 7791 done 7792 done 7793 IFS=$as_save_IFS 7794 7795 ;; 7796 esac 7797 fi 7798 LS=$ac_cv_path_LS 7799 if test -n "$LS"; then 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7801 $as_echo "$LS" >&6; } 7802 else 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7804 $as_echo "no" >&6; } 7805 fi 7806 7807 7808 test -n "$LS" && break 7809 done 7810 7811 else 7812 # The variable is set, but is it from the command line or the environment? 7813 7814 # Try to remove the string !LS! from our list. 7815 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7816 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7817 # If it failed, the variable was not from the command line. Ignore it, 7818 # but warn the user (except for BASH, which is always set by the calling BASH). 7819 if test "xLS" != xBASH; then 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7821 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7822 fi 7823 # Try to locate tool using the code snippet 7824 for ac_prog in ls 7825 do 7826 # Extract the first word of "$ac_prog", so it can be a program name with args. 7827 set dummy $ac_prog; ac_word=$2 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7829 $as_echo_n "checking for $ac_word... " >&6; } 7830 if ${ac_cv_path_LS+:} false; then : 7831 $as_echo_n "(cached) " >&6 7832 else 7833 case $LS in 7834 [\\/]* | ?:[\\/]*) 7835 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7836 ;; 7837 *) 7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7839 for as_dir in $PATH 7840 do 7841 IFS=$as_save_IFS 7842 test -z "$as_dir" && as_dir=. 7843 for ac_exec_ext in '' $ac_executable_extensions; do 7844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7845 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7847 break 2 7848 fi 7849 done 7850 done 7851 IFS=$as_save_IFS 7852 7853 ;; 7854 esac 7855 fi 7856 LS=$ac_cv_path_LS 7857 if test -n "$LS"; then 7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7859 $as_echo "$LS" >&6; } 7860 else 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7862 $as_echo "no" >&6; } 7863 fi 7864 7865 7866 test -n "$LS" && break 7867 done 7868 7869 else 7870 # If it succeeded, then it was overridden by the user. We will use it 7871 # for the tool. 7872 7873 # First remove it from the list of overridden variables, so we can test 7874 # for unknown variables in the end. 7875 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7876 7877 # Check if the provided tool contains a complete path. 7878 tool_specified="$LS" 7879 tool_basename="${tool_specified##*/}" 7880 if test "x$tool_basename" = "x$tool_specified"; then 7881 # A command without a complete path is provided, search $PATH. 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7883 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7884 # Extract the first word of "$tool_basename", so it can be a program name with args. 7885 set dummy $tool_basename; ac_word=$2 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7887 $as_echo_n "checking for $ac_word... " >&6; } 7888 if ${ac_cv_path_LS+:} false; then : 7889 $as_echo_n "(cached) " >&6 7890 else 7891 case $LS in 7892 [\\/]* | ?:[\\/]*) 7893 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7894 ;; 7895 *) 7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7897 for as_dir in $PATH 7898 do 7899 IFS=$as_save_IFS 7900 test -z "$as_dir" && as_dir=. 7901 for ac_exec_ext in '' $ac_executable_extensions; do 7902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7903 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7905 break 2 7906 fi 7907 done 7908 done 7909 IFS=$as_save_IFS 7910 7911 ;; 7912 esac 7913 fi 7914 LS=$ac_cv_path_LS 7915 if test -n "$LS"; then 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7917 $as_echo "$LS" >&6; } 7918 else 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7920 $as_echo "no" >&6; } 7921 fi 7922 7923 7924 if test "x$LS" = x; then 7925 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7926 fi 7927 else 7928 # Otherwise we believe it is a complete path. Use it as it is. 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7930 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7932 $as_echo_n "checking for LS... " >&6; } 7933 if test ! -x "$tool_specified"; then 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7935 $as_echo "not found" >&6; } 7936 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7937 fi 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7939 $as_echo "$tool_specified" >&6; } 7940 fi 7941 fi 7942 fi 7943 7944 7945 7946 if test "x$LS" = x; then 7947 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7948 fi 7949 7950 7951 7952 7953 7954 # Publish this variable in the help. 7955 7956 7957 if test "x$MKDIR" = x; then 7958 # The variable is not set by user, try to locate tool using the code snippet 7959 for ac_prog in mkdir 7960 do 7961 # Extract the first word of "$ac_prog", so it can be a program name with args. 7962 set dummy $ac_prog; ac_word=$2 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7964 $as_echo_n "checking for $ac_word... " >&6; } 7965 if ${ac_cv_path_MKDIR+:} false; then : 7966 $as_echo_n "(cached) " >&6 7967 else 7968 case $MKDIR in 7969 [\\/]* | ?:[\\/]*) 7970 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7971 ;; 7972 *) 7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7974 for as_dir in $PATH 7975 do 7976 IFS=$as_save_IFS 7977 test -z "$as_dir" && as_dir=. 7978 for ac_exec_ext in '' $ac_executable_extensions; do 7979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7980 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7982 break 2 7983 fi 7984 done 7985 done 7986 IFS=$as_save_IFS 7987 7988 ;; 7989 esac 7990 fi 7991 MKDIR=$ac_cv_path_MKDIR 7992 if test -n "$MKDIR"; then 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7994 $as_echo "$MKDIR" >&6; } 7995 else 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7997 $as_echo "no" >&6; } 7998 fi 7999 8000 8001 test -n "$MKDIR" && break 8002 done 8003 8004 else 8005 # The variable is set, but is it from the command line or the environment? 8006 8007 # Try to remove the string !MKDIR! from our list. 8008 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 8009 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8010 # If it failed, the variable was not from the command line. Ignore it, 8011 # but warn the user (except for BASH, which is always set by the calling BASH). 8012 if test "xMKDIR" != xBASH; then 8013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 8014 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 8015 fi 8016 # Try to locate tool using the code snippet 8017 for ac_prog in mkdir 8018 do 8019 # Extract the first word of "$ac_prog", so it can be a program name with args. 8020 set dummy $ac_prog; ac_word=$2 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8022 $as_echo_n "checking for $ac_word... " >&6; } 8023 if ${ac_cv_path_MKDIR+:} false; then : 8024 $as_echo_n "(cached) " >&6 8025 else 8026 case $MKDIR in 8027 [\\/]* | ?:[\\/]*) 8028 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8029 ;; 8030 *) 8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8032 for as_dir in $PATH 8033 do 8034 IFS=$as_save_IFS 8035 test -z "$as_dir" && as_dir=. 8036 for ac_exec_ext in '' $ac_executable_extensions; do 8037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8038 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8040 break 2 8041 fi 8042 done 8043 done 8044 IFS=$as_save_IFS 8045 8046 ;; 8047 esac 8048 fi 8049 MKDIR=$ac_cv_path_MKDIR 8050 if test -n "$MKDIR"; then 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8052 $as_echo "$MKDIR" >&6; } 8053 else 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8055 $as_echo "no" >&6; } 8056 fi 8057 8058 8059 test -n "$MKDIR" && break 8060 done 8061 8062 else 8063 # If it succeeded, then it was overridden by the user. We will use it 8064 # for the tool. 8065 8066 # First remove it from the list of overridden variables, so we can test 8067 # for unknown variables in the end. 8068 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8069 8070 # Check if the provided tool contains a complete path. 8071 tool_specified="$MKDIR" 8072 tool_basename="${tool_specified##*/}" 8073 if test "x$tool_basename" = "x$tool_specified"; then 8074 # A command without a complete path is provided, search $PATH. 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8076 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8077 # Extract the first word of "$tool_basename", so it can be a program name with args. 8078 set dummy $tool_basename; ac_word=$2 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8080 $as_echo_n "checking for $ac_word... " >&6; } 8081 if ${ac_cv_path_MKDIR+:} false; then : 8082 $as_echo_n "(cached) " >&6 8083 else 8084 case $MKDIR in 8085 [\\/]* | ?:[\\/]*) 8086 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8087 ;; 8088 *) 8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8090 for as_dir in $PATH 8091 do 8092 IFS=$as_save_IFS 8093 test -z "$as_dir" && as_dir=. 8094 for ac_exec_ext in '' $ac_executable_extensions; do 8095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8096 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8098 break 2 8099 fi 8100 done 8101 done 8102 IFS=$as_save_IFS 8103 8104 ;; 8105 esac 8106 fi 8107 MKDIR=$ac_cv_path_MKDIR 8108 if test -n "$MKDIR"; then 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8110 $as_echo "$MKDIR" >&6; } 8111 else 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8113 $as_echo "no" >&6; } 8114 fi 8115 8116 8117 if test "x$MKDIR" = x; then 8118 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8119 fi 8120 else 8121 # Otherwise we believe it is a complete path. Use it as it is. 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8123 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8125 $as_echo_n "checking for MKDIR... " >&6; } 8126 if test ! -x "$tool_specified"; then 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8128 $as_echo "not found" >&6; } 8129 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8130 fi 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8132 $as_echo "$tool_specified" >&6; } 8133 fi 8134 fi 8135 fi 8136 8137 8138 8139 if test "x$MKDIR" = x; then 8140 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8141 fi 8142 8143 8144 8145 8146 8147 # Publish this variable in the help. 8148 8149 8150 if test "x$MKTEMP" = x; then 8151 # The variable is not set by user, try to locate tool using the code snippet 8152 for ac_prog in mktemp 8153 do 8154 # Extract the first word of "$ac_prog", so it can be a program name with args. 8155 set dummy $ac_prog; ac_word=$2 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8157 $as_echo_n "checking for $ac_word... " >&6; } 8158 if ${ac_cv_path_MKTEMP+:} false; then : 8159 $as_echo_n "(cached) " >&6 8160 else 8161 case $MKTEMP in 8162 [\\/]* | ?:[\\/]*) 8163 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8164 ;; 8165 *) 8166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8167 for as_dir in $PATH 8168 do 8169 IFS=$as_save_IFS 8170 test -z "$as_dir" && as_dir=. 8171 for ac_exec_ext in '' $ac_executable_extensions; do 8172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8173 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8175 break 2 8176 fi 8177 done 8178 done 8179 IFS=$as_save_IFS 8180 8181 ;; 8182 esac 8183 fi 8184 MKTEMP=$ac_cv_path_MKTEMP 8185 if test -n "$MKTEMP"; then 8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8187 $as_echo "$MKTEMP" >&6; } 8188 else 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8190 $as_echo "no" >&6; } 8191 fi 8192 8193 8194 test -n "$MKTEMP" && break 8195 done 8196 8197 else 8198 # The variable is set, but is it from the command line or the environment? 8199 8200 # Try to remove the string !MKTEMP! from our list. 8201 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8202 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8203 # If it failed, the variable was not from the command line. Ignore it, 8204 # but warn the user (except for BASH, which is always set by the calling BASH). 8205 if test "xMKTEMP" != xBASH; then 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8207 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8208 fi 8209 # Try to locate tool using the code snippet 8210 for ac_prog in mktemp 8211 do 8212 # Extract the first word of "$ac_prog", so it can be a program name with args. 8213 set dummy $ac_prog; ac_word=$2 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8215 $as_echo_n "checking for $ac_word... " >&6; } 8216 if ${ac_cv_path_MKTEMP+:} false; then : 8217 $as_echo_n "(cached) " >&6 8218 else 8219 case $MKTEMP in 8220 [\\/]* | ?:[\\/]*) 8221 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8222 ;; 8223 *) 8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8225 for as_dir in $PATH 8226 do 8227 IFS=$as_save_IFS 8228 test -z "$as_dir" && as_dir=. 8229 for ac_exec_ext in '' $ac_executable_extensions; do 8230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8231 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8233 break 2 8234 fi 8235 done 8236 done 8237 IFS=$as_save_IFS 8238 8239 ;; 8240 esac 8241 fi 8242 MKTEMP=$ac_cv_path_MKTEMP 8243 if test -n "$MKTEMP"; then 8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8245 $as_echo "$MKTEMP" >&6; } 8246 else 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8248 $as_echo "no" >&6; } 8249 fi 8250 8251 8252 test -n "$MKTEMP" && break 8253 done 8254 8255 else 8256 # If it succeeded, then it was overridden by the user. We will use it 8257 # for the tool. 8258 8259 # First remove it from the list of overridden variables, so we can test 8260 # for unknown variables in the end. 8261 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8262 8263 # Check if the provided tool contains a complete path. 8264 tool_specified="$MKTEMP" 8265 tool_basename="${tool_specified##*/}" 8266 if test "x$tool_basename" = "x$tool_specified"; then 8267 # A command without a complete path is provided, search $PATH. 8268 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8269 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8270 # Extract the first word of "$tool_basename", so it can be a program name with args. 8271 set dummy $tool_basename; ac_word=$2 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8273 $as_echo_n "checking for $ac_word... " >&6; } 8274 if ${ac_cv_path_MKTEMP+:} false; then : 8275 $as_echo_n "(cached) " >&6 8276 else 8277 case $MKTEMP in 8278 [\\/]* | ?:[\\/]*) 8279 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8280 ;; 8281 *) 8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8283 for as_dir in $PATH 8284 do 8285 IFS=$as_save_IFS 8286 test -z "$as_dir" && as_dir=. 8287 for ac_exec_ext in '' $ac_executable_extensions; do 8288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8289 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8291 break 2 8292 fi 8293 done 8294 done 8295 IFS=$as_save_IFS 8296 8297 ;; 8298 esac 8299 fi 8300 MKTEMP=$ac_cv_path_MKTEMP 8301 if test -n "$MKTEMP"; then 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8303 $as_echo "$MKTEMP" >&6; } 8304 else 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8306 $as_echo "no" >&6; } 8307 fi 8308 8309 8310 if test "x$MKTEMP" = x; then 8311 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8312 fi 8313 else 8314 # Otherwise we believe it is a complete path. Use it as it is. 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8316 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8318 $as_echo_n "checking for MKTEMP... " >&6; } 8319 if test ! -x "$tool_specified"; then 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8321 $as_echo "not found" >&6; } 8322 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8323 fi 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8325 $as_echo "$tool_specified" >&6; } 8326 fi 8327 fi 8328 fi 8329 8330 8331 8332 if test "x$MKTEMP" = x; then 8333 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8334 fi 8335 8336 8337 8338 8339 8340 # Publish this variable in the help. 8341 8342 8343 if test "x$MV" = x; then 8344 # The variable is not set by user, try to locate tool using the code snippet 8345 for ac_prog in mv 8346 do 8347 # Extract the first word of "$ac_prog", so it can be a program name with args. 8348 set dummy $ac_prog; ac_word=$2 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8350 $as_echo_n "checking for $ac_word... " >&6; } 8351 if ${ac_cv_path_MV+:} false; then : 8352 $as_echo_n "(cached) " >&6 8353 else 8354 case $MV in 8355 [\\/]* | ?:[\\/]*) 8356 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8357 ;; 8358 *) 8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8360 for as_dir in $PATH 8361 do 8362 IFS=$as_save_IFS 8363 test -z "$as_dir" && as_dir=. 8364 for ac_exec_ext in '' $ac_executable_extensions; do 8365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8366 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8368 break 2 8369 fi 8370 done 8371 done 8372 IFS=$as_save_IFS 8373 8374 ;; 8375 esac 8376 fi 8377 MV=$ac_cv_path_MV 8378 if test -n "$MV"; then 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8380 $as_echo "$MV" >&6; } 8381 else 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8383 $as_echo "no" >&6; } 8384 fi 8385 8386 8387 test -n "$MV" && break 8388 done 8389 8390 else 8391 # The variable is set, but is it from the command line or the environment? 8392 8393 # Try to remove the string !MV! from our list. 8394 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8395 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8396 # If it failed, the variable was not from the command line. Ignore it, 8397 # but warn the user (except for BASH, which is always set by the calling BASH). 8398 if test "xMV" != xBASH; then 8399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8400 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8401 fi 8402 # Try to locate tool using the code snippet 8403 for ac_prog in mv 8404 do 8405 # Extract the first word of "$ac_prog", so it can be a program name with args. 8406 set dummy $ac_prog; ac_word=$2 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8408 $as_echo_n "checking for $ac_word... " >&6; } 8409 if ${ac_cv_path_MV+:} false; then : 8410 $as_echo_n "(cached) " >&6 8411 else 8412 case $MV in 8413 [\\/]* | ?:[\\/]*) 8414 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8415 ;; 8416 *) 8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8418 for as_dir in $PATH 8419 do 8420 IFS=$as_save_IFS 8421 test -z "$as_dir" && as_dir=. 8422 for ac_exec_ext in '' $ac_executable_extensions; do 8423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8424 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8426 break 2 8427 fi 8428 done 8429 done 8430 IFS=$as_save_IFS 8431 8432 ;; 8433 esac 8434 fi 8435 MV=$ac_cv_path_MV 8436 if test -n "$MV"; then 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8438 $as_echo "$MV" >&6; } 8439 else 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8441 $as_echo "no" >&6; } 8442 fi 8443 8444 8445 test -n "$MV" && break 8446 done 8447 8448 else 8449 # If it succeeded, then it was overridden by the user. We will use it 8450 # for the tool. 8451 8452 # First remove it from the list of overridden variables, so we can test 8453 # for unknown variables in the end. 8454 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8455 8456 # Check if the provided tool contains a complete path. 8457 tool_specified="$MV" 8458 tool_basename="${tool_specified##*/}" 8459 if test "x$tool_basename" = "x$tool_specified"; then 8460 # A command without a complete path is provided, search $PATH. 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8462 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8463 # Extract the first word of "$tool_basename", so it can be a program name with args. 8464 set dummy $tool_basename; ac_word=$2 8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8466 $as_echo_n "checking for $ac_word... " >&6; } 8467 if ${ac_cv_path_MV+:} false; then : 8468 $as_echo_n "(cached) " >&6 8469 else 8470 case $MV in 8471 [\\/]* | ?:[\\/]*) 8472 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8473 ;; 8474 *) 8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8476 for as_dir in $PATH 8477 do 8478 IFS=$as_save_IFS 8479 test -z "$as_dir" && as_dir=. 8480 for ac_exec_ext in '' $ac_executable_extensions; do 8481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8482 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8484 break 2 8485 fi 8486 done 8487 done 8488 IFS=$as_save_IFS 8489 8490 ;; 8491 esac 8492 fi 8493 MV=$ac_cv_path_MV 8494 if test -n "$MV"; then 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8496 $as_echo "$MV" >&6; } 8497 else 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8499 $as_echo "no" >&6; } 8500 fi 8501 8502 8503 if test "x$MV" = x; then 8504 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8505 fi 8506 else 8507 # Otherwise we believe it is a complete path. Use it as it is. 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8509 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8511 $as_echo_n "checking for MV... " >&6; } 8512 if test ! -x "$tool_specified"; then 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8514 $as_echo "not found" >&6; } 8515 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8516 fi 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8518 $as_echo "$tool_specified" >&6; } 8519 fi 8520 fi 8521 fi 8522 8523 8524 8525 if test "x$MV" = x; then 8526 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8527 fi 8528 8529 8530 8531 8532 8533 # Publish this variable in the help. 8534 8535 8536 if test "x$NAWK" = x; then 8537 # The variable is not set by user, try to locate tool using the code snippet 8538 for ac_prog in nawk gawk awk 8539 do 8540 # Extract the first word of "$ac_prog", so it can be a program name with args. 8541 set dummy $ac_prog; ac_word=$2 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8543 $as_echo_n "checking for $ac_word... " >&6; } 8544 if ${ac_cv_path_NAWK+:} false; then : 8545 $as_echo_n "(cached) " >&6 8546 else 8547 case $NAWK in 8548 [\\/]* | ?:[\\/]*) 8549 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8550 ;; 8551 *) 8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8553 for as_dir in $PATH 8554 do 8555 IFS=$as_save_IFS 8556 test -z "$as_dir" && as_dir=. 8557 for ac_exec_ext in '' $ac_executable_extensions; do 8558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8559 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8561 break 2 8562 fi 8563 done 8564 done 8565 IFS=$as_save_IFS 8566 8567 ;; 8568 esac 8569 fi 8570 NAWK=$ac_cv_path_NAWK 8571 if test -n "$NAWK"; then 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8573 $as_echo "$NAWK" >&6; } 8574 else 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8576 $as_echo "no" >&6; } 8577 fi 8578 8579 8580 test -n "$NAWK" && break 8581 done 8582 8583 else 8584 # The variable is set, but is it from the command line or the environment? 8585 8586 # Try to remove the string !NAWK! from our list. 8587 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8588 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8589 # If it failed, the variable was not from the command line. Ignore it, 8590 # but warn the user (except for BASH, which is always set by the calling BASH). 8591 if test "xNAWK" != xBASH; then 8592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8593 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8594 fi 8595 # Try to locate tool using the code snippet 8596 for ac_prog in nawk gawk awk 8597 do 8598 # Extract the first word of "$ac_prog", so it can be a program name with args. 8599 set dummy $ac_prog; ac_word=$2 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8601 $as_echo_n "checking for $ac_word... " >&6; } 8602 if ${ac_cv_path_NAWK+:} false; then : 8603 $as_echo_n "(cached) " >&6 8604 else 8605 case $NAWK in 8606 [\\/]* | ?:[\\/]*) 8607 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8608 ;; 8609 *) 8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8611 for as_dir in $PATH 8612 do 8613 IFS=$as_save_IFS 8614 test -z "$as_dir" && as_dir=. 8615 for ac_exec_ext in '' $ac_executable_extensions; do 8616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8617 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8619 break 2 8620 fi 8621 done 8622 done 8623 IFS=$as_save_IFS 8624 8625 ;; 8626 esac 8627 fi 8628 NAWK=$ac_cv_path_NAWK 8629 if test -n "$NAWK"; then 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8631 $as_echo "$NAWK" >&6; } 8632 else 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8634 $as_echo "no" >&6; } 8635 fi 8636 8637 8638 test -n "$NAWK" && break 8639 done 8640 8641 else 8642 # If it succeeded, then it was overridden by the user. We will use it 8643 # for the tool. 8644 8645 # First remove it from the list of overridden variables, so we can test 8646 # for unknown variables in the end. 8647 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8648 8649 # Check if the provided tool contains a complete path. 8650 tool_specified="$NAWK" 8651 tool_basename="${tool_specified##*/}" 8652 if test "x$tool_basename" = "x$tool_specified"; then 8653 # A command without a complete path is provided, search $PATH. 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8655 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8656 # Extract the first word of "$tool_basename", so it can be a program name with args. 8657 set dummy $tool_basename; ac_word=$2 8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8659 $as_echo_n "checking for $ac_word... " >&6; } 8660 if ${ac_cv_path_NAWK+:} false; then : 8661 $as_echo_n "(cached) " >&6 8662 else 8663 case $NAWK in 8664 [\\/]* | ?:[\\/]*) 8665 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8666 ;; 8667 *) 8668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8669 for as_dir in $PATH 8670 do 8671 IFS=$as_save_IFS 8672 test -z "$as_dir" && as_dir=. 8673 for ac_exec_ext in '' $ac_executable_extensions; do 8674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8675 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8677 break 2 8678 fi 8679 done 8680 done 8681 IFS=$as_save_IFS 8682 8683 ;; 8684 esac 8685 fi 8686 NAWK=$ac_cv_path_NAWK 8687 if test -n "$NAWK"; then 8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8689 $as_echo "$NAWK" >&6; } 8690 else 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8692 $as_echo "no" >&6; } 8693 fi 8694 8695 8696 if test "x$NAWK" = x; then 8697 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8698 fi 8699 else 8700 # Otherwise we believe it is a complete path. Use it as it is. 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8702 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8704 $as_echo_n "checking for NAWK... " >&6; } 8705 if test ! -x "$tool_specified"; then 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8707 $as_echo "not found" >&6; } 8708 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8709 fi 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8711 $as_echo "$tool_specified" >&6; } 8712 fi 8713 fi 8714 fi 8715 8716 8717 8718 if test "x$NAWK" = x; then 8719 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8720 fi 8721 8722 8723 8724 8725 8726 # Publish this variable in the help. 8727 8728 8729 if test "x$PRINTF" = x; then 8730 # The variable is not set by user, try to locate tool using the code snippet 8731 for ac_prog in printf 8732 do 8733 # Extract the first word of "$ac_prog", so it can be a program name with args. 8734 set dummy $ac_prog; ac_word=$2 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8736 $as_echo_n "checking for $ac_word... " >&6; } 8737 if ${ac_cv_path_PRINTF+:} false; then : 8738 $as_echo_n "(cached) " >&6 8739 else 8740 case $PRINTF in 8741 [\\/]* | ?:[\\/]*) 8742 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8743 ;; 8744 *) 8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8746 for as_dir in $PATH 8747 do 8748 IFS=$as_save_IFS 8749 test -z "$as_dir" && as_dir=. 8750 for ac_exec_ext in '' $ac_executable_extensions; do 8751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8752 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8754 break 2 8755 fi 8756 done 8757 done 8758 IFS=$as_save_IFS 8759 8760 ;; 8761 esac 8762 fi 8763 PRINTF=$ac_cv_path_PRINTF 8764 if test -n "$PRINTF"; then 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8766 $as_echo "$PRINTF" >&6; } 8767 else 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8769 $as_echo "no" >&6; } 8770 fi 8771 8772 8773 test -n "$PRINTF" && break 8774 done 8775 8776 else 8777 # The variable is set, but is it from the command line or the environment? 8778 8779 # Try to remove the string !PRINTF! from our list. 8780 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8781 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8782 # If it failed, the variable was not from the command line. Ignore it, 8783 # but warn the user (except for BASH, which is always set by the calling BASH). 8784 if test "xPRINTF" != xBASH; then 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8786 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8787 fi 8788 # Try to locate tool using the code snippet 8789 for ac_prog in printf 8790 do 8791 # Extract the first word of "$ac_prog", so it can be a program name with args. 8792 set dummy $ac_prog; ac_word=$2 8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8794 $as_echo_n "checking for $ac_word... " >&6; } 8795 if ${ac_cv_path_PRINTF+:} false; then : 8796 $as_echo_n "(cached) " >&6 8797 else 8798 case $PRINTF in 8799 [\\/]* | ?:[\\/]*) 8800 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8801 ;; 8802 *) 8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8804 for as_dir in $PATH 8805 do 8806 IFS=$as_save_IFS 8807 test -z "$as_dir" && as_dir=. 8808 for ac_exec_ext in '' $ac_executable_extensions; do 8809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8810 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8812 break 2 8813 fi 8814 done 8815 done 8816 IFS=$as_save_IFS 8817 8818 ;; 8819 esac 8820 fi 8821 PRINTF=$ac_cv_path_PRINTF 8822 if test -n "$PRINTF"; then 8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8824 $as_echo "$PRINTF" >&6; } 8825 else 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8827 $as_echo "no" >&6; } 8828 fi 8829 8830 8831 test -n "$PRINTF" && break 8832 done 8833 8834 else 8835 # If it succeeded, then it was overridden by the user. We will use it 8836 # for the tool. 8837 8838 # First remove it from the list of overridden variables, so we can test 8839 # for unknown variables in the end. 8840 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8841 8842 # Check if the provided tool contains a complete path. 8843 tool_specified="$PRINTF" 8844 tool_basename="${tool_specified##*/}" 8845 if test "x$tool_basename" = "x$tool_specified"; then 8846 # A command without a complete path is provided, search $PATH. 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8848 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8849 # Extract the first word of "$tool_basename", so it can be a program name with args. 8850 set dummy $tool_basename; ac_word=$2 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8852 $as_echo_n "checking for $ac_word... " >&6; } 8853 if ${ac_cv_path_PRINTF+:} false; then : 8854 $as_echo_n "(cached) " >&6 8855 else 8856 case $PRINTF in 8857 [\\/]* | ?:[\\/]*) 8858 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8859 ;; 8860 *) 8861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8862 for as_dir in $PATH 8863 do 8864 IFS=$as_save_IFS 8865 test -z "$as_dir" && as_dir=. 8866 for ac_exec_ext in '' $ac_executable_extensions; do 8867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8868 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8870 break 2 8871 fi 8872 done 8873 done 8874 IFS=$as_save_IFS 8875 8876 ;; 8877 esac 8878 fi 8879 PRINTF=$ac_cv_path_PRINTF 8880 if test -n "$PRINTF"; then 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8882 $as_echo "$PRINTF" >&6; } 8883 else 8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8885 $as_echo "no" >&6; } 8886 fi 8887 8888 8889 if test "x$PRINTF" = x; then 8890 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8891 fi 8892 else 8893 # Otherwise we believe it is a complete path. Use it as it is. 8894 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8895 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8897 $as_echo_n "checking for PRINTF... " >&6; } 8898 if test ! -x "$tool_specified"; then 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8900 $as_echo "not found" >&6; } 8901 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8902 fi 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8904 $as_echo "$tool_specified" >&6; } 8905 fi 8906 fi 8907 fi 8908 8909 8910 8911 if test "x$PRINTF" = x; then 8912 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8913 fi 8914 8915 8916 8917 8918 8919 # Publish this variable in the help. 8920 8921 8922 if test "x$RM" = x; then 8923 # The variable is not set by user, try to locate tool using the code snippet 8924 for ac_prog in rm 8925 do 8926 # Extract the first word of "$ac_prog", so it can be a program name with args. 8927 set dummy $ac_prog; ac_word=$2 8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8929 $as_echo_n "checking for $ac_word... " >&6; } 8930 if ${ac_cv_path_RM+:} false; then : 8931 $as_echo_n "(cached) " >&6 8932 else 8933 case $RM in 8934 [\\/]* | ?:[\\/]*) 8935 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8936 ;; 8937 *) 8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8939 for as_dir in $PATH 8940 do 8941 IFS=$as_save_IFS 8942 test -z "$as_dir" && as_dir=. 8943 for ac_exec_ext in '' $ac_executable_extensions; do 8944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8945 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8947 break 2 8948 fi 8949 done 8950 done 8951 IFS=$as_save_IFS 8952 8953 ;; 8954 esac 8955 fi 8956 RM=$ac_cv_path_RM 8957 if test -n "$RM"; then 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8959 $as_echo "$RM" >&6; } 8960 else 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8962 $as_echo "no" >&6; } 8963 fi 8964 8965 8966 test -n "$RM" && break 8967 done 8968 8969 else 8970 # The variable is set, but is it from the command line or the environment? 8971 8972 # Try to remove the string !RM! from our list. 8973 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8974 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8975 # If it failed, the variable was not from the command line. Ignore it, 8976 # but warn the user (except for BASH, which is always set by the calling BASH). 8977 if test "xRM" != xBASH; then 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8979 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8980 fi 8981 # Try to locate tool using the code snippet 8982 for ac_prog in rm 8983 do 8984 # Extract the first word of "$ac_prog", so it can be a program name with args. 8985 set dummy $ac_prog; ac_word=$2 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8987 $as_echo_n "checking for $ac_word... " >&6; } 8988 if ${ac_cv_path_RM+:} false; then : 8989 $as_echo_n "(cached) " >&6 8990 else 8991 case $RM in 8992 [\\/]* | ?:[\\/]*) 8993 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8994 ;; 8995 *) 8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8997 for as_dir in $PATH 8998 do 8999 IFS=$as_save_IFS 9000 test -z "$as_dir" && as_dir=. 9001 for ac_exec_ext in '' $ac_executable_extensions; do 9002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9003 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9005 break 2 9006 fi 9007 done 9008 done 9009 IFS=$as_save_IFS 9010 9011 ;; 9012 esac 9013 fi 9014 RM=$ac_cv_path_RM 9015 if test -n "$RM"; then 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9017 $as_echo "$RM" >&6; } 9018 else 9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9020 $as_echo "no" >&6; } 9021 fi 9022 9023 9024 test -n "$RM" && break 9025 done 9026 9027 else 9028 # If it succeeded, then it was overridden by the user. We will use it 9029 # for the tool. 9030 9031 # First remove it from the list of overridden variables, so we can test 9032 # for unknown variables in the end. 9033 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9034 9035 # Check if the provided tool contains a complete path. 9036 tool_specified="$RM" 9037 tool_basename="${tool_specified##*/}" 9038 if test "x$tool_basename" = "x$tool_specified"; then 9039 # A command without a complete path is provided, search $PATH. 9040 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9041 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9042 # Extract the first word of "$tool_basename", so it can be a program name with args. 9043 set dummy $tool_basename; ac_word=$2 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9045 $as_echo_n "checking for $ac_word... " >&6; } 9046 if ${ac_cv_path_RM+:} false; then : 9047 $as_echo_n "(cached) " >&6 9048 else 9049 case $RM in 9050 [\\/]* | ?:[\\/]*) 9051 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9052 ;; 9053 *) 9054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9055 for as_dir in $PATH 9056 do 9057 IFS=$as_save_IFS 9058 test -z "$as_dir" && as_dir=. 9059 for ac_exec_ext in '' $ac_executable_extensions; do 9060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9061 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9063 break 2 9064 fi 9065 done 9066 done 9067 IFS=$as_save_IFS 9068 9069 ;; 9070 esac 9071 fi 9072 RM=$ac_cv_path_RM 9073 if test -n "$RM"; then 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9075 $as_echo "$RM" >&6; } 9076 else 9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9078 $as_echo "no" >&6; } 9079 fi 9080 9081 9082 if test "x$RM" = x; then 9083 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9084 fi 9085 else 9086 # Otherwise we believe it is a complete path. Use it as it is. 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9088 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9090 $as_echo_n "checking for RM... " >&6; } 9091 if test ! -x "$tool_specified"; then 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9093 $as_echo "not found" >&6; } 9094 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9095 fi 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9097 $as_echo "$tool_specified" >&6; } 9098 fi 9099 fi 9100 fi 9101 9102 9103 9104 if test "x$RM" = x; then 9105 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9106 fi 9107 9108 9109 9110 9111 9112 # Publish this variable in the help. 9113 9114 9115 if test "x$SH" = x; then 9116 # The variable is not set by user, try to locate tool using the code snippet 9117 for ac_prog in sh 9118 do 9119 # Extract the first word of "$ac_prog", so it can be a program name with args. 9120 set dummy $ac_prog; ac_word=$2 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9122 $as_echo_n "checking for $ac_word... " >&6; } 9123 if ${ac_cv_path_SH+:} false; then : 9124 $as_echo_n "(cached) " >&6 9125 else 9126 case $SH in 9127 [\\/]* | ?:[\\/]*) 9128 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9129 ;; 9130 *) 9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9132 for as_dir in $PATH 9133 do 9134 IFS=$as_save_IFS 9135 test -z "$as_dir" && as_dir=. 9136 for ac_exec_ext in '' $ac_executable_extensions; do 9137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9138 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9140 break 2 9141 fi 9142 done 9143 done 9144 IFS=$as_save_IFS 9145 9146 ;; 9147 esac 9148 fi 9149 SH=$ac_cv_path_SH 9150 if test -n "$SH"; then 9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9152 $as_echo "$SH" >&6; } 9153 else 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9155 $as_echo "no" >&6; } 9156 fi 9157 9158 9159 test -n "$SH" && break 9160 done 9161 9162 else 9163 # The variable is set, but is it from the command line or the environment? 9164 9165 # Try to remove the string !SH! from our list. 9166 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9167 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9168 # If it failed, the variable was not from the command line. Ignore it, 9169 # but warn the user (except for BASH, which is always set by the calling BASH). 9170 if test "xSH" != xBASH; then 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9172 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9173 fi 9174 # Try to locate tool using the code snippet 9175 for ac_prog in sh 9176 do 9177 # Extract the first word of "$ac_prog", so it can be a program name with args. 9178 set dummy $ac_prog; ac_word=$2 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9180 $as_echo_n "checking for $ac_word... " >&6; } 9181 if ${ac_cv_path_SH+:} false; then : 9182 $as_echo_n "(cached) " >&6 9183 else 9184 case $SH in 9185 [\\/]* | ?:[\\/]*) 9186 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9187 ;; 9188 *) 9189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9190 for as_dir in $PATH 9191 do 9192 IFS=$as_save_IFS 9193 test -z "$as_dir" && as_dir=. 9194 for ac_exec_ext in '' $ac_executable_extensions; do 9195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9196 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9198 break 2 9199 fi 9200 done 9201 done 9202 IFS=$as_save_IFS 9203 9204 ;; 9205 esac 9206 fi 9207 SH=$ac_cv_path_SH 9208 if test -n "$SH"; then 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9210 $as_echo "$SH" >&6; } 9211 else 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9213 $as_echo "no" >&6; } 9214 fi 9215 9216 9217 test -n "$SH" && break 9218 done 9219 9220 else 9221 # If it succeeded, then it was overridden by the user. We will use it 9222 # for the tool. 9223 9224 # First remove it from the list of overridden variables, so we can test 9225 # for unknown variables in the end. 9226 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9227 9228 # Check if the provided tool contains a complete path. 9229 tool_specified="$SH" 9230 tool_basename="${tool_specified##*/}" 9231 if test "x$tool_basename" = "x$tool_specified"; then 9232 # A command without a complete path is provided, search $PATH. 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9234 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9235 # Extract the first word of "$tool_basename", so it can be a program name with args. 9236 set dummy $tool_basename; ac_word=$2 9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9238 $as_echo_n "checking for $ac_word... " >&6; } 9239 if ${ac_cv_path_SH+:} false; then : 9240 $as_echo_n "(cached) " >&6 9241 else 9242 case $SH in 9243 [\\/]* | ?:[\\/]*) 9244 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9245 ;; 9246 *) 9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9248 for as_dir in $PATH 9249 do 9250 IFS=$as_save_IFS 9251 test -z "$as_dir" && as_dir=. 9252 for ac_exec_ext in '' $ac_executable_extensions; do 9253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9254 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9256 break 2 9257 fi 9258 done 9259 done 9260 IFS=$as_save_IFS 9261 9262 ;; 9263 esac 9264 fi 9265 SH=$ac_cv_path_SH 9266 if test -n "$SH"; then 9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9268 $as_echo "$SH" >&6; } 9269 else 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9271 $as_echo "no" >&6; } 9272 fi 9273 9274 9275 if test "x$SH" = x; then 9276 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9277 fi 9278 else 9279 # Otherwise we believe it is a complete path. Use it as it is. 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9281 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9283 $as_echo_n "checking for SH... " >&6; } 9284 if test ! -x "$tool_specified"; then 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9286 $as_echo "not found" >&6; } 9287 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9288 fi 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9290 $as_echo "$tool_specified" >&6; } 9291 fi 9292 fi 9293 fi 9294 9295 9296 9297 if test "x$SH" = x; then 9298 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9299 fi 9300 9301 9302 9303 9304 9305 # Publish this variable in the help. 9306 9307 9308 if test "x$SORT" = x; then 9309 # The variable is not set by user, try to locate tool using the code snippet 9310 for ac_prog in sort 9311 do 9312 # Extract the first word of "$ac_prog", so it can be a program name with args. 9313 set dummy $ac_prog; ac_word=$2 9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9315 $as_echo_n "checking for $ac_word... " >&6; } 9316 if ${ac_cv_path_SORT+:} false; then : 9317 $as_echo_n "(cached) " >&6 9318 else 9319 case $SORT in 9320 [\\/]* | ?:[\\/]*) 9321 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9322 ;; 9323 *) 9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9325 for as_dir in $PATH 9326 do 9327 IFS=$as_save_IFS 9328 test -z "$as_dir" && as_dir=. 9329 for ac_exec_ext in '' $ac_executable_extensions; do 9330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9331 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9333 break 2 9334 fi 9335 done 9336 done 9337 IFS=$as_save_IFS 9338 9339 ;; 9340 esac 9341 fi 9342 SORT=$ac_cv_path_SORT 9343 if test -n "$SORT"; then 9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9345 $as_echo "$SORT" >&6; } 9346 else 9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9348 $as_echo "no" >&6; } 9349 fi 9350 9351 9352 test -n "$SORT" && break 9353 done 9354 9355 else 9356 # The variable is set, but is it from the command line or the environment? 9357 9358 # Try to remove the string !SORT! from our list. 9359 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9360 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9361 # If it failed, the variable was not from the command line. Ignore it, 9362 # but warn the user (except for BASH, which is always set by the calling BASH). 9363 if test "xSORT" != xBASH; then 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9365 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9366 fi 9367 # Try to locate tool using the code snippet 9368 for ac_prog in sort 9369 do 9370 # Extract the first word of "$ac_prog", so it can be a program name with args. 9371 set dummy $ac_prog; ac_word=$2 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9373 $as_echo_n "checking for $ac_word... " >&6; } 9374 if ${ac_cv_path_SORT+:} false; then : 9375 $as_echo_n "(cached) " >&6 9376 else 9377 case $SORT in 9378 [\\/]* | ?:[\\/]*) 9379 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9380 ;; 9381 *) 9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9383 for as_dir in $PATH 9384 do 9385 IFS=$as_save_IFS 9386 test -z "$as_dir" && as_dir=. 9387 for ac_exec_ext in '' $ac_executable_extensions; do 9388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9389 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9391 break 2 9392 fi 9393 done 9394 done 9395 IFS=$as_save_IFS 9396 9397 ;; 9398 esac 9399 fi 9400 SORT=$ac_cv_path_SORT 9401 if test -n "$SORT"; then 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9403 $as_echo "$SORT" >&6; } 9404 else 9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9406 $as_echo "no" >&6; } 9407 fi 9408 9409 9410 test -n "$SORT" && break 9411 done 9412 9413 else 9414 # If it succeeded, then it was overridden by the user. We will use it 9415 # for the tool. 9416 9417 # First remove it from the list of overridden variables, so we can test 9418 # for unknown variables in the end. 9419 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9420 9421 # Check if the provided tool contains a complete path. 9422 tool_specified="$SORT" 9423 tool_basename="${tool_specified##*/}" 9424 if test "x$tool_basename" = "x$tool_specified"; then 9425 # A command without a complete path is provided, search $PATH. 9426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9427 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9428 # Extract the first word of "$tool_basename", so it can be a program name with args. 9429 set dummy $tool_basename; ac_word=$2 9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9431 $as_echo_n "checking for $ac_word... " >&6; } 9432 if ${ac_cv_path_SORT+:} false; then : 9433 $as_echo_n "(cached) " >&6 9434 else 9435 case $SORT in 9436 [\\/]* | ?:[\\/]*) 9437 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9438 ;; 9439 *) 9440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9441 for as_dir in $PATH 9442 do 9443 IFS=$as_save_IFS 9444 test -z "$as_dir" && as_dir=. 9445 for ac_exec_ext in '' $ac_executable_extensions; do 9446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9447 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9449 break 2 9450 fi 9451 done 9452 done 9453 IFS=$as_save_IFS 9454 9455 ;; 9456 esac 9457 fi 9458 SORT=$ac_cv_path_SORT 9459 if test -n "$SORT"; then 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9461 $as_echo "$SORT" >&6; } 9462 else 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9464 $as_echo "no" >&6; } 9465 fi 9466 9467 9468 if test "x$SORT" = x; then 9469 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9470 fi 9471 else 9472 # Otherwise we believe it is a complete path. Use it as it is. 9473 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9474 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9476 $as_echo_n "checking for SORT... " >&6; } 9477 if test ! -x "$tool_specified"; then 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9479 $as_echo "not found" >&6; } 9480 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9481 fi 9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9483 $as_echo "$tool_specified" >&6; } 9484 fi 9485 fi 9486 fi 9487 9488 9489 9490 if test "x$SORT" = x; then 9491 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9492 fi 9493 9494 9495 9496 9497 9498 # Publish this variable in the help. 9499 9500 9501 if test "x$TAIL" = x; then 9502 # The variable is not set by user, try to locate tool using the code snippet 9503 for ac_prog in tail 9504 do 9505 # Extract the first word of "$ac_prog", so it can be a program name with args. 9506 set dummy $ac_prog; ac_word=$2 9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9508 $as_echo_n "checking for $ac_word... " >&6; } 9509 if ${ac_cv_path_TAIL+:} false; then : 9510 $as_echo_n "(cached) " >&6 9511 else 9512 case $TAIL in 9513 [\\/]* | ?:[\\/]*) 9514 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9515 ;; 9516 *) 9517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9518 for as_dir in $PATH 9519 do 9520 IFS=$as_save_IFS 9521 test -z "$as_dir" && as_dir=. 9522 for ac_exec_ext in '' $ac_executable_extensions; do 9523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9524 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9526 break 2 9527 fi 9528 done 9529 done 9530 IFS=$as_save_IFS 9531 9532 ;; 9533 esac 9534 fi 9535 TAIL=$ac_cv_path_TAIL 9536 if test -n "$TAIL"; then 9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9538 $as_echo "$TAIL" >&6; } 9539 else 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9541 $as_echo "no" >&6; } 9542 fi 9543 9544 9545 test -n "$TAIL" && break 9546 done 9547 9548 else 9549 # The variable is set, but is it from the command line or the environment? 9550 9551 # Try to remove the string !TAIL! from our list. 9552 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9553 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9554 # If it failed, the variable was not from the command line. Ignore it, 9555 # but warn the user (except for BASH, which is always set by the calling BASH). 9556 if test "xTAIL" != xBASH; then 9557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9558 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9559 fi 9560 # Try to locate tool using the code snippet 9561 for ac_prog in tail 9562 do 9563 # Extract the first word of "$ac_prog", so it can be a program name with args. 9564 set dummy $ac_prog; ac_word=$2 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9566 $as_echo_n "checking for $ac_word... " >&6; } 9567 if ${ac_cv_path_TAIL+:} false; then : 9568 $as_echo_n "(cached) " >&6 9569 else 9570 case $TAIL in 9571 [\\/]* | ?:[\\/]*) 9572 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9573 ;; 9574 *) 9575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9576 for as_dir in $PATH 9577 do 9578 IFS=$as_save_IFS 9579 test -z "$as_dir" && as_dir=. 9580 for ac_exec_ext in '' $ac_executable_extensions; do 9581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9582 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9584 break 2 9585 fi 9586 done 9587 done 9588 IFS=$as_save_IFS 9589 9590 ;; 9591 esac 9592 fi 9593 TAIL=$ac_cv_path_TAIL 9594 if test -n "$TAIL"; then 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9596 $as_echo "$TAIL" >&6; } 9597 else 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9599 $as_echo "no" >&6; } 9600 fi 9601 9602 9603 test -n "$TAIL" && break 9604 done 9605 9606 else 9607 # If it succeeded, then it was overridden by the user. We will use it 9608 # for the tool. 9609 9610 # First remove it from the list of overridden variables, so we can test 9611 # for unknown variables in the end. 9612 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9613 9614 # Check if the provided tool contains a complete path. 9615 tool_specified="$TAIL" 9616 tool_basename="${tool_specified##*/}" 9617 if test "x$tool_basename" = "x$tool_specified"; then 9618 # A command without a complete path is provided, search $PATH. 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9620 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9621 # Extract the first word of "$tool_basename", so it can be a program name with args. 9622 set dummy $tool_basename; ac_word=$2 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9624 $as_echo_n "checking for $ac_word... " >&6; } 9625 if ${ac_cv_path_TAIL+:} false; then : 9626 $as_echo_n "(cached) " >&6 9627 else 9628 case $TAIL in 9629 [\\/]* | ?:[\\/]*) 9630 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9631 ;; 9632 *) 9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9634 for as_dir in $PATH 9635 do 9636 IFS=$as_save_IFS 9637 test -z "$as_dir" && as_dir=. 9638 for ac_exec_ext in '' $ac_executable_extensions; do 9639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9640 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9642 break 2 9643 fi 9644 done 9645 done 9646 IFS=$as_save_IFS 9647 9648 ;; 9649 esac 9650 fi 9651 TAIL=$ac_cv_path_TAIL 9652 if test -n "$TAIL"; then 9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9654 $as_echo "$TAIL" >&6; } 9655 else 9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9657 $as_echo "no" >&6; } 9658 fi 9659 9660 9661 if test "x$TAIL" = x; then 9662 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9663 fi 9664 else 9665 # Otherwise we believe it is a complete path. Use it as it is. 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9667 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9669 $as_echo_n "checking for TAIL... " >&6; } 9670 if test ! -x "$tool_specified"; then 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9672 $as_echo "not found" >&6; } 9673 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9674 fi 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9676 $as_echo "$tool_specified" >&6; } 9677 fi 9678 fi 9679 fi 9680 9681 9682 9683 if test "x$TAIL" = x; then 9684 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9685 fi 9686 9687 9688 9689 9690 9691 # Publish this variable in the help. 9692 9693 9694 if test "x$TAR" = x; then 9695 # The variable is not set by user, try to locate tool using the code snippet 9696 for ac_prog in tar 9697 do 9698 # Extract the first word of "$ac_prog", so it can be a program name with args. 9699 set dummy $ac_prog; ac_word=$2 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9701 $as_echo_n "checking for $ac_word... " >&6; } 9702 if ${ac_cv_path_TAR+:} false; then : 9703 $as_echo_n "(cached) " >&6 9704 else 9705 case $TAR in 9706 [\\/]* | ?:[\\/]*) 9707 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9708 ;; 9709 *) 9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9711 for as_dir in $PATH 9712 do 9713 IFS=$as_save_IFS 9714 test -z "$as_dir" && as_dir=. 9715 for ac_exec_ext in '' $ac_executable_extensions; do 9716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9717 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9719 break 2 9720 fi 9721 done 9722 done 9723 IFS=$as_save_IFS 9724 9725 ;; 9726 esac 9727 fi 9728 TAR=$ac_cv_path_TAR 9729 if test -n "$TAR"; then 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9731 $as_echo "$TAR" >&6; } 9732 else 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9734 $as_echo "no" >&6; } 9735 fi 9736 9737 9738 test -n "$TAR" && break 9739 done 9740 9741 else 9742 # The variable is set, but is it from the command line or the environment? 9743 9744 # Try to remove the string !TAR! from our list. 9745 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9746 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9747 # If it failed, the variable was not from the command line. Ignore it, 9748 # but warn the user (except for BASH, which is always set by the calling BASH). 9749 if test "xTAR" != xBASH; then 9750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9751 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9752 fi 9753 # Try to locate tool using the code snippet 9754 for ac_prog in tar 9755 do 9756 # Extract the first word of "$ac_prog", so it can be a program name with args. 9757 set dummy $ac_prog; ac_word=$2 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9759 $as_echo_n "checking for $ac_word... " >&6; } 9760 if ${ac_cv_path_TAR+:} false; then : 9761 $as_echo_n "(cached) " >&6 9762 else 9763 case $TAR in 9764 [\\/]* | ?:[\\/]*) 9765 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9766 ;; 9767 *) 9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9769 for as_dir in $PATH 9770 do 9771 IFS=$as_save_IFS 9772 test -z "$as_dir" && as_dir=. 9773 for ac_exec_ext in '' $ac_executable_extensions; do 9774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9775 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9777 break 2 9778 fi 9779 done 9780 done 9781 IFS=$as_save_IFS 9782 9783 ;; 9784 esac 9785 fi 9786 TAR=$ac_cv_path_TAR 9787 if test -n "$TAR"; then 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9789 $as_echo "$TAR" >&6; } 9790 else 9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9792 $as_echo "no" >&6; } 9793 fi 9794 9795 9796 test -n "$TAR" && break 9797 done 9798 9799 else 9800 # If it succeeded, then it was overridden by the user. We will use it 9801 # for the tool. 9802 9803 # First remove it from the list of overridden variables, so we can test 9804 # for unknown variables in the end. 9805 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9806 9807 # Check if the provided tool contains a complete path. 9808 tool_specified="$TAR" 9809 tool_basename="${tool_specified##*/}" 9810 if test "x$tool_basename" = "x$tool_specified"; then 9811 # A command without a complete path is provided, search $PATH. 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9813 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9814 # Extract the first word of "$tool_basename", so it can be a program name with args. 9815 set dummy $tool_basename; ac_word=$2 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9817 $as_echo_n "checking for $ac_word... " >&6; } 9818 if ${ac_cv_path_TAR+:} false; then : 9819 $as_echo_n "(cached) " >&6 9820 else 9821 case $TAR in 9822 [\\/]* | ?:[\\/]*) 9823 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9824 ;; 9825 *) 9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9827 for as_dir in $PATH 9828 do 9829 IFS=$as_save_IFS 9830 test -z "$as_dir" && as_dir=. 9831 for ac_exec_ext in '' $ac_executable_extensions; do 9832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9833 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9835 break 2 9836 fi 9837 done 9838 done 9839 IFS=$as_save_IFS 9840 9841 ;; 9842 esac 9843 fi 9844 TAR=$ac_cv_path_TAR 9845 if test -n "$TAR"; then 9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9847 $as_echo "$TAR" >&6; } 9848 else 9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9850 $as_echo "no" >&6; } 9851 fi 9852 9853 9854 if test "x$TAR" = x; then 9855 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9856 fi 9857 else 9858 # Otherwise we believe it is a complete path. Use it as it is. 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9860 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9862 $as_echo_n "checking for TAR... " >&6; } 9863 if test ! -x "$tool_specified"; then 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9865 $as_echo "not found" >&6; } 9866 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9867 fi 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9869 $as_echo "$tool_specified" >&6; } 9870 fi 9871 fi 9872 fi 9873 9874 9875 9876 if test "x$TAR" = x; then 9877 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9878 fi 9879 9880 9881 9882 9883 9884 # Publish this variable in the help. 9885 9886 9887 if test "x$TEE" = x; then 9888 # The variable is not set by user, try to locate tool using the code snippet 9889 for ac_prog in tee 9890 do 9891 # Extract the first word of "$ac_prog", so it can be a program name with args. 9892 set dummy $ac_prog; ac_word=$2 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9894 $as_echo_n "checking for $ac_word... " >&6; } 9895 if ${ac_cv_path_TEE+:} false; then : 9896 $as_echo_n "(cached) " >&6 9897 else 9898 case $TEE in 9899 [\\/]* | ?:[\\/]*) 9900 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9901 ;; 9902 *) 9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9904 for as_dir in $PATH 9905 do 9906 IFS=$as_save_IFS 9907 test -z "$as_dir" && as_dir=. 9908 for ac_exec_ext in '' $ac_executable_extensions; do 9909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9910 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9912 break 2 9913 fi 9914 done 9915 done 9916 IFS=$as_save_IFS 9917 9918 ;; 9919 esac 9920 fi 9921 TEE=$ac_cv_path_TEE 9922 if test -n "$TEE"; then 9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9924 $as_echo "$TEE" >&6; } 9925 else 9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9927 $as_echo "no" >&6; } 9928 fi 9929 9930 9931 test -n "$TEE" && break 9932 done 9933 9934 else 9935 # The variable is set, but is it from the command line or the environment? 9936 9937 # Try to remove the string !TEE! from our list. 9938 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9939 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9940 # If it failed, the variable was not from the command line. Ignore it, 9941 # but warn the user (except for BASH, which is always set by the calling BASH). 9942 if test "xTEE" != xBASH; then 9943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9944 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9945 fi 9946 # Try to locate tool using the code snippet 9947 for ac_prog in tee 9948 do 9949 # Extract the first word of "$ac_prog", so it can be a program name with args. 9950 set dummy $ac_prog; ac_word=$2 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9952 $as_echo_n "checking for $ac_word... " >&6; } 9953 if ${ac_cv_path_TEE+:} false; then : 9954 $as_echo_n "(cached) " >&6 9955 else 9956 case $TEE in 9957 [\\/]* | ?:[\\/]*) 9958 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9959 ;; 9960 *) 9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9962 for as_dir in $PATH 9963 do 9964 IFS=$as_save_IFS 9965 test -z "$as_dir" && as_dir=. 9966 for ac_exec_ext in '' $ac_executable_extensions; do 9967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9968 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9970 break 2 9971 fi 9972 done 9973 done 9974 IFS=$as_save_IFS 9975 9976 ;; 9977 esac 9978 fi 9979 TEE=$ac_cv_path_TEE 9980 if test -n "$TEE"; then 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9982 $as_echo "$TEE" >&6; } 9983 else 9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9985 $as_echo "no" >&6; } 9986 fi 9987 9988 9989 test -n "$TEE" && break 9990 done 9991 9992 else 9993 # If it succeeded, then it was overridden by the user. We will use it 9994 # for the tool. 9995 9996 # First remove it from the list of overridden variables, so we can test 9997 # for unknown variables in the end. 9998 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9999 10000 # Check if the provided tool contains a complete path. 10001 tool_specified="$TEE" 10002 tool_basename="${tool_specified##*/}" 10003 if test "x$tool_basename" = "x$tool_specified"; then 10004 # A command without a complete path is provided, search $PATH. 10005 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 10006 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 10007 # Extract the first word of "$tool_basename", so it can be a program name with args. 10008 set dummy $tool_basename; ac_word=$2 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10010 $as_echo_n "checking for $ac_word... " >&6; } 10011 if ${ac_cv_path_TEE+:} false; then : 10012 $as_echo_n "(cached) " >&6 10013 else 10014 case $TEE in 10015 [\\/]* | ?:[\\/]*) 10016 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10017 ;; 10018 *) 10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10020 for as_dir in $PATH 10021 do 10022 IFS=$as_save_IFS 10023 test -z "$as_dir" && as_dir=. 10024 for ac_exec_ext in '' $ac_executable_extensions; do 10025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10026 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10028 break 2 10029 fi 10030 done 10031 done 10032 IFS=$as_save_IFS 10033 10034 ;; 10035 esac 10036 fi 10037 TEE=$ac_cv_path_TEE 10038 if test -n "$TEE"; then 10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10040 $as_echo "$TEE" >&6; } 10041 else 10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10043 $as_echo "no" >&6; } 10044 fi 10045 10046 10047 if test "x$TEE" = x; then 10048 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10049 fi 10050 else 10051 # Otherwise we believe it is a complete path. Use it as it is. 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 10053 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10055 $as_echo_n "checking for TEE... " >&6; } 10056 if test ! -x "$tool_specified"; then 10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10058 $as_echo "not found" >&6; } 10059 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10060 fi 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10062 $as_echo "$tool_specified" >&6; } 10063 fi 10064 fi 10065 fi 10066 10067 10068 10069 if test "x$TEE" = x; then 10070 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10071 fi 10072 10073 10074 10075 10076 10077 # Publish this variable in the help. 10078 10079 10080 if test "x$TOUCH" = x; then 10081 # The variable is not set by user, try to locate tool using the code snippet 10082 for ac_prog in touch 10083 do 10084 # Extract the first word of "$ac_prog", so it can be a program name with args. 10085 set dummy $ac_prog; ac_word=$2 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10087 $as_echo_n "checking for $ac_word... " >&6; } 10088 if ${ac_cv_path_TOUCH+:} false; then : 10089 $as_echo_n "(cached) " >&6 10090 else 10091 case $TOUCH in 10092 [\\/]* | ?:[\\/]*) 10093 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10094 ;; 10095 *) 10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10097 for as_dir in $PATH 10098 do 10099 IFS=$as_save_IFS 10100 test -z "$as_dir" && as_dir=. 10101 for ac_exec_ext in '' $ac_executable_extensions; do 10102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10103 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10105 break 2 10106 fi 10107 done 10108 done 10109 IFS=$as_save_IFS 10110 10111 ;; 10112 esac 10113 fi 10114 TOUCH=$ac_cv_path_TOUCH 10115 if test -n "$TOUCH"; then 10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10117 $as_echo "$TOUCH" >&6; } 10118 else 10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10120 $as_echo "no" >&6; } 10121 fi 10122 10123 10124 test -n "$TOUCH" && break 10125 done 10126 10127 else 10128 # The variable is set, but is it from the command line or the environment? 10129 10130 # Try to remove the string !TOUCH! from our list. 10131 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10132 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10133 # If it failed, the variable was not from the command line. Ignore it, 10134 # but warn the user (except for BASH, which is always set by the calling BASH). 10135 if test "xTOUCH" != xBASH; then 10136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10137 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10138 fi 10139 # Try to locate tool using the code snippet 10140 for ac_prog in touch 10141 do 10142 # Extract the first word of "$ac_prog", so it can be a program name with args. 10143 set dummy $ac_prog; ac_word=$2 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10145 $as_echo_n "checking for $ac_word... " >&6; } 10146 if ${ac_cv_path_TOUCH+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148 else 10149 case $TOUCH in 10150 [\\/]* | ?:[\\/]*) 10151 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10152 ;; 10153 *) 10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10155 for as_dir in $PATH 10156 do 10157 IFS=$as_save_IFS 10158 test -z "$as_dir" && as_dir=. 10159 for ac_exec_ext in '' $ac_executable_extensions; do 10160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10161 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10163 break 2 10164 fi 10165 done 10166 done 10167 IFS=$as_save_IFS 10168 10169 ;; 10170 esac 10171 fi 10172 TOUCH=$ac_cv_path_TOUCH 10173 if test -n "$TOUCH"; then 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10175 $as_echo "$TOUCH" >&6; } 10176 else 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10178 $as_echo "no" >&6; } 10179 fi 10180 10181 10182 test -n "$TOUCH" && break 10183 done 10184 10185 else 10186 # If it succeeded, then it was overridden by the user. We will use it 10187 # for the tool. 10188 10189 # First remove it from the list of overridden variables, so we can test 10190 # for unknown variables in the end. 10191 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10192 10193 # Check if the provided tool contains a complete path. 10194 tool_specified="$TOUCH" 10195 tool_basename="${tool_specified##*/}" 10196 if test "x$tool_basename" = "x$tool_specified"; then 10197 # A command without a complete path is provided, search $PATH. 10198 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10199 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10200 # Extract the first word of "$tool_basename", so it can be a program name with args. 10201 set dummy $tool_basename; ac_word=$2 10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10203 $as_echo_n "checking for $ac_word... " >&6; } 10204 if ${ac_cv_path_TOUCH+:} false; then : 10205 $as_echo_n "(cached) " >&6 10206 else 10207 case $TOUCH in 10208 [\\/]* | ?:[\\/]*) 10209 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10210 ;; 10211 *) 10212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10213 for as_dir in $PATH 10214 do 10215 IFS=$as_save_IFS 10216 test -z "$as_dir" && as_dir=. 10217 for ac_exec_ext in '' $ac_executable_extensions; do 10218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10219 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10221 break 2 10222 fi 10223 done 10224 done 10225 IFS=$as_save_IFS 10226 10227 ;; 10228 esac 10229 fi 10230 TOUCH=$ac_cv_path_TOUCH 10231 if test -n "$TOUCH"; then 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10233 $as_echo "$TOUCH" >&6; } 10234 else 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10236 $as_echo "no" >&6; } 10237 fi 10238 10239 10240 if test "x$TOUCH" = x; then 10241 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10242 fi 10243 else 10244 # Otherwise we believe it is a complete path. Use it as it is. 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10246 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10248 $as_echo_n "checking for TOUCH... " >&6; } 10249 if test ! -x "$tool_specified"; then 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10251 $as_echo "not found" >&6; } 10252 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10253 fi 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10255 $as_echo "$tool_specified" >&6; } 10256 fi 10257 fi 10258 fi 10259 10260 10261 10262 if test "x$TOUCH" = x; then 10263 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10264 fi 10265 10266 10267 10268 10269 10270 # Publish this variable in the help. 10271 10272 10273 if test "x$TR" = x; then 10274 # The variable is not set by user, try to locate tool using the code snippet 10275 for ac_prog in tr 10276 do 10277 # Extract the first word of "$ac_prog", so it can be a program name with args. 10278 set dummy $ac_prog; ac_word=$2 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10280 $as_echo_n "checking for $ac_word... " >&6; } 10281 if ${ac_cv_path_TR+:} false; then : 10282 $as_echo_n "(cached) " >&6 10283 else 10284 case $TR in 10285 [\\/]* | ?:[\\/]*) 10286 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10287 ;; 10288 *) 10289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10290 for as_dir in $PATH 10291 do 10292 IFS=$as_save_IFS 10293 test -z "$as_dir" && as_dir=. 10294 for ac_exec_ext in '' $ac_executable_extensions; do 10295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10296 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10298 break 2 10299 fi 10300 done 10301 done 10302 IFS=$as_save_IFS 10303 10304 ;; 10305 esac 10306 fi 10307 TR=$ac_cv_path_TR 10308 if test -n "$TR"; then 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10310 $as_echo "$TR" >&6; } 10311 else 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10313 $as_echo "no" >&6; } 10314 fi 10315 10316 10317 test -n "$TR" && break 10318 done 10319 10320 else 10321 # The variable is set, but is it from the command line or the environment? 10322 10323 # Try to remove the string !TR! from our list. 10324 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10325 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10326 # If it failed, the variable was not from the command line. Ignore it, 10327 # but warn the user (except for BASH, which is always set by the calling BASH). 10328 if test "xTR" != xBASH; then 10329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10330 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10331 fi 10332 # Try to locate tool using the code snippet 10333 for ac_prog in tr 10334 do 10335 # Extract the first word of "$ac_prog", so it can be a program name with args. 10336 set dummy $ac_prog; ac_word=$2 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10338 $as_echo_n "checking for $ac_word... " >&6; } 10339 if ${ac_cv_path_TR+:} false; then : 10340 $as_echo_n "(cached) " >&6 10341 else 10342 case $TR in 10343 [\\/]* | ?:[\\/]*) 10344 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10345 ;; 10346 *) 10347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10348 for as_dir in $PATH 10349 do 10350 IFS=$as_save_IFS 10351 test -z "$as_dir" && as_dir=. 10352 for ac_exec_ext in '' $ac_executable_extensions; do 10353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10354 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10356 break 2 10357 fi 10358 done 10359 done 10360 IFS=$as_save_IFS 10361 10362 ;; 10363 esac 10364 fi 10365 TR=$ac_cv_path_TR 10366 if test -n "$TR"; then 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10368 $as_echo "$TR" >&6; } 10369 else 10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10371 $as_echo "no" >&6; } 10372 fi 10373 10374 10375 test -n "$TR" && break 10376 done 10377 10378 else 10379 # If it succeeded, then it was overridden by the user. We will use it 10380 # for the tool. 10381 10382 # First remove it from the list of overridden variables, so we can test 10383 # for unknown variables in the end. 10384 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10385 10386 # Check if the provided tool contains a complete path. 10387 tool_specified="$TR" 10388 tool_basename="${tool_specified##*/}" 10389 if test "x$tool_basename" = "x$tool_specified"; then 10390 # A command without a complete path is provided, search $PATH. 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10392 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10393 # Extract the first word of "$tool_basename", so it can be a program name with args. 10394 set dummy $tool_basename; ac_word=$2 10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10396 $as_echo_n "checking for $ac_word... " >&6; } 10397 if ${ac_cv_path_TR+:} false; then : 10398 $as_echo_n "(cached) " >&6 10399 else 10400 case $TR in 10401 [\\/]* | ?:[\\/]*) 10402 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10403 ;; 10404 *) 10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10406 for as_dir in $PATH 10407 do 10408 IFS=$as_save_IFS 10409 test -z "$as_dir" && as_dir=. 10410 for ac_exec_ext in '' $ac_executable_extensions; do 10411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10412 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10414 break 2 10415 fi 10416 done 10417 done 10418 IFS=$as_save_IFS 10419 10420 ;; 10421 esac 10422 fi 10423 TR=$ac_cv_path_TR 10424 if test -n "$TR"; then 10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10426 $as_echo "$TR" >&6; } 10427 else 10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10429 $as_echo "no" >&6; } 10430 fi 10431 10432 10433 if test "x$TR" = x; then 10434 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10435 fi 10436 else 10437 # Otherwise we believe it is a complete path. Use it as it is. 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10439 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10441 $as_echo_n "checking for TR... " >&6; } 10442 if test ! -x "$tool_specified"; then 10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10444 $as_echo "not found" >&6; } 10445 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10446 fi 10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10448 $as_echo "$tool_specified" >&6; } 10449 fi 10450 fi 10451 fi 10452 10453 10454 10455 if test "x$TR" = x; then 10456 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10457 fi 10458 10459 10460 10461 10462 10463 # Publish this variable in the help. 10464 10465 10466 if test "x$UNAME" = x; then 10467 # The variable is not set by user, try to locate tool using the code snippet 10468 for ac_prog in uname 10469 do 10470 # Extract the first word of "$ac_prog", so it can be a program name with args. 10471 set dummy $ac_prog; ac_word=$2 10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10473 $as_echo_n "checking for $ac_word... " >&6; } 10474 if ${ac_cv_path_UNAME+:} false; then : 10475 $as_echo_n "(cached) " >&6 10476 else 10477 case $UNAME in 10478 [\\/]* | ?:[\\/]*) 10479 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10480 ;; 10481 *) 10482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10483 for as_dir in $PATH 10484 do 10485 IFS=$as_save_IFS 10486 test -z "$as_dir" && as_dir=. 10487 for ac_exec_ext in '' $ac_executable_extensions; do 10488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10489 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10491 break 2 10492 fi 10493 done 10494 done 10495 IFS=$as_save_IFS 10496 10497 ;; 10498 esac 10499 fi 10500 UNAME=$ac_cv_path_UNAME 10501 if test -n "$UNAME"; then 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10503 $as_echo "$UNAME" >&6; } 10504 else 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10506 $as_echo "no" >&6; } 10507 fi 10508 10509 10510 test -n "$UNAME" && break 10511 done 10512 10513 else 10514 # The variable is set, but is it from the command line or the environment? 10515 10516 # Try to remove the string !UNAME! from our list. 10517 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10518 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10519 # If it failed, the variable was not from the command line. Ignore it, 10520 # but warn the user (except for BASH, which is always set by the calling BASH). 10521 if test "xUNAME" != xBASH; then 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10523 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10524 fi 10525 # Try to locate tool using the code snippet 10526 for ac_prog in uname 10527 do 10528 # Extract the first word of "$ac_prog", so it can be a program name with args. 10529 set dummy $ac_prog; ac_word=$2 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10531 $as_echo_n "checking for $ac_word... " >&6; } 10532 if ${ac_cv_path_UNAME+:} false; then : 10533 $as_echo_n "(cached) " >&6 10534 else 10535 case $UNAME in 10536 [\\/]* | ?:[\\/]*) 10537 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10538 ;; 10539 *) 10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10541 for as_dir in $PATH 10542 do 10543 IFS=$as_save_IFS 10544 test -z "$as_dir" && as_dir=. 10545 for ac_exec_ext in '' $ac_executable_extensions; do 10546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10547 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10549 break 2 10550 fi 10551 done 10552 done 10553 IFS=$as_save_IFS 10554 10555 ;; 10556 esac 10557 fi 10558 UNAME=$ac_cv_path_UNAME 10559 if test -n "$UNAME"; then 10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10561 $as_echo "$UNAME" >&6; } 10562 else 10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10564 $as_echo "no" >&6; } 10565 fi 10566 10567 10568 test -n "$UNAME" && break 10569 done 10570 10571 else 10572 # If it succeeded, then it was overridden by the user. We will use it 10573 # for the tool. 10574 10575 # First remove it from the list of overridden variables, so we can test 10576 # for unknown variables in the end. 10577 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10578 10579 # Check if the provided tool contains a complete path. 10580 tool_specified="$UNAME" 10581 tool_basename="${tool_specified##*/}" 10582 if test "x$tool_basename" = "x$tool_specified"; then 10583 # A command without a complete path is provided, search $PATH. 10584 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10585 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10586 # Extract the first word of "$tool_basename", so it can be a program name with args. 10587 set dummy $tool_basename; ac_word=$2 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10589 $as_echo_n "checking for $ac_word... " >&6; } 10590 if ${ac_cv_path_UNAME+:} false; then : 10591 $as_echo_n "(cached) " >&6 10592 else 10593 case $UNAME in 10594 [\\/]* | ?:[\\/]*) 10595 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10596 ;; 10597 *) 10598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10599 for as_dir in $PATH 10600 do 10601 IFS=$as_save_IFS 10602 test -z "$as_dir" && as_dir=. 10603 for ac_exec_ext in '' $ac_executable_extensions; do 10604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10605 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10607 break 2 10608 fi 10609 done 10610 done 10611 IFS=$as_save_IFS 10612 10613 ;; 10614 esac 10615 fi 10616 UNAME=$ac_cv_path_UNAME 10617 if test -n "$UNAME"; then 10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10619 $as_echo "$UNAME" >&6; } 10620 else 10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10622 $as_echo "no" >&6; } 10623 fi 10624 10625 10626 if test "x$UNAME" = x; then 10627 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10628 fi 10629 else 10630 # Otherwise we believe it is a complete path. Use it as it is. 10631 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10632 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10634 $as_echo_n "checking for UNAME... " >&6; } 10635 if test ! -x "$tool_specified"; then 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10637 $as_echo "not found" >&6; } 10638 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10639 fi 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10641 $as_echo "$tool_specified" >&6; } 10642 fi 10643 fi 10644 fi 10645 10646 10647 10648 if test "x$UNAME" = x; then 10649 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10650 fi 10651 10652 10653 10654 10655 10656 # Publish this variable in the help. 10657 10658 10659 if test "x$UNIQ" = x; then 10660 # The variable is not set by user, try to locate tool using the code snippet 10661 for ac_prog in uniq 10662 do 10663 # Extract the first word of "$ac_prog", so it can be a program name with args. 10664 set dummy $ac_prog; ac_word=$2 10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10666 $as_echo_n "checking for $ac_word... " >&6; } 10667 if ${ac_cv_path_UNIQ+:} false; then : 10668 $as_echo_n "(cached) " >&6 10669 else 10670 case $UNIQ in 10671 [\\/]* | ?:[\\/]*) 10672 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10673 ;; 10674 *) 10675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10676 for as_dir in $PATH 10677 do 10678 IFS=$as_save_IFS 10679 test -z "$as_dir" && as_dir=. 10680 for ac_exec_ext in '' $ac_executable_extensions; do 10681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10682 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10684 break 2 10685 fi 10686 done 10687 done 10688 IFS=$as_save_IFS 10689 10690 ;; 10691 esac 10692 fi 10693 UNIQ=$ac_cv_path_UNIQ 10694 if test -n "$UNIQ"; then 10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10696 $as_echo "$UNIQ" >&6; } 10697 else 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10699 $as_echo "no" >&6; } 10700 fi 10701 10702 10703 test -n "$UNIQ" && break 10704 done 10705 10706 else 10707 # The variable is set, but is it from the command line or the environment? 10708 10709 # Try to remove the string !UNIQ! from our list. 10710 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10711 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10712 # If it failed, the variable was not from the command line. Ignore it, 10713 # but warn the user (except for BASH, which is always set by the calling BASH). 10714 if test "xUNIQ" != xBASH; then 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10716 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10717 fi 10718 # Try to locate tool using the code snippet 10719 for ac_prog in uniq 10720 do 10721 # Extract the first word of "$ac_prog", so it can be a program name with args. 10722 set dummy $ac_prog; ac_word=$2 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10724 $as_echo_n "checking for $ac_word... " >&6; } 10725 if ${ac_cv_path_UNIQ+:} false; then : 10726 $as_echo_n "(cached) " >&6 10727 else 10728 case $UNIQ in 10729 [\\/]* | ?:[\\/]*) 10730 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10731 ;; 10732 *) 10733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10734 for as_dir in $PATH 10735 do 10736 IFS=$as_save_IFS 10737 test -z "$as_dir" && as_dir=. 10738 for ac_exec_ext in '' $ac_executable_extensions; do 10739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10740 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10742 break 2 10743 fi 10744 done 10745 done 10746 IFS=$as_save_IFS 10747 10748 ;; 10749 esac 10750 fi 10751 UNIQ=$ac_cv_path_UNIQ 10752 if test -n "$UNIQ"; then 10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10754 $as_echo "$UNIQ" >&6; } 10755 else 10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10757 $as_echo "no" >&6; } 10758 fi 10759 10760 10761 test -n "$UNIQ" && break 10762 done 10763 10764 else 10765 # If it succeeded, then it was overridden by the user. We will use it 10766 # for the tool. 10767 10768 # First remove it from the list of overridden variables, so we can test 10769 # for unknown variables in the end. 10770 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10771 10772 # Check if the provided tool contains a complete path. 10773 tool_specified="$UNIQ" 10774 tool_basename="${tool_specified##*/}" 10775 if test "x$tool_basename" = "x$tool_specified"; then 10776 # A command without a complete path is provided, search $PATH. 10777 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10778 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10779 # Extract the first word of "$tool_basename", so it can be a program name with args. 10780 set dummy $tool_basename; ac_word=$2 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10782 $as_echo_n "checking for $ac_word... " >&6; } 10783 if ${ac_cv_path_UNIQ+:} false; then : 10784 $as_echo_n "(cached) " >&6 10785 else 10786 case $UNIQ in 10787 [\\/]* | ?:[\\/]*) 10788 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10789 ;; 10790 *) 10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10792 for as_dir in $PATH 10793 do 10794 IFS=$as_save_IFS 10795 test -z "$as_dir" && as_dir=. 10796 for ac_exec_ext in '' $ac_executable_extensions; do 10797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10798 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10800 break 2 10801 fi 10802 done 10803 done 10804 IFS=$as_save_IFS 10805 10806 ;; 10807 esac 10808 fi 10809 UNIQ=$ac_cv_path_UNIQ 10810 if test -n "$UNIQ"; then 10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10812 $as_echo "$UNIQ" >&6; } 10813 else 10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10815 $as_echo "no" >&6; } 10816 fi 10817 10818 10819 if test "x$UNIQ" = x; then 10820 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10821 fi 10822 else 10823 # Otherwise we believe it is a complete path. Use it as it is. 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10825 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10827 $as_echo_n "checking for UNIQ... " >&6; } 10828 if test ! -x "$tool_specified"; then 10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10830 $as_echo "not found" >&6; } 10831 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10832 fi 10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10834 $as_echo "$tool_specified" >&6; } 10835 fi 10836 fi 10837 fi 10838 10839 10840 10841 if test "x$UNIQ" = x; then 10842 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10843 fi 10844 10845 10846 10847 10848 10849 # Publish this variable in the help. 10850 10851 10852 if test "x$WC" = x; then 10853 # The variable is not set by user, try to locate tool using the code snippet 10854 for ac_prog in wc 10855 do 10856 # Extract the first word of "$ac_prog", so it can be a program name with args. 10857 set dummy $ac_prog; ac_word=$2 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10859 $as_echo_n "checking for $ac_word... " >&6; } 10860 if ${ac_cv_path_WC+:} false; then : 10861 $as_echo_n "(cached) " >&6 10862 else 10863 case $WC in 10864 [\\/]* | ?:[\\/]*) 10865 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10866 ;; 10867 *) 10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10869 for as_dir in $PATH 10870 do 10871 IFS=$as_save_IFS 10872 test -z "$as_dir" && as_dir=. 10873 for ac_exec_ext in '' $ac_executable_extensions; do 10874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10875 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10877 break 2 10878 fi 10879 done 10880 done 10881 IFS=$as_save_IFS 10882 10883 ;; 10884 esac 10885 fi 10886 WC=$ac_cv_path_WC 10887 if test -n "$WC"; then 10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10889 $as_echo "$WC" >&6; } 10890 else 10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10892 $as_echo "no" >&6; } 10893 fi 10894 10895 10896 test -n "$WC" && break 10897 done 10898 10899 else 10900 # The variable is set, but is it from the command line or the environment? 10901 10902 # Try to remove the string !WC! from our list. 10903 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10904 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10905 # If it failed, the variable was not from the command line. Ignore it, 10906 # but warn the user (except for BASH, which is always set by the calling BASH). 10907 if test "xWC" != xBASH; then 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10909 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10910 fi 10911 # Try to locate tool using the code snippet 10912 for ac_prog in wc 10913 do 10914 # Extract the first word of "$ac_prog", so it can be a program name with args. 10915 set dummy $ac_prog; ac_word=$2 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10917 $as_echo_n "checking for $ac_word... " >&6; } 10918 if ${ac_cv_path_WC+:} false; then : 10919 $as_echo_n "(cached) " >&6 10920 else 10921 case $WC in 10922 [\\/]* | ?:[\\/]*) 10923 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10924 ;; 10925 *) 10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10927 for as_dir in $PATH 10928 do 10929 IFS=$as_save_IFS 10930 test -z "$as_dir" && as_dir=. 10931 for ac_exec_ext in '' $ac_executable_extensions; do 10932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10933 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10935 break 2 10936 fi 10937 done 10938 done 10939 IFS=$as_save_IFS 10940 10941 ;; 10942 esac 10943 fi 10944 WC=$ac_cv_path_WC 10945 if test -n "$WC"; then 10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10947 $as_echo "$WC" >&6; } 10948 else 10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10950 $as_echo "no" >&6; } 10951 fi 10952 10953 10954 test -n "$WC" && break 10955 done 10956 10957 else 10958 # If it succeeded, then it was overridden by the user. We will use it 10959 # for the tool. 10960 10961 # First remove it from the list of overridden variables, so we can test 10962 # for unknown variables in the end. 10963 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10964 10965 # Check if the provided tool contains a complete path. 10966 tool_specified="$WC" 10967 tool_basename="${tool_specified##*/}" 10968 if test "x$tool_basename" = "x$tool_specified"; then 10969 # A command without a complete path is provided, search $PATH. 10970 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10971 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10972 # Extract the first word of "$tool_basename", so it can be a program name with args. 10973 set dummy $tool_basename; ac_word=$2 10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10975 $as_echo_n "checking for $ac_word... " >&6; } 10976 if ${ac_cv_path_WC+:} false; then : 10977 $as_echo_n "(cached) " >&6 10978 else 10979 case $WC in 10980 [\\/]* | ?:[\\/]*) 10981 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10982 ;; 10983 *) 10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10985 for as_dir in $PATH 10986 do 10987 IFS=$as_save_IFS 10988 test -z "$as_dir" && as_dir=. 10989 for ac_exec_ext in '' $ac_executable_extensions; do 10990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10991 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10993 break 2 10994 fi 10995 done 10996 done 10997 IFS=$as_save_IFS 10998 10999 ;; 11000 esac 11001 fi 11002 WC=$ac_cv_path_WC 11003 if test -n "$WC"; then 11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11005 $as_echo "$WC" >&6; } 11006 else 11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11008 $as_echo "no" >&6; } 11009 fi 11010 11011 11012 if test "x$WC" = x; then 11013 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11014 fi 11015 else 11016 # Otherwise we believe it is a complete path. Use it as it is. 11017 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 11018 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 11020 $as_echo_n "checking for WC... " >&6; } 11021 if test ! -x "$tool_specified"; then 11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11023 $as_echo "not found" >&6; } 11024 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 11025 fi 11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11027 $as_echo "$tool_specified" >&6; } 11028 fi 11029 fi 11030 fi 11031 11032 11033 11034 if test "x$WC" = x; then 11035 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 11036 fi 11037 11038 11039 11040 11041 11042 # Publish this variable in the help. 11043 11044 11045 if test "x$WHICH" = x; then 11046 # The variable is not set by user, try to locate tool using the code snippet 11047 for ac_prog in which 11048 do 11049 # Extract the first word of "$ac_prog", so it can be a program name with args. 11050 set dummy $ac_prog; ac_word=$2 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11052 $as_echo_n "checking for $ac_word... " >&6; } 11053 if ${ac_cv_path_WHICH+:} false; then : 11054 $as_echo_n "(cached) " >&6 11055 else 11056 case $WHICH in 11057 [\\/]* | ?:[\\/]*) 11058 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11059 ;; 11060 *) 11061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11062 for as_dir in $PATH 11063 do 11064 IFS=$as_save_IFS 11065 test -z "$as_dir" && as_dir=. 11066 for ac_exec_ext in '' $ac_executable_extensions; do 11067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11068 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11070 break 2 11071 fi 11072 done 11073 done 11074 IFS=$as_save_IFS 11075 11076 ;; 11077 esac 11078 fi 11079 WHICH=$ac_cv_path_WHICH 11080 if test -n "$WHICH"; then 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11082 $as_echo "$WHICH" >&6; } 11083 else 11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11085 $as_echo "no" >&6; } 11086 fi 11087 11088 11089 test -n "$WHICH" && break 11090 done 11091 11092 else 11093 # The variable is set, but is it from the command line or the environment? 11094 11095 # Try to remove the string !WHICH! from our list. 11096 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11097 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11098 # If it failed, the variable was not from the command line. Ignore it, 11099 # but warn the user (except for BASH, which is always set by the calling BASH). 11100 if test "xWHICH" != xBASH; then 11101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11102 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11103 fi 11104 # Try to locate tool using the code snippet 11105 for ac_prog in which 11106 do 11107 # Extract the first word of "$ac_prog", so it can be a program name with args. 11108 set dummy $ac_prog; ac_word=$2 11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11110 $as_echo_n "checking for $ac_word... " >&6; } 11111 if ${ac_cv_path_WHICH+:} false; then : 11112 $as_echo_n "(cached) " >&6 11113 else 11114 case $WHICH in 11115 [\\/]* | ?:[\\/]*) 11116 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11117 ;; 11118 *) 11119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11120 for as_dir in $PATH 11121 do 11122 IFS=$as_save_IFS 11123 test -z "$as_dir" && as_dir=. 11124 for ac_exec_ext in '' $ac_executable_extensions; do 11125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11126 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11128 break 2 11129 fi 11130 done 11131 done 11132 IFS=$as_save_IFS 11133 11134 ;; 11135 esac 11136 fi 11137 WHICH=$ac_cv_path_WHICH 11138 if test -n "$WHICH"; then 11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11140 $as_echo "$WHICH" >&6; } 11141 else 11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11143 $as_echo "no" >&6; } 11144 fi 11145 11146 11147 test -n "$WHICH" && break 11148 done 11149 11150 else 11151 # If it succeeded, then it was overridden by the user. We will use it 11152 # for the tool. 11153 11154 # First remove it from the list of overridden variables, so we can test 11155 # for unknown variables in the end. 11156 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11157 11158 # Check if the provided tool contains a complete path. 11159 tool_specified="$WHICH" 11160 tool_basename="${tool_specified##*/}" 11161 if test "x$tool_basename" = "x$tool_specified"; then 11162 # A command without a complete path is provided, search $PATH. 11163 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11164 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11165 # Extract the first word of "$tool_basename", so it can be a program name with args. 11166 set dummy $tool_basename; ac_word=$2 11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11168 $as_echo_n "checking for $ac_word... " >&6; } 11169 if ${ac_cv_path_WHICH+:} false; then : 11170 $as_echo_n "(cached) " >&6 11171 else 11172 case $WHICH in 11173 [\\/]* | ?:[\\/]*) 11174 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11175 ;; 11176 *) 11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11178 for as_dir in $PATH 11179 do 11180 IFS=$as_save_IFS 11181 test -z "$as_dir" && as_dir=. 11182 for ac_exec_ext in '' $ac_executable_extensions; do 11183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11184 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11186 break 2 11187 fi 11188 done 11189 done 11190 IFS=$as_save_IFS 11191 11192 ;; 11193 esac 11194 fi 11195 WHICH=$ac_cv_path_WHICH 11196 if test -n "$WHICH"; then 11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11198 $as_echo "$WHICH" >&6; } 11199 else 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11201 $as_echo "no" >&6; } 11202 fi 11203 11204 11205 if test "x$WHICH" = x; then 11206 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11207 fi 11208 else 11209 # Otherwise we believe it is a complete path. Use it as it is. 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11211 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11213 $as_echo_n "checking for WHICH... " >&6; } 11214 if test ! -x "$tool_specified"; then 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11216 $as_echo "not found" >&6; } 11217 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11218 fi 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11220 $as_echo "$tool_specified" >&6; } 11221 fi 11222 fi 11223 fi 11224 11225 11226 11227 if test "x$WHICH" = x; then 11228 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11229 fi 11230 11231 11232 11233 11234 11235 # Publish this variable in the help. 11236 11237 11238 if test "x$XARGS" = x; then 11239 # The variable is not set by user, try to locate tool using the code snippet 11240 for ac_prog in xargs 11241 do 11242 # Extract the first word of "$ac_prog", so it can be a program name with args. 11243 set dummy $ac_prog; ac_word=$2 11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11245 $as_echo_n "checking for $ac_word... " >&6; } 11246 if ${ac_cv_path_XARGS+:} false; then : 11247 $as_echo_n "(cached) " >&6 11248 else 11249 case $XARGS in 11250 [\\/]* | ?:[\\/]*) 11251 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11252 ;; 11253 *) 11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11255 for as_dir in $PATH 11256 do 11257 IFS=$as_save_IFS 11258 test -z "$as_dir" && as_dir=. 11259 for ac_exec_ext in '' $ac_executable_extensions; do 11260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11261 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11263 break 2 11264 fi 11265 done 11266 done 11267 IFS=$as_save_IFS 11268 11269 ;; 11270 esac 11271 fi 11272 XARGS=$ac_cv_path_XARGS 11273 if test -n "$XARGS"; then 11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11275 $as_echo "$XARGS" >&6; } 11276 else 11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11278 $as_echo "no" >&6; } 11279 fi 11280 11281 11282 test -n "$XARGS" && break 11283 done 11284 11285 else 11286 # The variable is set, but is it from the command line or the environment? 11287 11288 # Try to remove the string !XARGS! from our list. 11289 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11290 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11291 # If it failed, the variable was not from the command line. Ignore it, 11292 # but warn the user (except for BASH, which is always set by the calling BASH). 11293 if test "xXARGS" != xBASH; then 11294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11295 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11296 fi 11297 # Try to locate tool using the code snippet 11298 for ac_prog in xargs 11299 do 11300 # Extract the first word of "$ac_prog", so it can be a program name with args. 11301 set dummy $ac_prog; ac_word=$2 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11303 $as_echo_n "checking for $ac_word... " >&6; } 11304 if ${ac_cv_path_XARGS+:} false; then : 11305 $as_echo_n "(cached) " >&6 11306 else 11307 case $XARGS in 11308 [\\/]* | ?:[\\/]*) 11309 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11310 ;; 11311 *) 11312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11313 for as_dir in $PATH 11314 do 11315 IFS=$as_save_IFS 11316 test -z "$as_dir" && as_dir=. 11317 for ac_exec_ext in '' $ac_executable_extensions; do 11318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11319 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11321 break 2 11322 fi 11323 done 11324 done 11325 IFS=$as_save_IFS 11326 11327 ;; 11328 esac 11329 fi 11330 XARGS=$ac_cv_path_XARGS 11331 if test -n "$XARGS"; then 11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11333 $as_echo "$XARGS" >&6; } 11334 else 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11336 $as_echo "no" >&6; } 11337 fi 11338 11339 11340 test -n "$XARGS" && break 11341 done 11342 11343 else 11344 # If it succeeded, then it was overridden by the user. We will use it 11345 # for the tool. 11346 11347 # First remove it from the list of overridden variables, so we can test 11348 # for unknown variables in the end. 11349 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11350 11351 # Check if the provided tool contains a complete path. 11352 tool_specified="$XARGS" 11353 tool_basename="${tool_specified##*/}" 11354 if test "x$tool_basename" = "x$tool_specified"; then 11355 # A command without a complete path is provided, search $PATH. 11356 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11357 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11358 # Extract the first word of "$tool_basename", so it can be a program name with args. 11359 set dummy $tool_basename; ac_word=$2 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11361 $as_echo_n "checking for $ac_word... " >&6; } 11362 if ${ac_cv_path_XARGS+:} false; then : 11363 $as_echo_n "(cached) " >&6 11364 else 11365 case $XARGS in 11366 [\\/]* | ?:[\\/]*) 11367 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11368 ;; 11369 *) 11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11371 for as_dir in $PATH 11372 do 11373 IFS=$as_save_IFS 11374 test -z "$as_dir" && as_dir=. 11375 for ac_exec_ext in '' $ac_executable_extensions; do 11376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11377 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11379 break 2 11380 fi 11381 done 11382 done 11383 IFS=$as_save_IFS 11384 11385 ;; 11386 esac 11387 fi 11388 XARGS=$ac_cv_path_XARGS 11389 if test -n "$XARGS"; then 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11391 $as_echo "$XARGS" >&6; } 11392 else 11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11394 $as_echo "no" >&6; } 11395 fi 11396 11397 11398 if test "x$XARGS" = x; then 11399 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11400 fi 11401 else 11402 # Otherwise we believe it is a complete path. Use it as it is. 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11404 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11406 $as_echo_n "checking for XARGS... " >&6; } 11407 if test ! -x "$tool_specified"; then 11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11409 $as_echo "not found" >&6; } 11410 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11411 fi 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11413 $as_echo "$tool_specified" >&6; } 11414 fi 11415 fi 11416 fi 11417 11418 11419 11420 if test "x$XARGS" = x; then 11421 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11422 fi 11423 11424 11425 11426 # Then required tools that require some special treatment. 11427 11428 11429 # Publish this variable in the help. 11430 11431 11432 if test "x$AWK" = x; then 11433 # The variable is not set by user, try to locate tool using the code snippet 11434 for ac_prog in gawk mawk nawk awk 11435 do 11436 # Extract the first word of "$ac_prog", so it can be a program name with args. 11437 set dummy $ac_prog; ac_word=$2 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11439 $as_echo_n "checking for $ac_word... " >&6; } 11440 if ${ac_cv_prog_AWK+:} false; then : 11441 $as_echo_n "(cached) " >&6 11442 else 11443 if test -n "$AWK"; then 11444 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11445 else 11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11447 for as_dir in $PATH 11448 do 11449 IFS=$as_save_IFS 11450 test -z "$as_dir" && as_dir=. 11451 for ac_exec_ext in '' $ac_executable_extensions; do 11452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11453 ac_cv_prog_AWK="$ac_prog" 11454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11455 break 2 11456 fi 11457 done 11458 done 11459 IFS=$as_save_IFS 11460 11461 fi 11462 fi 11463 AWK=$ac_cv_prog_AWK 11464 if test -n "$AWK"; then 11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11466 $as_echo "$AWK" >&6; } 11467 else 11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11469 $as_echo "no" >&6; } 11470 fi 11471 11472 11473 test -n "$AWK" && break 11474 done 11475 11476 else 11477 # The variable is set, but is it from the command line or the environment? 11478 11479 # Try to remove the string !AWK! from our list. 11480 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11481 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11482 # If it failed, the variable was not from the command line. Ignore it, 11483 # but warn the user (except for BASH, which is always set by the calling BASH). 11484 if test "xAWK" != xBASH; then 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11486 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11487 fi 11488 # Try to locate tool using the code snippet 11489 for ac_prog in gawk mawk nawk awk 11490 do 11491 # Extract the first word of "$ac_prog", so it can be a program name with args. 11492 set dummy $ac_prog; ac_word=$2 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11494 $as_echo_n "checking for $ac_word... " >&6; } 11495 if ${ac_cv_prog_AWK+:} false; then : 11496 $as_echo_n "(cached) " >&6 11497 else 11498 if test -n "$AWK"; then 11499 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11500 else 11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11502 for as_dir in $PATH 11503 do 11504 IFS=$as_save_IFS 11505 test -z "$as_dir" && as_dir=. 11506 for ac_exec_ext in '' $ac_executable_extensions; do 11507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11508 ac_cv_prog_AWK="$ac_prog" 11509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11510 break 2 11511 fi 11512 done 11513 done 11514 IFS=$as_save_IFS 11515 11516 fi 11517 fi 11518 AWK=$ac_cv_prog_AWK 11519 if test -n "$AWK"; then 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11521 $as_echo "$AWK" >&6; } 11522 else 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11524 $as_echo "no" >&6; } 11525 fi 11526 11527 11528 test -n "$AWK" && break 11529 done 11530 11531 else 11532 # If it succeeded, then it was overridden by the user. We will use it 11533 # for the tool. 11534 11535 # First remove it from the list of overridden variables, so we can test 11536 # for unknown variables in the end. 11537 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11538 11539 # Check if the provided tool contains a complete path. 11540 tool_specified="$AWK" 11541 tool_basename="${tool_specified##*/}" 11542 if test "x$tool_basename" = "x$tool_specified"; then 11543 # A command without a complete path is provided, search $PATH. 11544 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11545 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11546 # Extract the first word of "$tool_basename", so it can be a program name with args. 11547 set dummy $tool_basename; ac_word=$2 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11549 $as_echo_n "checking for $ac_word... " >&6; } 11550 if ${ac_cv_path_AWK+:} false; then : 11551 $as_echo_n "(cached) " >&6 11552 else 11553 case $AWK in 11554 [\\/]* | ?:[\\/]*) 11555 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11556 ;; 11557 *) 11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11559 for as_dir in $PATH 11560 do 11561 IFS=$as_save_IFS 11562 test -z "$as_dir" && as_dir=. 11563 for ac_exec_ext in '' $ac_executable_extensions; do 11564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11565 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11567 break 2 11568 fi 11569 done 11570 done 11571 IFS=$as_save_IFS 11572 11573 ;; 11574 esac 11575 fi 11576 AWK=$ac_cv_path_AWK 11577 if test -n "$AWK"; then 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11579 $as_echo "$AWK" >&6; } 11580 else 11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11582 $as_echo "no" >&6; } 11583 fi 11584 11585 11586 if test "x$AWK" = x; then 11587 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11588 fi 11589 else 11590 # Otherwise we believe it is a complete path. Use it as it is. 11591 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11592 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11594 $as_echo_n "checking for AWK... " >&6; } 11595 if test ! -x "$tool_specified"; then 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11597 $as_echo "not found" >&6; } 11598 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11599 fi 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11601 $as_echo "$tool_specified" >&6; } 11602 fi 11603 fi 11604 fi 11605 11606 11607 if test "x$AWK" = x; then 11608 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11609 fi 11610 11611 11612 11613 11614 # Publish this variable in the help. 11615 11616 11617 if test "x$GREP" = x; then 11618 # The variable is not set by user, try to locate tool using the code snippet 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11620 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11621 if ${ac_cv_path_GREP+:} false; then : 11622 $as_echo_n "(cached) " >&6 11623 else 11624 if test -z "$GREP"; then 11625 ac_path_GREP_found=false 11626 # Loop through the user's path and test for each of PROGNAME-LIST 11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11629 do 11630 IFS=$as_save_IFS 11631 test -z "$as_dir" && as_dir=. 11632 for ac_prog in grep ggrep; do 11633 for ac_exec_ext in '' $ac_executable_extensions; do 11634 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11635 as_fn_executable_p "$ac_path_GREP" || continue 11636 # Check for GNU ac_path_GREP and select it if it is found. 11637 # Check for GNU $ac_path_GREP 11638 case `"$ac_path_GREP" --version 2>&1` in 11639 *GNU*) 11640 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11641 *) 11642 ac_count=0 11643 $as_echo_n 0123456789 >"conftest.in" 11644 while : 11645 do 11646 cat "conftest.in" "conftest.in" >"conftest.tmp" 11647 mv "conftest.tmp" "conftest.in" 11648 cp "conftest.in" "conftest.nl" 11649 $as_echo 'GREP' >> "conftest.nl" 11650 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11652 as_fn_arith $ac_count + 1 && ac_count=$as_val 11653 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11654 # Best one so far, save it but keep looking for a better one 11655 ac_cv_path_GREP="$ac_path_GREP" 11656 ac_path_GREP_max=$ac_count 11657 fi 11658 # 10*(2^10) chars as input seems more than enough 11659 test $ac_count -gt 10 && break 11660 done 11661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11662 esac 11663 11664 $ac_path_GREP_found && break 3 11665 done 11666 done 11667 done 11668 IFS=$as_save_IFS 11669 if test -z "$ac_cv_path_GREP"; then 11670 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11671 fi 11672 else 11673 ac_cv_path_GREP=$GREP 11674 fi 11675 11676 fi 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11678 $as_echo "$ac_cv_path_GREP" >&6; } 11679 GREP="$ac_cv_path_GREP" 11680 11681 11682 else 11683 # The variable is set, but is it from the command line or the environment? 11684 11685 # Try to remove the string !GREP! from our list. 11686 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11687 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11688 # If it failed, the variable was not from the command line. Ignore it, 11689 # but warn the user (except for BASH, which is always set by the calling BASH). 11690 if test "xGREP" != xBASH; then 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11692 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11693 fi 11694 # Try to locate tool using the code snippet 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11696 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11697 if ${ac_cv_path_GREP+:} false; then : 11698 $as_echo_n "(cached) " >&6 11699 else 11700 if test -z "$GREP"; then 11701 ac_path_GREP_found=false 11702 # Loop through the user's path and test for each of PROGNAME-LIST 11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11705 do 11706 IFS=$as_save_IFS 11707 test -z "$as_dir" && as_dir=. 11708 for ac_prog in grep ggrep; do 11709 for ac_exec_ext in '' $ac_executable_extensions; do 11710 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11711 as_fn_executable_p "$ac_path_GREP" || continue 11712 # Check for GNU ac_path_GREP and select it if it is found. 11713 # Check for GNU $ac_path_GREP 11714 case `"$ac_path_GREP" --version 2>&1` in 11715 *GNU*) 11716 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11717 *) 11718 ac_count=0 11719 $as_echo_n 0123456789 >"conftest.in" 11720 while : 11721 do 11722 cat "conftest.in" "conftest.in" >"conftest.tmp" 11723 mv "conftest.tmp" "conftest.in" 11724 cp "conftest.in" "conftest.nl" 11725 $as_echo 'GREP' >> "conftest.nl" 11726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11728 as_fn_arith $ac_count + 1 && ac_count=$as_val 11729 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11730 # Best one so far, save it but keep looking for a better one 11731 ac_cv_path_GREP="$ac_path_GREP" 11732 ac_path_GREP_max=$ac_count 11733 fi 11734 # 10*(2^10) chars as input seems more than enough 11735 test $ac_count -gt 10 && break 11736 done 11737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11738 esac 11739 11740 $ac_path_GREP_found && break 3 11741 done 11742 done 11743 done 11744 IFS=$as_save_IFS 11745 if test -z "$ac_cv_path_GREP"; then 11746 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11747 fi 11748 else 11749 ac_cv_path_GREP=$GREP 11750 fi 11751 11752 fi 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11754 $as_echo "$ac_cv_path_GREP" >&6; } 11755 GREP="$ac_cv_path_GREP" 11756 11757 11758 else 11759 # If it succeeded, then it was overridden by the user. We will use it 11760 # for the tool. 11761 11762 # First remove it from the list of overridden variables, so we can test 11763 # for unknown variables in the end. 11764 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11765 11766 # Check if the provided tool contains a complete path. 11767 tool_specified="$GREP" 11768 tool_basename="${tool_specified##*/}" 11769 if test "x$tool_basename" = "x$tool_specified"; then 11770 # A command without a complete path is provided, search $PATH. 11771 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11772 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11773 # Extract the first word of "$tool_basename", so it can be a program name with args. 11774 set dummy $tool_basename; ac_word=$2 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11776 $as_echo_n "checking for $ac_word... " >&6; } 11777 if ${ac_cv_path_GREP+:} false; then : 11778 $as_echo_n "(cached) " >&6 11779 else 11780 case $GREP in 11781 [\\/]* | ?:[\\/]*) 11782 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11783 ;; 11784 *) 11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11786 for as_dir in $PATH 11787 do 11788 IFS=$as_save_IFS 11789 test -z "$as_dir" && as_dir=. 11790 for ac_exec_ext in '' $ac_executable_extensions; do 11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11792 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11794 break 2 11795 fi 11796 done 11797 done 11798 IFS=$as_save_IFS 11799 11800 ;; 11801 esac 11802 fi 11803 GREP=$ac_cv_path_GREP 11804 if test -n "$GREP"; then 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11806 $as_echo "$GREP" >&6; } 11807 else 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11809 $as_echo "no" >&6; } 11810 fi 11811 11812 11813 if test "x$GREP" = x; then 11814 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11815 fi 11816 else 11817 # Otherwise we believe it is a complete path. Use it as it is. 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11819 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11821 $as_echo_n "checking for GREP... " >&6; } 11822 if test ! -x "$tool_specified"; then 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11824 $as_echo "not found" >&6; } 11825 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11826 fi 11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11828 $as_echo "$tool_specified" >&6; } 11829 fi 11830 fi 11831 fi 11832 11833 11834 if test "x$GREP" = x; then 11835 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11836 fi 11837 11838 11839 11840 11841 # Publish this variable in the help. 11842 11843 11844 if test "x$EGREP" = x; then 11845 # The variable is not set by user, try to locate tool using the code snippet 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11847 $as_echo_n "checking for egrep... " >&6; } 11848 if ${ac_cv_path_EGREP+:} false; then : 11849 $as_echo_n "(cached) " >&6 11850 else 11851 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11852 then ac_cv_path_EGREP="$GREP -E" 11853 else 11854 if test -z "$EGREP"; then 11855 ac_path_EGREP_found=false 11856 # Loop through the user's path and test for each of PROGNAME-LIST 11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11859 do 11860 IFS=$as_save_IFS 11861 test -z "$as_dir" && as_dir=. 11862 for ac_prog in egrep; do 11863 for ac_exec_ext in '' $ac_executable_extensions; do 11864 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11865 as_fn_executable_p "$ac_path_EGREP" || continue 11866 # Check for GNU ac_path_EGREP and select it if it is found. 11867 # Check for GNU $ac_path_EGREP 11868 case `"$ac_path_EGREP" --version 2>&1` in 11869 *GNU*) 11870 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11871 *) 11872 ac_count=0 11873 $as_echo_n 0123456789 >"conftest.in" 11874 while : 11875 do 11876 cat "conftest.in" "conftest.in" >"conftest.tmp" 11877 mv "conftest.tmp" "conftest.in" 11878 cp "conftest.in" "conftest.nl" 11879 $as_echo 'EGREP' >> "conftest.nl" 11880 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11882 as_fn_arith $ac_count + 1 && ac_count=$as_val 11883 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11884 # Best one so far, save it but keep looking for a better one 11885 ac_cv_path_EGREP="$ac_path_EGREP" 11886 ac_path_EGREP_max=$ac_count 11887 fi 11888 # 10*(2^10) chars as input seems more than enough 11889 test $ac_count -gt 10 && break 11890 done 11891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11892 esac 11893 11894 $ac_path_EGREP_found && break 3 11895 done 11896 done 11897 done 11898 IFS=$as_save_IFS 11899 if test -z "$ac_cv_path_EGREP"; then 11900 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11901 fi 11902 else 11903 ac_cv_path_EGREP=$EGREP 11904 fi 11905 11906 fi 11907 fi 11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11909 $as_echo "$ac_cv_path_EGREP" >&6; } 11910 EGREP="$ac_cv_path_EGREP" 11911 11912 11913 else 11914 # The variable is set, but is it from the command line or the environment? 11915 11916 # Try to remove the string !EGREP! from our list. 11917 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11918 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11919 # If it failed, the variable was not from the command line. Ignore it, 11920 # but warn the user (except for BASH, which is always set by the calling BASH). 11921 if test "xEGREP" != xBASH; then 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11923 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11924 fi 11925 # Try to locate tool using the code snippet 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11927 $as_echo_n "checking for egrep... " >&6; } 11928 if ${ac_cv_path_EGREP+:} false; then : 11929 $as_echo_n "(cached) " >&6 11930 else 11931 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11932 then ac_cv_path_EGREP="$GREP -E" 11933 else 11934 if test -z "$EGREP"; then 11935 ac_path_EGREP_found=false 11936 # Loop through the user's path and test for each of PROGNAME-LIST 11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11939 do 11940 IFS=$as_save_IFS 11941 test -z "$as_dir" && as_dir=. 11942 for ac_prog in egrep; do 11943 for ac_exec_ext in '' $ac_executable_extensions; do 11944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11945 as_fn_executable_p "$ac_path_EGREP" || continue 11946 # Check for GNU ac_path_EGREP and select it if it is found. 11947 # Check for GNU $ac_path_EGREP 11948 case `"$ac_path_EGREP" --version 2>&1` in 11949 *GNU*) 11950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11951 *) 11952 ac_count=0 11953 $as_echo_n 0123456789 >"conftest.in" 11954 while : 11955 do 11956 cat "conftest.in" "conftest.in" >"conftest.tmp" 11957 mv "conftest.tmp" "conftest.in" 11958 cp "conftest.in" "conftest.nl" 11959 $as_echo 'EGREP' >> "conftest.nl" 11960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11962 as_fn_arith $ac_count + 1 && ac_count=$as_val 11963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11964 # Best one so far, save it but keep looking for a better one 11965 ac_cv_path_EGREP="$ac_path_EGREP" 11966 ac_path_EGREP_max=$ac_count 11967 fi 11968 # 10*(2^10) chars as input seems more than enough 11969 test $ac_count -gt 10 && break 11970 done 11971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11972 esac 11973 11974 $ac_path_EGREP_found && break 3 11975 done 11976 done 11977 done 11978 IFS=$as_save_IFS 11979 if test -z "$ac_cv_path_EGREP"; then 11980 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11981 fi 11982 else 11983 ac_cv_path_EGREP=$EGREP 11984 fi 11985 11986 fi 11987 fi 11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11989 $as_echo "$ac_cv_path_EGREP" >&6; } 11990 EGREP="$ac_cv_path_EGREP" 11991 11992 11993 else 11994 # If it succeeded, then it was overridden by the user. We will use it 11995 # for the tool. 11996 11997 # First remove it from the list of overridden variables, so we can test 11998 # for unknown variables in the end. 11999 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12000 12001 # Check if the provided tool contains a complete path. 12002 tool_specified="$EGREP" 12003 tool_basename="${tool_specified##*/}" 12004 if test "x$tool_basename" = "x$tool_specified"; then 12005 # A command without a complete path is provided, search $PATH. 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 12007 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 12008 # Extract the first word of "$tool_basename", so it can be a program name with args. 12009 set dummy $tool_basename; ac_word=$2 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12011 $as_echo_n "checking for $ac_word... " >&6; } 12012 if ${ac_cv_path_EGREP+:} false; then : 12013 $as_echo_n "(cached) " >&6 12014 else 12015 case $EGREP in 12016 [\\/]* | ?:[\\/]*) 12017 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 12018 ;; 12019 *) 12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12021 for as_dir in $PATH 12022 do 12023 IFS=$as_save_IFS 12024 test -z "$as_dir" && as_dir=. 12025 for ac_exec_ext in '' $ac_executable_extensions; do 12026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12027 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12029 break 2 12030 fi 12031 done 12032 done 12033 IFS=$as_save_IFS 12034 12035 ;; 12036 esac 12037 fi 12038 EGREP=$ac_cv_path_EGREP 12039 if test -n "$EGREP"; then 12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 12041 $as_echo "$EGREP" >&6; } 12042 else 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12044 $as_echo "no" >&6; } 12045 fi 12046 12047 12048 if test "x$EGREP" = x; then 12049 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12050 fi 12051 else 12052 # Otherwise we believe it is a complete path. Use it as it is. 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 12054 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12056 $as_echo_n "checking for EGREP... " >&6; } 12057 if test ! -x "$tool_specified"; then 12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12059 $as_echo "not found" >&6; } 12060 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12061 fi 12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12063 $as_echo "$tool_specified" >&6; } 12064 fi 12065 fi 12066 fi 12067 12068 12069 if test "x$EGREP" = x; then 12070 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12071 fi 12072 12073 12074 12075 12076 # Publish this variable in the help. 12077 12078 12079 if test "x$FGREP" = x; then 12080 # The variable is not set by user, try to locate tool using the code snippet 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12082 $as_echo_n "checking for fgrep... " >&6; } 12083 if ${ac_cv_path_FGREP+:} false; then : 12084 $as_echo_n "(cached) " >&6 12085 else 12086 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12087 then ac_cv_path_FGREP="$GREP -F" 12088 else 12089 if test -z "$FGREP"; then 12090 ac_path_FGREP_found=false 12091 # Loop through the user's path and test for each of PROGNAME-LIST 12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12094 do 12095 IFS=$as_save_IFS 12096 test -z "$as_dir" && as_dir=. 12097 for ac_prog in fgrep; do 12098 for ac_exec_ext in '' $ac_executable_extensions; do 12099 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12100 as_fn_executable_p "$ac_path_FGREP" || continue 12101 # Check for GNU ac_path_FGREP and select it if it is found. 12102 # Check for GNU $ac_path_FGREP 12103 case `"$ac_path_FGREP" --version 2>&1` in 12104 *GNU*) 12105 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12106 *) 12107 ac_count=0 12108 $as_echo_n 0123456789 >"conftest.in" 12109 while : 12110 do 12111 cat "conftest.in" "conftest.in" >"conftest.tmp" 12112 mv "conftest.tmp" "conftest.in" 12113 cp "conftest.in" "conftest.nl" 12114 $as_echo 'FGREP' >> "conftest.nl" 12115 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12117 as_fn_arith $ac_count + 1 && ac_count=$as_val 12118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12119 # Best one so far, save it but keep looking for a better one 12120 ac_cv_path_FGREP="$ac_path_FGREP" 12121 ac_path_FGREP_max=$ac_count 12122 fi 12123 # 10*(2^10) chars as input seems more than enough 12124 test $ac_count -gt 10 && break 12125 done 12126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12127 esac 12128 12129 $ac_path_FGREP_found && break 3 12130 done 12131 done 12132 done 12133 IFS=$as_save_IFS 12134 if test -z "$ac_cv_path_FGREP"; then 12135 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12136 fi 12137 else 12138 ac_cv_path_FGREP=$FGREP 12139 fi 12140 12141 fi 12142 fi 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12144 $as_echo "$ac_cv_path_FGREP" >&6; } 12145 FGREP="$ac_cv_path_FGREP" 12146 12147 12148 else 12149 # The variable is set, but is it from the command line or the environment? 12150 12151 # Try to remove the string !FGREP! from our list. 12152 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12153 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12154 # If it failed, the variable was not from the command line. Ignore it, 12155 # but warn the user (except for BASH, which is always set by the calling BASH). 12156 if test "xFGREP" != xBASH; then 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12158 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12159 fi 12160 # Try to locate tool using the code snippet 12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12162 $as_echo_n "checking for fgrep... " >&6; } 12163 if ${ac_cv_path_FGREP+:} false; then : 12164 $as_echo_n "(cached) " >&6 12165 else 12166 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12167 then ac_cv_path_FGREP="$GREP -F" 12168 else 12169 if test -z "$FGREP"; then 12170 ac_path_FGREP_found=false 12171 # Loop through the user's path and test for each of PROGNAME-LIST 12172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12174 do 12175 IFS=$as_save_IFS 12176 test -z "$as_dir" && as_dir=. 12177 for ac_prog in fgrep; do 12178 for ac_exec_ext in '' $ac_executable_extensions; do 12179 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12180 as_fn_executable_p "$ac_path_FGREP" || continue 12181 # Check for GNU ac_path_FGREP and select it if it is found. 12182 # Check for GNU $ac_path_FGREP 12183 case `"$ac_path_FGREP" --version 2>&1` in 12184 *GNU*) 12185 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12186 *) 12187 ac_count=0 12188 $as_echo_n 0123456789 >"conftest.in" 12189 while : 12190 do 12191 cat "conftest.in" "conftest.in" >"conftest.tmp" 12192 mv "conftest.tmp" "conftest.in" 12193 cp "conftest.in" "conftest.nl" 12194 $as_echo 'FGREP' >> "conftest.nl" 12195 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12197 as_fn_arith $ac_count + 1 && ac_count=$as_val 12198 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12199 # Best one so far, save it but keep looking for a better one 12200 ac_cv_path_FGREP="$ac_path_FGREP" 12201 ac_path_FGREP_max=$ac_count 12202 fi 12203 # 10*(2^10) chars as input seems more than enough 12204 test $ac_count -gt 10 && break 12205 done 12206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12207 esac 12208 12209 $ac_path_FGREP_found && break 3 12210 done 12211 done 12212 done 12213 IFS=$as_save_IFS 12214 if test -z "$ac_cv_path_FGREP"; then 12215 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12216 fi 12217 else 12218 ac_cv_path_FGREP=$FGREP 12219 fi 12220 12221 fi 12222 fi 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12224 $as_echo "$ac_cv_path_FGREP" >&6; } 12225 FGREP="$ac_cv_path_FGREP" 12226 12227 12228 else 12229 # If it succeeded, then it was overridden by the user. We will use it 12230 # for the tool. 12231 12232 # First remove it from the list of overridden variables, so we can test 12233 # for unknown variables in the end. 12234 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12235 12236 # Check if the provided tool contains a complete path. 12237 tool_specified="$FGREP" 12238 tool_basename="${tool_specified##*/}" 12239 if test "x$tool_basename" = "x$tool_specified"; then 12240 # A command without a complete path is provided, search $PATH. 12241 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12242 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12243 # Extract the first word of "$tool_basename", so it can be a program name with args. 12244 set dummy $tool_basename; ac_word=$2 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12246 $as_echo_n "checking for $ac_word... " >&6; } 12247 if ${ac_cv_path_FGREP+:} false; then : 12248 $as_echo_n "(cached) " >&6 12249 else 12250 case $FGREP in 12251 [\\/]* | ?:[\\/]*) 12252 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12253 ;; 12254 *) 12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12256 for as_dir in $PATH 12257 do 12258 IFS=$as_save_IFS 12259 test -z "$as_dir" && as_dir=. 12260 for ac_exec_ext in '' $ac_executable_extensions; do 12261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12262 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12264 break 2 12265 fi 12266 done 12267 done 12268 IFS=$as_save_IFS 12269 12270 ;; 12271 esac 12272 fi 12273 FGREP=$ac_cv_path_FGREP 12274 if test -n "$FGREP"; then 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12276 $as_echo "$FGREP" >&6; } 12277 else 12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12279 $as_echo "no" >&6; } 12280 fi 12281 12282 12283 if test "x$FGREP" = x; then 12284 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12285 fi 12286 else 12287 # Otherwise we believe it is a complete path. Use it as it is. 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12289 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12291 $as_echo_n "checking for FGREP... " >&6; } 12292 if test ! -x "$tool_specified"; then 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12294 $as_echo "not found" >&6; } 12295 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12296 fi 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12298 $as_echo "$tool_specified" >&6; } 12299 fi 12300 fi 12301 fi 12302 12303 12304 if test "x$FGREP" = x; then 12305 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12306 fi 12307 12308 12309 12310 12311 # Publish this variable in the help. 12312 12313 12314 if test "x$SED" = x; then 12315 # The variable is not set by user, try to locate tool using the code snippet 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12317 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12318 if ${ac_cv_path_SED+:} false; then : 12319 $as_echo_n "(cached) " >&6 12320 else 12321 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12322 for ac_i in 1 2 3 4 5 6 7; do 12323 ac_script="$ac_script$as_nl$ac_script" 12324 done 12325 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12326 { ac_script=; unset ac_script;} 12327 if test -z "$SED"; then 12328 ac_path_SED_found=false 12329 # Loop through the user's path and test for each of PROGNAME-LIST 12330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12331 for as_dir in $PATH 12332 do 12333 IFS=$as_save_IFS 12334 test -z "$as_dir" && as_dir=. 12335 for ac_prog in sed gsed; do 12336 for ac_exec_ext in '' $ac_executable_extensions; do 12337 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12338 as_fn_executable_p "$ac_path_SED" || continue 12339 # Check for GNU ac_path_SED and select it if it is found. 12340 # Check for GNU $ac_path_SED 12341 case `"$ac_path_SED" --version 2>&1` in 12342 *GNU*) 12343 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12344 *) 12345 ac_count=0 12346 $as_echo_n 0123456789 >"conftest.in" 12347 while : 12348 do 12349 cat "conftest.in" "conftest.in" >"conftest.tmp" 12350 mv "conftest.tmp" "conftest.in" 12351 cp "conftest.in" "conftest.nl" 12352 $as_echo '' >> "conftest.nl" 12353 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12355 as_fn_arith $ac_count + 1 && ac_count=$as_val 12356 if test $ac_count -gt ${ac_path_SED_max-0}; then 12357 # Best one so far, save it but keep looking for a better one 12358 ac_cv_path_SED="$ac_path_SED" 12359 ac_path_SED_max=$ac_count 12360 fi 12361 # 10*(2^10) chars as input seems more than enough 12362 test $ac_count -gt 10 && break 12363 done 12364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12365 esac 12366 12367 $ac_path_SED_found && break 3 12368 done 12369 done 12370 done 12371 IFS=$as_save_IFS 12372 if test -z "$ac_cv_path_SED"; then 12373 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12374 fi 12375 else 12376 ac_cv_path_SED=$SED 12377 fi 12378 12379 fi 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12381 $as_echo "$ac_cv_path_SED" >&6; } 12382 SED="$ac_cv_path_SED" 12383 rm -f conftest.sed 12384 12385 else 12386 # The variable is set, but is it from the command line or the environment? 12387 12388 # Try to remove the string !SED! from our list. 12389 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12390 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12391 # If it failed, the variable was not from the command line. Ignore it, 12392 # but warn the user (except for BASH, which is always set by the calling BASH). 12393 if test "xSED" != xBASH; then 12394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12395 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12396 fi 12397 # Try to locate tool using the code snippet 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12399 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12400 if ${ac_cv_path_SED+:} false; then : 12401 $as_echo_n "(cached) " >&6 12402 else 12403 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12404 for ac_i in 1 2 3 4 5 6 7; do 12405 ac_script="$ac_script$as_nl$ac_script" 12406 done 12407 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12408 { ac_script=; unset ac_script;} 12409 if test -z "$SED"; then 12410 ac_path_SED_found=false 12411 # Loop through the user's path and test for each of PROGNAME-LIST 12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12413 for as_dir in $PATH 12414 do 12415 IFS=$as_save_IFS 12416 test -z "$as_dir" && as_dir=. 12417 for ac_prog in sed gsed; do 12418 for ac_exec_ext in '' $ac_executable_extensions; do 12419 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12420 as_fn_executable_p "$ac_path_SED" || continue 12421 # Check for GNU ac_path_SED and select it if it is found. 12422 # Check for GNU $ac_path_SED 12423 case `"$ac_path_SED" --version 2>&1` in 12424 *GNU*) 12425 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12426 *) 12427 ac_count=0 12428 $as_echo_n 0123456789 >"conftest.in" 12429 while : 12430 do 12431 cat "conftest.in" "conftest.in" >"conftest.tmp" 12432 mv "conftest.tmp" "conftest.in" 12433 cp "conftest.in" "conftest.nl" 12434 $as_echo '' >> "conftest.nl" 12435 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12437 as_fn_arith $ac_count + 1 && ac_count=$as_val 12438 if test $ac_count -gt ${ac_path_SED_max-0}; then 12439 # Best one so far, save it but keep looking for a better one 12440 ac_cv_path_SED="$ac_path_SED" 12441 ac_path_SED_max=$ac_count 12442 fi 12443 # 10*(2^10) chars as input seems more than enough 12444 test $ac_count -gt 10 && break 12445 done 12446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12447 esac 12448 12449 $ac_path_SED_found && break 3 12450 done 12451 done 12452 done 12453 IFS=$as_save_IFS 12454 if test -z "$ac_cv_path_SED"; then 12455 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12456 fi 12457 else 12458 ac_cv_path_SED=$SED 12459 fi 12460 12461 fi 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12463 $as_echo "$ac_cv_path_SED" >&6; } 12464 SED="$ac_cv_path_SED" 12465 rm -f conftest.sed 12466 12467 else 12468 # If it succeeded, then it was overridden by the user. We will use it 12469 # for the tool. 12470 12471 # First remove it from the list of overridden variables, so we can test 12472 # for unknown variables in the end. 12473 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12474 12475 # Check if the provided tool contains a complete path. 12476 tool_specified="$SED" 12477 tool_basename="${tool_specified##*/}" 12478 if test "x$tool_basename" = "x$tool_specified"; then 12479 # A command without a complete path is provided, search $PATH. 12480 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12481 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12482 # Extract the first word of "$tool_basename", so it can be a program name with args. 12483 set dummy $tool_basename; ac_word=$2 12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12485 $as_echo_n "checking for $ac_word... " >&6; } 12486 if ${ac_cv_path_SED+:} false; then : 12487 $as_echo_n "(cached) " >&6 12488 else 12489 case $SED in 12490 [\\/]* | ?:[\\/]*) 12491 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12492 ;; 12493 *) 12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12495 for as_dir in $PATH 12496 do 12497 IFS=$as_save_IFS 12498 test -z "$as_dir" && as_dir=. 12499 for ac_exec_ext in '' $ac_executable_extensions; do 12500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12501 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12503 break 2 12504 fi 12505 done 12506 done 12507 IFS=$as_save_IFS 12508 12509 ;; 12510 esac 12511 fi 12512 SED=$ac_cv_path_SED 12513 if test -n "$SED"; then 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12515 $as_echo "$SED" >&6; } 12516 else 12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12518 $as_echo "no" >&6; } 12519 fi 12520 12521 12522 if test "x$SED" = x; then 12523 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12524 fi 12525 else 12526 # Otherwise we believe it is a complete path. Use it as it is. 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12528 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12530 $as_echo_n "checking for SED... " >&6; } 12531 if test ! -x "$tool_specified"; then 12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12533 $as_echo "not found" >&6; } 12534 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12535 fi 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12537 $as_echo "$tool_specified" >&6; } 12538 fi 12539 fi 12540 fi 12541 12542 12543 if test "x$SED" = x; then 12544 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12545 fi 12546 12547 12548 12549 # Always force rm. 12550 RM="$RM -f" 12551 12552 # pwd behaves differently on various platforms and some don't support the -L flag. 12553 # Always use the bash builtin pwd to get uniform behavior. 12554 THEPWDCMD=pwd 12555 12556 # These are not required on all platforms 12557 12558 12559 # Publish this variable in the help. 12560 12561 12562 if test "x$CYGPATH" = x; then 12563 # The variable is not set by user, try to locate tool using the code snippet 12564 for ac_prog in cygpath 12565 do 12566 # Extract the first word of "$ac_prog", so it can be a program name with args. 12567 set dummy $ac_prog; ac_word=$2 12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12569 $as_echo_n "checking for $ac_word... " >&6; } 12570 if ${ac_cv_path_CYGPATH+:} false; then : 12571 $as_echo_n "(cached) " >&6 12572 else 12573 case $CYGPATH in 12574 [\\/]* | ?:[\\/]*) 12575 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12576 ;; 12577 *) 12578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12579 for as_dir in $PATH 12580 do 12581 IFS=$as_save_IFS 12582 test -z "$as_dir" && as_dir=. 12583 for ac_exec_ext in '' $ac_executable_extensions; do 12584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12585 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12587 break 2 12588 fi 12589 done 12590 done 12591 IFS=$as_save_IFS 12592 12593 ;; 12594 esac 12595 fi 12596 CYGPATH=$ac_cv_path_CYGPATH 12597 if test -n "$CYGPATH"; then 12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12599 $as_echo "$CYGPATH" >&6; } 12600 else 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12602 $as_echo "no" >&6; } 12603 fi 12604 12605 12606 test -n "$CYGPATH" && break 12607 done 12608 12609 else 12610 # The variable is set, but is it from the command line or the environment? 12611 12612 # Try to remove the string !CYGPATH! from our list. 12613 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12614 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12615 # If it failed, the variable was not from the command line. Ignore it, 12616 # but warn the user (except for BASH, which is always set by the calling BASH). 12617 if test "xCYGPATH" != xBASH; then 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12619 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12620 fi 12621 # Try to locate tool using the code snippet 12622 for ac_prog in cygpath 12623 do 12624 # Extract the first word of "$ac_prog", so it can be a program name with args. 12625 set dummy $ac_prog; ac_word=$2 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12627 $as_echo_n "checking for $ac_word... " >&6; } 12628 if ${ac_cv_path_CYGPATH+:} false; then : 12629 $as_echo_n "(cached) " >&6 12630 else 12631 case $CYGPATH in 12632 [\\/]* | ?:[\\/]*) 12633 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12634 ;; 12635 *) 12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12637 for as_dir in $PATH 12638 do 12639 IFS=$as_save_IFS 12640 test -z "$as_dir" && as_dir=. 12641 for ac_exec_ext in '' $ac_executable_extensions; do 12642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12643 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12645 break 2 12646 fi 12647 done 12648 done 12649 IFS=$as_save_IFS 12650 12651 ;; 12652 esac 12653 fi 12654 CYGPATH=$ac_cv_path_CYGPATH 12655 if test -n "$CYGPATH"; then 12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12657 $as_echo "$CYGPATH" >&6; } 12658 else 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12660 $as_echo "no" >&6; } 12661 fi 12662 12663 12664 test -n "$CYGPATH" && break 12665 done 12666 12667 else 12668 # If it succeeded, then it was overridden by the user. We will use it 12669 # for the tool. 12670 12671 # First remove it from the list of overridden variables, so we can test 12672 # for unknown variables in the end. 12673 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12674 12675 # Check if the provided tool contains a complete path. 12676 tool_specified="$CYGPATH" 12677 tool_basename="${tool_specified##*/}" 12678 if test "x$tool_basename" = "x$tool_specified"; then 12679 # A command without a complete path is provided, search $PATH. 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12681 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12682 # Extract the first word of "$tool_basename", so it can be a program name with args. 12683 set dummy $tool_basename; ac_word=$2 12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12685 $as_echo_n "checking for $ac_word... " >&6; } 12686 if ${ac_cv_path_CYGPATH+:} false; then : 12687 $as_echo_n "(cached) " >&6 12688 else 12689 case $CYGPATH in 12690 [\\/]* | ?:[\\/]*) 12691 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12692 ;; 12693 *) 12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12695 for as_dir in $PATH 12696 do 12697 IFS=$as_save_IFS 12698 test -z "$as_dir" && as_dir=. 12699 for ac_exec_ext in '' $ac_executable_extensions; do 12700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12701 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12703 break 2 12704 fi 12705 done 12706 done 12707 IFS=$as_save_IFS 12708 12709 ;; 12710 esac 12711 fi 12712 CYGPATH=$ac_cv_path_CYGPATH 12713 if test -n "$CYGPATH"; then 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12715 $as_echo "$CYGPATH" >&6; } 12716 else 12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12718 $as_echo "no" >&6; } 12719 fi 12720 12721 12722 if test "x$CYGPATH" = x; then 12723 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12724 fi 12725 else 12726 # Otherwise we believe it is a complete path. Use it as it is. 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12728 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12730 $as_echo_n "checking for CYGPATH... " >&6; } 12731 if test ! -x "$tool_specified"; then 12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12733 $as_echo "not found" >&6; } 12734 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12735 fi 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12737 $as_echo "$tool_specified" >&6; } 12738 fi 12739 fi 12740 fi 12741 12742 12743 12744 12745 # Publish this variable in the help. 12746 12747 12748 if test "x$READLINK" = x; then 12749 # The variable is not set by user, try to locate tool using the code snippet 12750 for ac_prog in greadlink readlink 12751 do 12752 # Extract the first word of "$ac_prog", so it can be a program name with args. 12753 set dummy $ac_prog; ac_word=$2 12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12755 $as_echo_n "checking for $ac_word... " >&6; } 12756 if ${ac_cv_path_READLINK+:} false; then : 12757 $as_echo_n "(cached) " >&6 12758 else 12759 case $READLINK in 12760 [\\/]* | ?:[\\/]*) 12761 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12762 ;; 12763 *) 12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12765 for as_dir in $PATH 12766 do 12767 IFS=$as_save_IFS 12768 test -z "$as_dir" && as_dir=. 12769 for ac_exec_ext in '' $ac_executable_extensions; do 12770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12771 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12773 break 2 12774 fi 12775 done 12776 done 12777 IFS=$as_save_IFS 12778 12779 ;; 12780 esac 12781 fi 12782 READLINK=$ac_cv_path_READLINK 12783 if test -n "$READLINK"; then 12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12785 $as_echo "$READLINK" >&6; } 12786 else 12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12788 $as_echo "no" >&6; } 12789 fi 12790 12791 12792 test -n "$READLINK" && break 12793 done 12794 12795 else 12796 # The variable is set, but is it from the command line or the environment? 12797 12798 # Try to remove the string !READLINK! from our list. 12799 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12800 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12801 # If it failed, the variable was not from the command line. Ignore it, 12802 # but warn the user (except for BASH, which is always set by the calling BASH). 12803 if test "xREADLINK" != xBASH; then 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12805 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12806 fi 12807 # Try to locate tool using the code snippet 12808 for ac_prog in greadlink readlink 12809 do 12810 # Extract the first word of "$ac_prog", so it can be a program name with args. 12811 set dummy $ac_prog; ac_word=$2 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12813 $as_echo_n "checking for $ac_word... " >&6; } 12814 if ${ac_cv_path_READLINK+:} false; then : 12815 $as_echo_n "(cached) " >&6 12816 else 12817 case $READLINK in 12818 [\\/]* | ?:[\\/]*) 12819 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12820 ;; 12821 *) 12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12823 for as_dir in $PATH 12824 do 12825 IFS=$as_save_IFS 12826 test -z "$as_dir" && as_dir=. 12827 for ac_exec_ext in '' $ac_executable_extensions; do 12828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12829 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12831 break 2 12832 fi 12833 done 12834 done 12835 IFS=$as_save_IFS 12836 12837 ;; 12838 esac 12839 fi 12840 READLINK=$ac_cv_path_READLINK 12841 if test -n "$READLINK"; then 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12843 $as_echo "$READLINK" >&6; } 12844 else 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12846 $as_echo "no" >&6; } 12847 fi 12848 12849 12850 test -n "$READLINK" && break 12851 done 12852 12853 else 12854 # If it succeeded, then it was overridden by the user. We will use it 12855 # for the tool. 12856 12857 # First remove it from the list of overridden variables, so we can test 12858 # for unknown variables in the end. 12859 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12860 12861 # Check if the provided tool contains a complete path. 12862 tool_specified="$READLINK" 12863 tool_basename="${tool_specified##*/}" 12864 if test "x$tool_basename" = "x$tool_specified"; then 12865 # A command without a complete path is provided, search $PATH. 12866 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12867 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12868 # Extract the first word of "$tool_basename", so it can be a program name with args. 12869 set dummy $tool_basename; ac_word=$2 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12871 $as_echo_n "checking for $ac_word... " >&6; } 12872 if ${ac_cv_path_READLINK+:} false; then : 12873 $as_echo_n "(cached) " >&6 12874 else 12875 case $READLINK in 12876 [\\/]* | ?:[\\/]*) 12877 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12878 ;; 12879 *) 12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12881 for as_dir in $PATH 12882 do 12883 IFS=$as_save_IFS 12884 test -z "$as_dir" && as_dir=. 12885 for ac_exec_ext in '' $ac_executable_extensions; do 12886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12887 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12889 break 2 12890 fi 12891 done 12892 done 12893 IFS=$as_save_IFS 12894 12895 ;; 12896 esac 12897 fi 12898 READLINK=$ac_cv_path_READLINK 12899 if test -n "$READLINK"; then 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12901 $as_echo "$READLINK" >&6; } 12902 else 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12904 $as_echo "no" >&6; } 12905 fi 12906 12907 12908 if test "x$READLINK" = x; then 12909 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12910 fi 12911 else 12912 # Otherwise we believe it is a complete path. Use it as it is. 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12914 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12916 $as_echo_n "checking for READLINK... " >&6; } 12917 if test ! -x "$tool_specified"; then 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12919 $as_echo "not found" >&6; } 12920 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12921 fi 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12923 $as_echo "$tool_specified" >&6; } 12924 fi 12925 fi 12926 fi 12927 12928 12929 12930 12931 # Publish this variable in the help. 12932 12933 12934 if test "x$DF" = x; then 12935 # The variable is not set by user, try to locate tool using the code snippet 12936 for ac_prog in df 12937 do 12938 # Extract the first word of "$ac_prog", so it can be a program name with args. 12939 set dummy $ac_prog; ac_word=$2 12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12941 $as_echo_n "checking for $ac_word... " >&6; } 12942 if ${ac_cv_path_DF+:} false; then : 12943 $as_echo_n "(cached) " >&6 12944 else 12945 case $DF in 12946 [\\/]* | ?:[\\/]*) 12947 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12948 ;; 12949 *) 12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12951 for as_dir in $PATH 12952 do 12953 IFS=$as_save_IFS 12954 test -z "$as_dir" && as_dir=. 12955 for ac_exec_ext in '' $ac_executable_extensions; do 12956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12957 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12959 break 2 12960 fi 12961 done 12962 done 12963 IFS=$as_save_IFS 12964 12965 ;; 12966 esac 12967 fi 12968 DF=$ac_cv_path_DF 12969 if test -n "$DF"; then 12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12971 $as_echo "$DF" >&6; } 12972 else 12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12974 $as_echo "no" >&6; } 12975 fi 12976 12977 12978 test -n "$DF" && break 12979 done 12980 12981 else 12982 # The variable is set, but is it from the command line or the environment? 12983 12984 # Try to remove the string !DF! from our list. 12985 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12986 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12987 # If it failed, the variable was not from the command line. Ignore it, 12988 # but warn the user (except for BASH, which is always set by the calling BASH). 12989 if test "xDF" != xBASH; then 12990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12991 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12992 fi 12993 # Try to locate tool using the code snippet 12994 for ac_prog in df 12995 do 12996 # Extract the first word of "$ac_prog", so it can be a program name with args. 12997 set dummy $ac_prog; ac_word=$2 12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12999 $as_echo_n "checking for $ac_word... " >&6; } 13000 if ${ac_cv_path_DF+:} false; then : 13001 $as_echo_n "(cached) " >&6 13002 else 13003 case $DF in 13004 [\\/]* | ?:[\\/]*) 13005 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13006 ;; 13007 *) 13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13009 for as_dir in $PATH 13010 do 13011 IFS=$as_save_IFS 13012 test -z "$as_dir" && as_dir=. 13013 for ac_exec_ext in '' $ac_executable_extensions; do 13014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13015 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13017 break 2 13018 fi 13019 done 13020 done 13021 IFS=$as_save_IFS 13022 13023 ;; 13024 esac 13025 fi 13026 DF=$ac_cv_path_DF 13027 if test -n "$DF"; then 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13029 $as_echo "$DF" >&6; } 13030 else 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13032 $as_echo "no" >&6; } 13033 fi 13034 13035 13036 test -n "$DF" && break 13037 done 13038 13039 else 13040 # If it succeeded, then it was overridden by the user. We will use it 13041 # for the tool. 13042 13043 # First remove it from the list of overridden variables, so we can test 13044 # for unknown variables in the end. 13045 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13046 13047 # Check if the provided tool contains a complete path. 13048 tool_specified="$DF" 13049 tool_basename="${tool_specified##*/}" 13050 if test "x$tool_basename" = "x$tool_specified"; then 13051 # A command without a complete path is provided, search $PATH. 13052 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 13053 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 13054 # Extract the first word of "$tool_basename", so it can be a program name with args. 13055 set dummy $tool_basename; ac_word=$2 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13057 $as_echo_n "checking for $ac_word... " >&6; } 13058 if ${ac_cv_path_DF+:} false; then : 13059 $as_echo_n "(cached) " >&6 13060 else 13061 case $DF in 13062 [\\/]* | ?:[\\/]*) 13063 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13064 ;; 13065 *) 13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13067 for as_dir in $PATH 13068 do 13069 IFS=$as_save_IFS 13070 test -z "$as_dir" && as_dir=. 13071 for ac_exec_ext in '' $ac_executable_extensions; do 13072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13073 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13075 break 2 13076 fi 13077 done 13078 done 13079 IFS=$as_save_IFS 13080 13081 ;; 13082 esac 13083 fi 13084 DF=$ac_cv_path_DF 13085 if test -n "$DF"; then 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13087 $as_echo "$DF" >&6; } 13088 else 13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13090 $as_echo "no" >&6; } 13091 fi 13092 13093 13094 if test "x$DF" = x; then 13095 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13096 fi 13097 else 13098 # Otherwise we believe it is a complete path. Use it as it is. 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13100 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13102 $as_echo_n "checking for DF... " >&6; } 13103 if test ! -x "$tool_specified"; then 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13105 $as_echo "not found" >&6; } 13106 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13107 fi 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13109 $as_echo "$tool_specified" >&6; } 13110 fi 13111 fi 13112 fi 13113 13114 13115 13116 13117 # Publish this variable in the help. 13118 13119 13120 if test "x$SETFILE" = x; then 13121 # The variable is not set by user, try to locate tool using the code snippet 13122 for ac_prog in SetFile 13123 do 13124 # Extract the first word of "$ac_prog", so it can be a program name with args. 13125 set dummy $ac_prog; ac_word=$2 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13127 $as_echo_n "checking for $ac_word... " >&6; } 13128 if ${ac_cv_path_SETFILE+:} false; then : 13129 $as_echo_n "(cached) " >&6 13130 else 13131 case $SETFILE in 13132 [\\/]* | ?:[\\/]*) 13133 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13134 ;; 13135 *) 13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13137 for as_dir in $PATH 13138 do 13139 IFS=$as_save_IFS 13140 test -z "$as_dir" && as_dir=. 13141 for ac_exec_ext in '' $ac_executable_extensions; do 13142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13143 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13145 break 2 13146 fi 13147 done 13148 done 13149 IFS=$as_save_IFS 13150 13151 ;; 13152 esac 13153 fi 13154 SETFILE=$ac_cv_path_SETFILE 13155 if test -n "$SETFILE"; then 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13157 $as_echo "$SETFILE" >&6; } 13158 else 13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13160 $as_echo "no" >&6; } 13161 fi 13162 13163 13164 test -n "$SETFILE" && break 13165 done 13166 13167 else 13168 # The variable is set, but is it from the command line or the environment? 13169 13170 # Try to remove the string !SETFILE! from our list. 13171 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13172 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13173 # If it failed, the variable was not from the command line. Ignore it, 13174 # but warn the user (except for BASH, which is always set by the calling BASH). 13175 if test "xSETFILE" != xBASH; then 13176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13177 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13178 fi 13179 # Try to locate tool using the code snippet 13180 for ac_prog in SetFile 13181 do 13182 # Extract the first word of "$ac_prog", so it can be a program name with args. 13183 set dummy $ac_prog; ac_word=$2 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13185 $as_echo_n "checking for $ac_word... " >&6; } 13186 if ${ac_cv_path_SETFILE+:} false; then : 13187 $as_echo_n "(cached) " >&6 13188 else 13189 case $SETFILE in 13190 [\\/]* | ?:[\\/]*) 13191 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13192 ;; 13193 *) 13194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13195 for as_dir in $PATH 13196 do 13197 IFS=$as_save_IFS 13198 test -z "$as_dir" && as_dir=. 13199 for ac_exec_ext in '' $ac_executable_extensions; do 13200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13201 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13203 break 2 13204 fi 13205 done 13206 done 13207 IFS=$as_save_IFS 13208 13209 ;; 13210 esac 13211 fi 13212 SETFILE=$ac_cv_path_SETFILE 13213 if test -n "$SETFILE"; then 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13215 $as_echo "$SETFILE" >&6; } 13216 else 13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13218 $as_echo "no" >&6; } 13219 fi 13220 13221 13222 test -n "$SETFILE" && break 13223 done 13224 13225 else 13226 # If it succeeded, then it was overridden by the user. We will use it 13227 # for the tool. 13228 13229 # First remove it from the list of overridden variables, so we can test 13230 # for unknown variables in the end. 13231 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13232 13233 # Check if the provided tool contains a complete path. 13234 tool_specified="$SETFILE" 13235 tool_basename="${tool_specified##*/}" 13236 if test "x$tool_basename" = "x$tool_specified"; then 13237 # A command without a complete path is provided, search $PATH. 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13239 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13240 # Extract the first word of "$tool_basename", so it can be a program name with args. 13241 set dummy $tool_basename; ac_word=$2 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13243 $as_echo_n "checking for $ac_word... " >&6; } 13244 if ${ac_cv_path_SETFILE+:} false; then : 13245 $as_echo_n "(cached) " >&6 13246 else 13247 case $SETFILE in 13248 [\\/]* | ?:[\\/]*) 13249 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13250 ;; 13251 *) 13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13253 for as_dir in $PATH 13254 do 13255 IFS=$as_save_IFS 13256 test -z "$as_dir" && as_dir=. 13257 for ac_exec_ext in '' $ac_executable_extensions; do 13258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13259 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13261 break 2 13262 fi 13263 done 13264 done 13265 IFS=$as_save_IFS 13266 13267 ;; 13268 esac 13269 fi 13270 SETFILE=$ac_cv_path_SETFILE 13271 if test -n "$SETFILE"; then 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13273 $as_echo "$SETFILE" >&6; } 13274 else 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13276 $as_echo "no" >&6; } 13277 fi 13278 13279 13280 if test "x$SETFILE" = x; then 13281 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13282 fi 13283 else 13284 # Otherwise we believe it is a complete path. Use it as it is. 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13286 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13288 $as_echo_n "checking for SETFILE... " >&6; } 13289 if test ! -x "$tool_specified"; then 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13291 $as_echo "not found" >&6; } 13292 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13293 fi 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13295 $as_echo "$tool_specified" >&6; } 13296 fi 13297 fi 13298 fi 13299 13300 13301 13302 13303 # Now we can determine OpenJDK build and target platforms. This is required to 13304 # have early on. 13305 # Make sure we can run config.sub. 13306 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13307 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13308 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13310 $as_echo_n "checking build system type... " >&6; } 13311 if ${ac_cv_build+:} false; then : 13312 $as_echo_n "(cached) " >&6 13313 else 13314 ac_build_alias=$build_alias 13315 test "x$ac_build_alias" = x && 13316 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13317 test "x$ac_build_alias" = x && 13318 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13319 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13320 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13321 13322 fi 13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13324 $as_echo "$ac_cv_build" >&6; } 13325 case $ac_cv_build in 13326 *-*-*) ;; 13327 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13328 esac 13329 build=$ac_cv_build 13330 ac_save_IFS=$IFS; IFS='-' 13331 set x $ac_cv_build 13332 shift 13333 build_cpu=$1 13334 build_vendor=$2 13335 shift; shift 13336 # Remember, the first character of IFS is used to create $*, 13337 # except with old shells: 13338 build_os=$* 13339 IFS=$ac_save_IFS 13340 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13341 13342 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13344 $as_echo_n "checking host system type... " >&6; } 13345 if ${ac_cv_host+:} false; then : 13346 $as_echo_n "(cached) " >&6 13347 else 13348 if test "x$host_alias" = x; then 13349 ac_cv_host=$ac_cv_build 13350 else 13351 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13352 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13353 fi 13354 13355 fi 13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13357 $as_echo "$ac_cv_host" >&6; } 13358 case $ac_cv_host in 13359 *-*-*) ;; 13360 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13361 esac 13362 host=$ac_cv_host 13363 ac_save_IFS=$IFS; IFS='-' 13364 set x $ac_cv_host 13365 shift 13366 host_cpu=$1 13367 host_vendor=$2 13368 shift; shift 13369 # Remember, the first character of IFS is used to create $*, 13370 # except with old shells: 13371 host_os=$* 13372 IFS=$ac_save_IFS 13373 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13374 13375 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13377 $as_echo_n "checking target system type... " >&6; } 13378 if ${ac_cv_target+:} false; then : 13379 $as_echo_n "(cached) " >&6 13380 else 13381 if test "x$target_alias" = x; then 13382 ac_cv_target=$ac_cv_host 13383 else 13384 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13385 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13386 fi 13387 13388 fi 13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13390 $as_echo "$ac_cv_target" >&6; } 13391 case $ac_cv_target in 13392 *-*-*) ;; 13393 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13394 esac 13395 target=$ac_cv_target 13396 ac_save_IFS=$IFS; IFS='-' 13397 set x $ac_cv_target 13398 shift 13399 target_cpu=$1 13400 target_vendor=$2 13401 shift; shift 13402 # Remember, the first character of IFS is used to create $*, 13403 # except with old shells: 13404 target_os=$* 13405 IFS=$ac_save_IFS 13406 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13407 13408 13409 # The aliases save the names the user supplied, while $host etc. 13410 # will get canonicalized. 13411 test -n "$target_alias" && 13412 test "$program_prefix$program_suffix$program_transform_name" = \ 13413 NONENONEs,x,x, && 13414 program_prefix=${target_alias}- 13415 13416 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13417 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13418 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13419 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13420 # to use the configure naming style. 13421 13422 13423 13424 13425 13426 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13427 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13428 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13429 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13430 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13431 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13432 13433 13434 13435 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13436 13437 case "$build_os" in 13438 *linux*) 13439 VAR_OS=linux 13440 VAR_OS_API=posix 13441 VAR_OS_ENV=linux 13442 ;; 13443 *solaris*) 13444 VAR_OS=solaris 13445 VAR_OS_API=posix 13446 VAR_OS_ENV=solaris 13447 ;; 13448 *darwin*) 13449 VAR_OS=macosx 13450 VAR_OS_API=posix 13451 VAR_OS_ENV=macosx 13452 ;; 13453 *bsd*) 13454 VAR_OS=bsd 13455 VAR_OS_API=posix 13456 VAR_OS_ENV=bsd 13457 ;; 13458 *cygwin*) 13459 VAR_OS=windows 13460 VAR_OS_API=winapi 13461 VAR_OS_ENV=windows.cygwin 13462 ;; 13463 *mingw*) 13464 VAR_OS=windows 13465 VAR_OS_API=winapi 13466 VAR_OS_ENV=windows.msys 13467 ;; 13468 *aix*) 13469 VAR_OS=aix 13470 VAR_OS_API=posix 13471 VAR_OS_ENV=aix 13472 ;; 13473 *) 13474 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13475 ;; 13476 esac 13477 13478 13479 # First argument is the cpu name from the trip/quad 13480 case "$build_cpu" in 13481 x86_64) 13482 VAR_CPU=x86_64 13483 VAR_CPU_ARCH=x86 13484 VAR_CPU_BITS=64 13485 VAR_CPU_ENDIAN=little 13486 ;; 13487 i?86) 13488 VAR_CPU=x86 13489 VAR_CPU_ARCH=x86 13490 VAR_CPU_BITS=32 13491 VAR_CPU_ENDIAN=little 13492 ;; 13493 arm*) 13494 VAR_CPU=arm 13495 VAR_CPU_ARCH=arm 13496 VAR_CPU_BITS=32 13497 VAR_CPU_ENDIAN=little 13498 ;; 13499 powerpc) 13500 VAR_CPU=ppc 13501 VAR_CPU_ARCH=ppc 13502 VAR_CPU_BITS=32 13503 VAR_CPU_ENDIAN=big 13504 ;; 13505 powerpc64) 13506 VAR_CPU=ppc64 13507 VAR_CPU_ARCH=ppc 13508 VAR_CPU_BITS=64 13509 VAR_CPU_ENDIAN=big 13510 ;; 13511 s390) 13512 VAR_CPU=s390 13513 VAR_CPU_ARCH=s390 13514 VAR_CPU_BITS=32 13515 VAR_CPU_ENDIAN=big 13516 ;; 13517 s390x) 13518 VAR_CPU=s390x 13519 VAR_CPU_ARCH=s390 13520 VAR_CPU_BITS=64 13521 VAR_CPU_ENDIAN=big 13522 ;; 13523 sparc) 13524 VAR_CPU=sparc 13525 VAR_CPU_ARCH=sparc 13526 VAR_CPU_BITS=32 13527 VAR_CPU_ENDIAN=big 13528 ;; 13529 sparcv9) 13530 VAR_CPU=sparcv9 13531 VAR_CPU_ARCH=sparc 13532 VAR_CPU_BITS=64 13533 VAR_CPU_ENDIAN=big 13534 ;; 13535 *) 13536 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13537 ;; 13538 esac 13539 13540 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13541 OPENJDK_BUILD_OS="$VAR_OS" 13542 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13543 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13544 OPENJDK_BUILD_CPU="$VAR_CPU" 13545 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13546 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13547 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13548 13549 13550 13551 13552 13553 13554 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13556 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13558 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13559 13560 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13561 13562 case "$host_os" in 13563 *linux*) 13564 VAR_OS=linux 13565 VAR_OS_API=posix 13566 VAR_OS_ENV=linux 13567 ;; 13568 *solaris*) 13569 VAR_OS=solaris 13570 VAR_OS_API=posix 13571 VAR_OS_ENV=solaris 13572 ;; 13573 *darwin*) 13574 VAR_OS=macosx 13575 VAR_OS_API=posix 13576 VAR_OS_ENV=macosx 13577 ;; 13578 *bsd*) 13579 VAR_OS=bsd 13580 VAR_OS_API=posix 13581 VAR_OS_ENV=bsd 13582 ;; 13583 *cygwin*) 13584 VAR_OS=windows 13585 VAR_OS_API=winapi 13586 VAR_OS_ENV=windows.cygwin 13587 ;; 13588 *mingw*) 13589 VAR_OS=windows 13590 VAR_OS_API=winapi 13591 VAR_OS_ENV=windows.msys 13592 ;; 13593 *aix*) 13594 VAR_OS=aix 13595 VAR_OS_API=posix 13596 VAR_OS_ENV=aix 13597 ;; 13598 *) 13599 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13600 ;; 13601 esac 13602 13603 13604 # First argument is the cpu name from the trip/quad 13605 case "$host_cpu" in 13606 x86_64) 13607 VAR_CPU=x86_64 13608 VAR_CPU_ARCH=x86 13609 VAR_CPU_BITS=64 13610 VAR_CPU_ENDIAN=little 13611 ;; 13612 i?86) 13613 VAR_CPU=x86 13614 VAR_CPU_ARCH=x86 13615 VAR_CPU_BITS=32 13616 VAR_CPU_ENDIAN=little 13617 ;; 13618 arm*) 13619 VAR_CPU=arm 13620 VAR_CPU_ARCH=arm 13621 VAR_CPU_BITS=32 13622 VAR_CPU_ENDIAN=little 13623 ;; 13624 powerpc) 13625 VAR_CPU=ppc 13626 VAR_CPU_ARCH=ppc 13627 VAR_CPU_BITS=32 13628 VAR_CPU_ENDIAN=big 13629 ;; 13630 powerpc64) 13631 VAR_CPU=ppc64 13632 VAR_CPU_ARCH=ppc 13633 VAR_CPU_BITS=64 13634 VAR_CPU_ENDIAN=big 13635 ;; 13636 s390) 13637 VAR_CPU=s390 13638 VAR_CPU_ARCH=s390 13639 VAR_CPU_BITS=32 13640 VAR_CPU_ENDIAN=big 13641 ;; 13642 s390x) 13643 VAR_CPU=s390x 13644 VAR_CPU_ARCH=s390 13645 VAR_CPU_BITS=64 13646 VAR_CPU_ENDIAN=big 13647 ;; 13648 sparc) 13649 VAR_CPU=sparc 13650 VAR_CPU_ARCH=sparc 13651 VAR_CPU_BITS=32 13652 VAR_CPU_ENDIAN=big 13653 ;; 13654 sparcv9) 13655 VAR_CPU=sparcv9 13656 VAR_CPU_ARCH=sparc 13657 VAR_CPU_BITS=64 13658 VAR_CPU_ENDIAN=big 13659 ;; 13660 *) 13661 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13662 ;; 13663 esac 13664 13665 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13666 OPENJDK_TARGET_OS="$VAR_OS" 13667 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13668 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13669 OPENJDK_TARGET_CPU="$VAR_CPU" 13670 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13671 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13672 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13673 13674 13675 13676 13677 13678 13679 13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13681 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13683 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13684 13685 13686 13687 # Check whether --with-target-bits was given. 13688 if test "${with_target_bits+set}" = set; then : 13689 withval=$with_target_bits; 13690 fi 13691 13692 13693 # We have three types of compiles: 13694 # native == normal compilation, target system == build system 13695 # cross == traditional cross compilation, target system != build system; special toolchain needed 13696 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13697 # 13698 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13699 # We're doing a proper cross-compilation 13700 COMPILE_TYPE="cross" 13701 else 13702 COMPILE_TYPE="native" 13703 fi 13704 13705 if test "x$with_target_bits" != x; then 13706 if test "x$COMPILE_TYPE" = "xcross"; then 13707 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13708 fi 13709 13710 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13711 # A reduced build is requested 13712 COMPILE_TYPE="reduced" 13713 OPENJDK_TARGET_CPU_BITS=32 13714 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13715 OPENJDK_TARGET_CPU=x86 13716 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13717 OPENJDK_TARGET_CPU=sparc 13718 else 13719 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13720 fi 13721 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13722 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 13723 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13725 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13726 else 13727 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13728 fi 13729 fi 13730 13731 13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13733 $as_echo_n "checking compilation type... " >&6; } 13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13735 $as_echo "$COMPILE_TYPE" >&6; } 13736 13737 13738 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13739 REQUIRED_OS_NAME=SunOS 13740 REQUIRED_OS_VERSION=5.10 13741 fi 13742 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13743 REQUIRED_OS_NAME=Linux 13744 REQUIRED_OS_VERSION=2.6 13745 fi 13746 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13747 REQUIRED_OS_NAME=Windows 13748 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13749 REQUIRED_OS_VERSION=5.2 13750 else 13751 REQUIRED_OS_VERSION=5.1 13752 fi 13753 fi 13754 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13755 REQUIRED_OS_NAME=Darwin 13756 REQUIRED_OS_VERSION=11.2 13757 fi 13758 13759 13760 13761 13762 13763 # Also store the legacy naming of the cpu. 13764 # Ie i586 and amd64 instead of x86 and x86_64 13765 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13766 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13767 OPENJDK_TARGET_CPU_LEGACY="i586" 13768 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13769 # On all platforms except MacOSX replace x86_64 with amd64. 13770 OPENJDK_TARGET_CPU_LEGACY="amd64" 13771 fi 13772 13773 13774 # And the second legacy naming of the cpu. 13775 # Ie i386 and amd64 instead of x86 and x86_64. 13776 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13777 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13778 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13779 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13780 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13781 fi 13782 13783 13784 # This is the name of the cpu (but using i386 and amd64 instead of 13785 # x86 and x86_64, respectively), preceeded by a /, to be used when 13786 # locating libraries. On macosx, it's empty, though. 13787 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13788 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13789 OPENJDK_TARGET_CPU_LIBDIR="" 13790 fi 13791 13792 13793 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13794 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13795 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13796 OPENJDK_TARGET_CPU_ISADIR="" 13797 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13798 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13799 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13800 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13801 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13802 fi 13803 fi 13804 13805 13806 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13807 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13808 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13809 # On linux only, we replace x86 with i386. 13810 OPENJDK_TARGET_CPU_OSARCH="i386" 13811 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13812 # On all platforms except macosx, we replace x86_64 with amd64. 13813 OPENJDK_TARGET_CPU_OSARCH="amd64" 13814 fi 13815 13816 13817 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13818 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13819 OPENJDK_TARGET_CPU_JLI="i386" 13820 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13821 # On all platforms except macosx, we replace x86_64 with amd64. 13822 OPENJDK_TARGET_CPU_JLI="amd64" 13823 fi 13824 # Now setup the -D flags for building libjli. 13825 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13826 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13827 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13828 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13829 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13830 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13831 fi 13832 fi 13833 13834 13835 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 13836 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 13837 OPENJDK_TARGET_OS_API_DIR="solaris" 13838 fi 13839 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 13840 OPENJDK_TARGET_OS_API_DIR="windows" 13841 fi 13842 13843 13844 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13845 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13846 else 13847 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 13848 fi 13849 13850 13851 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13852 A_LP64="LP64:=" 13853 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13854 # unpack200.exe 13855 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13856 ADD_LP64="-D_LP64=1" 13857 fi 13858 fi 13859 LP64=$A_LP64 13860 13861 13862 if test "x$COMPILE_TYPE" = "xcross"; then 13863 # FIXME: ... or should this include reduced builds..? 13864 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13865 else 13866 DEFINE_CROSS_COMPILE_ARCH="" 13867 fi 13868 13869 13870 # ZERO_ARCHDEF is used to enable architecture-specific code 13871 case "${OPENJDK_TARGET_CPU}" in 13872 ppc*) ZERO_ARCHDEF=PPC ;; 13873 s390*) ZERO_ARCHDEF=S390 ;; 13874 sparc*) ZERO_ARCHDEF=SPARC ;; 13875 x86_64*) ZERO_ARCHDEF=AMD64 ;; 13876 x86) ZERO_ARCHDEF=IA32 ;; 13877 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 13878 esac 13879 13880 13881 13882 13883 # Continue setting up basic stuff. Most remaining code require fundamental tools. 13884 13885 # Save the current directory this script was started from 13886 CURDIR="$PWD" 13887 13888 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13889 PATH_SEP=";" 13890 13891 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 13892 if test $SRC_ROOT_LENGTH -gt 100; then 13893 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 13894 fi 13895 13896 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 13898 $as_echo_n "checking cygwin release... " >&6; } 13899 CYGWIN_VERSION=`$UNAME -r` 13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 13901 $as_echo "$CYGWIN_VERSION" >&6; } 13902 WINDOWS_ENV_VENDOR='cygwin' 13903 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 13904 13905 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 13906 if test "x$CYGWIN_VERSION_OK" = x; then 13907 { $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 13908 $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;} 13909 as_fn_error $? "Cannot continue" "$LINENO" 5 13910 fi 13911 if test "x$CYGPATH" = x; then 13912 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 13913 fi 13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 13915 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 13916 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 13917 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 13918 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 13919 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 13921 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 13922 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 13923 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 13924 if test "x$test_cygdrive_prefix" = x; then 13925 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 13926 fi 13927 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 13929 $as_echo_n "checking msys release... " >&6; } 13930 MSYS_VERSION=`$UNAME -r` 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 13932 $as_echo "$MSYS_VERSION" >&6; } 13933 13934 WINDOWS_ENV_VENDOR='msys' 13935 WINDOWS_ENV_VERSION="$MSYS_VERSION" 13936 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 13938 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 13939 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 13940 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 13941 13942 windows_path="$MSYS_ROOT_PATH" 13943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13944 unix_path=`$CYGPATH -u "$windows_path"` 13945 MSYS_ROOT_PATH="$unix_path" 13946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13947 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13948 MSYS_ROOT_PATH="$unix_path" 13949 fi 13950 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 13952 $as_echo "$MSYS_ROOT_PATH" >&6; } 13953 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 13954 else 13955 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 13956 fi 13957 13958 # Test if windows or unix (cygwin/msys) find is first in path. 13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 13960 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 13961 FIND_BINARY_OUTPUT=`find --version 2>&1` 13962 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 13964 $as_echo "unix style" >&6; } 13965 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 13967 $as_echo "Windows" >&6; } 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 13969 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 13970 { $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 13971 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 13972 as_fn_error $? "Cannot continue" "$LINENO" 5 13973 else 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 13975 $as_echo "unknown" >&6; } 13976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 13977 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 13978 fi 13979 13980 else 13981 PATH_SEP=":" 13982 fi 13983 13984 13985 # We get the top-level directory from the supporting wrappers. 13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 13987 $as_echo_n "checking for top-level directory... " >&6; } 13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 13989 $as_echo "$TOPDIR" >&6; } 13990 13991 13992 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 13993 13994 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13995 13996 # Input might be given as Windows format, start by converting to 13997 # unix format. 13998 path="$CURDIR" 13999 new_path=`$CYGPATH -u "$path"` 14000 14001 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14002 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14003 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14004 # "foo.exe" is OK but "foo" is an error. 14005 # 14006 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14007 # It is also a way to make sure we got the proper file name for the real test later on. 14008 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14009 if test "x$test_shortpath" = x; then 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14011 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14012 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14013 fi 14014 14015 # Call helper function which possibly converts this using DOS-style short mode. 14016 # If so, the updated path is stored in $new_path. 14017 14018 input_path="$new_path" 14019 # Check if we need to convert this using DOS-style short mode. If the path 14020 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14021 # take no chances and rewrite it. 14022 # Note: m4 eats our [], so we need to use [ and ] instead. 14023 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14024 if test "x$has_forbidden_chars" != x; then 14025 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14026 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14027 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14028 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14029 # Going to short mode and back again did indeed matter. Since short mode is 14030 # case insensitive, let's make it lowercase to improve readability. 14031 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14032 # Now convert it back to Unix-stile (cygpath) 14033 input_path=`$CYGPATH -u "$shortmode_path"` 14034 new_path="$input_path" 14035 fi 14036 fi 14037 14038 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14039 if test "x$test_cygdrive_prefix" = x; then 14040 # As a simple fix, exclude /usr/bin since it's not a real path. 14041 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14042 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14043 # a path prefixed by /cygdrive for fixpath to work. 14044 new_path="$CYGWIN_ROOT_PATH$input_path" 14045 fi 14046 fi 14047 14048 14049 if test "x$path" != "x$new_path"; then 14050 CURDIR="$new_path" 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14052 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14053 fi 14054 14055 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14056 14057 path="$CURDIR" 14058 has_colon=`$ECHO $path | $GREP ^.:` 14059 new_path="$path" 14060 if test "x$has_colon" = x; then 14061 # Not in mixed or Windows style, start by that. 14062 new_path=`cmd //c echo $path` 14063 fi 14064 14065 14066 input_path="$new_path" 14067 # Check if we need to convert this using DOS-style short mode. If the path 14068 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14069 # take no chances and rewrite it. 14070 # Note: m4 eats our [], so we need to use [ and ] instead. 14071 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14072 if test "x$has_forbidden_chars" != x; then 14073 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14074 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14075 fi 14076 14077 14078 windows_path="$new_path" 14079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14080 unix_path=`$CYGPATH -u "$windows_path"` 14081 new_path="$unix_path" 14082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14083 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14084 new_path="$unix_path" 14085 fi 14086 14087 if test "x$path" != "x$new_path"; then 14088 CURDIR="$new_path" 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14090 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14091 fi 14092 14093 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14094 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14095 14096 else 14097 # We're on a posix platform. Hooray! :) 14098 path="$CURDIR" 14099 has_space=`$ECHO "$path" | $GREP " "` 14100 if test "x$has_space" != x; then 14101 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14102 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14103 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14104 fi 14105 14106 # Use eval to expand a potential ~ 14107 eval path="$path" 14108 if test ! -f "$path" && test ! -d "$path"; then 14109 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14110 fi 14111 14112 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14113 fi 14114 14115 14116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14117 14118 # Input might be given as Windows format, start by converting to 14119 # unix format. 14120 path="$TOPDIR" 14121 new_path=`$CYGPATH -u "$path"` 14122 14123 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14124 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14125 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14126 # "foo.exe" is OK but "foo" is an error. 14127 # 14128 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14129 # It is also a way to make sure we got the proper file name for the real test later on. 14130 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14131 if test "x$test_shortpath" = x; then 14132 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14133 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14134 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14135 fi 14136 14137 # Call helper function which possibly converts this using DOS-style short mode. 14138 # If so, the updated path is stored in $new_path. 14139 14140 input_path="$new_path" 14141 # Check if we need to convert this using DOS-style short mode. If the path 14142 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14143 # take no chances and rewrite it. 14144 # Note: m4 eats our [], so we need to use [ and ] instead. 14145 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14146 if test "x$has_forbidden_chars" != x; then 14147 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14148 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14149 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14150 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14151 # Going to short mode and back again did indeed matter. Since short mode is 14152 # case insensitive, let's make it lowercase to improve readability. 14153 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14154 # Now convert it back to Unix-stile (cygpath) 14155 input_path=`$CYGPATH -u "$shortmode_path"` 14156 new_path="$input_path" 14157 fi 14158 fi 14159 14160 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14161 if test "x$test_cygdrive_prefix" = x; then 14162 # As a simple fix, exclude /usr/bin since it's not a real path. 14163 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14164 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14165 # a path prefixed by /cygdrive for fixpath to work. 14166 new_path="$CYGWIN_ROOT_PATH$input_path" 14167 fi 14168 fi 14169 14170 14171 if test "x$path" != "x$new_path"; then 14172 TOPDIR="$new_path" 14173 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14174 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14175 fi 14176 14177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14178 14179 path="$TOPDIR" 14180 has_colon=`$ECHO $path | $GREP ^.:` 14181 new_path="$path" 14182 if test "x$has_colon" = x; then 14183 # Not in mixed or Windows style, start by that. 14184 new_path=`cmd //c echo $path` 14185 fi 14186 14187 14188 input_path="$new_path" 14189 # Check if we need to convert this using DOS-style short mode. If the path 14190 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14191 # take no chances and rewrite it. 14192 # Note: m4 eats our [], so we need to use [ and ] instead. 14193 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14194 if test "x$has_forbidden_chars" != x; then 14195 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14196 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14197 fi 14198 14199 14200 windows_path="$new_path" 14201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14202 unix_path=`$CYGPATH -u "$windows_path"` 14203 new_path="$unix_path" 14204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14205 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14206 new_path="$unix_path" 14207 fi 14208 14209 if test "x$path" != "x$new_path"; then 14210 TOPDIR="$new_path" 14211 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14212 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14213 fi 14214 14215 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14216 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14217 14218 else 14219 # We're on a posix platform. Hooray! :) 14220 path="$TOPDIR" 14221 has_space=`$ECHO "$path" | $GREP " "` 14222 if test "x$has_space" != x; then 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14224 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14225 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14226 fi 14227 14228 # Use eval to expand a potential ~ 14229 eval path="$path" 14230 if test ! -f "$path" && test ! -d "$path"; then 14231 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14232 fi 14233 14234 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14235 fi 14236 14237 # SRC_ROOT is a traditional alias for TOPDIR. 14238 SRC_ROOT=$TOPDIR 14239 14240 # Locate the directory of this script. 14241 AUTOCONF_DIR=$TOPDIR/common/autoconf 14242 14243 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 14244 # Add extra search paths on solaris for utilities like ar and as etc... 14245 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 14246 fi 14247 14248 # You can force the sys-root if the sys-root encoded into the cross compiler tools 14249 # is not correct. 14250 14251 # Check whether --with-sys-root was given. 14252 if test "${with_sys_root+set}" = set; then : 14253 withval=$with_sys_root; 14254 fi 14255 14256 14257 if test "x$with_sys_root" != x; then 14258 SYS_ROOT=$with_sys_root 14259 else 14260 SYS_ROOT=/ 14261 fi 14262 14263 14264 14265 # Check whether --with-tools-dir was given. 14266 if test "${with_tools_dir+set}" = set; then : 14267 withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir 14268 14269 fi 14270 14271 14272 14273 # Check whether --with-devkit was given. 14274 if test "${with_devkit+set}" = set; then : 14275 withval=$with_devkit; 14276 if test "x$with_sys_root" != x; then 14277 as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5 14278 fi 14279 14280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14281 14282 # Input might be given as Windows format, start by converting to 14283 # unix format. 14284 path="$with_devkit" 14285 new_path=`$CYGPATH -u "$path"` 14286 14287 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14288 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14289 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14290 # "foo.exe" is OK but "foo" is an error. 14291 # 14292 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14293 # It is also a way to make sure we got the proper file name for the real test later on. 14294 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14295 if test "x$test_shortpath" = x; then 14296 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14297 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14298 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14299 fi 14300 14301 # Call helper function which possibly converts this using DOS-style short mode. 14302 # If so, the updated path is stored in $new_path. 14303 14304 input_path="$new_path" 14305 # Check if we need to convert this using DOS-style short mode. If the path 14306 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14307 # take no chances and rewrite it. 14308 # Note: m4 eats our [], so we need to use [ and ] instead. 14309 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14310 if test "x$has_forbidden_chars" != x; then 14311 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14312 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14313 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14314 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14315 # Going to short mode and back again did indeed matter. Since short mode is 14316 # case insensitive, let's make it lowercase to improve readability. 14317 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14318 # Now convert it back to Unix-stile (cygpath) 14319 input_path=`$CYGPATH -u "$shortmode_path"` 14320 new_path="$input_path" 14321 fi 14322 fi 14323 14324 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14325 if test "x$test_cygdrive_prefix" = x; then 14326 # As a simple fix, exclude /usr/bin since it's not a real path. 14327 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14328 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14329 # a path prefixed by /cygdrive for fixpath to work. 14330 new_path="$CYGWIN_ROOT_PATH$input_path" 14331 fi 14332 fi 14333 14334 14335 if test "x$path" != "x$new_path"; then 14336 with_devkit="$new_path" 14337 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14338 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14339 fi 14340 14341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14342 14343 path="$with_devkit" 14344 has_colon=`$ECHO $path | $GREP ^.:` 14345 new_path="$path" 14346 if test "x$has_colon" = x; then 14347 # Not in mixed or Windows style, start by that. 14348 new_path=`cmd //c echo $path` 14349 fi 14350 14351 14352 input_path="$new_path" 14353 # Check if we need to convert this using DOS-style short mode. If the path 14354 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14355 # take no chances and rewrite it. 14356 # Note: m4 eats our [], so we need to use [ and ] instead. 14357 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14358 if test "x$has_forbidden_chars" != x; then 14359 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14360 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14361 fi 14362 14363 14364 windows_path="$new_path" 14365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14366 unix_path=`$CYGPATH -u "$windows_path"` 14367 new_path="$unix_path" 14368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14370 new_path="$unix_path" 14371 fi 14372 14373 if test "x$path" != "x$new_path"; then 14374 with_devkit="$new_path" 14375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14376 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14377 fi 14378 14379 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14380 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14381 14382 else 14383 # We're on a posix platform. Hooray! :) 14384 path="$with_devkit" 14385 has_space=`$ECHO "$path" | $GREP " "` 14386 if test "x$has_space" != x; then 14387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14388 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14389 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14390 fi 14391 14392 # Use eval to expand a potential ~ 14393 eval path="$path" 14394 if test ! -f "$path" && test ! -d "$path"; then 14395 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14396 fi 14397 14398 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14399 fi 14400 14401 14402 if test "x$TOOLS_DIR" = x; then 14403 TOOLS_DIR="$with_devkit/bin" 14404 else 14405 TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin" 14406 fi 14407 14408 if test -d "$with_devkit/$host_alias/libc"; then 14409 SYS_ROOT=$with_devkit/$host_alias/libc 14410 elif test -d "$with_devkit/$host/sys-root"; then 14411 SYS_ROOT=$with_devkit/$host/sys-root 14412 fi 14413 14414 fi 14415 14416 14417 14418 # Setup default logging of stdout and stderr to build.log in the output root. 14419 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14420 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14421 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14422 14423 14424 14425 14426 14427 # Check if it's a pure open build or if custom sources are to be used. 14428 14429 # Check whether --enable-openjdk-only was given. 14430 if test "${enable_openjdk_only+set}" = set; then : 14431 enableval=$enable_openjdk_only; 14432 else 14433 enable_openjdk_only="no" 14434 fi 14435 14436 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14438 $as_echo_n "checking for presence of closed sources... " >&6; } 14439 if test -d "$SRC_ROOT/jdk/src/closed"; then 14440 CLOSED_SOURCE_PRESENT=yes 14441 else 14442 CLOSED_SOURCE_PRESENT=no 14443 fi 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14445 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14446 14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14448 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14449 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14451 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14452 14453 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14454 OPENJDK=true 14455 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14457 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14458 fi 14459 else 14460 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14461 OPENJDK=true 14462 else 14463 OPENJDK=false 14464 fi 14465 fi 14466 14467 if test "x$OPENJDK" = "xtrue"; then 14468 SET_OPENJDK="OPENJDK=true" 14469 fi 14470 14471 14472 14473 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14474 # the IncludeCustomExtension macro. 14475 14476 14477 # Check whether --with-custom-make-dir was given. 14478 if test "${with_custom_make_dir+set}" = set; then : 14479 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 14480 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14481 fi 14482 14483 14484 14485 14486 # These are needed to be able to create a configuration name (and thus the output directory) 14487 14488 ############################################################################### 14489 # 14490 # Check which variant of the JDK that we want to build. 14491 # Currently we have: 14492 # normal: standard edition 14493 # but the custom make system may add other variants 14494 # 14495 # Effectively the JDK variant gives a name to a specific set of 14496 # modules to compile into the JDK. In the future, these modules 14497 # might even be Jigsaw modules. 14498 # 14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14500 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14501 14502 # Check whether --with-jdk-variant was given. 14503 if test "${with_jdk_variant+set}" = set; then : 14504 withval=$with_jdk_variant; 14505 fi 14506 14507 14508 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14509 JDK_VARIANT="normal" 14510 else 14511 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14512 fi 14513 14514 14515 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14517 $as_echo "$JDK_VARIANT" >&6; } 14518 14519 14520 ############################################################################### 14521 # 14522 # Check which interpreter of the JVM we want to build. 14523 # Currently we have: 14524 # template: Template interpreter (the default) 14525 # cpp : C++ interpreter 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14527 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14528 14529 # Check whether --with-jvm-interpreter was given. 14530 if test "${with_jvm_interpreter+set}" = set; then : 14531 withval=$with_jvm_interpreter; 14532 fi 14533 14534 14535 if test "x$with_jvm_interpreter" = x; then 14536 with_jvm_interpreter="template" 14537 fi 14538 14539 JVM_INTERPRETER="$with_jvm_interpreter" 14540 14541 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14542 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14543 fi 14544 14545 14546 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14548 $as_echo "$with_jvm_interpreter" >&6; } 14549 14550 14551 14552 ############################################################################### 14553 # 14554 # Check which variants of the JVM that we want to build. 14555 # Currently we have: 14556 # server: normal interpreter and a tiered C1/C2 compiler 14557 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14558 # minimal1: reduced form of client with optional VM services and features stripped out 14559 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14560 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14561 # zero: no machine code interpreter, no compiler 14562 # zeroshark: zero interpreter and shark/llvm compiler backend 14563 # core: interpreter only, no compiler (only works on some platforms) 14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14565 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14566 14567 # Check whether --with-jvm-variants was given. 14568 if test "${with_jvm_variants+set}" = set; then : 14569 withval=$with_jvm_variants; 14570 fi 14571 14572 14573 if test "x$with_jvm_variants" = x; then 14574 with_jvm_variants="server" 14575 fi 14576 14577 JVM_VARIANTS=",$with_jvm_variants," 14578 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,//'` 14579 14580 if test "x$TEST_VARIANTS" != "x,"; then 14581 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14582 fi 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14584 $as_echo "$with_jvm_variants" >&6; } 14585 14586 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14587 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14588 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14589 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14590 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14591 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14592 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14593 14594 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14595 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14596 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14597 fi 14598 fi 14599 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14600 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14601 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14602 fi 14603 fi 14604 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14605 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14606 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14607 fi 14608 fi 14609 14610 # Replace the commas with AND for use in the build directory name. 14611 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14612 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/'` 14613 if test "x$COUNT_VARIANTS" != "x,1"; then 14614 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14615 else 14616 BUILDING_MULTIPLE_JVM_VARIANTS=no 14617 fi 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 INCLUDE_SA=true 14629 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14630 INCLUDE_SA=false 14631 fi 14632 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14633 INCLUDE_SA=false 14634 fi 14635 if test "x$VAR_CPU" = xppc64 ; then 14636 INCLUDE_SA=false 14637 fi 14638 14639 14640 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14641 MACOSX_UNIVERSAL="true" 14642 fi 14643 14644 14645 14646 14647 ############################################################################### 14648 # 14649 # Set the debug level 14650 # release: no debug information, all optimizations, no asserts. 14651 # fastdebug: debug information (-g), all optimizations, all asserts 14652 # slowdebug: debug information (-g), no optimizations, all asserts 14653 # 14654 DEBUG_LEVEL="release" 14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14656 $as_echo_n "checking which debug level to use... " >&6; } 14657 # Check whether --enable-debug was given. 14658 if test "${enable_debug+set}" = set; then : 14659 enableval=$enable_debug; 14660 ENABLE_DEBUG="${enableval}" 14661 DEBUG_LEVEL="fastdebug" 14662 14663 else 14664 ENABLE_DEBUG="no" 14665 fi 14666 14667 14668 14669 # Check whether --with-debug-level was given. 14670 if test "${with_debug_level+set}" = set; then : 14671 withval=$with_debug_level; 14672 DEBUG_LEVEL="${withval}" 14673 if test "x$ENABLE_DEBUG" = xyes; then 14674 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14675 fi 14676 14677 fi 14678 14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14680 $as_echo "$DEBUG_LEVEL" >&6; } 14681 14682 if test "x$DEBUG_LEVEL" != xrelease && \ 14683 test "x$DEBUG_LEVEL" != xfastdebug && \ 14684 test "x$DEBUG_LEVEL" != xslowdebug; then 14685 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14686 fi 14687 14688 14689 ############################################################################### 14690 # 14691 # Setup legacy vars/targets and new vars to deal with different debug levels. 14692 # 14693 14694 case $DEBUG_LEVEL in 14695 release ) 14696 VARIANT="OPT" 14697 FASTDEBUG="false" 14698 DEBUG_CLASSFILES="false" 14699 BUILD_VARIANT_RELEASE="" 14700 HOTSPOT_DEBUG_LEVEL="product" 14701 HOTSPOT_EXPORT="product" 14702 ;; 14703 fastdebug ) 14704 VARIANT="DBG" 14705 FASTDEBUG="true" 14706 DEBUG_CLASSFILES="true" 14707 BUILD_VARIANT_RELEASE="-fastdebug" 14708 HOTSPOT_DEBUG_LEVEL="fastdebug" 14709 HOTSPOT_EXPORT="fastdebug" 14710 ;; 14711 slowdebug ) 14712 VARIANT="DBG" 14713 FASTDEBUG="false" 14714 DEBUG_CLASSFILES="true" 14715 BUILD_VARIANT_RELEASE="-debug" 14716 HOTSPOT_DEBUG_LEVEL="jvmg" 14717 HOTSPOT_EXPORT="debug" 14718 ;; 14719 esac 14720 14721 ##### 14722 # Generate the legacy makefile targets for hotspot. 14723 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14724 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14725 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14726 # But until then ... 14727 HOTSPOT_TARGET="" 14728 14729 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14730 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14731 fi 14732 14733 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14734 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14735 fi 14736 14737 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14738 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14739 fi 14740 14741 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14742 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14743 fi 14744 14745 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14746 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14747 fi 14748 14749 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14750 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14751 fi 14752 14753 if test "x$JVM_VARIANT_CORE" = xtrue; then 14754 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14755 fi 14756 14757 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14758 14759 # On Macosx universal binaries are produced, but they only contain 14760 # 64 bit intel. This invalidates control of which jvms are built 14761 # from configure, but only server is valid anyway. Fix this 14762 # when hotspot makefiles are rewritten. 14763 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14764 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14765 fi 14766 14767 ##### 14768 14769 14770 14771 14772 14773 14774 14775 14776 # With basic setup done, call the custom early hook. 14777 14778 14779 # To properly create a configuration name, we need to have the OpenJDK target 14780 # and options (variants and debug level) parsed. 14781 14782 14783 14784 # Check whether --with-conf-name was given. 14785 if test "${with_conf_name+set}" = set; then : 14786 withval=$with_conf_name; CONF_NAME=${with_conf_name} 14787 fi 14788 14789 14790 # Test from where we are running configure, in or outside of src root. 14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 14792 $as_echo_n "checking where to store configuration... " >&6; } 14793 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 14794 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 14795 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 14796 # We are running configure from the src root. 14797 # Create a default ./build/target-variant-debuglevel output root. 14798 if test "x${CONF_NAME}" = x; then 14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 14800 $as_echo "in default location" >&6; } 14801 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 14802 else 14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 14804 $as_echo "in build directory with custom name" >&6; } 14805 fi 14806 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 14807 $MKDIR -p "$OUTPUT_ROOT" 14808 if test ! -d "$OUTPUT_ROOT"; then 14809 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 14810 fi 14811 else 14812 # We are running configure from outside of the src dir. 14813 # Then use the current directory as output dir! 14814 # If configuration is situated in normal build directory, just use the build 14815 # directory name as configuration name, otherwise use the complete path. 14816 if test "x${CONF_NAME}" = x; then 14817 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 14818 fi 14819 OUTPUT_ROOT="$CURDIR" 14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 14821 $as_echo "in current directory" >&6; } 14822 14823 # WARNING: This might be a bad thing to do. You need to be sure you want to 14824 # have a configuration in this directory. Do some sanity checks! 14825 14826 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 14827 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 14828 # other files 14829 files_present=`$LS $OUTPUT_ROOT` 14830 # Configure has already touched config.log and confdefs.h in the current dir when this check 14831 # is performed. 14832 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 14833 | $TR -d '\n'` 14834 if test "x$filtered_files" != x; then 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 14836 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 14837 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 14838 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 14839 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 14840 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 14841 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 14842 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 14843 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 14844 $as_echo "$as_me: seriously mess up just about everything." >&6;} 14845 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 14846 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 14847 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 14848 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 14849 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 14850 fi 14851 fi 14852 fi 14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 14854 $as_echo_n "checking what configuration name to use... " >&6; } 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 14856 $as_echo "$CONF_NAME" >&6; } 14857 14858 14859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14860 14861 # Input might be given as Windows format, start by converting to 14862 # unix format. 14863 path="$OUTPUT_ROOT" 14864 new_path=`$CYGPATH -u "$path"` 14865 14866 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14867 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14868 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14869 # "foo.exe" is OK but "foo" is an error. 14870 # 14871 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14872 # It is also a way to make sure we got the proper file name for the real test later on. 14873 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14874 if test "x$test_shortpath" = x; then 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 14876 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 14877 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 14878 fi 14879 14880 # Call helper function which possibly converts this using DOS-style short mode. 14881 # If so, the updated path is stored in $new_path. 14882 14883 input_path="$new_path" 14884 # Check if we need to convert this using DOS-style short mode. If the path 14885 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14886 # take no chances and rewrite it. 14887 # Note: m4 eats our [], so we need to use [ and ] instead. 14888 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14889 if test "x$has_forbidden_chars" != x; then 14890 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14891 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14892 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14893 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14894 # Going to short mode and back again did indeed matter. Since short mode is 14895 # case insensitive, let's make it lowercase to improve readability. 14896 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14897 # Now convert it back to Unix-stile (cygpath) 14898 input_path=`$CYGPATH -u "$shortmode_path"` 14899 new_path="$input_path" 14900 fi 14901 fi 14902 14903 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14904 if test "x$test_cygdrive_prefix" = x; then 14905 # As a simple fix, exclude /usr/bin since it's not a real path. 14906 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14907 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14908 # a path prefixed by /cygdrive for fixpath to work. 14909 new_path="$CYGWIN_ROOT_PATH$input_path" 14910 fi 14911 fi 14912 14913 14914 if test "x$path" != "x$new_path"; then 14915 OUTPUT_ROOT="$new_path" 14916 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 14917 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 14918 fi 14919 14920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14921 14922 path="$OUTPUT_ROOT" 14923 has_colon=`$ECHO $path | $GREP ^.:` 14924 new_path="$path" 14925 if test "x$has_colon" = x; then 14926 # Not in mixed or Windows style, start by that. 14927 new_path=`cmd //c echo $path` 14928 fi 14929 14930 14931 input_path="$new_path" 14932 # Check if we need to convert this using DOS-style short mode. If the path 14933 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14934 # take no chances and rewrite it. 14935 # Note: m4 eats our [], so we need to use [ and ] instead. 14936 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14937 if test "x$has_forbidden_chars" != x; then 14938 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14939 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14940 fi 14941 14942 14943 windows_path="$new_path" 14944 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14945 unix_path=`$CYGPATH -u "$windows_path"` 14946 new_path="$unix_path" 14947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14948 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14949 new_path="$unix_path" 14950 fi 14951 14952 if test "x$path" != "x$new_path"; then 14953 OUTPUT_ROOT="$new_path" 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 14955 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 14956 fi 14957 14958 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14959 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14960 14961 else 14962 # We're on a posix platform. Hooray! :) 14963 path="$OUTPUT_ROOT" 14964 has_space=`$ECHO "$path" | $GREP " "` 14965 if test "x$has_space" != x; then 14966 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 14967 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 14968 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14969 fi 14970 14971 # Use eval to expand a potential ~ 14972 eval path="$path" 14973 if test ! -f "$path" && test ! -d "$path"; then 14974 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 14975 fi 14976 14977 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 14978 fi 14979 14980 14981 SPEC=$OUTPUT_ROOT/spec.gmk 14982 14983 CONF_NAME=$CONF_NAME 14984 14985 OUTPUT_ROOT=$OUTPUT_ROOT 14986 14987 14988 # Most of the probed defines are put into config.h 14989 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 14990 14991 # The spec.gmk file contains all variables for the make system. 14992 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 14993 14994 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 14995 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 14996 14997 # The bootcycle-spec.gmk file contains support for boot cycle builds. 14998 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 14999 15000 # The compare.sh is used to compare the build output to other builds. 15001 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15002 15003 # Spec.sh is currently used by compare-objects.sh 15004 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15005 15006 # The generated Makefile knows where the spec.gmk is and where the source is. 15007 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15008 # which will look for generated configurations 15009 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15010 15011 15012 15013 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15014 15015 for ac_prog in apt-get yum port pkgutil pkgadd 15016 do 15017 # Extract the first word of "$ac_prog", so it can be a program name with args. 15018 set dummy $ac_prog; ac_word=$2 15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15020 $as_echo_n "checking for $ac_word... " >&6; } 15021 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15022 $as_echo_n "(cached) " >&6 15023 else 15024 if test -n "$PKGHANDLER"; then 15025 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15026 else 15027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15028 for as_dir in $PATH 15029 do 15030 IFS=$as_save_IFS 15031 test -z "$as_dir" && as_dir=. 15032 for ac_exec_ext in '' $ac_executable_extensions; do 15033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15034 ac_cv_prog_PKGHANDLER="$ac_prog" 15035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15036 break 2 15037 fi 15038 done 15039 done 15040 IFS=$as_save_IFS 15041 15042 fi 15043 fi 15044 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15045 if test -n "$PKGHANDLER"; then 15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15047 $as_echo "$PKGHANDLER" >&6; } 15048 else 15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15050 $as_echo "no" >&6; } 15051 fi 15052 15053 15054 test -n "$PKGHANDLER" && break 15055 done 15056 15057 15058 15059 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15060 15061 15062 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15063 if test "x$MAKE" != x; then 15064 # User has supplied a make, test it. 15065 if test ! -f "$MAKE"; then 15066 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15067 fi 15068 15069 MAKE_CANDIDATE=""$MAKE"" 15070 DESCRIPTION="user supplied MAKE=$MAKE" 15071 if test "x$MAKE_CANDIDATE" != x; then 15072 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15073 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15074 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15075 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15076 if test "x$IS_GNU_MAKE" = x; then 15077 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15078 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15079 else 15080 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15081 if test "x$IS_MODERN_MAKE" = x; then 15082 { $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 15083 $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;} 15084 else 15085 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15086 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15087 MAKE_EXPECTED_ENV='cygwin' 15088 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15089 MAKE_EXPECTED_ENV='msys' 15090 else 15091 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15092 fi 15093 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15094 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15095 else 15096 # Not relevant for non-Windows 15097 IS_MAKE_CORRECT_ENV=true 15098 fi 15099 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15100 { $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 15101 $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;} 15102 else 15103 FOUND_MAKE=$MAKE_CANDIDATE 15104 15105 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15106 15107 # First separate the path from the arguments. This will split at the first 15108 # space. 15109 complete="$FOUND_MAKE" 15110 path="${complete%% *}" 15111 tmp="$complete EOL" 15112 arguments="${tmp#* }" 15113 15114 # Input might be given as Windows format, start by converting to 15115 # unix format. 15116 new_path=`$CYGPATH -u "$path"` 15117 15118 # Now try to locate executable using which 15119 new_path=`$WHICH "$new_path" 2> /dev/null` 15120 # bat and cmd files are not always considered executable in cygwin causing which 15121 # to not find them 15122 if test "x$new_path" = x \ 15123 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15124 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15125 new_path=`$CYGPATH -u "$path"` 15126 fi 15127 if test "x$new_path" = x; then 15128 # Oops. Which didn't find the executable. 15129 # The splitting of arguments from the executable at a space might have been incorrect, 15130 # since paths with space are more likely in Windows. Give it another try with the whole 15131 # argument. 15132 path="$complete" 15133 arguments="EOL" 15134 new_path=`$CYGPATH -u "$path"` 15135 new_path=`$WHICH "$new_path" 2> /dev/null` 15136 # bat and cmd files are not always considered executable in cygwin causing which 15137 # to not find them 15138 if test "x$new_path" = x \ 15139 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15140 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15141 new_path=`$CYGPATH -u "$path"` 15142 fi 15143 if test "x$new_path" = x; then 15144 # It's still not found. Now this is an unrecoverable error. 15145 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15146 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15147 has_space=`$ECHO "$complete" | $GREP " "` 15148 if test "x$has_space" != x; then 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15150 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15151 fi 15152 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15153 fi 15154 fi 15155 15156 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15157 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15158 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15159 # "foo.exe" is OK but "foo" is an error. 15160 # 15161 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15162 # It is also a way to make sure we got the proper file name for the real test later on. 15163 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15164 if test "x$test_shortpath" = x; then 15165 # Short path failed, file does not exist as specified. 15166 # Try adding .exe or .cmd 15167 if test -f "${new_path}.exe"; then 15168 input_to_shortpath="${new_path}.exe" 15169 elif test -f "${new_path}.cmd"; then 15170 input_to_shortpath="${new_path}.cmd" 15171 else 15172 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15173 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15174 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15175 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15176 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15177 fi 15178 else 15179 input_to_shortpath="$new_path" 15180 fi 15181 15182 # Call helper function which possibly converts this using DOS-style short mode. 15183 # If so, the updated path is stored in $new_path. 15184 new_path="$input_to_shortpath" 15185 15186 input_path="$input_to_shortpath" 15187 # Check if we need to convert this using DOS-style short mode. If the path 15188 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15189 # take no chances and rewrite it. 15190 # Note: m4 eats our [], so we need to use [ and ] instead. 15191 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15192 if test "x$has_forbidden_chars" != x; then 15193 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15194 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15195 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15196 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15197 # Going to short mode and back again did indeed matter. Since short mode is 15198 # case insensitive, let's make it lowercase to improve readability. 15199 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15200 # Now convert it back to Unix-stile (cygpath) 15201 input_path=`$CYGPATH -u "$shortmode_path"` 15202 new_path="$input_path" 15203 fi 15204 fi 15205 15206 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15207 if test "x$test_cygdrive_prefix" = x; then 15208 # As a simple fix, exclude /usr/bin since it's not a real path. 15209 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15210 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15211 # a path prefixed by /cygdrive for fixpath to work. 15212 new_path="$CYGWIN_ROOT_PATH$input_path" 15213 fi 15214 fi 15215 15216 # remove trailing .exe if any 15217 new_path="${new_path/%.exe/}" 15218 15219 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15220 15221 # First separate the path from the arguments. This will split at the first 15222 # space. 15223 complete="$FOUND_MAKE" 15224 path="${complete%% *}" 15225 tmp="$complete EOL" 15226 arguments="${tmp#* }" 15227 15228 # Input might be given as Windows format, start by converting to 15229 # unix format. 15230 new_path="$path" 15231 15232 windows_path="$new_path" 15233 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15234 unix_path=`$CYGPATH -u "$windows_path"` 15235 new_path="$unix_path" 15236 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15237 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15238 new_path="$unix_path" 15239 fi 15240 15241 15242 # Now try to locate executable using which 15243 new_path=`$WHICH "$new_path" 2> /dev/null` 15244 15245 if test "x$new_path" = x; then 15246 # Oops. Which didn't find the executable. 15247 # The splitting of arguments from the executable at a space might have been incorrect, 15248 # since paths with space are more likely in Windows. Give it another try with the whole 15249 # argument. 15250 path="$complete" 15251 arguments="EOL" 15252 new_path="$path" 15253 15254 windows_path="$new_path" 15255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15256 unix_path=`$CYGPATH -u "$windows_path"` 15257 new_path="$unix_path" 15258 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15259 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15260 new_path="$unix_path" 15261 fi 15262 15263 15264 new_path=`$WHICH "$new_path" 2> /dev/null` 15265 15266 if test "x$new_path" = x; then 15267 # It's still not found. Now this is an unrecoverable error. 15268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15269 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15270 has_space=`$ECHO "$complete" | $GREP " "` 15271 if test "x$has_space" != x; then 15272 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15273 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15274 fi 15275 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15276 fi 15277 fi 15278 15279 # Now new_path has a complete unix path to the binary 15280 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15281 # Keep paths in /bin as-is, but remove trailing .exe if any 15282 new_path="${new_path/%.exe/}" 15283 # Do not save /bin paths to all_fixpath_prefixes! 15284 else 15285 # Not in mixed or Windows style, start by that. 15286 new_path=`cmd //c echo $new_path` 15287 15288 input_path="$new_path" 15289 # Check if we need to convert this using DOS-style short mode. If the path 15290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15291 # take no chances and rewrite it. 15292 # Note: m4 eats our [], so we need to use [ and ] instead. 15293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15294 if test "x$has_forbidden_chars" != x; then 15295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15296 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15297 fi 15298 15299 # Output is in $new_path 15300 15301 windows_path="$new_path" 15302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15303 unix_path=`$CYGPATH -u "$windows_path"` 15304 new_path="$unix_path" 15305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15307 new_path="$unix_path" 15308 fi 15309 15310 # remove trailing .exe if any 15311 new_path="${new_path/%.exe/}" 15312 15313 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15314 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15315 fi 15316 15317 else 15318 # We're on a posix platform. Hooray! :) 15319 # First separate the path from the arguments. This will split at the first 15320 # space. 15321 complete="$FOUND_MAKE" 15322 path="${complete%% *}" 15323 tmp="$complete EOL" 15324 arguments="${tmp#* }" 15325 15326 # Cannot rely on the command "which" here since it doesn't always work. 15327 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15328 if test -z "$is_absolute_path"; then 15329 # Path to executable is not absolute. Find it. 15330 IFS_save="$IFS" 15331 IFS=: 15332 for p in $PATH; do 15333 if test -f "$p/$path" && test -x "$p/$path"; then 15334 new_path="$p/$path" 15335 break 15336 fi 15337 done 15338 IFS="$IFS_save" 15339 else 15340 # This is an absolute path, we can use it without further modifications. 15341 new_path="$path" 15342 fi 15343 15344 if test "x$new_path" = x; then 15345 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15346 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15347 has_space=`$ECHO "$complete" | $GREP " "` 15348 if test "x$has_space" != x; then 15349 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15350 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15351 fi 15352 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15353 fi 15354 fi 15355 15356 # Now join together the path and the arguments once again 15357 if test "x$arguments" != xEOL; then 15358 new_complete="$new_path ${arguments% *}" 15359 else 15360 new_complete="$new_path" 15361 fi 15362 15363 if test "x$complete" != "x$new_complete"; then 15364 FOUND_MAKE="$new_complete" 15365 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15366 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15367 fi 15368 15369 fi 15370 fi 15371 fi 15372 fi 15373 15374 if test "x$FOUND_MAKE" = x; then 15375 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15376 fi 15377 else 15378 # Try our hardest to locate a correct version of GNU make 15379 for ac_prog in gmake 15380 do 15381 # Extract the first word of "$ac_prog", so it can be a program name with args. 15382 set dummy $ac_prog; ac_word=$2 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15384 $as_echo_n "checking for $ac_word... " >&6; } 15385 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15386 $as_echo_n "(cached) " >&6 15387 else 15388 case $CHECK_GMAKE in 15389 [\\/]* | ?:[\\/]*) 15390 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15391 ;; 15392 *) 15393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15394 for as_dir in $PATH 15395 do 15396 IFS=$as_save_IFS 15397 test -z "$as_dir" && as_dir=. 15398 for ac_exec_ext in '' $ac_executable_extensions; do 15399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15400 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15402 break 2 15403 fi 15404 done 15405 done 15406 IFS=$as_save_IFS 15407 15408 ;; 15409 esac 15410 fi 15411 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15412 if test -n "$CHECK_GMAKE"; then 15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15414 $as_echo "$CHECK_GMAKE" >&6; } 15415 else 15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15417 $as_echo "no" >&6; } 15418 fi 15419 15420 15421 test -n "$CHECK_GMAKE" && break 15422 done 15423 15424 15425 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15426 DESCRIPTION="gmake in PATH" 15427 if test "x$MAKE_CANDIDATE" != x; then 15428 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15429 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15430 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15431 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15432 if test "x$IS_GNU_MAKE" = x; then 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15434 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15435 else 15436 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15437 if test "x$IS_MODERN_MAKE" = x; then 15438 { $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 15439 $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;} 15440 else 15441 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15442 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15443 MAKE_EXPECTED_ENV='cygwin' 15444 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15445 MAKE_EXPECTED_ENV='msys' 15446 else 15447 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15448 fi 15449 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15450 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15451 else 15452 # Not relevant for non-Windows 15453 IS_MAKE_CORRECT_ENV=true 15454 fi 15455 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15456 { $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 15457 $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;} 15458 else 15459 FOUND_MAKE=$MAKE_CANDIDATE 15460 15461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15462 15463 # First separate the path from the arguments. This will split at the first 15464 # space. 15465 complete="$FOUND_MAKE" 15466 path="${complete%% *}" 15467 tmp="$complete EOL" 15468 arguments="${tmp#* }" 15469 15470 # Input might be given as Windows format, start by converting to 15471 # unix format. 15472 new_path=`$CYGPATH -u "$path"` 15473 15474 # Now try to locate executable using which 15475 new_path=`$WHICH "$new_path" 2> /dev/null` 15476 # bat and cmd files are not always considered executable in cygwin causing which 15477 # to not find them 15478 if test "x$new_path" = x \ 15479 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15480 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15481 new_path=`$CYGPATH -u "$path"` 15482 fi 15483 if test "x$new_path" = x; then 15484 # Oops. Which didn't find the executable. 15485 # The splitting of arguments from the executable at a space might have been incorrect, 15486 # since paths with space are more likely in Windows. Give it another try with the whole 15487 # argument. 15488 path="$complete" 15489 arguments="EOL" 15490 new_path=`$CYGPATH -u "$path"` 15491 new_path=`$WHICH "$new_path" 2> /dev/null` 15492 # bat and cmd files are not always considered executable in cygwin causing which 15493 # to not find them 15494 if test "x$new_path" = x \ 15495 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15496 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15497 new_path=`$CYGPATH -u "$path"` 15498 fi 15499 if test "x$new_path" = x; then 15500 # It's still not found. Now this is an unrecoverable error. 15501 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15502 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15503 has_space=`$ECHO "$complete" | $GREP " "` 15504 if test "x$has_space" != x; then 15505 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15506 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15507 fi 15508 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15509 fi 15510 fi 15511 15512 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15513 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15514 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15515 # "foo.exe" is OK but "foo" is an error. 15516 # 15517 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15518 # It is also a way to make sure we got the proper file name for the real test later on. 15519 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15520 if test "x$test_shortpath" = x; then 15521 # Short path failed, file does not exist as specified. 15522 # Try adding .exe or .cmd 15523 if test -f "${new_path}.exe"; then 15524 input_to_shortpath="${new_path}.exe" 15525 elif test -f "${new_path}.cmd"; then 15526 input_to_shortpath="${new_path}.cmd" 15527 else 15528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15529 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15530 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15531 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15532 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15533 fi 15534 else 15535 input_to_shortpath="$new_path" 15536 fi 15537 15538 # Call helper function which possibly converts this using DOS-style short mode. 15539 # If so, the updated path is stored in $new_path. 15540 new_path="$input_to_shortpath" 15541 15542 input_path="$input_to_shortpath" 15543 # Check if we need to convert this using DOS-style short mode. If the path 15544 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15545 # take no chances and rewrite it. 15546 # Note: m4 eats our [], so we need to use [ and ] instead. 15547 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15548 if test "x$has_forbidden_chars" != x; then 15549 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15550 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15551 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15552 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15553 # Going to short mode and back again did indeed matter. Since short mode is 15554 # case insensitive, let's make it lowercase to improve readability. 15555 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15556 # Now convert it back to Unix-stile (cygpath) 15557 input_path=`$CYGPATH -u "$shortmode_path"` 15558 new_path="$input_path" 15559 fi 15560 fi 15561 15562 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15563 if test "x$test_cygdrive_prefix" = x; then 15564 # As a simple fix, exclude /usr/bin since it's not a real path. 15565 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15566 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15567 # a path prefixed by /cygdrive for fixpath to work. 15568 new_path="$CYGWIN_ROOT_PATH$input_path" 15569 fi 15570 fi 15571 15572 # remove trailing .exe if any 15573 new_path="${new_path/%.exe/}" 15574 15575 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15576 15577 # First separate the path from the arguments. This will split at the first 15578 # space. 15579 complete="$FOUND_MAKE" 15580 path="${complete%% *}" 15581 tmp="$complete EOL" 15582 arguments="${tmp#* }" 15583 15584 # Input might be given as Windows format, start by converting to 15585 # unix format. 15586 new_path="$path" 15587 15588 windows_path="$new_path" 15589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15590 unix_path=`$CYGPATH -u "$windows_path"` 15591 new_path="$unix_path" 15592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15594 new_path="$unix_path" 15595 fi 15596 15597 15598 # Now try to locate executable using which 15599 new_path=`$WHICH "$new_path" 2> /dev/null` 15600 15601 if test "x$new_path" = x; then 15602 # Oops. Which didn't find the executable. 15603 # The splitting of arguments from the executable at a space might have been incorrect, 15604 # since paths with space are more likely in Windows. Give it another try with the whole 15605 # argument. 15606 path="$complete" 15607 arguments="EOL" 15608 new_path="$path" 15609 15610 windows_path="$new_path" 15611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15612 unix_path=`$CYGPATH -u "$windows_path"` 15613 new_path="$unix_path" 15614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15616 new_path="$unix_path" 15617 fi 15618 15619 15620 new_path=`$WHICH "$new_path" 2> /dev/null` 15621 15622 if test "x$new_path" = x; then 15623 # It's still not found. Now this is an unrecoverable error. 15624 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15625 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15626 has_space=`$ECHO "$complete" | $GREP " "` 15627 if test "x$has_space" != x; then 15628 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15629 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15630 fi 15631 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15632 fi 15633 fi 15634 15635 # Now new_path has a complete unix path to the binary 15636 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15637 # Keep paths in /bin as-is, but remove trailing .exe if any 15638 new_path="${new_path/%.exe/}" 15639 # Do not save /bin paths to all_fixpath_prefixes! 15640 else 15641 # Not in mixed or Windows style, start by that. 15642 new_path=`cmd //c echo $new_path` 15643 15644 input_path="$new_path" 15645 # Check if we need to convert this using DOS-style short mode. If the path 15646 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15647 # take no chances and rewrite it. 15648 # Note: m4 eats our [], so we need to use [ and ] instead. 15649 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15650 if test "x$has_forbidden_chars" != x; then 15651 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15652 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15653 fi 15654 15655 # Output is in $new_path 15656 15657 windows_path="$new_path" 15658 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15659 unix_path=`$CYGPATH -u "$windows_path"` 15660 new_path="$unix_path" 15661 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15662 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15663 new_path="$unix_path" 15664 fi 15665 15666 # remove trailing .exe if any 15667 new_path="${new_path/%.exe/}" 15668 15669 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15670 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15671 fi 15672 15673 else 15674 # We're on a posix platform. Hooray! :) 15675 # First separate the path from the arguments. This will split at the first 15676 # space. 15677 complete="$FOUND_MAKE" 15678 path="${complete%% *}" 15679 tmp="$complete EOL" 15680 arguments="${tmp#* }" 15681 15682 # Cannot rely on the command "which" here since it doesn't always work. 15683 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15684 if test -z "$is_absolute_path"; then 15685 # Path to executable is not absolute. Find it. 15686 IFS_save="$IFS" 15687 IFS=: 15688 for p in $PATH; do 15689 if test -f "$p/$path" && test -x "$p/$path"; then 15690 new_path="$p/$path" 15691 break 15692 fi 15693 done 15694 IFS="$IFS_save" 15695 else 15696 # This is an absolute path, we can use it without further modifications. 15697 new_path="$path" 15698 fi 15699 15700 if test "x$new_path" = x; then 15701 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15702 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15703 has_space=`$ECHO "$complete" | $GREP " "` 15704 if test "x$has_space" != x; then 15705 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15706 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15707 fi 15708 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15709 fi 15710 fi 15711 15712 # Now join together the path and the arguments once again 15713 if test "x$arguments" != xEOL; then 15714 new_complete="$new_path ${arguments% *}" 15715 else 15716 new_complete="$new_path" 15717 fi 15718 15719 if test "x$complete" != "x$new_complete"; then 15720 FOUND_MAKE="$new_complete" 15721 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15722 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15723 fi 15724 15725 fi 15726 fi 15727 fi 15728 fi 15729 15730 15731 if test "x$FOUND_MAKE" = x; then 15732 for ac_prog in make 15733 do 15734 # Extract the first word of "$ac_prog", so it can be a program name with args. 15735 set dummy $ac_prog; ac_word=$2 15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15737 $as_echo_n "checking for $ac_word... " >&6; } 15738 if ${ac_cv_path_CHECK_MAKE+:} false; then : 15739 $as_echo_n "(cached) " >&6 15740 else 15741 case $CHECK_MAKE in 15742 [\\/]* | ?:[\\/]*) 15743 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 15744 ;; 15745 *) 15746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15747 for as_dir in $PATH 15748 do 15749 IFS=$as_save_IFS 15750 test -z "$as_dir" && as_dir=. 15751 for ac_exec_ext in '' $ac_executable_extensions; do 15752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15753 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 15754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15755 break 2 15756 fi 15757 done 15758 done 15759 IFS=$as_save_IFS 15760 15761 ;; 15762 esac 15763 fi 15764 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 15765 if test -n "$CHECK_MAKE"; then 15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 15767 $as_echo "$CHECK_MAKE" >&6; } 15768 else 15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15770 $as_echo "no" >&6; } 15771 fi 15772 15773 15774 test -n "$CHECK_MAKE" && break 15775 done 15776 15777 15778 MAKE_CANDIDATE=""$CHECK_MAKE"" 15779 DESCRIPTION="make in PATH" 15780 if test "x$MAKE_CANDIDATE" != x; then 15781 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15782 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15783 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15784 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15785 if test "x$IS_GNU_MAKE" = x; then 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15787 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15788 else 15789 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15790 if test "x$IS_MODERN_MAKE" = x; then 15791 { $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 15792 $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;} 15793 else 15794 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15796 MAKE_EXPECTED_ENV='cygwin' 15797 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15798 MAKE_EXPECTED_ENV='msys' 15799 else 15800 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15801 fi 15802 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15803 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15804 else 15805 # Not relevant for non-Windows 15806 IS_MAKE_CORRECT_ENV=true 15807 fi 15808 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15809 { $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 15810 $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;} 15811 else 15812 FOUND_MAKE=$MAKE_CANDIDATE 15813 15814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15815 15816 # First separate the path from the arguments. This will split at the first 15817 # space. 15818 complete="$FOUND_MAKE" 15819 path="${complete%% *}" 15820 tmp="$complete EOL" 15821 arguments="${tmp#* }" 15822 15823 # Input might be given as Windows format, start by converting to 15824 # unix format. 15825 new_path=`$CYGPATH -u "$path"` 15826 15827 # Now try to locate executable using which 15828 new_path=`$WHICH "$new_path" 2> /dev/null` 15829 # bat and cmd files are not always considered executable in cygwin causing which 15830 # to not find them 15831 if test "x$new_path" = x \ 15832 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15833 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15834 new_path=`$CYGPATH -u "$path"` 15835 fi 15836 if test "x$new_path" = x; then 15837 # Oops. Which didn't find the executable. 15838 # The splitting of arguments from the executable at a space might have been incorrect, 15839 # since paths with space are more likely in Windows. Give it another try with the whole 15840 # argument. 15841 path="$complete" 15842 arguments="EOL" 15843 new_path=`$CYGPATH -u "$path"` 15844 new_path=`$WHICH "$new_path" 2> /dev/null` 15845 # bat and cmd files are not always considered executable in cygwin causing which 15846 # to not find them 15847 if test "x$new_path" = x \ 15848 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15849 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15850 new_path=`$CYGPATH -u "$path"` 15851 fi 15852 if test "x$new_path" = x; then 15853 # It's still not found. Now this is an unrecoverable error. 15854 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15855 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15856 has_space=`$ECHO "$complete" | $GREP " "` 15857 if test "x$has_space" != x; then 15858 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15859 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15860 fi 15861 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15862 fi 15863 fi 15864 15865 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15866 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15867 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15868 # "foo.exe" is OK but "foo" is an error. 15869 # 15870 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15871 # It is also a way to make sure we got the proper file name for the real test later on. 15872 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15873 if test "x$test_shortpath" = x; then 15874 # Short path failed, file does not exist as specified. 15875 # Try adding .exe or .cmd 15876 if test -f "${new_path}.exe"; then 15877 input_to_shortpath="${new_path}.exe" 15878 elif test -f "${new_path}.cmd"; then 15879 input_to_shortpath="${new_path}.cmd" 15880 else 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15882 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15883 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15884 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15885 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15886 fi 15887 else 15888 input_to_shortpath="$new_path" 15889 fi 15890 15891 # Call helper function which possibly converts this using DOS-style short mode. 15892 # If so, the updated path is stored in $new_path. 15893 new_path="$input_to_shortpath" 15894 15895 input_path="$input_to_shortpath" 15896 # Check if we need to convert this using DOS-style short mode. If the path 15897 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15898 # take no chances and rewrite it. 15899 # Note: m4 eats our [], so we need to use [ and ] instead. 15900 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15901 if test "x$has_forbidden_chars" != x; then 15902 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15903 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15904 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15905 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15906 # Going to short mode and back again did indeed matter. Since short mode is 15907 # case insensitive, let's make it lowercase to improve readability. 15908 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15909 # Now convert it back to Unix-stile (cygpath) 15910 input_path=`$CYGPATH -u "$shortmode_path"` 15911 new_path="$input_path" 15912 fi 15913 fi 15914 15915 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15916 if test "x$test_cygdrive_prefix" = x; then 15917 # As a simple fix, exclude /usr/bin since it's not a real path. 15918 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15919 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15920 # a path prefixed by /cygdrive for fixpath to work. 15921 new_path="$CYGWIN_ROOT_PATH$input_path" 15922 fi 15923 fi 15924 15925 # remove trailing .exe if any 15926 new_path="${new_path/%.exe/}" 15927 15928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15929 15930 # First separate the path from the arguments. This will split at the first 15931 # space. 15932 complete="$FOUND_MAKE" 15933 path="${complete%% *}" 15934 tmp="$complete EOL" 15935 arguments="${tmp#* }" 15936 15937 # Input might be given as Windows format, start by converting to 15938 # unix format. 15939 new_path="$path" 15940 15941 windows_path="$new_path" 15942 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15943 unix_path=`$CYGPATH -u "$windows_path"` 15944 new_path="$unix_path" 15945 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15946 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15947 new_path="$unix_path" 15948 fi 15949 15950 15951 # Now try to locate executable using which 15952 new_path=`$WHICH "$new_path" 2> /dev/null` 15953 15954 if test "x$new_path" = x; then 15955 # Oops. Which didn't find the executable. 15956 # The splitting of arguments from the executable at a space might have been incorrect, 15957 # since paths with space are more likely in Windows. Give it another try with the whole 15958 # argument. 15959 path="$complete" 15960 arguments="EOL" 15961 new_path="$path" 15962 15963 windows_path="$new_path" 15964 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15965 unix_path=`$CYGPATH -u "$windows_path"` 15966 new_path="$unix_path" 15967 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15968 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15969 new_path="$unix_path" 15970 fi 15971 15972 15973 new_path=`$WHICH "$new_path" 2> /dev/null` 15974 15975 if test "x$new_path" = x; then 15976 # It's still not found. Now this is an unrecoverable error. 15977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15978 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15979 has_space=`$ECHO "$complete" | $GREP " "` 15980 if test "x$has_space" != x; then 15981 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15982 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15983 fi 15984 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15985 fi 15986 fi 15987 15988 # Now new_path has a complete unix path to the binary 15989 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15990 # Keep paths in /bin as-is, but remove trailing .exe if any 15991 new_path="${new_path/%.exe/}" 15992 # Do not save /bin paths to all_fixpath_prefixes! 15993 else 15994 # Not in mixed or Windows style, start by that. 15995 new_path=`cmd //c echo $new_path` 15996 15997 input_path="$new_path" 15998 # Check if we need to convert this using DOS-style short mode. If the path 15999 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16000 # take no chances and rewrite it. 16001 # Note: m4 eats our [], so we need to use [ and ] instead. 16002 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16003 if test "x$has_forbidden_chars" != x; then 16004 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16005 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16006 fi 16007 16008 # Output is in $new_path 16009 16010 windows_path="$new_path" 16011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16012 unix_path=`$CYGPATH -u "$windows_path"` 16013 new_path="$unix_path" 16014 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16015 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16016 new_path="$unix_path" 16017 fi 16018 16019 # remove trailing .exe if any 16020 new_path="${new_path/%.exe/}" 16021 16022 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16023 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16024 fi 16025 16026 else 16027 # We're on a posix platform. Hooray! :) 16028 # First separate the path from the arguments. This will split at the first 16029 # space. 16030 complete="$FOUND_MAKE" 16031 path="${complete%% *}" 16032 tmp="$complete EOL" 16033 arguments="${tmp#* }" 16034 16035 # Cannot rely on the command "which" here since it doesn't always work. 16036 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16037 if test -z "$is_absolute_path"; then 16038 # Path to executable is not absolute. Find it. 16039 IFS_save="$IFS" 16040 IFS=: 16041 for p in $PATH; do 16042 if test -f "$p/$path" && test -x "$p/$path"; then 16043 new_path="$p/$path" 16044 break 16045 fi 16046 done 16047 IFS="$IFS_save" 16048 else 16049 # This is an absolute path, we can use it without further modifications. 16050 new_path="$path" 16051 fi 16052 16053 if test "x$new_path" = x; then 16054 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16055 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16056 has_space=`$ECHO "$complete" | $GREP " "` 16057 if test "x$has_space" != x; then 16058 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16059 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16060 fi 16061 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16062 fi 16063 fi 16064 16065 # Now join together the path and the arguments once again 16066 if test "x$arguments" != xEOL; then 16067 new_complete="$new_path ${arguments% *}" 16068 else 16069 new_complete="$new_path" 16070 fi 16071 16072 if test "x$complete" != "x$new_complete"; then 16073 FOUND_MAKE="$new_complete" 16074 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16075 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16076 fi 16077 16078 fi 16079 fi 16080 fi 16081 fi 16082 16083 fi 16084 16085 if test "x$FOUND_MAKE" = x; then 16086 if test "x$TOOLS_DIR" != x; then 16087 # We have a tools-dir, check that as well before giving up. 16088 OLD_PATH=$PATH 16089 PATH=$TOOLS_DIR:$PATH 16090 for ac_prog in gmake 16091 do 16092 # Extract the first word of "$ac_prog", so it can be a program name with args. 16093 set dummy $ac_prog; ac_word=$2 16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16095 $as_echo_n "checking for $ac_word... " >&6; } 16096 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16097 $as_echo_n "(cached) " >&6 16098 else 16099 case $CHECK_TOOLSDIR_GMAKE in 16100 [\\/]* | ?:[\\/]*) 16101 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16102 ;; 16103 *) 16104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16105 for as_dir in $PATH 16106 do 16107 IFS=$as_save_IFS 16108 test -z "$as_dir" && as_dir=. 16109 for ac_exec_ext in '' $ac_executable_extensions; do 16110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16111 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16113 break 2 16114 fi 16115 done 16116 done 16117 IFS=$as_save_IFS 16118 16119 ;; 16120 esac 16121 fi 16122 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16123 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16125 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16126 else 16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16128 $as_echo "no" >&6; } 16129 fi 16130 16131 16132 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16133 done 16134 16135 16136 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16137 DESCRIPTION="gmake in tools-dir" 16138 if test "x$MAKE_CANDIDATE" != x; then 16139 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16140 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16141 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16142 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16143 if test "x$IS_GNU_MAKE" = x; then 16144 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16145 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16146 else 16147 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16148 if test "x$IS_MODERN_MAKE" = x; then 16149 { $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 16150 $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;} 16151 else 16152 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16154 MAKE_EXPECTED_ENV='cygwin' 16155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16156 MAKE_EXPECTED_ENV='msys' 16157 else 16158 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16159 fi 16160 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16161 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16162 else 16163 # Not relevant for non-Windows 16164 IS_MAKE_CORRECT_ENV=true 16165 fi 16166 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16167 { $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 16168 $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;} 16169 else 16170 FOUND_MAKE=$MAKE_CANDIDATE 16171 16172 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16173 16174 # First separate the path from the arguments. This will split at the first 16175 # space. 16176 complete="$FOUND_MAKE" 16177 path="${complete%% *}" 16178 tmp="$complete EOL" 16179 arguments="${tmp#* }" 16180 16181 # Input might be given as Windows format, start by converting to 16182 # unix format. 16183 new_path=`$CYGPATH -u "$path"` 16184 16185 # Now try to locate executable using which 16186 new_path=`$WHICH "$new_path" 2> /dev/null` 16187 # bat and cmd files are not always considered executable in cygwin causing which 16188 # to not find them 16189 if test "x$new_path" = x \ 16190 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16191 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16192 new_path=`$CYGPATH -u "$path"` 16193 fi 16194 if test "x$new_path" = x; then 16195 # Oops. Which didn't find the executable. 16196 # The splitting of arguments from the executable at a space might have been incorrect, 16197 # since paths with space are more likely in Windows. Give it another try with the whole 16198 # argument. 16199 path="$complete" 16200 arguments="EOL" 16201 new_path=`$CYGPATH -u "$path"` 16202 new_path=`$WHICH "$new_path" 2> /dev/null` 16203 # bat and cmd files are not always considered executable in cygwin causing which 16204 # to not find them 16205 if test "x$new_path" = x \ 16206 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16207 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16208 new_path=`$CYGPATH -u "$path"` 16209 fi 16210 if test "x$new_path" = x; then 16211 # It's still not found. Now this is an unrecoverable error. 16212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16213 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16214 has_space=`$ECHO "$complete" | $GREP " "` 16215 if test "x$has_space" != x; then 16216 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16217 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16218 fi 16219 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16220 fi 16221 fi 16222 16223 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16224 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16225 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16226 # "foo.exe" is OK but "foo" is an error. 16227 # 16228 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16229 # It is also a way to make sure we got the proper file name for the real test later on. 16230 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16231 if test "x$test_shortpath" = x; then 16232 # Short path failed, file does not exist as specified. 16233 # Try adding .exe or .cmd 16234 if test -f "${new_path}.exe"; then 16235 input_to_shortpath="${new_path}.exe" 16236 elif test -f "${new_path}.cmd"; then 16237 input_to_shortpath="${new_path}.cmd" 16238 else 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16240 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16241 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16242 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16243 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16244 fi 16245 else 16246 input_to_shortpath="$new_path" 16247 fi 16248 16249 # Call helper function which possibly converts this using DOS-style short mode. 16250 # If so, the updated path is stored in $new_path. 16251 new_path="$input_to_shortpath" 16252 16253 input_path="$input_to_shortpath" 16254 # Check if we need to convert this using DOS-style short mode. If the path 16255 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16256 # take no chances and rewrite it. 16257 # Note: m4 eats our [], so we need to use [ and ] instead. 16258 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16259 if test "x$has_forbidden_chars" != x; then 16260 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16261 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16262 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16263 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16264 # Going to short mode and back again did indeed matter. Since short mode is 16265 # case insensitive, let's make it lowercase to improve readability. 16266 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16267 # Now convert it back to Unix-stile (cygpath) 16268 input_path=`$CYGPATH -u "$shortmode_path"` 16269 new_path="$input_path" 16270 fi 16271 fi 16272 16273 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16274 if test "x$test_cygdrive_prefix" = x; then 16275 # As a simple fix, exclude /usr/bin since it's not a real path. 16276 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16277 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16278 # a path prefixed by /cygdrive for fixpath to work. 16279 new_path="$CYGWIN_ROOT_PATH$input_path" 16280 fi 16281 fi 16282 16283 # remove trailing .exe if any 16284 new_path="${new_path/%.exe/}" 16285 16286 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16287 16288 # First separate the path from the arguments. This will split at the first 16289 # space. 16290 complete="$FOUND_MAKE" 16291 path="${complete%% *}" 16292 tmp="$complete EOL" 16293 arguments="${tmp#* }" 16294 16295 # Input might be given as Windows format, start by converting to 16296 # unix format. 16297 new_path="$path" 16298 16299 windows_path="$new_path" 16300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16301 unix_path=`$CYGPATH -u "$windows_path"` 16302 new_path="$unix_path" 16303 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16304 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16305 new_path="$unix_path" 16306 fi 16307 16308 16309 # Now try to locate executable using which 16310 new_path=`$WHICH "$new_path" 2> /dev/null` 16311 16312 if test "x$new_path" = x; then 16313 # Oops. Which didn't find the executable. 16314 # The splitting of arguments from the executable at a space might have been incorrect, 16315 # since paths with space are more likely in Windows. Give it another try with the whole 16316 # argument. 16317 path="$complete" 16318 arguments="EOL" 16319 new_path="$path" 16320 16321 windows_path="$new_path" 16322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16323 unix_path=`$CYGPATH -u "$windows_path"` 16324 new_path="$unix_path" 16325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16326 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16327 new_path="$unix_path" 16328 fi 16329 16330 16331 new_path=`$WHICH "$new_path" 2> /dev/null` 16332 16333 if test "x$new_path" = x; then 16334 # It's still not found. Now this is an unrecoverable error. 16335 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16336 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16337 has_space=`$ECHO "$complete" | $GREP " "` 16338 if test "x$has_space" != x; then 16339 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16340 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16341 fi 16342 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16343 fi 16344 fi 16345 16346 # Now new_path has a complete unix path to the binary 16347 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16348 # Keep paths in /bin as-is, but remove trailing .exe if any 16349 new_path="${new_path/%.exe/}" 16350 # Do not save /bin paths to all_fixpath_prefixes! 16351 else 16352 # Not in mixed or Windows style, start by that. 16353 new_path=`cmd //c echo $new_path` 16354 16355 input_path="$new_path" 16356 # Check if we need to convert this using DOS-style short mode. If the path 16357 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16358 # take no chances and rewrite it. 16359 # Note: m4 eats our [], so we need to use [ and ] instead. 16360 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16361 if test "x$has_forbidden_chars" != x; then 16362 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16363 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16364 fi 16365 16366 # Output is in $new_path 16367 16368 windows_path="$new_path" 16369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16370 unix_path=`$CYGPATH -u "$windows_path"` 16371 new_path="$unix_path" 16372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16374 new_path="$unix_path" 16375 fi 16376 16377 # remove trailing .exe if any 16378 new_path="${new_path/%.exe/}" 16379 16380 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16381 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16382 fi 16383 16384 else 16385 # We're on a posix platform. Hooray! :) 16386 # First separate the path from the arguments. This will split at the first 16387 # space. 16388 complete="$FOUND_MAKE" 16389 path="${complete%% *}" 16390 tmp="$complete EOL" 16391 arguments="${tmp#* }" 16392 16393 # Cannot rely on the command "which" here since it doesn't always work. 16394 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16395 if test -z "$is_absolute_path"; then 16396 # Path to executable is not absolute. Find it. 16397 IFS_save="$IFS" 16398 IFS=: 16399 for p in $PATH; do 16400 if test -f "$p/$path" && test -x "$p/$path"; then 16401 new_path="$p/$path" 16402 break 16403 fi 16404 done 16405 IFS="$IFS_save" 16406 else 16407 # This is an absolute path, we can use it without further modifications. 16408 new_path="$path" 16409 fi 16410 16411 if test "x$new_path" = x; then 16412 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16413 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16414 has_space=`$ECHO "$complete" | $GREP " "` 16415 if test "x$has_space" != x; then 16416 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16417 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16418 fi 16419 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16420 fi 16421 fi 16422 16423 # Now join together the path and the arguments once again 16424 if test "x$arguments" != xEOL; then 16425 new_complete="$new_path ${arguments% *}" 16426 else 16427 new_complete="$new_path" 16428 fi 16429 16430 if test "x$complete" != "x$new_complete"; then 16431 FOUND_MAKE="$new_complete" 16432 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16433 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16434 fi 16435 16436 fi 16437 fi 16438 fi 16439 fi 16440 16441 if test "x$FOUND_MAKE" = x; then 16442 for ac_prog in make 16443 do 16444 # Extract the first word of "$ac_prog", so it can be a program name with args. 16445 set dummy $ac_prog; ac_word=$2 16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16447 $as_echo_n "checking for $ac_word... " >&6; } 16448 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16449 $as_echo_n "(cached) " >&6 16450 else 16451 case $CHECK_TOOLSDIR_MAKE in 16452 [\\/]* | ?:[\\/]*) 16453 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16454 ;; 16455 *) 16456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16457 for as_dir in $PATH 16458 do 16459 IFS=$as_save_IFS 16460 test -z "$as_dir" && as_dir=. 16461 for ac_exec_ext in '' $ac_executable_extensions; do 16462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16463 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16465 break 2 16466 fi 16467 done 16468 done 16469 IFS=$as_save_IFS 16470 16471 ;; 16472 esac 16473 fi 16474 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16475 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16477 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16478 else 16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16480 $as_echo "no" >&6; } 16481 fi 16482 16483 16484 test -n "$CHECK_TOOLSDIR_MAKE" && break 16485 done 16486 16487 16488 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16489 DESCRIPTION="make in tools-dir" 16490 if test "x$MAKE_CANDIDATE" != x; then 16491 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16492 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16493 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16494 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16495 if test "x$IS_GNU_MAKE" = x; then 16496 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16497 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16498 else 16499 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16500 if test "x$IS_MODERN_MAKE" = x; then 16501 { $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 16502 $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;} 16503 else 16504 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16506 MAKE_EXPECTED_ENV='cygwin' 16507 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16508 MAKE_EXPECTED_ENV='msys' 16509 else 16510 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16511 fi 16512 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16513 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16514 else 16515 # Not relevant for non-Windows 16516 IS_MAKE_CORRECT_ENV=true 16517 fi 16518 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16519 { $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 16520 $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;} 16521 else 16522 FOUND_MAKE=$MAKE_CANDIDATE 16523 16524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16525 16526 # First separate the path from the arguments. This will split at the first 16527 # space. 16528 complete="$FOUND_MAKE" 16529 path="${complete%% *}" 16530 tmp="$complete EOL" 16531 arguments="${tmp#* }" 16532 16533 # Input might be given as Windows format, start by converting to 16534 # unix format. 16535 new_path=`$CYGPATH -u "$path"` 16536 16537 # Now try to locate executable using which 16538 new_path=`$WHICH "$new_path" 2> /dev/null` 16539 # bat and cmd files are not always considered executable in cygwin causing which 16540 # to not find them 16541 if test "x$new_path" = x \ 16542 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16543 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16544 new_path=`$CYGPATH -u "$path"` 16545 fi 16546 if test "x$new_path" = x; then 16547 # Oops. Which didn't find the executable. 16548 # The splitting of arguments from the executable at a space might have been incorrect, 16549 # since paths with space are more likely in Windows. Give it another try with the whole 16550 # argument. 16551 path="$complete" 16552 arguments="EOL" 16553 new_path=`$CYGPATH -u "$path"` 16554 new_path=`$WHICH "$new_path" 2> /dev/null` 16555 # bat and cmd files are not always considered executable in cygwin causing which 16556 # to not find them 16557 if test "x$new_path" = x \ 16558 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16559 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16560 new_path=`$CYGPATH -u "$path"` 16561 fi 16562 if test "x$new_path" = x; then 16563 # It's still not found. Now this is an unrecoverable error. 16564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16565 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16566 has_space=`$ECHO "$complete" | $GREP " "` 16567 if test "x$has_space" != x; then 16568 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16569 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16570 fi 16571 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16572 fi 16573 fi 16574 16575 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16576 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16577 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16578 # "foo.exe" is OK but "foo" is an error. 16579 # 16580 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16581 # It is also a way to make sure we got the proper file name for the real test later on. 16582 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16583 if test "x$test_shortpath" = x; then 16584 # Short path failed, file does not exist as specified. 16585 # Try adding .exe or .cmd 16586 if test -f "${new_path}.exe"; then 16587 input_to_shortpath="${new_path}.exe" 16588 elif test -f "${new_path}.cmd"; then 16589 input_to_shortpath="${new_path}.cmd" 16590 else 16591 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16592 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16593 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16594 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16595 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16596 fi 16597 else 16598 input_to_shortpath="$new_path" 16599 fi 16600 16601 # Call helper function which possibly converts this using DOS-style short mode. 16602 # If so, the updated path is stored in $new_path. 16603 new_path="$input_to_shortpath" 16604 16605 input_path="$input_to_shortpath" 16606 # Check if we need to convert this using DOS-style short mode. If the path 16607 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16608 # take no chances and rewrite it. 16609 # Note: m4 eats our [], so we need to use [ and ] instead. 16610 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16611 if test "x$has_forbidden_chars" != x; then 16612 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16613 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16614 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16615 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16616 # Going to short mode and back again did indeed matter. Since short mode is 16617 # case insensitive, let's make it lowercase to improve readability. 16618 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16619 # Now convert it back to Unix-stile (cygpath) 16620 input_path=`$CYGPATH -u "$shortmode_path"` 16621 new_path="$input_path" 16622 fi 16623 fi 16624 16625 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16626 if test "x$test_cygdrive_prefix" = x; then 16627 # As a simple fix, exclude /usr/bin since it's not a real path. 16628 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16629 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16630 # a path prefixed by /cygdrive for fixpath to work. 16631 new_path="$CYGWIN_ROOT_PATH$input_path" 16632 fi 16633 fi 16634 16635 # remove trailing .exe if any 16636 new_path="${new_path/%.exe/}" 16637 16638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16639 16640 # First separate the path from the arguments. This will split at the first 16641 # space. 16642 complete="$FOUND_MAKE" 16643 path="${complete%% *}" 16644 tmp="$complete EOL" 16645 arguments="${tmp#* }" 16646 16647 # Input might be given as Windows format, start by converting to 16648 # unix format. 16649 new_path="$path" 16650 16651 windows_path="$new_path" 16652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16653 unix_path=`$CYGPATH -u "$windows_path"` 16654 new_path="$unix_path" 16655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16656 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16657 new_path="$unix_path" 16658 fi 16659 16660 16661 # Now try to locate executable using which 16662 new_path=`$WHICH "$new_path" 2> /dev/null` 16663 16664 if test "x$new_path" = x; then 16665 # Oops. Which didn't find the executable. 16666 # The splitting of arguments from the executable at a space might have been incorrect, 16667 # since paths with space are more likely in Windows. Give it another try with the whole 16668 # argument. 16669 path="$complete" 16670 arguments="EOL" 16671 new_path="$path" 16672 16673 windows_path="$new_path" 16674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16675 unix_path=`$CYGPATH -u "$windows_path"` 16676 new_path="$unix_path" 16677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16678 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16679 new_path="$unix_path" 16680 fi 16681 16682 16683 new_path=`$WHICH "$new_path" 2> /dev/null` 16684 16685 if test "x$new_path" = x; then 16686 # It's still not found. Now this is an unrecoverable error. 16687 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16688 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16689 has_space=`$ECHO "$complete" | $GREP " "` 16690 if test "x$has_space" != x; then 16691 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16692 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16693 fi 16694 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16695 fi 16696 fi 16697 16698 # Now new_path has a complete unix path to the binary 16699 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16700 # Keep paths in /bin as-is, but remove trailing .exe if any 16701 new_path="${new_path/%.exe/}" 16702 # Do not save /bin paths to all_fixpath_prefixes! 16703 else 16704 # Not in mixed or Windows style, start by that. 16705 new_path=`cmd //c echo $new_path` 16706 16707 input_path="$new_path" 16708 # Check if we need to convert this using DOS-style short mode. If the path 16709 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16710 # take no chances and rewrite it. 16711 # Note: m4 eats our [], so we need to use [ and ] instead. 16712 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16713 if test "x$has_forbidden_chars" != x; then 16714 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16715 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16716 fi 16717 16718 # Output is in $new_path 16719 16720 windows_path="$new_path" 16721 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16722 unix_path=`$CYGPATH -u "$windows_path"` 16723 new_path="$unix_path" 16724 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16725 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16726 new_path="$unix_path" 16727 fi 16728 16729 # remove trailing .exe if any 16730 new_path="${new_path/%.exe/}" 16731 16732 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16733 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16734 fi 16735 16736 else 16737 # We're on a posix platform. Hooray! :) 16738 # First separate the path from the arguments. This will split at the first 16739 # space. 16740 complete="$FOUND_MAKE" 16741 path="${complete%% *}" 16742 tmp="$complete EOL" 16743 arguments="${tmp#* }" 16744 16745 # Cannot rely on the command "which" here since it doesn't always work. 16746 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16747 if test -z "$is_absolute_path"; then 16748 # Path to executable is not absolute. Find it. 16749 IFS_save="$IFS" 16750 IFS=: 16751 for p in $PATH; do 16752 if test -f "$p/$path" && test -x "$p/$path"; then 16753 new_path="$p/$path" 16754 break 16755 fi 16756 done 16757 IFS="$IFS_save" 16758 else 16759 # This is an absolute path, we can use it without further modifications. 16760 new_path="$path" 16761 fi 16762 16763 if test "x$new_path" = x; then 16764 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16765 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16766 has_space=`$ECHO "$complete" | $GREP " "` 16767 if test "x$has_space" != x; then 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16769 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16770 fi 16771 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16772 fi 16773 fi 16774 16775 # Now join together the path and the arguments once again 16776 if test "x$arguments" != xEOL; then 16777 new_complete="$new_path ${arguments% *}" 16778 else 16779 new_complete="$new_path" 16780 fi 16781 16782 if test "x$complete" != "x$new_complete"; then 16783 FOUND_MAKE="$new_complete" 16784 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16785 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16786 fi 16787 16788 fi 16789 fi 16790 fi 16791 fi 16792 16793 fi 16794 PATH=$OLD_PATH 16795 fi 16796 fi 16797 16798 if test "x$FOUND_MAKE" = x; then 16799 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 16800 fi 16801 fi 16802 16803 MAKE=$FOUND_MAKE 16804 16805 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 16806 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 16807 16808 16809 16810 # Test if find supports -delete 16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 16812 $as_echo_n "checking if find supports -delete... " >&6; } 16813 FIND_DELETE="-delete" 16814 16815 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 16816 16817 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 16818 16819 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 16820 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 16821 # No, it does not. 16822 rm $DELETEDIR/TestIfFindSupportsDelete 16823 FIND_DELETE="-exec rm \{\} \+" 16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16825 $as_echo "no" >&6; } 16826 else 16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16828 $as_echo "yes" >&6; } 16829 fi 16830 rmdir $DELETEDIR 16831 16832 16833 16834 # These tools might not be installed by default, 16835 # need hint on how to install them. 16836 16837 16838 16839 # Publish this variable in the help. 16840 16841 16842 if test "x$UNZIP" = x; then 16843 # The variable is not set by user, try to locate tool using the code snippet 16844 for ac_prog in unzip 16845 do 16846 # Extract the first word of "$ac_prog", so it can be a program name with args. 16847 set dummy $ac_prog; ac_word=$2 16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16849 $as_echo_n "checking for $ac_word... " >&6; } 16850 if ${ac_cv_path_UNZIP+:} false; then : 16851 $as_echo_n "(cached) " >&6 16852 else 16853 case $UNZIP in 16854 [\\/]* | ?:[\\/]*) 16855 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16856 ;; 16857 *) 16858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16859 for as_dir in $PATH 16860 do 16861 IFS=$as_save_IFS 16862 test -z "$as_dir" && as_dir=. 16863 for ac_exec_ext in '' $ac_executable_extensions; do 16864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16865 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 16866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16867 break 2 16868 fi 16869 done 16870 done 16871 IFS=$as_save_IFS 16872 16873 ;; 16874 esac 16875 fi 16876 UNZIP=$ac_cv_path_UNZIP 16877 if test -n "$UNZIP"; then 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 16879 $as_echo "$UNZIP" >&6; } 16880 else 16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16882 $as_echo "no" >&6; } 16883 fi 16884 16885 16886 test -n "$UNZIP" && break 16887 done 16888 16889 else 16890 # The variable is set, but is it from the command line or the environment? 16891 16892 # Try to remove the string !UNZIP! from our list. 16893 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 16894 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 16895 # If it failed, the variable was not from the command line. Ignore it, 16896 # but warn the user (except for BASH, which is always set by the calling BASH). 16897 if test "xUNZIP" != xBASH; then 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 16899 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 16900 fi 16901 # Try to locate tool using the code snippet 16902 for ac_prog in unzip 16903 do 16904 # Extract the first word of "$ac_prog", so it can be a program name with args. 16905 set dummy $ac_prog; ac_word=$2 16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16907 $as_echo_n "checking for $ac_word... " >&6; } 16908 if ${ac_cv_path_UNZIP+:} false; then : 16909 $as_echo_n "(cached) " >&6 16910 else 16911 case $UNZIP in 16912 [\\/]* | ?:[\\/]*) 16913 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16914 ;; 16915 *) 16916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16917 for as_dir in $PATH 16918 do 16919 IFS=$as_save_IFS 16920 test -z "$as_dir" && as_dir=. 16921 for ac_exec_ext in '' $ac_executable_extensions; do 16922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16923 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 16924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16925 break 2 16926 fi 16927 done 16928 done 16929 IFS=$as_save_IFS 16930 16931 ;; 16932 esac 16933 fi 16934 UNZIP=$ac_cv_path_UNZIP 16935 if test -n "$UNZIP"; then 16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 16937 $as_echo "$UNZIP" >&6; } 16938 else 16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16940 $as_echo "no" >&6; } 16941 fi 16942 16943 16944 test -n "$UNZIP" && break 16945 done 16946 16947 else 16948 # If it succeeded, then it was overridden by the user. We will use it 16949 # for the tool. 16950 16951 # First remove it from the list of overridden variables, so we can test 16952 # for unknown variables in the end. 16953 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 16954 16955 # Check if the provided tool contains a complete path. 16956 tool_specified="$UNZIP" 16957 tool_basename="${tool_specified##*/}" 16958 if test "x$tool_basename" = "x$tool_specified"; then 16959 # A command without a complete path is provided, search $PATH. 16960 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 16961 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 16962 # Extract the first word of "$tool_basename", so it can be a program name with args. 16963 set dummy $tool_basename; ac_word=$2 16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16965 $as_echo_n "checking for $ac_word... " >&6; } 16966 if ${ac_cv_path_UNZIP+:} false; then : 16967 $as_echo_n "(cached) " >&6 16968 else 16969 case $UNZIP in 16970 [\\/]* | ?:[\\/]*) 16971 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16972 ;; 16973 *) 16974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16975 for as_dir in $PATH 16976 do 16977 IFS=$as_save_IFS 16978 test -z "$as_dir" && as_dir=. 16979 for ac_exec_ext in '' $ac_executable_extensions; do 16980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16981 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 16982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16983 break 2 16984 fi 16985 done 16986 done 16987 IFS=$as_save_IFS 16988 16989 ;; 16990 esac 16991 fi 16992 UNZIP=$ac_cv_path_UNZIP 16993 if test -n "$UNZIP"; then 16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 16995 $as_echo "$UNZIP" >&6; } 16996 else 16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16998 $as_echo "no" >&6; } 16999 fi 17000 17001 17002 if test "x$UNZIP" = x; then 17003 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17004 fi 17005 else 17006 # Otherwise we believe it is a complete path. Use it as it is. 17007 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17008 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17010 $as_echo_n "checking for UNZIP... " >&6; } 17011 if test ! -x "$tool_specified"; then 17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17013 $as_echo "not found" >&6; } 17014 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17015 fi 17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17017 $as_echo "$tool_specified" >&6; } 17018 fi 17019 fi 17020 fi 17021 17022 17023 17024 if test "x$UNZIP" = x; then 17025 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17026 fi 17027 17028 17029 17030 17031 17032 # Publish this variable in the help. 17033 17034 17035 if test "x$ZIP" = x; then 17036 # The variable is not set by user, try to locate tool using the code snippet 17037 for ac_prog in zip 17038 do 17039 # Extract the first word of "$ac_prog", so it can be a program name with args. 17040 set dummy $ac_prog; ac_word=$2 17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17042 $as_echo_n "checking for $ac_word... " >&6; } 17043 if ${ac_cv_path_ZIP+:} false; then : 17044 $as_echo_n "(cached) " >&6 17045 else 17046 case $ZIP in 17047 [\\/]* | ?:[\\/]*) 17048 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17049 ;; 17050 *) 17051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17052 for as_dir in $PATH 17053 do 17054 IFS=$as_save_IFS 17055 test -z "$as_dir" && as_dir=. 17056 for ac_exec_ext in '' $ac_executable_extensions; do 17057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17058 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17060 break 2 17061 fi 17062 done 17063 done 17064 IFS=$as_save_IFS 17065 17066 ;; 17067 esac 17068 fi 17069 ZIP=$ac_cv_path_ZIP 17070 if test -n "$ZIP"; then 17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17072 $as_echo "$ZIP" >&6; } 17073 else 17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17075 $as_echo "no" >&6; } 17076 fi 17077 17078 17079 test -n "$ZIP" && break 17080 done 17081 17082 else 17083 # The variable is set, but is it from the command line or the environment? 17084 17085 # Try to remove the string !ZIP! from our list. 17086 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17087 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17088 # If it failed, the variable was not from the command line. Ignore it, 17089 # but warn the user (except for BASH, which is always set by the calling BASH). 17090 if test "xZIP" != xBASH; then 17091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17092 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17093 fi 17094 # Try to locate tool using the code snippet 17095 for ac_prog in zip 17096 do 17097 # Extract the first word of "$ac_prog", so it can be a program name with args. 17098 set dummy $ac_prog; ac_word=$2 17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17100 $as_echo_n "checking for $ac_word... " >&6; } 17101 if ${ac_cv_path_ZIP+:} false; then : 17102 $as_echo_n "(cached) " >&6 17103 else 17104 case $ZIP in 17105 [\\/]* | ?:[\\/]*) 17106 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17107 ;; 17108 *) 17109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17110 for as_dir in $PATH 17111 do 17112 IFS=$as_save_IFS 17113 test -z "$as_dir" && as_dir=. 17114 for ac_exec_ext in '' $ac_executable_extensions; do 17115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17116 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17118 break 2 17119 fi 17120 done 17121 done 17122 IFS=$as_save_IFS 17123 17124 ;; 17125 esac 17126 fi 17127 ZIP=$ac_cv_path_ZIP 17128 if test -n "$ZIP"; then 17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17130 $as_echo "$ZIP" >&6; } 17131 else 17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17133 $as_echo "no" >&6; } 17134 fi 17135 17136 17137 test -n "$ZIP" && break 17138 done 17139 17140 else 17141 # If it succeeded, then it was overridden by the user. We will use it 17142 # for the tool. 17143 17144 # First remove it from the list of overridden variables, so we can test 17145 # for unknown variables in the end. 17146 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17147 17148 # Check if the provided tool contains a complete path. 17149 tool_specified="$ZIP" 17150 tool_basename="${tool_specified##*/}" 17151 if test "x$tool_basename" = "x$tool_specified"; then 17152 # A command without a complete path is provided, search $PATH. 17153 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17154 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17155 # Extract the first word of "$tool_basename", so it can be a program name with args. 17156 set dummy $tool_basename; ac_word=$2 17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17158 $as_echo_n "checking for $ac_word... " >&6; } 17159 if ${ac_cv_path_ZIP+:} false; then : 17160 $as_echo_n "(cached) " >&6 17161 else 17162 case $ZIP in 17163 [\\/]* | ?:[\\/]*) 17164 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17165 ;; 17166 *) 17167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17168 for as_dir in $PATH 17169 do 17170 IFS=$as_save_IFS 17171 test -z "$as_dir" && as_dir=. 17172 for ac_exec_ext in '' $ac_executable_extensions; do 17173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17174 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17176 break 2 17177 fi 17178 done 17179 done 17180 IFS=$as_save_IFS 17181 17182 ;; 17183 esac 17184 fi 17185 ZIP=$ac_cv_path_ZIP 17186 if test -n "$ZIP"; then 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17188 $as_echo "$ZIP" >&6; } 17189 else 17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17191 $as_echo "no" >&6; } 17192 fi 17193 17194 17195 if test "x$ZIP" = x; then 17196 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17197 fi 17198 else 17199 # Otherwise we believe it is a complete path. Use it as it is. 17200 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17201 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17203 $as_echo_n "checking for ZIP... " >&6; } 17204 if test ! -x "$tool_specified"; then 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17206 $as_echo "not found" >&6; } 17207 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17208 fi 17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17210 $as_echo "$tool_specified" >&6; } 17211 fi 17212 fi 17213 fi 17214 17215 17216 17217 if test "x$ZIP" = x; then 17218 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17219 fi 17220 17221 17222 17223 # Non-required basic tools 17224 17225 17226 17227 # Publish this variable in the help. 17228 17229 17230 if test "x$LDD" = x; then 17231 # The variable is not set by user, try to locate tool using the code snippet 17232 for ac_prog in ldd 17233 do 17234 # Extract the first word of "$ac_prog", so it can be a program name with args. 17235 set dummy $ac_prog; ac_word=$2 17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17237 $as_echo_n "checking for $ac_word... " >&6; } 17238 if ${ac_cv_path_LDD+:} false; then : 17239 $as_echo_n "(cached) " >&6 17240 else 17241 case $LDD in 17242 [\\/]* | ?:[\\/]*) 17243 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17244 ;; 17245 *) 17246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17247 for as_dir in $PATH 17248 do 17249 IFS=$as_save_IFS 17250 test -z "$as_dir" && as_dir=. 17251 for ac_exec_ext in '' $ac_executable_extensions; do 17252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17253 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17255 break 2 17256 fi 17257 done 17258 done 17259 IFS=$as_save_IFS 17260 17261 ;; 17262 esac 17263 fi 17264 LDD=$ac_cv_path_LDD 17265 if test -n "$LDD"; then 17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17267 $as_echo "$LDD" >&6; } 17268 else 17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17270 $as_echo "no" >&6; } 17271 fi 17272 17273 17274 test -n "$LDD" && break 17275 done 17276 17277 else 17278 # The variable is set, but is it from the command line or the environment? 17279 17280 # Try to remove the string !LDD! from our list. 17281 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17282 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17283 # If it failed, the variable was not from the command line. Ignore it, 17284 # but warn the user (except for BASH, which is always set by the calling BASH). 17285 if test "xLDD" != xBASH; then 17286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17287 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17288 fi 17289 # Try to locate tool using the code snippet 17290 for ac_prog in ldd 17291 do 17292 # Extract the first word of "$ac_prog", so it can be a program name with args. 17293 set dummy $ac_prog; ac_word=$2 17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17295 $as_echo_n "checking for $ac_word... " >&6; } 17296 if ${ac_cv_path_LDD+:} false; then : 17297 $as_echo_n "(cached) " >&6 17298 else 17299 case $LDD in 17300 [\\/]* | ?:[\\/]*) 17301 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17302 ;; 17303 *) 17304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17305 for as_dir in $PATH 17306 do 17307 IFS=$as_save_IFS 17308 test -z "$as_dir" && as_dir=. 17309 for ac_exec_ext in '' $ac_executable_extensions; do 17310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17311 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17313 break 2 17314 fi 17315 done 17316 done 17317 IFS=$as_save_IFS 17318 17319 ;; 17320 esac 17321 fi 17322 LDD=$ac_cv_path_LDD 17323 if test -n "$LDD"; then 17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17325 $as_echo "$LDD" >&6; } 17326 else 17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17328 $as_echo "no" >&6; } 17329 fi 17330 17331 17332 test -n "$LDD" && break 17333 done 17334 17335 else 17336 # If it succeeded, then it was overridden by the user. We will use it 17337 # for the tool. 17338 17339 # First remove it from the list of overridden variables, so we can test 17340 # for unknown variables in the end. 17341 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17342 17343 # Check if the provided tool contains a complete path. 17344 tool_specified="$LDD" 17345 tool_basename="${tool_specified##*/}" 17346 if test "x$tool_basename" = "x$tool_specified"; then 17347 # A command without a complete path is provided, search $PATH. 17348 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17349 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17350 # Extract the first word of "$tool_basename", so it can be a program name with args. 17351 set dummy $tool_basename; ac_word=$2 17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17353 $as_echo_n "checking for $ac_word... " >&6; } 17354 if ${ac_cv_path_LDD+:} false; then : 17355 $as_echo_n "(cached) " >&6 17356 else 17357 case $LDD in 17358 [\\/]* | ?:[\\/]*) 17359 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17360 ;; 17361 *) 17362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17363 for as_dir in $PATH 17364 do 17365 IFS=$as_save_IFS 17366 test -z "$as_dir" && as_dir=. 17367 for ac_exec_ext in '' $ac_executable_extensions; do 17368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17369 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17371 break 2 17372 fi 17373 done 17374 done 17375 IFS=$as_save_IFS 17376 17377 ;; 17378 esac 17379 fi 17380 LDD=$ac_cv_path_LDD 17381 if test -n "$LDD"; then 17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17383 $as_echo "$LDD" >&6; } 17384 else 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17386 $as_echo "no" >&6; } 17387 fi 17388 17389 17390 if test "x$LDD" = x; then 17391 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17392 fi 17393 else 17394 # Otherwise we believe it is a complete path. Use it as it is. 17395 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17396 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17398 $as_echo_n "checking for LDD... " >&6; } 17399 if test ! -x "$tool_specified"; then 17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17401 $as_echo "not found" >&6; } 17402 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17403 fi 17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17405 $as_echo "$tool_specified" >&6; } 17406 fi 17407 fi 17408 fi 17409 17410 17411 if test "x$LDD" = "x"; then 17412 # List shared lib dependencies is used for 17413 # debug output and checking for forbidden dependencies. 17414 # We can build without it. 17415 LDD="true" 17416 fi 17417 17418 17419 # Publish this variable in the help. 17420 17421 17422 if test "x$OTOOL" = x; then 17423 # The variable is not set by user, try to locate tool using the code snippet 17424 for ac_prog in otool 17425 do 17426 # Extract the first word of "$ac_prog", so it can be a program name with args. 17427 set dummy $ac_prog; ac_word=$2 17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17429 $as_echo_n "checking for $ac_word... " >&6; } 17430 if ${ac_cv_path_OTOOL+:} false; then : 17431 $as_echo_n "(cached) " >&6 17432 else 17433 case $OTOOL in 17434 [\\/]* | ?:[\\/]*) 17435 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17436 ;; 17437 *) 17438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17439 for as_dir in $PATH 17440 do 17441 IFS=$as_save_IFS 17442 test -z "$as_dir" && as_dir=. 17443 for ac_exec_ext in '' $ac_executable_extensions; do 17444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17445 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17447 break 2 17448 fi 17449 done 17450 done 17451 IFS=$as_save_IFS 17452 17453 ;; 17454 esac 17455 fi 17456 OTOOL=$ac_cv_path_OTOOL 17457 if test -n "$OTOOL"; then 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17459 $as_echo "$OTOOL" >&6; } 17460 else 17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17462 $as_echo "no" >&6; } 17463 fi 17464 17465 17466 test -n "$OTOOL" && break 17467 done 17468 17469 else 17470 # The variable is set, but is it from the command line or the environment? 17471 17472 # Try to remove the string !OTOOL! from our list. 17473 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 17474 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17475 # If it failed, the variable was not from the command line. Ignore it, 17476 # but warn the user (except for BASH, which is always set by the calling BASH). 17477 if test "xOTOOL" != xBASH; then 17478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 17479 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 17480 fi 17481 # Try to locate tool using the code snippet 17482 for ac_prog in otool 17483 do 17484 # Extract the first word of "$ac_prog", so it can be a program name with args. 17485 set dummy $ac_prog; ac_word=$2 17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17487 $as_echo_n "checking for $ac_word... " >&6; } 17488 if ${ac_cv_path_OTOOL+:} false; then : 17489 $as_echo_n "(cached) " >&6 17490 else 17491 case $OTOOL in 17492 [\\/]* | ?:[\\/]*) 17493 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17494 ;; 17495 *) 17496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17497 for as_dir in $PATH 17498 do 17499 IFS=$as_save_IFS 17500 test -z "$as_dir" && as_dir=. 17501 for ac_exec_ext in '' $ac_executable_extensions; do 17502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17503 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17505 break 2 17506 fi 17507 done 17508 done 17509 IFS=$as_save_IFS 17510 17511 ;; 17512 esac 17513 fi 17514 OTOOL=$ac_cv_path_OTOOL 17515 if test -n "$OTOOL"; then 17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17517 $as_echo "$OTOOL" >&6; } 17518 else 17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17520 $as_echo "no" >&6; } 17521 fi 17522 17523 17524 test -n "$OTOOL" && break 17525 done 17526 17527 else 17528 # If it succeeded, then it was overridden by the user. We will use it 17529 # for the tool. 17530 17531 # First remove it from the list of overridden variables, so we can test 17532 # for unknown variables in the end. 17533 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17534 17535 # Check if the provided tool contains a complete path. 17536 tool_specified="$OTOOL" 17537 tool_basename="${tool_specified##*/}" 17538 if test "x$tool_basename" = "x$tool_specified"; then 17539 # A command without a complete path is provided, search $PATH. 17540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 17541 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 17542 # Extract the first word of "$tool_basename", so it can be a program name with args. 17543 set dummy $tool_basename; ac_word=$2 17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17545 $as_echo_n "checking for $ac_word... " >&6; } 17546 if ${ac_cv_path_OTOOL+:} false; then : 17547 $as_echo_n "(cached) " >&6 17548 else 17549 case $OTOOL in 17550 [\\/]* | ?:[\\/]*) 17551 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17552 ;; 17553 *) 17554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17555 for as_dir in $PATH 17556 do 17557 IFS=$as_save_IFS 17558 test -z "$as_dir" && as_dir=. 17559 for ac_exec_ext in '' $ac_executable_extensions; do 17560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17561 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17563 break 2 17564 fi 17565 done 17566 done 17567 IFS=$as_save_IFS 17568 17569 ;; 17570 esac 17571 fi 17572 OTOOL=$ac_cv_path_OTOOL 17573 if test -n "$OTOOL"; then 17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17575 $as_echo "$OTOOL" >&6; } 17576 else 17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17578 $as_echo "no" >&6; } 17579 fi 17580 17581 17582 if test "x$OTOOL" = x; then 17583 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17584 fi 17585 else 17586 # Otherwise we believe it is a complete path. Use it as it is. 17587 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 17588 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 17590 $as_echo_n "checking for OTOOL... " >&6; } 17591 if test ! -x "$tool_specified"; then 17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17593 $as_echo "not found" >&6; } 17594 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 17595 fi 17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17597 $as_echo "$tool_specified" >&6; } 17598 fi 17599 fi 17600 fi 17601 17602 17603 if test "x$OTOOL" = "x"; then 17604 OTOOL="true" 17605 fi 17606 17607 17608 # Publish this variable in the help. 17609 17610 17611 if test "x$READELF" = x; then 17612 # The variable is not set by user, try to locate tool using the code snippet 17613 for ac_prog in greadelf readelf 17614 do 17615 # Extract the first word of "$ac_prog", so it can be a program name with args. 17616 set dummy $ac_prog; ac_word=$2 17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17618 $as_echo_n "checking for $ac_word... " >&6; } 17619 if ${ac_cv_path_READELF+:} false; then : 17620 $as_echo_n "(cached) " >&6 17621 else 17622 case $READELF in 17623 [\\/]* | ?:[\\/]*) 17624 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17625 ;; 17626 *) 17627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17628 for as_dir in $PATH 17629 do 17630 IFS=$as_save_IFS 17631 test -z "$as_dir" && as_dir=. 17632 for ac_exec_ext in '' $ac_executable_extensions; do 17633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17634 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17636 break 2 17637 fi 17638 done 17639 done 17640 IFS=$as_save_IFS 17641 17642 ;; 17643 esac 17644 fi 17645 READELF=$ac_cv_path_READELF 17646 if test -n "$READELF"; then 17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17648 $as_echo "$READELF" >&6; } 17649 else 17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17651 $as_echo "no" >&6; } 17652 fi 17653 17654 17655 test -n "$READELF" && break 17656 done 17657 17658 else 17659 # The variable is set, but is it from the command line or the environment? 17660 17661 # Try to remove the string !READELF! from our list. 17662 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 17663 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17664 # If it failed, the variable was not from the command line. Ignore it, 17665 # but warn the user (except for BASH, which is always set by the calling BASH). 17666 if test "xREADELF" != xBASH; then 17667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 17668 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 17669 fi 17670 # Try to locate tool using the code snippet 17671 for ac_prog in greadelf readelf 17672 do 17673 # Extract the first word of "$ac_prog", so it can be a program name with args. 17674 set dummy $ac_prog; ac_word=$2 17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17676 $as_echo_n "checking for $ac_word... " >&6; } 17677 if ${ac_cv_path_READELF+:} false; then : 17678 $as_echo_n "(cached) " >&6 17679 else 17680 case $READELF in 17681 [\\/]* | ?:[\\/]*) 17682 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17683 ;; 17684 *) 17685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17686 for as_dir in $PATH 17687 do 17688 IFS=$as_save_IFS 17689 test -z "$as_dir" && as_dir=. 17690 for ac_exec_ext in '' $ac_executable_extensions; do 17691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17692 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17694 break 2 17695 fi 17696 done 17697 done 17698 IFS=$as_save_IFS 17699 17700 ;; 17701 esac 17702 fi 17703 READELF=$ac_cv_path_READELF 17704 if test -n "$READELF"; then 17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17706 $as_echo "$READELF" >&6; } 17707 else 17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17709 $as_echo "no" >&6; } 17710 fi 17711 17712 17713 test -n "$READELF" && break 17714 done 17715 17716 else 17717 # If it succeeded, then it was overridden by the user. We will use it 17718 # for the tool. 17719 17720 # First remove it from the list of overridden variables, so we can test 17721 # for unknown variables in the end. 17722 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17723 17724 # Check if the provided tool contains a complete path. 17725 tool_specified="$READELF" 17726 tool_basename="${tool_specified##*/}" 17727 if test "x$tool_basename" = "x$tool_specified"; then 17728 # A command without a complete path is provided, search $PATH. 17729 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 17730 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 17731 # Extract the first word of "$tool_basename", so it can be a program name with args. 17732 set dummy $tool_basename; ac_word=$2 17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17734 $as_echo_n "checking for $ac_word... " >&6; } 17735 if ${ac_cv_path_READELF+:} false; then : 17736 $as_echo_n "(cached) " >&6 17737 else 17738 case $READELF in 17739 [\\/]* | ?:[\\/]*) 17740 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17741 ;; 17742 *) 17743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17744 for as_dir in $PATH 17745 do 17746 IFS=$as_save_IFS 17747 test -z "$as_dir" && as_dir=. 17748 for ac_exec_ext in '' $ac_executable_extensions; do 17749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17750 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17752 break 2 17753 fi 17754 done 17755 done 17756 IFS=$as_save_IFS 17757 17758 ;; 17759 esac 17760 fi 17761 READELF=$ac_cv_path_READELF 17762 if test -n "$READELF"; then 17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17764 $as_echo "$READELF" >&6; } 17765 else 17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17767 $as_echo "no" >&6; } 17768 fi 17769 17770 17771 if test "x$READELF" = x; then 17772 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17773 fi 17774 else 17775 # Otherwise we believe it is a complete path. Use it as it is. 17776 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 17777 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 17779 $as_echo_n "checking for READELF... " >&6; } 17780 if test ! -x "$tool_specified"; then 17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17782 $as_echo "not found" >&6; } 17783 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 17784 fi 17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17786 $as_echo "$tool_specified" >&6; } 17787 fi 17788 fi 17789 fi 17790 17791 17792 17793 17794 # Publish this variable in the help. 17795 17796 17797 if test "x$HG" = x; then 17798 # The variable is not set by user, try to locate tool using the code snippet 17799 for ac_prog in hg 17800 do 17801 # Extract the first word of "$ac_prog", so it can be a program name with args. 17802 set dummy $ac_prog; ac_word=$2 17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17804 $as_echo_n "checking for $ac_word... " >&6; } 17805 if ${ac_cv_path_HG+:} false; then : 17806 $as_echo_n "(cached) " >&6 17807 else 17808 case $HG in 17809 [\\/]* | ?:[\\/]*) 17810 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17811 ;; 17812 *) 17813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17814 for as_dir in $PATH 17815 do 17816 IFS=$as_save_IFS 17817 test -z "$as_dir" && as_dir=. 17818 for ac_exec_ext in '' $ac_executable_extensions; do 17819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17820 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17822 break 2 17823 fi 17824 done 17825 done 17826 IFS=$as_save_IFS 17827 17828 ;; 17829 esac 17830 fi 17831 HG=$ac_cv_path_HG 17832 if test -n "$HG"; then 17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17834 $as_echo "$HG" >&6; } 17835 else 17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17837 $as_echo "no" >&6; } 17838 fi 17839 17840 17841 test -n "$HG" && break 17842 done 17843 17844 else 17845 # The variable is set, but is it from the command line or the environment? 17846 17847 # Try to remove the string !HG! from our list. 17848 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 17849 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17850 # If it failed, the variable was not from the command line. Ignore it, 17851 # but warn the user (except for BASH, which is always set by the calling BASH). 17852 if test "xHG" != xBASH; then 17853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 17854 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 17855 fi 17856 # Try to locate tool using the code snippet 17857 for ac_prog in hg 17858 do 17859 # Extract the first word of "$ac_prog", so it can be a program name with args. 17860 set dummy $ac_prog; ac_word=$2 17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17862 $as_echo_n "checking for $ac_word... " >&6; } 17863 if ${ac_cv_path_HG+:} false; then : 17864 $as_echo_n "(cached) " >&6 17865 else 17866 case $HG in 17867 [\\/]* | ?:[\\/]*) 17868 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17869 ;; 17870 *) 17871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17872 for as_dir in $PATH 17873 do 17874 IFS=$as_save_IFS 17875 test -z "$as_dir" && as_dir=. 17876 for ac_exec_ext in '' $ac_executable_extensions; do 17877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17878 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17880 break 2 17881 fi 17882 done 17883 done 17884 IFS=$as_save_IFS 17885 17886 ;; 17887 esac 17888 fi 17889 HG=$ac_cv_path_HG 17890 if test -n "$HG"; then 17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17892 $as_echo "$HG" >&6; } 17893 else 17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17895 $as_echo "no" >&6; } 17896 fi 17897 17898 17899 test -n "$HG" && break 17900 done 17901 17902 else 17903 # If it succeeded, then it was overridden by the user. We will use it 17904 # for the tool. 17905 17906 # First remove it from the list of overridden variables, so we can test 17907 # for unknown variables in the end. 17908 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17909 17910 # Check if the provided tool contains a complete path. 17911 tool_specified="$HG" 17912 tool_basename="${tool_specified##*/}" 17913 if test "x$tool_basename" = "x$tool_specified"; then 17914 # A command without a complete path is provided, search $PATH. 17915 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 17916 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 17917 # Extract the first word of "$tool_basename", so it can be a program name with args. 17918 set dummy $tool_basename; ac_word=$2 17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17920 $as_echo_n "checking for $ac_word... " >&6; } 17921 if ${ac_cv_path_HG+:} false; then : 17922 $as_echo_n "(cached) " >&6 17923 else 17924 case $HG in 17925 [\\/]* | ?:[\\/]*) 17926 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17927 ;; 17928 *) 17929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17930 for as_dir in $PATH 17931 do 17932 IFS=$as_save_IFS 17933 test -z "$as_dir" && as_dir=. 17934 for ac_exec_ext in '' $ac_executable_extensions; do 17935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17936 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17938 break 2 17939 fi 17940 done 17941 done 17942 IFS=$as_save_IFS 17943 17944 ;; 17945 esac 17946 fi 17947 HG=$ac_cv_path_HG 17948 if test -n "$HG"; then 17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17950 $as_echo "$HG" >&6; } 17951 else 17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17953 $as_echo "no" >&6; } 17954 fi 17955 17956 17957 if test "x$HG" = x; then 17958 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17959 fi 17960 else 17961 # Otherwise we believe it is a complete path. Use it as it is. 17962 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 17963 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 17964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 17965 $as_echo_n "checking for HG... " >&6; } 17966 if test ! -x "$tool_specified"; then 17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17968 $as_echo "not found" >&6; } 17969 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 17970 fi 17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17972 $as_echo "$tool_specified" >&6; } 17973 fi 17974 fi 17975 fi 17976 17977 17978 17979 17980 # Publish this variable in the help. 17981 17982 17983 if test "x$STAT" = x; then 17984 # The variable is not set by user, try to locate tool using the code snippet 17985 for ac_prog in stat 17986 do 17987 # Extract the first word of "$ac_prog", so it can be a program name with args. 17988 set dummy $ac_prog; ac_word=$2 17989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17990 $as_echo_n "checking for $ac_word... " >&6; } 17991 if ${ac_cv_path_STAT+:} false; then : 17992 $as_echo_n "(cached) " >&6 17993 else 17994 case $STAT in 17995 [\\/]* | ?:[\\/]*) 17996 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 17997 ;; 17998 *) 17999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18000 for as_dir in $PATH 18001 do 18002 IFS=$as_save_IFS 18003 test -z "$as_dir" && as_dir=. 18004 for ac_exec_ext in '' $ac_executable_extensions; do 18005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18006 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18008 break 2 18009 fi 18010 done 18011 done 18012 IFS=$as_save_IFS 18013 18014 ;; 18015 esac 18016 fi 18017 STAT=$ac_cv_path_STAT 18018 if test -n "$STAT"; then 18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18020 $as_echo "$STAT" >&6; } 18021 else 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18023 $as_echo "no" >&6; } 18024 fi 18025 18026 18027 test -n "$STAT" && break 18028 done 18029 18030 else 18031 # The variable is set, but is it from the command line or the environment? 18032 18033 # Try to remove the string !STAT! from our list. 18034 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18035 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18036 # If it failed, the variable was not from the command line. Ignore it, 18037 # but warn the user (except for BASH, which is always set by the calling BASH). 18038 if test "xSTAT" != xBASH; then 18039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18040 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18041 fi 18042 # Try to locate tool using the code snippet 18043 for ac_prog in stat 18044 do 18045 # Extract the first word of "$ac_prog", so it can be a program name with args. 18046 set dummy $ac_prog; ac_word=$2 18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18048 $as_echo_n "checking for $ac_word... " >&6; } 18049 if ${ac_cv_path_STAT+:} false; then : 18050 $as_echo_n "(cached) " >&6 18051 else 18052 case $STAT in 18053 [\\/]* | ?:[\\/]*) 18054 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18055 ;; 18056 *) 18057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18058 for as_dir in $PATH 18059 do 18060 IFS=$as_save_IFS 18061 test -z "$as_dir" && as_dir=. 18062 for ac_exec_ext in '' $ac_executable_extensions; do 18063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18064 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18066 break 2 18067 fi 18068 done 18069 done 18070 IFS=$as_save_IFS 18071 18072 ;; 18073 esac 18074 fi 18075 STAT=$ac_cv_path_STAT 18076 if test -n "$STAT"; then 18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18078 $as_echo "$STAT" >&6; } 18079 else 18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18081 $as_echo "no" >&6; } 18082 fi 18083 18084 18085 test -n "$STAT" && break 18086 done 18087 18088 else 18089 # If it succeeded, then it was overridden by the user. We will use it 18090 # for the tool. 18091 18092 # First remove it from the list of overridden variables, so we can test 18093 # for unknown variables in the end. 18094 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18095 18096 # Check if the provided tool contains a complete path. 18097 tool_specified="$STAT" 18098 tool_basename="${tool_specified##*/}" 18099 if test "x$tool_basename" = "x$tool_specified"; then 18100 # A command without a complete path is provided, search $PATH. 18101 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18102 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18103 # Extract the first word of "$tool_basename", so it can be a program name with args. 18104 set dummy $tool_basename; ac_word=$2 18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18106 $as_echo_n "checking for $ac_word... " >&6; } 18107 if ${ac_cv_path_STAT+:} false; then : 18108 $as_echo_n "(cached) " >&6 18109 else 18110 case $STAT in 18111 [\\/]* | ?:[\\/]*) 18112 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18113 ;; 18114 *) 18115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18116 for as_dir in $PATH 18117 do 18118 IFS=$as_save_IFS 18119 test -z "$as_dir" && as_dir=. 18120 for ac_exec_ext in '' $ac_executable_extensions; do 18121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18122 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18124 break 2 18125 fi 18126 done 18127 done 18128 IFS=$as_save_IFS 18129 18130 ;; 18131 esac 18132 fi 18133 STAT=$ac_cv_path_STAT 18134 if test -n "$STAT"; then 18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18136 $as_echo "$STAT" >&6; } 18137 else 18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18139 $as_echo "no" >&6; } 18140 fi 18141 18142 18143 if test "x$STAT" = x; then 18144 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18145 fi 18146 else 18147 # Otherwise we believe it is a complete path. Use it as it is. 18148 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18149 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18151 $as_echo_n "checking for STAT... " >&6; } 18152 if test ! -x "$tool_specified"; then 18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18154 $as_echo "not found" >&6; } 18155 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18156 fi 18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18158 $as_echo "$tool_specified" >&6; } 18159 fi 18160 fi 18161 fi 18162 18163 18164 18165 18166 # Publish this variable in the help. 18167 18168 18169 if test "x$TIME" = x; then 18170 # The variable is not set by user, try to locate tool using the code snippet 18171 for ac_prog in time 18172 do 18173 # Extract the first word of "$ac_prog", so it can be a program name with args. 18174 set dummy $ac_prog; ac_word=$2 18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18176 $as_echo_n "checking for $ac_word... " >&6; } 18177 if ${ac_cv_path_TIME+:} false; then : 18178 $as_echo_n "(cached) " >&6 18179 else 18180 case $TIME in 18181 [\\/]* | ?:[\\/]*) 18182 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18183 ;; 18184 *) 18185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18186 for as_dir in $PATH 18187 do 18188 IFS=$as_save_IFS 18189 test -z "$as_dir" && as_dir=. 18190 for ac_exec_ext in '' $ac_executable_extensions; do 18191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18192 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18194 break 2 18195 fi 18196 done 18197 done 18198 IFS=$as_save_IFS 18199 18200 ;; 18201 esac 18202 fi 18203 TIME=$ac_cv_path_TIME 18204 if test -n "$TIME"; then 18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18206 $as_echo "$TIME" >&6; } 18207 else 18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18209 $as_echo "no" >&6; } 18210 fi 18211 18212 18213 test -n "$TIME" && break 18214 done 18215 18216 else 18217 # The variable is set, but is it from the command line or the environment? 18218 18219 # Try to remove the string !TIME! from our list. 18220 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18221 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18222 # If it failed, the variable was not from the command line. Ignore it, 18223 # but warn the user (except for BASH, which is always set by the calling BASH). 18224 if test "xTIME" != xBASH; then 18225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18226 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18227 fi 18228 # Try to locate tool using the code snippet 18229 for ac_prog in time 18230 do 18231 # Extract the first word of "$ac_prog", so it can be a program name with args. 18232 set dummy $ac_prog; ac_word=$2 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18234 $as_echo_n "checking for $ac_word... " >&6; } 18235 if ${ac_cv_path_TIME+:} false; then : 18236 $as_echo_n "(cached) " >&6 18237 else 18238 case $TIME in 18239 [\\/]* | ?:[\\/]*) 18240 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18241 ;; 18242 *) 18243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18244 for as_dir in $PATH 18245 do 18246 IFS=$as_save_IFS 18247 test -z "$as_dir" && as_dir=. 18248 for ac_exec_ext in '' $ac_executable_extensions; do 18249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18250 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18252 break 2 18253 fi 18254 done 18255 done 18256 IFS=$as_save_IFS 18257 18258 ;; 18259 esac 18260 fi 18261 TIME=$ac_cv_path_TIME 18262 if test -n "$TIME"; then 18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18264 $as_echo "$TIME" >&6; } 18265 else 18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18267 $as_echo "no" >&6; } 18268 fi 18269 18270 18271 test -n "$TIME" && break 18272 done 18273 18274 else 18275 # If it succeeded, then it was overridden by the user. We will use it 18276 # for the tool. 18277 18278 # First remove it from the list of overridden variables, so we can test 18279 # for unknown variables in the end. 18280 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18281 18282 # Check if the provided tool contains a complete path. 18283 tool_specified="$TIME" 18284 tool_basename="${tool_specified##*/}" 18285 if test "x$tool_basename" = "x$tool_specified"; then 18286 # A command without a complete path is provided, search $PATH. 18287 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18288 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18289 # Extract the first word of "$tool_basename", so it can be a program name with args. 18290 set dummy $tool_basename; ac_word=$2 18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18292 $as_echo_n "checking for $ac_word... " >&6; } 18293 if ${ac_cv_path_TIME+:} false; then : 18294 $as_echo_n "(cached) " >&6 18295 else 18296 case $TIME in 18297 [\\/]* | ?:[\\/]*) 18298 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18299 ;; 18300 *) 18301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18302 for as_dir in $PATH 18303 do 18304 IFS=$as_save_IFS 18305 test -z "$as_dir" && as_dir=. 18306 for ac_exec_ext in '' $ac_executable_extensions; do 18307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18308 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18310 break 2 18311 fi 18312 done 18313 done 18314 IFS=$as_save_IFS 18315 18316 ;; 18317 esac 18318 fi 18319 TIME=$ac_cv_path_TIME 18320 if test -n "$TIME"; then 18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18322 $as_echo "$TIME" >&6; } 18323 else 18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18325 $as_echo "no" >&6; } 18326 fi 18327 18328 18329 if test "x$TIME" = x; then 18330 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18331 fi 18332 else 18333 # Otherwise we believe it is a complete path. Use it as it is. 18334 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18335 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18337 $as_echo_n "checking for TIME... " >&6; } 18338 if test ! -x "$tool_specified"; then 18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18340 $as_echo "not found" >&6; } 18341 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18342 fi 18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18344 $as_echo "$tool_specified" >&6; } 18345 fi 18346 fi 18347 fi 18348 18349 18350 # Check if it's GNU time 18351 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18352 if test "x$IS_GNU_TIME" != x; then 18353 IS_GNU_TIME=yes 18354 else 18355 IS_GNU_TIME=no 18356 fi 18357 18358 18359 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18360 18361 18362 18363 # Publish this variable in the help. 18364 18365 18366 if test "x$COMM" = x; then 18367 # The variable is not set by user, try to locate tool using the code snippet 18368 for ac_prog in comm 18369 do 18370 # Extract the first word of "$ac_prog", so it can be a program name with args. 18371 set dummy $ac_prog; ac_word=$2 18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18373 $as_echo_n "checking for $ac_word... " >&6; } 18374 if ${ac_cv_path_COMM+:} false; then : 18375 $as_echo_n "(cached) " >&6 18376 else 18377 case $COMM in 18378 [\\/]* | ?:[\\/]*) 18379 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18380 ;; 18381 *) 18382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18383 for as_dir in $PATH 18384 do 18385 IFS=$as_save_IFS 18386 test -z "$as_dir" && as_dir=. 18387 for ac_exec_ext in '' $ac_executable_extensions; do 18388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18389 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18391 break 2 18392 fi 18393 done 18394 done 18395 IFS=$as_save_IFS 18396 18397 ;; 18398 esac 18399 fi 18400 COMM=$ac_cv_path_COMM 18401 if test -n "$COMM"; then 18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18403 $as_echo "$COMM" >&6; } 18404 else 18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18406 $as_echo "no" >&6; } 18407 fi 18408 18409 18410 test -n "$COMM" && break 18411 done 18412 18413 else 18414 # The variable is set, but is it from the command line or the environment? 18415 18416 # Try to remove the string !COMM! from our list. 18417 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18418 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18419 # If it failed, the variable was not from the command line. Ignore it, 18420 # but warn the user (except for BASH, which is always set by the calling BASH). 18421 if test "xCOMM" != xBASH; then 18422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18423 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18424 fi 18425 # Try to locate tool using the code snippet 18426 for ac_prog in comm 18427 do 18428 # Extract the first word of "$ac_prog", so it can be a program name with args. 18429 set dummy $ac_prog; ac_word=$2 18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18431 $as_echo_n "checking for $ac_word... " >&6; } 18432 if ${ac_cv_path_COMM+:} false; then : 18433 $as_echo_n "(cached) " >&6 18434 else 18435 case $COMM in 18436 [\\/]* | ?:[\\/]*) 18437 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18438 ;; 18439 *) 18440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18441 for as_dir in $PATH 18442 do 18443 IFS=$as_save_IFS 18444 test -z "$as_dir" && as_dir=. 18445 for ac_exec_ext in '' $ac_executable_extensions; do 18446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18447 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18449 break 2 18450 fi 18451 done 18452 done 18453 IFS=$as_save_IFS 18454 18455 ;; 18456 esac 18457 fi 18458 COMM=$ac_cv_path_COMM 18459 if test -n "$COMM"; then 18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18461 $as_echo "$COMM" >&6; } 18462 else 18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18464 $as_echo "no" >&6; } 18465 fi 18466 18467 18468 test -n "$COMM" && break 18469 done 18470 18471 else 18472 # If it succeeded, then it was overridden by the user. We will use it 18473 # for the tool. 18474 18475 # First remove it from the list of overridden variables, so we can test 18476 # for unknown variables in the end. 18477 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18478 18479 # Check if the provided tool contains a complete path. 18480 tool_specified="$COMM" 18481 tool_basename="${tool_specified##*/}" 18482 if test "x$tool_basename" = "x$tool_specified"; then 18483 # A command without a complete path is provided, search $PATH. 18484 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18485 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18486 # Extract the first word of "$tool_basename", so it can be a program name with args. 18487 set dummy $tool_basename; ac_word=$2 18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18489 $as_echo_n "checking for $ac_word... " >&6; } 18490 if ${ac_cv_path_COMM+:} false; then : 18491 $as_echo_n "(cached) " >&6 18492 else 18493 case $COMM in 18494 [\\/]* | ?:[\\/]*) 18495 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18496 ;; 18497 *) 18498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18499 for as_dir in $PATH 18500 do 18501 IFS=$as_save_IFS 18502 test -z "$as_dir" && as_dir=. 18503 for ac_exec_ext in '' $ac_executable_extensions; do 18504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18505 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18507 break 2 18508 fi 18509 done 18510 done 18511 IFS=$as_save_IFS 18512 18513 ;; 18514 esac 18515 fi 18516 COMM=$ac_cv_path_COMM 18517 if test -n "$COMM"; then 18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18519 $as_echo "$COMM" >&6; } 18520 else 18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18522 $as_echo "no" >&6; } 18523 fi 18524 18525 18526 if test "x$COMM" = x; then 18527 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18528 fi 18529 else 18530 # Otherwise we believe it is a complete path. Use it as it is. 18531 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 18532 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 18533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 18534 $as_echo_n "checking for COMM... " >&6; } 18535 if test ! -x "$tool_specified"; then 18536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18537 $as_echo "not found" >&6; } 18538 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 18539 fi 18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18541 $as_echo "$tool_specified" >&6; } 18542 fi 18543 fi 18544 fi 18545 18546 18547 18548 if test "x$COMM" = x; then 18549 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 18550 fi 18551 18552 18553 fi 18554 18555 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18556 18557 18558 18559 # Publish this variable in the help. 18560 18561 18562 if test "x$DSYMUTIL" = x; then 18563 # The variable is not set by user, try to locate tool using the code snippet 18564 for ac_prog in dsymutil 18565 do 18566 # Extract the first word of "$ac_prog", so it can be a program name with args. 18567 set dummy $ac_prog; ac_word=$2 18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18569 $as_echo_n "checking for $ac_word... " >&6; } 18570 if ${ac_cv_path_DSYMUTIL+:} false; then : 18571 $as_echo_n "(cached) " >&6 18572 else 18573 case $DSYMUTIL in 18574 [\\/]* | ?:[\\/]*) 18575 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18576 ;; 18577 *) 18578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18579 for as_dir in $PATH 18580 do 18581 IFS=$as_save_IFS 18582 test -z "$as_dir" && as_dir=. 18583 for ac_exec_ext in '' $ac_executable_extensions; do 18584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18585 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18587 break 2 18588 fi 18589 done 18590 done 18591 IFS=$as_save_IFS 18592 18593 ;; 18594 esac 18595 fi 18596 DSYMUTIL=$ac_cv_path_DSYMUTIL 18597 if test -n "$DSYMUTIL"; then 18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18599 $as_echo "$DSYMUTIL" >&6; } 18600 else 18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18602 $as_echo "no" >&6; } 18603 fi 18604 18605 18606 test -n "$DSYMUTIL" && break 18607 done 18608 18609 else 18610 # The variable is set, but is it from the command line or the environment? 18611 18612 # Try to remove the string !DSYMUTIL! from our list. 18613 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18614 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18615 # If it failed, the variable was not from the command line. Ignore it, 18616 # but warn the user (except for BASH, which is always set by the calling BASH). 18617 if test "xDSYMUTIL" != xBASH; then 18618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18619 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18620 fi 18621 # Try to locate tool using the code snippet 18622 for ac_prog in dsymutil 18623 do 18624 # Extract the first word of "$ac_prog", so it can be a program name with args. 18625 set dummy $ac_prog; ac_word=$2 18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18627 $as_echo_n "checking for $ac_word... " >&6; } 18628 if ${ac_cv_path_DSYMUTIL+:} false; then : 18629 $as_echo_n "(cached) " >&6 18630 else 18631 case $DSYMUTIL in 18632 [\\/]* | ?:[\\/]*) 18633 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18634 ;; 18635 *) 18636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18637 for as_dir in $PATH 18638 do 18639 IFS=$as_save_IFS 18640 test -z "$as_dir" && as_dir=. 18641 for ac_exec_ext in '' $ac_executable_extensions; do 18642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18643 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18645 break 2 18646 fi 18647 done 18648 done 18649 IFS=$as_save_IFS 18650 18651 ;; 18652 esac 18653 fi 18654 DSYMUTIL=$ac_cv_path_DSYMUTIL 18655 if test -n "$DSYMUTIL"; then 18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18657 $as_echo "$DSYMUTIL" >&6; } 18658 else 18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18660 $as_echo "no" >&6; } 18661 fi 18662 18663 18664 test -n "$DSYMUTIL" && break 18665 done 18666 18667 else 18668 # If it succeeded, then it was overridden by the user. We will use it 18669 # for the tool. 18670 18671 # First remove it from the list of overridden variables, so we can test 18672 # for unknown variables in the end. 18673 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18674 18675 # Check if the provided tool contains a complete path. 18676 tool_specified="$DSYMUTIL" 18677 tool_basename="${tool_specified##*/}" 18678 if test "x$tool_basename" = "x$tool_specified"; then 18679 # A command without a complete path is provided, search $PATH. 18680 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 18681 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 18682 # Extract the first word of "$tool_basename", so it can be a program name with args. 18683 set dummy $tool_basename; ac_word=$2 18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18685 $as_echo_n "checking for $ac_word... " >&6; } 18686 if ${ac_cv_path_DSYMUTIL+:} false; then : 18687 $as_echo_n "(cached) " >&6 18688 else 18689 case $DSYMUTIL in 18690 [\\/]* | ?:[\\/]*) 18691 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18692 ;; 18693 *) 18694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18695 for as_dir in $PATH 18696 do 18697 IFS=$as_save_IFS 18698 test -z "$as_dir" && as_dir=. 18699 for ac_exec_ext in '' $ac_executable_extensions; do 18700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18701 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18703 break 2 18704 fi 18705 done 18706 done 18707 IFS=$as_save_IFS 18708 18709 ;; 18710 esac 18711 fi 18712 DSYMUTIL=$ac_cv_path_DSYMUTIL 18713 if test -n "$DSYMUTIL"; then 18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18715 $as_echo "$DSYMUTIL" >&6; } 18716 else 18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18718 $as_echo "no" >&6; } 18719 fi 18720 18721 18722 if test "x$DSYMUTIL" = x; then 18723 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18724 fi 18725 else 18726 # Otherwise we believe it is a complete path. Use it as it is. 18727 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 18728 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 18730 $as_echo_n "checking for DSYMUTIL... " >&6; } 18731 if test ! -x "$tool_specified"; then 18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18733 $as_echo "not found" >&6; } 18734 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 18735 fi 18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18737 $as_echo "$tool_specified" >&6; } 18738 fi 18739 fi 18740 fi 18741 18742 18743 18744 if test "x$DSYMUTIL" = x; then 18745 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 18746 fi 18747 18748 18749 18750 18751 18752 # Publish this variable in the help. 18753 18754 18755 if test "x$XATTR" = x; then 18756 # The variable is not set by user, try to locate tool using the code snippet 18757 for ac_prog in xattr 18758 do 18759 # Extract the first word of "$ac_prog", so it can be a program name with args. 18760 set dummy $ac_prog; ac_word=$2 18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18762 $as_echo_n "checking for $ac_word... " >&6; } 18763 if ${ac_cv_path_XATTR+:} false; then : 18764 $as_echo_n "(cached) " >&6 18765 else 18766 case $XATTR in 18767 [\\/]* | ?:[\\/]*) 18768 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18769 ;; 18770 *) 18771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18772 for as_dir in $PATH 18773 do 18774 IFS=$as_save_IFS 18775 test -z "$as_dir" && as_dir=. 18776 for ac_exec_ext in '' $ac_executable_extensions; do 18777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18778 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18780 break 2 18781 fi 18782 done 18783 done 18784 IFS=$as_save_IFS 18785 18786 ;; 18787 esac 18788 fi 18789 XATTR=$ac_cv_path_XATTR 18790 if test -n "$XATTR"; then 18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18792 $as_echo "$XATTR" >&6; } 18793 else 18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18795 $as_echo "no" >&6; } 18796 fi 18797 18798 18799 test -n "$XATTR" && break 18800 done 18801 18802 else 18803 # The variable is set, but is it from the command line or the environment? 18804 18805 # Try to remove the string !XATTR! from our list. 18806 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 18807 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18808 # If it failed, the variable was not from the command line. Ignore it, 18809 # but warn the user (except for BASH, which is always set by the calling BASH). 18810 if test "xXATTR" != xBASH; then 18811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 18812 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 18813 fi 18814 # Try to locate tool using the code snippet 18815 for ac_prog in xattr 18816 do 18817 # Extract the first word of "$ac_prog", so it can be a program name with args. 18818 set dummy $ac_prog; ac_word=$2 18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18820 $as_echo_n "checking for $ac_word... " >&6; } 18821 if ${ac_cv_path_XATTR+:} false; then : 18822 $as_echo_n "(cached) " >&6 18823 else 18824 case $XATTR in 18825 [\\/]* | ?:[\\/]*) 18826 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18827 ;; 18828 *) 18829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18830 for as_dir in $PATH 18831 do 18832 IFS=$as_save_IFS 18833 test -z "$as_dir" && as_dir=. 18834 for ac_exec_ext in '' $ac_executable_extensions; do 18835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18836 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18838 break 2 18839 fi 18840 done 18841 done 18842 IFS=$as_save_IFS 18843 18844 ;; 18845 esac 18846 fi 18847 XATTR=$ac_cv_path_XATTR 18848 if test -n "$XATTR"; then 18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18850 $as_echo "$XATTR" >&6; } 18851 else 18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18853 $as_echo "no" >&6; } 18854 fi 18855 18856 18857 test -n "$XATTR" && break 18858 done 18859 18860 else 18861 # If it succeeded, then it was overridden by the user. We will use it 18862 # for the tool. 18863 18864 # First remove it from the list of overridden variables, so we can test 18865 # for unknown variables in the end. 18866 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18867 18868 # Check if the provided tool contains a complete path. 18869 tool_specified="$XATTR" 18870 tool_basename="${tool_specified##*/}" 18871 if test "x$tool_basename" = "x$tool_specified"; then 18872 # A command without a complete path is provided, search $PATH. 18873 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 18874 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 18875 # Extract the first word of "$tool_basename", so it can be a program name with args. 18876 set dummy $tool_basename; ac_word=$2 18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18878 $as_echo_n "checking for $ac_word... " >&6; } 18879 if ${ac_cv_path_XATTR+:} false; then : 18880 $as_echo_n "(cached) " >&6 18881 else 18882 case $XATTR in 18883 [\\/]* | ?:[\\/]*) 18884 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18885 ;; 18886 *) 18887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18888 for as_dir in $PATH 18889 do 18890 IFS=$as_save_IFS 18891 test -z "$as_dir" && as_dir=. 18892 for ac_exec_ext in '' $ac_executable_extensions; do 18893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18894 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18896 break 2 18897 fi 18898 done 18899 done 18900 IFS=$as_save_IFS 18901 18902 ;; 18903 esac 18904 fi 18905 XATTR=$ac_cv_path_XATTR 18906 if test -n "$XATTR"; then 18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18908 $as_echo "$XATTR" >&6; } 18909 else 18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18911 $as_echo "no" >&6; } 18912 fi 18913 18914 18915 if test "x$XATTR" = x; then 18916 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18917 fi 18918 else 18919 # Otherwise we believe it is a complete path. Use it as it is. 18920 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 18921 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 18923 $as_echo_n "checking for XATTR... " >&6; } 18924 if test ! -x "$tool_specified"; then 18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18926 $as_echo "not found" >&6; } 18927 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 18928 fi 18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18930 $as_echo "$tool_specified" >&6; } 18931 fi 18932 fi 18933 fi 18934 18935 18936 18937 if test "x$XATTR" = x; then 18938 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 18939 fi 18940 18941 18942 18943 18944 # Publish this variable in the help. 18945 18946 18947 if test "x$CODESIGN" = x; then 18948 # The variable is not set by user, try to locate tool using the code snippet 18949 for ac_prog in codesign 18950 do 18951 # Extract the first word of "$ac_prog", so it can be a program name with args. 18952 set dummy $ac_prog; ac_word=$2 18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18954 $as_echo_n "checking for $ac_word... " >&6; } 18955 if ${ac_cv_path_CODESIGN+:} false; then : 18956 $as_echo_n "(cached) " >&6 18957 else 18958 case $CODESIGN in 18959 [\\/]* | ?:[\\/]*) 18960 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 18961 ;; 18962 *) 18963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18964 for as_dir in $PATH 18965 do 18966 IFS=$as_save_IFS 18967 test -z "$as_dir" && as_dir=. 18968 for ac_exec_ext in '' $ac_executable_extensions; do 18969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18970 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 18971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18972 break 2 18973 fi 18974 done 18975 done 18976 IFS=$as_save_IFS 18977 18978 ;; 18979 esac 18980 fi 18981 CODESIGN=$ac_cv_path_CODESIGN 18982 if test -n "$CODESIGN"; then 18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 18984 $as_echo "$CODESIGN" >&6; } 18985 else 18986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18987 $as_echo "no" >&6; } 18988 fi 18989 18990 18991 test -n "$CODESIGN" && break 18992 done 18993 18994 else 18995 # The variable is set, but is it from the command line or the environment? 18996 18997 # Try to remove the string !CODESIGN! from our list. 18998 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 18999 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19000 # If it failed, the variable was not from the command line. Ignore it, 19001 # but warn the user (except for BASH, which is always set by the calling BASH). 19002 if test "xCODESIGN" != xBASH; then 19003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19004 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19005 fi 19006 # Try to locate tool using the code snippet 19007 for ac_prog in codesign 19008 do 19009 # Extract the first word of "$ac_prog", so it can be a program name with args. 19010 set dummy $ac_prog; ac_word=$2 19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19012 $as_echo_n "checking for $ac_word... " >&6; } 19013 if ${ac_cv_path_CODESIGN+:} false; then : 19014 $as_echo_n "(cached) " >&6 19015 else 19016 case $CODESIGN in 19017 [\\/]* | ?:[\\/]*) 19018 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19019 ;; 19020 *) 19021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19022 for as_dir in $PATH 19023 do 19024 IFS=$as_save_IFS 19025 test -z "$as_dir" && as_dir=. 19026 for ac_exec_ext in '' $ac_executable_extensions; do 19027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19028 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19030 break 2 19031 fi 19032 done 19033 done 19034 IFS=$as_save_IFS 19035 19036 ;; 19037 esac 19038 fi 19039 CODESIGN=$ac_cv_path_CODESIGN 19040 if test -n "$CODESIGN"; then 19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19042 $as_echo "$CODESIGN" >&6; } 19043 else 19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19045 $as_echo "no" >&6; } 19046 fi 19047 19048 19049 test -n "$CODESIGN" && break 19050 done 19051 19052 else 19053 # If it succeeded, then it was overridden by the user. We will use it 19054 # for the tool. 19055 19056 # First remove it from the list of overridden variables, so we can test 19057 # for unknown variables in the end. 19058 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19059 19060 # Check if the provided tool contains a complete path. 19061 tool_specified="$CODESIGN" 19062 tool_basename="${tool_specified##*/}" 19063 if test "x$tool_basename" = "x$tool_specified"; then 19064 # A command without a complete path is provided, search $PATH. 19065 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19066 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19067 # Extract the first word of "$tool_basename", so it can be a program name with args. 19068 set dummy $tool_basename; ac_word=$2 19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19070 $as_echo_n "checking for $ac_word... " >&6; } 19071 if ${ac_cv_path_CODESIGN+:} false; then : 19072 $as_echo_n "(cached) " >&6 19073 else 19074 case $CODESIGN in 19075 [\\/]* | ?:[\\/]*) 19076 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19077 ;; 19078 *) 19079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19080 for as_dir in $PATH 19081 do 19082 IFS=$as_save_IFS 19083 test -z "$as_dir" && as_dir=. 19084 for ac_exec_ext in '' $ac_executable_extensions; do 19085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19086 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19088 break 2 19089 fi 19090 done 19091 done 19092 IFS=$as_save_IFS 19093 19094 ;; 19095 esac 19096 fi 19097 CODESIGN=$ac_cv_path_CODESIGN 19098 if test -n "$CODESIGN"; then 19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19100 $as_echo "$CODESIGN" >&6; } 19101 else 19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19103 $as_echo "no" >&6; } 19104 fi 19105 19106 19107 if test "x$CODESIGN" = x; then 19108 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19109 fi 19110 else 19111 # Otherwise we believe it is a complete path. Use it as it is. 19112 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19113 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19115 $as_echo_n "checking for CODESIGN... " >&6; } 19116 if test ! -x "$tool_specified"; then 19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19118 $as_echo "not found" >&6; } 19119 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19120 fi 19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19122 $as_echo "$tool_specified" >&6; } 19123 fi 19124 fi 19125 fi 19126 19127 19128 if test "x$CODESIGN" != "x"; then 19129 # Verify that the openjdk_codesign certificate is present 19130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19131 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19132 rm -f codesign-testfile 19133 touch codesign-testfile 19134 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19135 rm -f codesign-testfile 19136 if test "x$CODESIGN" = x; then 19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19138 $as_echo "no" >&6; } 19139 else 19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19141 $as_echo "yes" >&6; } 19142 fi 19143 fi 19144 fi 19145 19146 19147 # Check if pkg-config is available. 19148 19149 19150 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19151 if test -n "$ac_tool_prefix"; then 19152 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19153 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19155 $as_echo_n "checking for $ac_word... " >&6; } 19156 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19157 $as_echo_n "(cached) " >&6 19158 else 19159 case $PKG_CONFIG in 19160 [\\/]* | ?:[\\/]*) 19161 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19162 ;; 19163 *) 19164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19165 for as_dir in $PATH 19166 do 19167 IFS=$as_save_IFS 19168 test -z "$as_dir" && as_dir=. 19169 for ac_exec_ext in '' $ac_executable_extensions; do 19170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19171 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19173 break 2 19174 fi 19175 done 19176 done 19177 IFS=$as_save_IFS 19178 19179 ;; 19180 esac 19181 fi 19182 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19183 if test -n "$PKG_CONFIG"; then 19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19185 $as_echo "$PKG_CONFIG" >&6; } 19186 else 19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19188 $as_echo "no" >&6; } 19189 fi 19190 19191 19192 fi 19193 if test -z "$ac_cv_path_PKG_CONFIG"; then 19194 ac_pt_PKG_CONFIG=$PKG_CONFIG 19195 # Extract the first word of "pkg-config", so it can be a program name with args. 19196 set dummy pkg-config; ac_word=$2 19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19198 $as_echo_n "checking for $ac_word... " >&6; } 19199 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19200 $as_echo_n "(cached) " >&6 19201 else 19202 case $ac_pt_PKG_CONFIG in 19203 [\\/]* | ?:[\\/]*) 19204 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19205 ;; 19206 *) 19207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19208 for as_dir in $PATH 19209 do 19210 IFS=$as_save_IFS 19211 test -z "$as_dir" && as_dir=. 19212 for ac_exec_ext in '' $ac_executable_extensions; do 19213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19214 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19216 break 2 19217 fi 19218 done 19219 done 19220 IFS=$as_save_IFS 19221 19222 ;; 19223 esac 19224 fi 19225 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19226 if test -n "$ac_pt_PKG_CONFIG"; then 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19228 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19229 else 19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19231 $as_echo "no" >&6; } 19232 fi 19233 19234 if test "x$ac_pt_PKG_CONFIG" = x; then 19235 PKG_CONFIG="" 19236 else 19237 case $cross_compiling:$ac_tool_warned in 19238 yes:) 19239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19241 ac_tool_warned=yes ;; 19242 esac 19243 PKG_CONFIG=$ac_pt_PKG_CONFIG 19244 fi 19245 else 19246 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19247 fi 19248 19249 fi 19250 if test -n "$PKG_CONFIG"; then 19251 _pkg_min_version=0.9.0 19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19253 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19254 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19256 $as_echo "yes" >&6; } 19257 else 19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19259 $as_echo "no" >&6; } 19260 PKG_CONFIG="" 19261 fi 19262 19263 fi 19264 19265 # After basic tools have been setup, we can check build os specific details. 19266 19267 ############################################################################### 19268 19269 # Note that this is the build platform OS version! 19270 19271 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19272 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19273 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19274 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19275 19276 19277 19278 19279 19280 # Setup builddeps, for automatic downloading of tools we need. 19281 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19282 # boot-jdk setup, but we need to have basic tools setup first. 19283 19284 19285 # Check whether --with-builddeps-conf was given. 19286 if test "${with_builddeps_conf+set}" = set; then : 19287 withval=$with_builddeps_conf; 19288 fi 19289 19290 19291 19292 # Check whether --with-builddeps-server was given. 19293 if test "${with_builddeps_server+set}" = set; then : 19294 withval=$with_builddeps_server; 19295 fi 19296 19297 19298 19299 # Check whether --with-builddeps-dir was given. 19300 if test "${with_builddeps_dir+set}" = set; then : 19301 withval=$with_builddeps_dir; 19302 else 19303 with_builddeps_dir=/localhome/builddeps 19304 fi 19305 19306 19307 19308 # Check whether --with-builddeps-group was given. 19309 if test "${with_builddeps_group+set}" = set; then : 19310 withval=$with_builddeps_group; 19311 fi 19312 19313 19314 19315 19316 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19317 if test "x$with_builddeps_conf" != x; then 19318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19319 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19320 builddepsfile=$with_builddeps_conf 19321 if test -s $builddepsfile; then 19322 . $builddepsfile 19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19324 $as_echo "loaded!" >&6; } 19325 else 19326 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19327 fi 19328 else 19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19330 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19331 builddepsfile=`mktemp` 19332 touch $builddepsfile 19333 # Put all found confs into a single file. 19334 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19335 # Source the file to acquire the variables 19336 if test -s $builddepsfile; then 19337 . $builddepsfile 19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19339 $as_echo "found at least one!" >&6; } 19340 else 19341 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19342 fi 19343 fi 19344 # Create build and target names that use _ instead of "-" and ".". 19345 # This is necessary to use them in variable names. 19346 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19347 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19348 # Extract rewrite information for build and target 19349 eval rewritten_build=\${REWRITE_${build_var}} 19350 if test "x$rewritten_build" = x; then 19351 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19352 echo Build stays the same $rewritten_build 19353 else 19354 echo Rewriting build for builddeps into $rewritten_build 19355 fi 19356 eval rewritten_target=\${REWRITE_${target_var}} 19357 if test "x$rewritten_target" = x; then 19358 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19359 echo Target stays the same $rewritten_target 19360 else 19361 echo Rewriting target for builddeps into $rewritten_target 19362 fi 19363 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19364 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19365 fi 19366 for ac_prog in 7z unzip 19367 do 19368 # Extract the first word of "$ac_prog", so it can be a program name with args. 19369 set dummy $ac_prog; ac_word=$2 19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19371 $as_echo_n "checking for $ac_word... " >&6; } 19372 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19373 $as_echo_n "(cached) " >&6 19374 else 19375 if test -n "$BDEPS_UNZIP"; then 19376 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19377 else 19378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19379 for as_dir in $PATH 19380 do 19381 IFS=$as_save_IFS 19382 test -z "$as_dir" && as_dir=. 19383 for ac_exec_ext in '' $ac_executable_extensions; do 19384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19385 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19387 break 2 19388 fi 19389 done 19390 done 19391 IFS=$as_save_IFS 19392 19393 fi 19394 fi 19395 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19396 if test -n "$BDEPS_UNZIP"; then 19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19398 $as_echo "$BDEPS_UNZIP" >&6; } 19399 else 19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19401 $as_echo "no" >&6; } 19402 fi 19403 19404 19405 test -n "$BDEPS_UNZIP" && break 19406 done 19407 19408 if test "x$BDEPS_UNZIP" = x7z; then 19409 BDEPS_UNZIP="7z x" 19410 fi 19411 19412 for ac_prog in wget lftp ftp 19413 do 19414 # Extract the first word of "$ac_prog", so it can be a program name with args. 19415 set dummy $ac_prog; ac_word=$2 19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19417 $as_echo_n "checking for $ac_word... " >&6; } 19418 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19419 $as_echo_n "(cached) " >&6 19420 else 19421 if test -n "$BDEPS_FTP"; then 19422 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19423 else 19424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19425 for as_dir in $PATH 19426 do 19427 IFS=$as_save_IFS 19428 test -z "$as_dir" && as_dir=. 19429 for ac_exec_ext in '' $ac_executable_extensions; do 19430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19431 ac_cv_prog_BDEPS_FTP="$ac_prog" 19432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19433 break 2 19434 fi 19435 done 19436 done 19437 IFS=$as_save_IFS 19438 19439 fi 19440 fi 19441 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19442 if test -n "$BDEPS_FTP"; then 19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19444 $as_echo "$BDEPS_FTP" >&6; } 19445 else 19446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19447 $as_echo "no" >&6; } 19448 fi 19449 19450 19451 test -n "$BDEPS_FTP" && break 19452 done 19453 19454 19455 19456 ############################################################################### 19457 # 19458 # Determine OpenJDK variants, options and version numbers. 19459 # 19460 ############################################################################### 19461 19462 # We need build & target for this. 19463 19464 19465 ############################################################################### 19466 # 19467 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19468 # We always build headless support. 19469 # 19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19471 $as_echo_n "checking headful support... " >&6; } 19472 # Check whether --enable-headful was given. 19473 if test "${enable_headful+set}" = set; then : 19474 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19475 else 19476 SUPPORT_HEADFUL=yes 19477 fi 19478 19479 19480 SUPPORT_HEADLESS=yes 19481 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19482 19483 if test "x$SUPPORT_HEADFUL" = xyes; then 19484 # We are building both headful and headless. 19485 headful_msg="include support for both headful and headless" 19486 fi 19487 19488 if test "x$SUPPORT_HEADFUL" = xno; then 19489 # Thus we are building headless only. 19490 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19491 headful_msg="headless only" 19492 fi 19493 19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19495 $as_echo "$headful_msg" >&6; } 19496 19497 19498 19499 19500 19501 # Control wether Hotspot runs Queens test after build. 19502 # Check whether --enable-hotspot-test-in-build was given. 19503 if test "${enable_hotspot_test_in_build+set}" = set; then : 19504 enableval=$enable_hotspot_test_in_build; 19505 else 19506 enable_hotspot_test_in_build=no 19507 fi 19508 19509 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19510 TEST_IN_BUILD=true 19511 else 19512 TEST_IN_BUILD=false 19513 fi 19514 19515 19516 ############################################################################### 19517 # 19518 # Choose cacerts source file 19519 # 19520 19521 # Check whether --with-cacerts-file was given. 19522 if test "${with_cacerts_file+set}" = set; then : 19523 withval=$with_cacerts_file; 19524 fi 19525 19526 if test "x$with_cacerts_file" != x; then 19527 CACERTS_FILE=$with_cacerts_file 19528 else 19529 CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts 19530 fi 19531 19532 19533 ############################################################################### 19534 # 19535 # Enable or disable unlimited crypto 19536 # 19537 # Check whether --enable-unlimited-crypto was given. 19538 if test "${enable_unlimited_crypto+set}" = set; then : 19539 enableval=$enable_unlimited_crypto; 19540 else 19541 enable_unlimited_crypto=no 19542 fi 19543 19544 if test "x$enable_unlimited_crypto" = "xyes"; then 19545 UNLIMITED_CRYPTO=true 19546 else 19547 UNLIMITED_CRYPTO=false 19548 fi 19549 19550 19551 ############################################################################### 19552 # 19553 # Enable or disable the elliptic curve crypto implementation 19554 # 19555 19556 19557 ############################################################################### 19558 # 19559 # --enable-rmiconnector-iiop 19560 # 19561 # Check whether --enable-rmiconnector-iiop was given. 19562 if test "${enable_rmiconnector_iiop+set}" = set; then : 19563 enableval=$enable_rmiconnector_iiop; 19564 fi 19565 19566 if test "x$enable_rmiconnector_iiop" = "xyes"; then 19567 RMICONNECTOR_IIOP=true 19568 else 19569 RMICONNECTOR_IIOP=false 19570 fi 19571 19572 19573 ############################################################################### 19574 # 19575 # Compress jars 19576 # 19577 COMPRESS_JARS=false 19578 19579 19580 19581 19582 # Source the version numbers 19583 . $AUTOCONF_DIR/version-numbers 19584 19585 # Get the settings from parameters 19586 19587 # Check whether --with-milestone was given. 19588 if test "${with_milestone+set}" = set; then : 19589 withval=$with_milestone; 19590 fi 19591 19592 if test "x$with_milestone" = xyes; then 19593 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19594 elif test "x$with_milestone" != x; then 19595 MILESTONE="$with_milestone" 19596 fi 19597 if test "x$MILESTONE" = x; then 19598 MILESTONE=internal 19599 fi 19600 19601 19602 # Check whether --with-update-version was given. 19603 if test "${with_update_version+set}" = set; then : 19604 withval=$with_update_version; 19605 fi 19606 19607 if test "x$with_update_version" = xyes; then 19608 as_fn_error $? "Update version must have a value" "$LINENO" 5 19609 elif test "x$with_update_version" != x; then 19610 JDK_UPDATE_VERSION="$with_update_version" 19611 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19612 # to a bug in expr (which reduces it to just X). To work around this, we 19613 # always add a 0 to one digit update versions. 19614 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19615 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19616 fi 19617 fi 19618 19619 19620 # Check whether --with-user-release-suffix was given. 19621 if test "${with_user_release_suffix+set}" = set; then : 19622 withval=$with_user_release_suffix; 19623 fi 19624 19625 if test "x$with_user_release_suffix" = xyes; then 19626 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19627 elif test "x$with_user_release_suffix" != x; then 19628 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19629 fi 19630 19631 19632 # Check whether --with-build-number was given. 19633 if test "${with_build_number+set}" = set; then : 19634 withval=$with_build_number; 19635 fi 19636 19637 if test "x$with_build_number" = xyes; then 19638 as_fn_error $? "Build number must have a value" "$LINENO" 5 19639 elif test "x$with_build_number" != x; then 19640 JDK_BUILD_NUMBER="$with_build_number" 19641 fi 19642 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 19643 if test "x$JDK_BUILD_NUMBER" = x; then 19644 JDK_BUILD_NUMBER=b00 19645 if test "x$USER_RELEASE_SUFFIX" = x; then 19646 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 19647 # Avoid [:alnum:] since it depends on the locale. 19648 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 19649 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19650 fi 19651 fi 19652 19653 # Now set the JDK version, milestone, build number etc. 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 COPYRIGHT_YEAR=`date +'%Y'` 19670 19671 19672 if test "x$JDK_UPDATE_VERSION" != x; then 19673 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 19674 else 19675 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 19676 fi 19677 19678 19679 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 19680 19681 19682 19683 ############################################################################### 19684 # 19685 # Setup BootJDK, used to bootstrap the build. 19686 # 19687 ############################################################################### 19688 19689 19690 BOOT_JDK_FOUND=no 19691 19692 # Check whether --with-boot-jdk was given. 19693 if test "${with_boot_jdk+set}" = set; then : 19694 withval=$with_boot_jdk; 19695 fi 19696 19697 19698 # We look for the Boot JDK through various means, going from more certain to 19699 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 19700 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 19701 # must check if this is indeed valid; otherwise we'll continue looking. 19702 19703 # Test: Is bootjdk explicitely set by command line arguments? 19704 19705 if test "x$BOOT_JDK_FOUND" = xno; then 19706 # Now execute the test 19707 19708 if test "x$with_boot_jdk" != x; then 19709 BOOT_JDK=$with_boot_jdk 19710 BOOT_JDK_FOUND=maybe 19711 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 19712 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 19713 fi 19714 19715 19716 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 19717 if test "x$BOOT_JDK_FOUND" = xmaybe; then 19718 # Do we have a bin/java? 19719 if test ! -x "$BOOT_JDK/bin/java"; then 19720 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 19721 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 19722 BOOT_JDK_FOUND=no 19723 else 19724 # Do we have a bin/javac? 19725 if test ! -x "$BOOT_JDK/bin/javac"; then 19726 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 19727 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 19728 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 19729 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 19730 BOOT_JDK_FOUND=no 19731 else 19732 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 19733 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 19734 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 19735 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 19736 BOOT_JDK_FOUND=no 19737 else 19738 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 19739 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 19740 19741 # Extra M4 quote needed to protect [] in grep expression. 19742 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 19743 if test "x$FOUND_CORRECT_VERSION" = x; then 19744 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 19745 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 19746 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 19747 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 19748 BOOT_JDK_FOUND=no 19749 else 19750 # We're done! :-) 19751 BOOT_JDK_FOUND=yes 19752 19753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19754 19755 # Input might be given as Windows format, start by converting to 19756 # unix format. 19757 path="$BOOT_JDK" 19758 new_path=`$CYGPATH -u "$path"` 19759 19760 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19761 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19762 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19763 # "foo.exe" is OK but "foo" is an error. 19764 # 19765 # This test is therefore slightly more accurate than "test -f" to check for file precense. 19766 # It is also a way to make sure we got the proper file name for the real test later on. 19767 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19768 if test "x$test_shortpath" = x; then 19769 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19770 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19771 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 19772 fi 19773 19774 # Call helper function which possibly converts this using DOS-style short mode. 19775 # If so, the updated path is stored in $new_path. 19776 19777 input_path="$new_path" 19778 # Check if we need to convert this using DOS-style short mode. If the path 19779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19780 # take no chances and rewrite it. 19781 # Note: m4 eats our [], so we need to use [ and ] instead. 19782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19783 if test "x$has_forbidden_chars" != x; then 19784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19785 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19786 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19787 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19788 # Going to short mode and back again did indeed matter. Since short mode is 19789 # case insensitive, let's make it lowercase to improve readability. 19790 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19791 # Now convert it back to Unix-stile (cygpath) 19792 input_path=`$CYGPATH -u "$shortmode_path"` 19793 new_path="$input_path" 19794 fi 19795 fi 19796 19797 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19798 if test "x$test_cygdrive_prefix" = x; then 19799 # As a simple fix, exclude /usr/bin since it's not a real path. 19800 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 19801 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19802 # a path prefixed by /cygdrive for fixpath to work. 19803 new_path="$CYGWIN_ROOT_PATH$input_path" 19804 fi 19805 fi 19806 19807 19808 if test "x$path" != "x$new_path"; then 19809 BOOT_JDK="$new_path" 19810 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19811 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19812 fi 19813 19814 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19815 19816 path="$BOOT_JDK" 19817 has_colon=`$ECHO $path | $GREP ^.:` 19818 new_path="$path" 19819 if test "x$has_colon" = x; then 19820 # Not in mixed or Windows style, start by that. 19821 new_path=`cmd //c echo $path` 19822 fi 19823 19824 19825 input_path="$new_path" 19826 # Check if we need to convert this using DOS-style short mode. If the path 19827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19828 # take no chances and rewrite it. 19829 # Note: m4 eats our [], so we need to use [ and ] instead. 19830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19831 if test "x$has_forbidden_chars" != x; then 19832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19833 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19834 fi 19835 19836 19837 windows_path="$new_path" 19838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19839 unix_path=`$CYGPATH -u "$windows_path"` 19840 new_path="$unix_path" 19841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19842 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19843 new_path="$unix_path" 19844 fi 19845 19846 if test "x$path" != "x$new_path"; then 19847 BOOT_JDK="$new_path" 19848 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19849 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19850 fi 19851 19852 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19853 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19854 19855 else 19856 # We're on a posix platform. Hooray! :) 19857 path="$BOOT_JDK" 19858 has_space=`$ECHO "$path" | $GREP " "` 19859 if test "x$has_space" != x; then 19860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19861 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19862 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 19863 fi 19864 19865 # Use eval to expand a potential ~ 19866 eval path="$path" 19867 if test ! -f "$path" && test ! -d "$path"; then 19868 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 19869 fi 19870 19871 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 19872 fi 19873 19874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 19875 $as_echo_n "checking for Boot JDK... " >&6; } 19876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 19877 $as_echo "$BOOT_JDK" >&6; } 19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 19879 $as_echo_n "checking Boot JDK version... " >&6; } 19880 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 19882 $as_echo "$BOOT_JDK_VERSION" >&6; } 19883 fi # end check jdk version 19884 fi # end check rt.jar 19885 fi # end check javac 19886 fi # end check java 19887 fi # end check boot jdk found 19888 fi 19889 19890 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 19891 # Having specified an argument which is incorrect will produce an instant failure; 19892 # we should not go on looking 19893 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 19894 fi 19895 19896 # Test: Is bootjdk available from builddeps? 19897 19898 if test "x$BOOT_JDK_FOUND" = xno; then 19899 # Now execute the test 19900 19901 19902 19903 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19904 # Source the builddeps file again, to make sure it uses the latest variables! 19905 . $builddepsfile 19906 # Look for a target and build machine specific resource! 19907 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 19908 if test "x$resource" = x; then 19909 # Ok, lets instead look for a target specific resource 19910 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 19911 fi 19912 if test "x$resource" = x; then 19913 # Ok, lets instead look for a build specific resource 19914 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 19915 fi 19916 if test "x$resource" = x; then 19917 # Ok, lets instead look for a generic resource 19918 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 19919 resource=${builddep_bootjdk} 19920 fi 19921 if test "x$resource" != x; then 19922 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 19923 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 19924 # If the resource in the builddeps.conf file is an existing directory, 19925 # for example /java/linux/cups 19926 if test -d ${resource}; then 19927 depdir=${resource} 19928 else 19929 19930 # bootjdk is for example mymodule 19931 # $resource is for example libs/general/libmymod_1_2_3.zip 19932 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 19933 # $with_builddeps_dir is for example /localhome/builddeps 19934 # depdir is the name of the variable into which we store the depdir, eg MYMOD 19935 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 19936 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 19937 filename=`basename $resource` 19938 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 19939 filebase=${filename%%.*} 19940 extension=${filename#*.} 19941 installdir=$with_builddeps_dir/$filebase 19942 if test ! -f $installdir/$filename.unpacked; then 19943 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 19944 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 19945 if test ! -d $installdir; then 19946 mkdir -p $installdir 19947 fi 19948 if test ! -d $installdir; then 19949 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 19950 fi 19951 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 19952 touch $tmpfile 19953 if test ! -f $tmpfile; then 19954 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 19955 fi 19956 19957 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 19958 # $tmpfile is the local file name for the downloaded file. 19959 VALID_TOOL=no 19960 if test "x$BDEPS_FTP" = xwget; then 19961 VALID_TOOL=yes 19962 wget -O $tmpfile $with_builddeps_server/$resource 19963 fi 19964 if test "x$BDEPS_FTP" = xlftp; then 19965 VALID_TOOL=yes 19966 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 19967 fi 19968 if test "x$BDEPS_FTP" = xftp; then 19969 VALID_TOOL=yes 19970 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 19971 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 19972 FTPUSERPWD=${FTPSERVER%%@*} 19973 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 19974 FTPUSER=${userpwd%%:*} 19975 FTPPWD=${userpwd#*@} 19976 FTPSERVER=${FTPSERVER#*@} 19977 else 19978 FTPUSER=ftp 19979 FTPPWD=ftp 19980 fi 19981 # the "pass" command does not work on some 19982 # ftp clients (read ftp.exe) but if it works, 19983 # passive mode is better! 19984 ( \ 19985 echo "user $FTPUSER $FTPPWD" ; \ 19986 echo "pass" ; \ 19987 echo "bin" ; \ 19988 echo "get $FTPPATH $tmpfile" ; \ 19989 ) | ftp -in $FTPSERVER 19990 fi 19991 if test "x$VALID_TOOL" != xyes; then 19992 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 19993 fi 19994 19995 mv $tmpfile $installdir/$filename 19996 if test ! -s $installdir/$filename; then 19997 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 19998 fi 19999 case "$extension" in 20000 zip) echo "Unzipping $installdir/$filename..." 20001 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20002 ;; 20003 tar.gz) echo "Untaring $installdir/$filename..." 20004 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20005 ;; 20006 tgz) echo "Untaring $installdir/$filename..." 20007 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20008 ;; 20009 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20010 ;; 20011 esac 20012 fi 20013 if test -f $installdir/$filename.unpacked; then 20014 depdir=$installdir 20015 fi 20016 20017 fi 20018 # Source the builddeps file again, because in the previous command, the depdir 20019 # was updated to point at the current build dependency install directory. 20020 . $builddepsfile 20021 # Now extract variables from the builddeps.conf files. 20022 theroot=${builddep_bootjdk_ROOT} 20023 thecflags=${builddep_bootjdk_CFLAGS} 20024 thelibs=${builddep_bootjdk_LIBS} 20025 if test "x$depdir" = x; then 20026 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20027 fi 20028 BOOT_JDK=$depdir 20029 if test "x$theroot" != x; then 20030 BOOT_JDK="$theroot" 20031 fi 20032 if test "x$thecflags" != x; then 20033 BOOT_JDK_CFLAGS="$thecflags" 20034 fi 20035 if test "x$thelibs" != x; then 20036 BOOT_JDK_LIBS="$thelibs" 20037 fi 20038 BOOT_JDK_FOUND=maybe 20039 else BOOT_JDK_FOUND=no 20040 20041 fi 20042 else BOOT_JDK_FOUND=no 20043 20044 fi 20045 20046 20047 20048 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20049 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20050 # Do we have a bin/java? 20051 if test ! -x "$BOOT_JDK/bin/java"; then 20052 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20053 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20054 BOOT_JDK_FOUND=no 20055 else 20056 # Do we have a bin/javac? 20057 if test ! -x "$BOOT_JDK/bin/javac"; then 20058 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20059 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20060 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20061 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20062 BOOT_JDK_FOUND=no 20063 else 20064 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20065 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20066 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20067 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20068 BOOT_JDK_FOUND=no 20069 else 20070 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20071 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20072 20073 # Extra M4 quote needed to protect [] in grep expression. 20074 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20075 if test "x$FOUND_CORRECT_VERSION" = x; then 20076 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20077 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20078 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20079 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20080 BOOT_JDK_FOUND=no 20081 else 20082 # We're done! :-) 20083 BOOT_JDK_FOUND=yes 20084 20085 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20086 20087 # Input might be given as Windows format, start by converting to 20088 # unix format. 20089 path="$BOOT_JDK" 20090 new_path=`$CYGPATH -u "$path"` 20091 20092 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20093 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20094 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20095 # "foo.exe" is OK but "foo" is an error. 20096 # 20097 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20098 # It is also a way to make sure we got the proper file name for the real test later on. 20099 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20100 if test "x$test_shortpath" = x; then 20101 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20102 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20103 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20104 fi 20105 20106 # Call helper function which possibly converts this using DOS-style short mode. 20107 # If so, the updated path is stored in $new_path. 20108 20109 input_path="$new_path" 20110 # Check if we need to convert this using DOS-style short mode. If the path 20111 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20112 # take no chances and rewrite it. 20113 # Note: m4 eats our [], so we need to use [ and ] instead. 20114 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20115 if test "x$has_forbidden_chars" != x; then 20116 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20117 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20118 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20119 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20120 # Going to short mode and back again did indeed matter. Since short mode is 20121 # case insensitive, let's make it lowercase to improve readability. 20122 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20123 # Now convert it back to Unix-stile (cygpath) 20124 input_path=`$CYGPATH -u "$shortmode_path"` 20125 new_path="$input_path" 20126 fi 20127 fi 20128 20129 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20130 if test "x$test_cygdrive_prefix" = x; then 20131 # As a simple fix, exclude /usr/bin since it's not a real path. 20132 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20133 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20134 # a path prefixed by /cygdrive for fixpath to work. 20135 new_path="$CYGWIN_ROOT_PATH$input_path" 20136 fi 20137 fi 20138 20139 20140 if test "x$path" != "x$new_path"; then 20141 BOOT_JDK="$new_path" 20142 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20143 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20144 fi 20145 20146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20147 20148 path="$BOOT_JDK" 20149 has_colon=`$ECHO $path | $GREP ^.:` 20150 new_path="$path" 20151 if test "x$has_colon" = x; then 20152 # Not in mixed or Windows style, start by that. 20153 new_path=`cmd //c echo $path` 20154 fi 20155 20156 20157 input_path="$new_path" 20158 # Check if we need to convert this using DOS-style short mode. If the path 20159 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20160 # take no chances and rewrite it. 20161 # Note: m4 eats our [], so we need to use [ and ] instead. 20162 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20163 if test "x$has_forbidden_chars" != x; then 20164 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20165 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20166 fi 20167 20168 20169 windows_path="$new_path" 20170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20171 unix_path=`$CYGPATH -u "$windows_path"` 20172 new_path="$unix_path" 20173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20175 new_path="$unix_path" 20176 fi 20177 20178 if test "x$path" != "x$new_path"; then 20179 BOOT_JDK="$new_path" 20180 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20181 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20182 fi 20183 20184 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20185 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20186 20187 else 20188 # We're on a posix platform. Hooray! :) 20189 path="$BOOT_JDK" 20190 has_space=`$ECHO "$path" | $GREP " "` 20191 if test "x$has_space" != x; then 20192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20193 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20194 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20195 fi 20196 20197 # Use eval to expand a potential ~ 20198 eval path="$path" 20199 if test ! -f "$path" && test ! -d "$path"; then 20200 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20201 fi 20202 20203 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20204 fi 20205 20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20207 $as_echo_n "checking for Boot JDK... " >&6; } 20208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20209 $as_echo "$BOOT_JDK" >&6; } 20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20211 $as_echo_n "checking Boot JDK version... " >&6; } 20212 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20214 $as_echo "$BOOT_JDK_VERSION" >&6; } 20215 fi # end check jdk version 20216 fi # end check rt.jar 20217 fi # end check javac 20218 fi # end check java 20219 fi # end check boot jdk found 20220 fi 20221 20222 20223 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20224 20225 if test "x$BOOT_JDK_FOUND" = xno; then 20226 # Now execute the test 20227 20228 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20229 # First check at user selected default 20230 20231 if test "x$BOOT_JDK_FOUND" = xno; then 20232 # Now execute the test 20233 20234 if test -x /usr/libexec/java_home; then 20235 BOOT_JDK=`/usr/libexec/java_home ` 20236 BOOT_JDK_FOUND=maybe 20237 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20238 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20239 fi 20240 20241 20242 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20243 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20244 # Do we have a bin/java? 20245 if test ! -x "$BOOT_JDK/bin/java"; then 20246 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20248 BOOT_JDK_FOUND=no 20249 else 20250 # Do we have a bin/javac? 20251 if test ! -x "$BOOT_JDK/bin/javac"; then 20252 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20253 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20254 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20255 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20256 BOOT_JDK_FOUND=no 20257 else 20258 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20259 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20260 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20261 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20262 BOOT_JDK_FOUND=no 20263 else 20264 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20265 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20266 20267 # Extra M4 quote needed to protect [] in grep expression. 20268 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20269 if test "x$FOUND_CORRECT_VERSION" = x; then 20270 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20271 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20272 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20273 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20274 BOOT_JDK_FOUND=no 20275 else 20276 # We're done! :-) 20277 BOOT_JDK_FOUND=yes 20278 20279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20280 20281 # Input might be given as Windows format, start by converting to 20282 # unix format. 20283 path="$BOOT_JDK" 20284 new_path=`$CYGPATH -u "$path"` 20285 20286 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20287 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20288 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20289 # "foo.exe" is OK but "foo" is an error. 20290 # 20291 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20292 # It is also a way to make sure we got the proper file name for the real test later on. 20293 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20294 if test "x$test_shortpath" = x; then 20295 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20296 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20297 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20298 fi 20299 20300 # Call helper function which possibly converts this using DOS-style short mode. 20301 # If so, the updated path is stored in $new_path. 20302 20303 input_path="$new_path" 20304 # Check if we need to convert this using DOS-style short mode. If the path 20305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20306 # take no chances and rewrite it. 20307 # Note: m4 eats our [], so we need to use [ and ] instead. 20308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20309 if test "x$has_forbidden_chars" != x; then 20310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20311 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20312 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20313 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20314 # Going to short mode and back again did indeed matter. Since short mode is 20315 # case insensitive, let's make it lowercase to improve readability. 20316 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20317 # Now convert it back to Unix-stile (cygpath) 20318 input_path=`$CYGPATH -u "$shortmode_path"` 20319 new_path="$input_path" 20320 fi 20321 fi 20322 20323 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20324 if test "x$test_cygdrive_prefix" = x; then 20325 # As a simple fix, exclude /usr/bin since it's not a real path. 20326 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20327 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20328 # a path prefixed by /cygdrive for fixpath to work. 20329 new_path="$CYGWIN_ROOT_PATH$input_path" 20330 fi 20331 fi 20332 20333 20334 if test "x$path" != "x$new_path"; then 20335 BOOT_JDK="$new_path" 20336 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20337 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20338 fi 20339 20340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20341 20342 path="$BOOT_JDK" 20343 has_colon=`$ECHO $path | $GREP ^.:` 20344 new_path="$path" 20345 if test "x$has_colon" = x; then 20346 # Not in mixed or Windows style, start by that. 20347 new_path=`cmd //c echo $path` 20348 fi 20349 20350 20351 input_path="$new_path" 20352 # Check if we need to convert this using DOS-style short mode. If the path 20353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20354 # take no chances and rewrite it. 20355 # Note: m4 eats our [], so we need to use [ and ] instead. 20356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20357 if test "x$has_forbidden_chars" != x; then 20358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20359 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20360 fi 20361 20362 20363 windows_path="$new_path" 20364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20365 unix_path=`$CYGPATH -u "$windows_path"` 20366 new_path="$unix_path" 20367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20368 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20369 new_path="$unix_path" 20370 fi 20371 20372 if test "x$path" != "x$new_path"; then 20373 BOOT_JDK="$new_path" 20374 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20375 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20376 fi 20377 20378 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20379 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20380 20381 else 20382 # We're on a posix platform. Hooray! :) 20383 path="$BOOT_JDK" 20384 has_space=`$ECHO "$path" | $GREP " "` 20385 if test "x$has_space" != x; then 20386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20387 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20388 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20389 fi 20390 20391 # Use eval to expand a potential ~ 20392 eval path="$path" 20393 if test ! -f "$path" && test ! -d "$path"; then 20394 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20395 fi 20396 20397 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20398 fi 20399 20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20401 $as_echo_n "checking for Boot JDK... " >&6; } 20402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20403 $as_echo "$BOOT_JDK" >&6; } 20404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20405 $as_echo_n "checking Boot JDK version... " >&6; } 20406 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20408 $as_echo "$BOOT_JDK_VERSION" >&6; } 20409 fi # end check jdk version 20410 fi # end check rt.jar 20411 fi # end check javac 20412 fi # end check java 20413 fi # end check boot jdk found 20414 fi 20415 20416 # If that did not work out (e.g. too old), try explicit versions instead 20417 20418 if test "x$BOOT_JDK_FOUND" = xno; then 20419 # Now execute the test 20420 20421 if test -x /usr/libexec/java_home; then 20422 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20423 BOOT_JDK_FOUND=maybe 20424 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20425 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20426 fi 20427 20428 20429 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20430 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20431 # Do we have a bin/java? 20432 if test ! -x "$BOOT_JDK/bin/java"; then 20433 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20434 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20435 BOOT_JDK_FOUND=no 20436 else 20437 # Do we have a bin/javac? 20438 if test ! -x "$BOOT_JDK/bin/javac"; then 20439 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20440 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20441 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20442 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20443 BOOT_JDK_FOUND=no 20444 else 20445 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20446 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20447 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20449 BOOT_JDK_FOUND=no 20450 else 20451 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20452 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20453 20454 # Extra M4 quote needed to protect [] in grep expression. 20455 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20456 if test "x$FOUND_CORRECT_VERSION" = x; then 20457 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20458 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20459 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20460 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20461 BOOT_JDK_FOUND=no 20462 else 20463 # We're done! :-) 20464 BOOT_JDK_FOUND=yes 20465 20466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20467 20468 # Input might be given as Windows format, start by converting to 20469 # unix format. 20470 path="$BOOT_JDK" 20471 new_path=`$CYGPATH -u "$path"` 20472 20473 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20474 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20475 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20476 # "foo.exe" is OK but "foo" is an error. 20477 # 20478 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20479 # It is also a way to make sure we got the proper file name for the real test later on. 20480 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20481 if test "x$test_shortpath" = x; then 20482 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20483 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20484 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20485 fi 20486 20487 # Call helper function which possibly converts this using DOS-style short mode. 20488 # If so, the updated path is stored in $new_path. 20489 20490 input_path="$new_path" 20491 # Check if we need to convert this using DOS-style short mode. If the path 20492 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20493 # take no chances and rewrite it. 20494 # Note: m4 eats our [], so we need to use [ and ] instead. 20495 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20496 if test "x$has_forbidden_chars" != x; then 20497 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20498 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20499 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20500 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20501 # Going to short mode and back again did indeed matter. Since short mode is 20502 # case insensitive, let's make it lowercase to improve readability. 20503 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20504 # Now convert it back to Unix-stile (cygpath) 20505 input_path=`$CYGPATH -u "$shortmode_path"` 20506 new_path="$input_path" 20507 fi 20508 fi 20509 20510 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20511 if test "x$test_cygdrive_prefix" = x; then 20512 # As a simple fix, exclude /usr/bin since it's not a real path. 20513 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20514 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20515 # a path prefixed by /cygdrive for fixpath to work. 20516 new_path="$CYGWIN_ROOT_PATH$input_path" 20517 fi 20518 fi 20519 20520 20521 if test "x$path" != "x$new_path"; then 20522 BOOT_JDK="$new_path" 20523 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20524 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20525 fi 20526 20527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20528 20529 path="$BOOT_JDK" 20530 has_colon=`$ECHO $path | $GREP ^.:` 20531 new_path="$path" 20532 if test "x$has_colon" = x; then 20533 # Not in mixed or Windows style, start by that. 20534 new_path=`cmd //c echo $path` 20535 fi 20536 20537 20538 input_path="$new_path" 20539 # Check if we need to convert this using DOS-style short mode. If the path 20540 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20541 # take no chances and rewrite it. 20542 # Note: m4 eats our [], so we need to use [ and ] instead. 20543 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20544 if test "x$has_forbidden_chars" != x; then 20545 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20546 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20547 fi 20548 20549 20550 windows_path="$new_path" 20551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20552 unix_path=`$CYGPATH -u "$windows_path"` 20553 new_path="$unix_path" 20554 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20555 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20556 new_path="$unix_path" 20557 fi 20558 20559 if test "x$path" != "x$new_path"; then 20560 BOOT_JDK="$new_path" 20561 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20562 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20563 fi 20564 20565 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20566 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20567 20568 else 20569 # We're on a posix platform. Hooray! :) 20570 path="$BOOT_JDK" 20571 has_space=`$ECHO "$path" | $GREP " "` 20572 if test "x$has_space" != x; then 20573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20574 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20575 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20576 fi 20577 20578 # Use eval to expand a potential ~ 20579 eval path="$path" 20580 if test ! -f "$path" && test ! -d "$path"; then 20581 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20582 fi 20583 20584 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20585 fi 20586 20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20588 $as_echo_n "checking for Boot JDK... " >&6; } 20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20590 $as_echo "$BOOT_JDK" >&6; } 20591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20592 $as_echo_n "checking Boot JDK version... " >&6; } 20593 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20595 $as_echo "$BOOT_JDK_VERSION" >&6; } 20596 fi # end check jdk version 20597 fi # end check rt.jar 20598 fi # end check javac 20599 fi # end check java 20600 fi # end check boot jdk found 20601 fi 20602 20603 20604 if test "x$BOOT_JDK_FOUND" = xno; then 20605 # Now execute the test 20606 20607 if test -x /usr/libexec/java_home; then 20608 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 20609 BOOT_JDK_FOUND=maybe 20610 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 20611 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 20612 fi 20613 20614 20615 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20616 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20617 # Do we have a bin/java? 20618 if test ! -x "$BOOT_JDK/bin/java"; then 20619 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20620 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20621 BOOT_JDK_FOUND=no 20622 else 20623 # Do we have a bin/javac? 20624 if test ! -x "$BOOT_JDK/bin/javac"; then 20625 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20626 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20627 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20628 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20629 BOOT_JDK_FOUND=no 20630 else 20631 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20632 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20633 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20634 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20635 BOOT_JDK_FOUND=no 20636 else 20637 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20638 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20639 20640 # Extra M4 quote needed to protect [] in grep expression. 20641 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20642 if test "x$FOUND_CORRECT_VERSION" = x; then 20643 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20644 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20645 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20646 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20647 BOOT_JDK_FOUND=no 20648 else 20649 # We're done! :-) 20650 BOOT_JDK_FOUND=yes 20651 20652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20653 20654 # Input might be given as Windows format, start by converting to 20655 # unix format. 20656 path="$BOOT_JDK" 20657 new_path=`$CYGPATH -u "$path"` 20658 20659 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20660 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20661 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20662 # "foo.exe" is OK but "foo" is an error. 20663 # 20664 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20665 # It is also a way to make sure we got the proper file name for the real test later on. 20666 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20667 if test "x$test_shortpath" = x; then 20668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20669 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20670 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20671 fi 20672 20673 # Call helper function which possibly converts this using DOS-style short mode. 20674 # If so, the updated path is stored in $new_path. 20675 20676 input_path="$new_path" 20677 # Check if we need to convert this using DOS-style short mode. If the path 20678 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20679 # take no chances and rewrite it. 20680 # Note: m4 eats our [], so we need to use [ and ] instead. 20681 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20682 if test "x$has_forbidden_chars" != x; then 20683 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20684 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20685 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20686 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20687 # Going to short mode and back again did indeed matter. Since short mode is 20688 # case insensitive, let's make it lowercase to improve readability. 20689 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20690 # Now convert it back to Unix-stile (cygpath) 20691 input_path=`$CYGPATH -u "$shortmode_path"` 20692 new_path="$input_path" 20693 fi 20694 fi 20695 20696 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20697 if test "x$test_cygdrive_prefix" = x; then 20698 # As a simple fix, exclude /usr/bin since it's not a real path. 20699 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20700 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20701 # a path prefixed by /cygdrive for fixpath to work. 20702 new_path="$CYGWIN_ROOT_PATH$input_path" 20703 fi 20704 fi 20705 20706 20707 if test "x$path" != "x$new_path"; then 20708 BOOT_JDK="$new_path" 20709 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20710 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20711 fi 20712 20713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20714 20715 path="$BOOT_JDK" 20716 has_colon=`$ECHO $path | $GREP ^.:` 20717 new_path="$path" 20718 if test "x$has_colon" = x; then 20719 # Not in mixed or Windows style, start by that. 20720 new_path=`cmd //c echo $path` 20721 fi 20722 20723 20724 input_path="$new_path" 20725 # Check if we need to convert this using DOS-style short mode. If the path 20726 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20727 # take no chances and rewrite it. 20728 # Note: m4 eats our [], so we need to use [ and ] instead. 20729 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20730 if test "x$has_forbidden_chars" != x; then 20731 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20732 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20733 fi 20734 20735 20736 windows_path="$new_path" 20737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20738 unix_path=`$CYGPATH -u "$windows_path"` 20739 new_path="$unix_path" 20740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20742 new_path="$unix_path" 20743 fi 20744 20745 if test "x$path" != "x$new_path"; then 20746 BOOT_JDK="$new_path" 20747 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20748 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20749 fi 20750 20751 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20752 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20753 20754 else 20755 # We're on a posix platform. Hooray! :) 20756 path="$BOOT_JDK" 20757 has_space=`$ECHO "$path" | $GREP " "` 20758 if test "x$has_space" != x; then 20759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20760 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20761 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20762 fi 20763 20764 # Use eval to expand a potential ~ 20765 eval path="$path" 20766 if test ! -f "$path" && test ! -d "$path"; then 20767 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20768 fi 20769 20770 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20771 fi 20772 20773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20774 $as_echo_n "checking for Boot JDK... " >&6; } 20775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20776 $as_echo "$BOOT_JDK" >&6; } 20777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20778 $as_echo_n "checking Boot JDK version... " >&6; } 20779 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20781 $as_echo "$BOOT_JDK_VERSION" >&6; } 20782 fi # end check jdk version 20783 fi # end check rt.jar 20784 fi # end check javac 20785 fi # end check java 20786 fi # end check boot jdk found 20787 fi 20788 20789 20790 if test "x$BOOT_JDK_FOUND" = xno; then 20791 # Now execute the test 20792 20793 if test -x /usr/libexec/java_home; then 20794 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 20795 BOOT_JDK_FOUND=maybe 20796 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 20797 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 20798 fi 20799 20800 20801 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20802 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20803 # Do we have a bin/java? 20804 if test ! -x "$BOOT_JDK/bin/java"; then 20805 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20806 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20807 BOOT_JDK_FOUND=no 20808 else 20809 # Do we have a bin/javac? 20810 if test ! -x "$BOOT_JDK/bin/javac"; then 20811 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20812 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20813 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20814 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20815 BOOT_JDK_FOUND=no 20816 else 20817 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20818 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20819 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20820 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20821 BOOT_JDK_FOUND=no 20822 else 20823 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20824 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20825 20826 # Extra M4 quote needed to protect [] in grep expression. 20827 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20828 if test "x$FOUND_CORRECT_VERSION" = x; then 20829 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20830 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20831 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20832 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20833 BOOT_JDK_FOUND=no 20834 else 20835 # We're done! :-) 20836 BOOT_JDK_FOUND=yes 20837 20838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20839 20840 # Input might be given as Windows format, start by converting to 20841 # unix format. 20842 path="$BOOT_JDK" 20843 new_path=`$CYGPATH -u "$path"` 20844 20845 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20846 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20847 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20848 # "foo.exe" is OK but "foo" is an error. 20849 # 20850 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20851 # It is also a way to make sure we got the proper file name for the real test later on. 20852 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20853 if test "x$test_shortpath" = x; then 20854 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20855 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20856 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20857 fi 20858 20859 # Call helper function which possibly converts this using DOS-style short mode. 20860 # If so, the updated path is stored in $new_path. 20861 20862 input_path="$new_path" 20863 # Check if we need to convert this using DOS-style short mode. If the path 20864 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20865 # take no chances and rewrite it. 20866 # Note: m4 eats our [], so we need to use [ and ] instead. 20867 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20868 if test "x$has_forbidden_chars" != x; then 20869 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20870 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20871 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20872 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20873 # Going to short mode and back again did indeed matter. Since short mode is 20874 # case insensitive, let's make it lowercase to improve readability. 20875 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20876 # Now convert it back to Unix-stile (cygpath) 20877 input_path=`$CYGPATH -u "$shortmode_path"` 20878 new_path="$input_path" 20879 fi 20880 fi 20881 20882 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20883 if test "x$test_cygdrive_prefix" = x; then 20884 # As a simple fix, exclude /usr/bin since it's not a real path. 20885 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20886 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20887 # a path prefixed by /cygdrive for fixpath to work. 20888 new_path="$CYGWIN_ROOT_PATH$input_path" 20889 fi 20890 fi 20891 20892 20893 if test "x$path" != "x$new_path"; then 20894 BOOT_JDK="$new_path" 20895 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20896 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20897 fi 20898 20899 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20900 20901 path="$BOOT_JDK" 20902 has_colon=`$ECHO $path | $GREP ^.:` 20903 new_path="$path" 20904 if test "x$has_colon" = x; then 20905 # Not in mixed or Windows style, start by that. 20906 new_path=`cmd //c echo $path` 20907 fi 20908 20909 20910 input_path="$new_path" 20911 # Check if we need to convert this using DOS-style short mode. If the path 20912 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20913 # take no chances and rewrite it. 20914 # Note: m4 eats our [], so we need to use [ and ] instead. 20915 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20916 if test "x$has_forbidden_chars" != x; then 20917 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20918 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20919 fi 20920 20921 20922 windows_path="$new_path" 20923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20924 unix_path=`$CYGPATH -u "$windows_path"` 20925 new_path="$unix_path" 20926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20927 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20928 new_path="$unix_path" 20929 fi 20930 20931 if test "x$path" != "x$new_path"; then 20932 BOOT_JDK="$new_path" 20933 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20934 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20935 fi 20936 20937 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20938 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20939 20940 else 20941 # We're on a posix platform. Hooray! :) 20942 path="$BOOT_JDK" 20943 has_space=`$ECHO "$path" | $GREP " "` 20944 if test "x$has_space" != x; then 20945 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20946 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20947 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20948 fi 20949 20950 # Use eval to expand a potential ~ 20951 eval path="$path" 20952 if test ! -f "$path" && test ! -d "$path"; then 20953 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20954 fi 20955 20956 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20957 fi 20958 20959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20960 $as_echo_n "checking for Boot JDK... " >&6; } 20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20962 $as_echo "$BOOT_JDK" >&6; } 20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20964 $as_echo_n "checking Boot JDK version... " >&6; } 20965 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20967 $as_echo "$BOOT_JDK_VERSION" >&6; } 20968 fi # end check jdk version 20969 fi # end check rt.jar 20970 fi # end check javac 20971 fi # end check java 20972 fi # end check boot jdk found 20973 fi 20974 20975 fi 20976 20977 20978 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20979 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20980 # Do we have a bin/java? 20981 if test ! -x "$BOOT_JDK/bin/java"; then 20982 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20983 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20984 BOOT_JDK_FOUND=no 20985 else 20986 # Do we have a bin/javac? 20987 if test ! -x "$BOOT_JDK/bin/javac"; then 20988 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20989 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20990 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20991 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20992 BOOT_JDK_FOUND=no 20993 else 20994 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20995 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20996 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20997 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20998 BOOT_JDK_FOUND=no 20999 else 21000 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21001 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21002 21003 # Extra M4 quote needed to protect [] in grep expression. 21004 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21005 if test "x$FOUND_CORRECT_VERSION" = x; then 21006 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21007 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21008 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21009 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21010 BOOT_JDK_FOUND=no 21011 else 21012 # We're done! :-) 21013 BOOT_JDK_FOUND=yes 21014 21015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21016 21017 # Input might be given as Windows format, start by converting to 21018 # unix format. 21019 path="$BOOT_JDK" 21020 new_path=`$CYGPATH -u "$path"` 21021 21022 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21023 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21024 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21025 # "foo.exe" is OK but "foo" is an error. 21026 # 21027 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21028 # It is also a way to make sure we got the proper file name for the real test later on. 21029 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21030 if test "x$test_shortpath" = x; then 21031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21032 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21033 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21034 fi 21035 21036 # Call helper function which possibly converts this using DOS-style short mode. 21037 # If so, the updated path is stored in $new_path. 21038 21039 input_path="$new_path" 21040 # Check if we need to convert this using DOS-style short mode. If the path 21041 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21042 # take no chances and rewrite it. 21043 # Note: m4 eats our [], so we need to use [ and ] instead. 21044 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21045 if test "x$has_forbidden_chars" != x; then 21046 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21047 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21048 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21049 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21050 # Going to short mode and back again did indeed matter. Since short mode is 21051 # case insensitive, let's make it lowercase to improve readability. 21052 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21053 # Now convert it back to Unix-stile (cygpath) 21054 input_path=`$CYGPATH -u "$shortmode_path"` 21055 new_path="$input_path" 21056 fi 21057 fi 21058 21059 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21060 if test "x$test_cygdrive_prefix" = x; then 21061 # As a simple fix, exclude /usr/bin since it's not a real path. 21062 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21063 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21064 # a path prefixed by /cygdrive for fixpath to work. 21065 new_path="$CYGWIN_ROOT_PATH$input_path" 21066 fi 21067 fi 21068 21069 21070 if test "x$path" != "x$new_path"; then 21071 BOOT_JDK="$new_path" 21072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21073 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21074 fi 21075 21076 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21077 21078 path="$BOOT_JDK" 21079 has_colon=`$ECHO $path | $GREP ^.:` 21080 new_path="$path" 21081 if test "x$has_colon" = x; then 21082 # Not in mixed or Windows style, start by that. 21083 new_path=`cmd //c echo $path` 21084 fi 21085 21086 21087 input_path="$new_path" 21088 # Check if we need to convert this using DOS-style short mode. If the path 21089 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21090 # take no chances and rewrite it. 21091 # Note: m4 eats our [], so we need to use [ and ] instead. 21092 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21093 if test "x$has_forbidden_chars" != x; then 21094 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21095 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21096 fi 21097 21098 21099 windows_path="$new_path" 21100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21101 unix_path=`$CYGPATH -u "$windows_path"` 21102 new_path="$unix_path" 21103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21105 new_path="$unix_path" 21106 fi 21107 21108 if test "x$path" != "x$new_path"; then 21109 BOOT_JDK="$new_path" 21110 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21111 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21112 fi 21113 21114 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21115 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21116 21117 else 21118 # We're on a posix platform. Hooray! :) 21119 path="$BOOT_JDK" 21120 has_space=`$ECHO "$path" | $GREP " "` 21121 if test "x$has_space" != x; then 21122 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21123 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21124 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21125 fi 21126 21127 # Use eval to expand a potential ~ 21128 eval path="$path" 21129 if test ! -f "$path" && test ! -d "$path"; then 21130 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21131 fi 21132 21133 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21134 fi 21135 21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21137 $as_echo_n "checking for Boot JDK... " >&6; } 21138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21139 $as_echo "$BOOT_JDK" >&6; } 21140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21141 $as_echo_n "checking Boot JDK version... " >&6; } 21142 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21144 $as_echo "$BOOT_JDK_VERSION" >&6; } 21145 fi # end check jdk version 21146 fi # end check rt.jar 21147 fi # end check javac 21148 fi # end check java 21149 fi # end check boot jdk found 21150 fi 21151 21152 21153 # Test: Is $JAVA_HOME set? 21154 21155 if test "x$BOOT_JDK_FOUND" = xno; then 21156 # Now execute the test 21157 21158 if test "x$JAVA_HOME" != x; then 21159 JAVA_HOME_PROCESSED="$JAVA_HOME" 21160 21161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21162 21163 # Input might be given as Windows format, start by converting to 21164 # unix format. 21165 path="$JAVA_HOME_PROCESSED" 21166 new_path=`$CYGPATH -u "$path"` 21167 21168 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21169 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21170 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21171 # "foo.exe" is OK but "foo" is an error. 21172 # 21173 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21174 # It is also a way to make sure we got the proper file name for the real test later on. 21175 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21176 if test "x$test_shortpath" = x; then 21177 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21178 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21179 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21180 fi 21181 21182 # Call helper function which possibly converts this using DOS-style short mode. 21183 # If so, the updated path is stored in $new_path. 21184 21185 input_path="$new_path" 21186 # Check if we need to convert this using DOS-style short mode. If the path 21187 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21188 # take no chances and rewrite it. 21189 # Note: m4 eats our [], so we need to use [ and ] instead. 21190 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21191 if test "x$has_forbidden_chars" != x; then 21192 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21193 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21194 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21195 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21196 # Going to short mode and back again did indeed matter. Since short mode is 21197 # case insensitive, let's make it lowercase to improve readability. 21198 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21199 # Now convert it back to Unix-stile (cygpath) 21200 input_path=`$CYGPATH -u "$shortmode_path"` 21201 new_path="$input_path" 21202 fi 21203 fi 21204 21205 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21206 if test "x$test_cygdrive_prefix" = x; then 21207 # As a simple fix, exclude /usr/bin since it's not a real path. 21208 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21209 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21210 # a path prefixed by /cygdrive for fixpath to work. 21211 new_path="$CYGWIN_ROOT_PATH$input_path" 21212 fi 21213 fi 21214 21215 21216 if test "x$path" != "x$new_path"; then 21217 JAVA_HOME_PROCESSED="$new_path" 21218 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21219 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21220 fi 21221 21222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21223 21224 path="$JAVA_HOME_PROCESSED" 21225 has_colon=`$ECHO $path | $GREP ^.:` 21226 new_path="$path" 21227 if test "x$has_colon" = x; then 21228 # Not in mixed or Windows style, start by that. 21229 new_path=`cmd //c echo $path` 21230 fi 21231 21232 21233 input_path="$new_path" 21234 # Check if we need to convert this using DOS-style short mode. If the path 21235 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21236 # take no chances and rewrite it. 21237 # Note: m4 eats our [], so we need to use [ and ] instead. 21238 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21239 if test "x$has_forbidden_chars" != x; then 21240 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21241 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21242 fi 21243 21244 21245 windows_path="$new_path" 21246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21247 unix_path=`$CYGPATH -u "$windows_path"` 21248 new_path="$unix_path" 21249 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21250 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21251 new_path="$unix_path" 21252 fi 21253 21254 if test "x$path" != "x$new_path"; then 21255 JAVA_HOME_PROCESSED="$new_path" 21256 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21257 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21258 fi 21259 21260 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21261 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21262 21263 else 21264 # We're on a posix platform. Hooray! :) 21265 path="$JAVA_HOME_PROCESSED" 21266 has_space=`$ECHO "$path" | $GREP " "` 21267 if test "x$has_space" != x; then 21268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21269 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21270 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21271 fi 21272 21273 # Use eval to expand a potential ~ 21274 eval path="$path" 21275 if test ! -f "$path" && test ! -d "$path"; then 21276 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21277 fi 21278 21279 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21280 fi 21281 21282 if test ! -d "$JAVA_HOME_PROCESSED"; then 21283 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21284 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21285 else 21286 # Aha, the user has set a JAVA_HOME 21287 # let us use that as the Boot JDK. 21288 BOOT_JDK="$JAVA_HOME_PROCESSED" 21289 BOOT_JDK_FOUND=maybe 21290 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21291 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21292 fi 21293 fi 21294 21295 21296 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21297 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21298 # Do we have a bin/java? 21299 if test ! -x "$BOOT_JDK/bin/java"; then 21300 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21301 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21302 BOOT_JDK_FOUND=no 21303 else 21304 # Do we have a bin/javac? 21305 if test ! -x "$BOOT_JDK/bin/javac"; then 21306 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21307 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21308 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21309 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21310 BOOT_JDK_FOUND=no 21311 else 21312 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21313 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21314 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21315 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21316 BOOT_JDK_FOUND=no 21317 else 21318 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21319 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21320 21321 # Extra M4 quote needed to protect [] in grep expression. 21322 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21323 if test "x$FOUND_CORRECT_VERSION" = x; then 21324 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21325 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21326 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21327 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21328 BOOT_JDK_FOUND=no 21329 else 21330 # We're done! :-) 21331 BOOT_JDK_FOUND=yes 21332 21333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21334 21335 # Input might be given as Windows format, start by converting to 21336 # unix format. 21337 path="$BOOT_JDK" 21338 new_path=`$CYGPATH -u "$path"` 21339 21340 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21341 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21342 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21343 # "foo.exe" is OK but "foo" is an error. 21344 # 21345 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21346 # It is also a way to make sure we got the proper file name for the real test later on. 21347 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21348 if test "x$test_shortpath" = x; then 21349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21350 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21351 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21352 fi 21353 21354 # Call helper function which possibly converts this using DOS-style short mode. 21355 # If so, the updated path is stored in $new_path. 21356 21357 input_path="$new_path" 21358 # Check if we need to convert this using DOS-style short mode. If the path 21359 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21360 # take no chances and rewrite it. 21361 # Note: m4 eats our [], so we need to use [ and ] instead. 21362 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21363 if test "x$has_forbidden_chars" != x; then 21364 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21365 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21366 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21367 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21368 # Going to short mode and back again did indeed matter. Since short mode is 21369 # case insensitive, let's make it lowercase to improve readability. 21370 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21371 # Now convert it back to Unix-stile (cygpath) 21372 input_path=`$CYGPATH -u "$shortmode_path"` 21373 new_path="$input_path" 21374 fi 21375 fi 21376 21377 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21378 if test "x$test_cygdrive_prefix" = x; then 21379 # As a simple fix, exclude /usr/bin since it's not a real path. 21380 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21381 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21382 # a path prefixed by /cygdrive for fixpath to work. 21383 new_path="$CYGWIN_ROOT_PATH$input_path" 21384 fi 21385 fi 21386 21387 21388 if test "x$path" != "x$new_path"; then 21389 BOOT_JDK="$new_path" 21390 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21391 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21392 fi 21393 21394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21395 21396 path="$BOOT_JDK" 21397 has_colon=`$ECHO $path | $GREP ^.:` 21398 new_path="$path" 21399 if test "x$has_colon" = x; then 21400 # Not in mixed or Windows style, start by that. 21401 new_path=`cmd //c echo $path` 21402 fi 21403 21404 21405 input_path="$new_path" 21406 # Check if we need to convert this using DOS-style short mode. If the path 21407 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21408 # take no chances and rewrite it. 21409 # Note: m4 eats our [], so we need to use [ and ] instead. 21410 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21411 if test "x$has_forbidden_chars" != x; then 21412 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21413 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21414 fi 21415 21416 21417 windows_path="$new_path" 21418 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21419 unix_path=`$CYGPATH -u "$windows_path"` 21420 new_path="$unix_path" 21421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21422 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21423 new_path="$unix_path" 21424 fi 21425 21426 if test "x$path" != "x$new_path"; then 21427 BOOT_JDK="$new_path" 21428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21429 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21430 fi 21431 21432 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21433 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21434 21435 else 21436 # We're on a posix platform. Hooray! :) 21437 path="$BOOT_JDK" 21438 has_space=`$ECHO "$path" | $GREP " "` 21439 if test "x$has_space" != x; then 21440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21441 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21442 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21443 fi 21444 21445 # Use eval to expand a potential ~ 21446 eval path="$path" 21447 if test ! -f "$path" && test ! -d "$path"; then 21448 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21449 fi 21450 21451 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21452 fi 21453 21454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21455 $as_echo_n "checking for Boot JDK... " >&6; } 21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21457 $as_echo "$BOOT_JDK" >&6; } 21458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21459 $as_echo_n "checking Boot JDK version... " >&6; } 21460 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21462 $as_echo "$BOOT_JDK_VERSION" >&6; } 21463 fi # end check jdk version 21464 fi # end check rt.jar 21465 fi # end check javac 21466 fi # end check java 21467 fi # end check boot jdk found 21468 fi 21469 21470 21471 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21472 21473 if test "x$BOOT_JDK_FOUND" = xno; then 21474 # Now execute the test 21475 21476 # Extract the first word of "javac", so it can be a program name with args. 21477 set dummy javac; ac_word=$2 21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21479 $as_echo_n "checking for $ac_word... " >&6; } 21480 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21481 $as_echo_n "(cached) " >&6 21482 else 21483 case $JAVAC_CHECK in 21484 [\\/]* | ?:[\\/]*) 21485 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21486 ;; 21487 *) 21488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21489 for as_dir in $PATH 21490 do 21491 IFS=$as_save_IFS 21492 test -z "$as_dir" && as_dir=. 21493 for ac_exec_ext in '' $ac_executable_extensions; do 21494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21495 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21497 break 2 21498 fi 21499 done 21500 done 21501 IFS=$as_save_IFS 21502 21503 ;; 21504 esac 21505 fi 21506 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21507 if test -n "$JAVAC_CHECK"; then 21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21509 $as_echo "$JAVAC_CHECK" >&6; } 21510 else 21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21512 $as_echo "no" >&6; } 21513 fi 21514 21515 21516 # Extract the first word of "java", so it can be a program name with args. 21517 set dummy java; ac_word=$2 21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21519 $as_echo_n "checking for $ac_word... " >&6; } 21520 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21521 $as_echo_n "(cached) " >&6 21522 else 21523 case $JAVA_CHECK in 21524 [\\/]* | ?:[\\/]*) 21525 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21526 ;; 21527 *) 21528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21529 for as_dir in $PATH 21530 do 21531 IFS=$as_save_IFS 21532 test -z "$as_dir" && as_dir=. 21533 for ac_exec_ext in '' $ac_executable_extensions; do 21534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21535 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21537 break 2 21538 fi 21539 done 21540 done 21541 IFS=$as_save_IFS 21542 21543 ;; 21544 esac 21545 fi 21546 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21547 if test -n "$JAVA_CHECK"; then 21548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21549 $as_echo "$JAVA_CHECK" >&6; } 21550 else 21551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21552 $as_echo "no" >&6; } 21553 fi 21554 21555 21556 BINARY="$JAVAC_CHECK" 21557 if test "x$JAVAC_CHECK" = x; then 21558 BINARY="$JAVA_CHECK" 21559 fi 21560 if test "x$BINARY" != x; then 21561 # So there is a java(c) binary, it might be part of a JDK. 21562 # Lets find the JDK/JRE directory by following symbolic links. 21563 # Linux/GNU systems often have links from /usr/bin/java to 21564 # /etc/alternatives/java to the real JDK binary. 21565 21566 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21567 # Follow a chain of symbolic links. Use readlink 21568 # where it exists, else fall back to horribly 21569 # complicated shell code. 21570 if test "x$READLINK_TESTED" != yes; then 21571 # On MacOSX there is a readlink tool with a different 21572 # purpose than the GNU readlink tool. Check the found readlink. 21573 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21574 if test "x$ISGNU" = x; then 21575 # A readlink that we do not know how to use. 21576 # Are there other non-GNU readlinks out there? 21577 READLINK_TESTED=yes 21578 READLINK= 21579 fi 21580 fi 21581 21582 if test "x$READLINK" != x; then 21583 BINARY=`$READLINK -f $BINARY` 21584 else 21585 # Save the current directory for restoring afterwards 21586 STARTDIR=$PWD 21587 COUNTER=0 21588 sym_link_dir=`$DIRNAME $BINARY` 21589 sym_link_file=`$BASENAME $BINARY` 21590 cd $sym_link_dir 21591 # Use -P flag to resolve symlinks in directories. 21592 cd `$THEPWDCMD -P` 21593 sym_link_dir=`$THEPWDCMD -P` 21594 # Resolve file symlinks 21595 while test $COUNTER -lt 20; do 21596 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21597 if test "x$ISLINK" == x; then 21598 # This is not a symbolic link! We are done! 21599 break 21600 fi 21601 # Again resolve directory symlinks since the target of the just found 21602 # link could be in a different directory 21603 cd `$DIRNAME $ISLINK` 21604 sym_link_dir=`$THEPWDCMD -P` 21605 sym_link_file=`$BASENAME $ISLINK` 21606 let COUNTER=COUNTER+1 21607 done 21608 cd $STARTDIR 21609 BINARY=$sym_link_dir/$sym_link_file 21610 fi 21611 fi 21612 21613 BOOT_JDK=`dirname "$BINARY"` 21614 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 21615 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 21616 # Looks like we found ourselves an JDK 21617 BOOT_JDK_FOUND=maybe 21618 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 21619 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 21620 fi 21621 fi 21622 21623 21624 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21625 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21626 # Do we have a bin/java? 21627 if test ! -x "$BOOT_JDK/bin/java"; then 21628 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21629 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21630 BOOT_JDK_FOUND=no 21631 else 21632 # Do we have a bin/javac? 21633 if test ! -x "$BOOT_JDK/bin/javac"; then 21634 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21635 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21636 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21637 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21638 BOOT_JDK_FOUND=no 21639 else 21640 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21641 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21642 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21644 BOOT_JDK_FOUND=no 21645 else 21646 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21647 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21648 21649 # Extra M4 quote needed to protect [] in grep expression. 21650 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21651 if test "x$FOUND_CORRECT_VERSION" = x; then 21652 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21653 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21654 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21655 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21656 BOOT_JDK_FOUND=no 21657 else 21658 # We're done! :-) 21659 BOOT_JDK_FOUND=yes 21660 21661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21662 21663 # Input might be given as Windows format, start by converting to 21664 # unix format. 21665 path="$BOOT_JDK" 21666 new_path=`$CYGPATH -u "$path"` 21667 21668 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21669 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21670 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21671 # "foo.exe" is OK but "foo" is an error. 21672 # 21673 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21674 # It is also a way to make sure we got the proper file name for the real test later on. 21675 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21676 if test "x$test_shortpath" = x; then 21677 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21678 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21679 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21680 fi 21681 21682 # Call helper function which possibly converts this using DOS-style short mode. 21683 # If so, the updated path is stored in $new_path. 21684 21685 input_path="$new_path" 21686 # Check if we need to convert this using DOS-style short mode. If the path 21687 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21688 # take no chances and rewrite it. 21689 # Note: m4 eats our [], so we need to use [ and ] instead. 21690 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21691 if test "x$has_forbidden_chars" != x; then 21692 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21693 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21694 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21695 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21696 # Going to short mode and back again did indeed matter. Since short mode is 21697 # case insensitive, let's make it lowercase to improve readability. 21698 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21699 # Now convert it back to Unix-stile (cygpath) 21700 input_path=`$CYGPATH -u "$shortmode_path"` 21701 new_path="$input_path" 21702 fi 21703 fi 21704 21705 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21706 if test "x$test_cygdrive_prefix" = x; then 21707 # As a simple fix, exclude /usr/bin since it's not a real path. 21708 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21709 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21710 # a path prefixed by /cygdrive for fixpath to work. 21711 new_path="$CYGWIN_ROOT_PATH$input_path" 21712 fi 21713 fi 21714 21715 21716 if test "x$path" != "x$new_path"; then 21717 BOOT_JDK="$new_path" 21718 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21719 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21720 fi 21721 21722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21723 21724 path="$BOOT_JDK" 21725 has_colon=`$ECHO $path | $GREP ^.:` 21726 new_path="$path" 21727 if test "x$has_colon" = x; then 21728 # Not in mixed or Windows style, start by that. 21729 new_path=`cmd //c echo $path` 21730 fi 21731 21732 21733 input_path="$new_path" 21734 # Check if we need to convert this using DOS-style short mode. If the path 21735 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21736 # take no chances and rewrite it. 21737 # Note: m4 eats our [], so we need to use [ and ] instead. 21738 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21739 if test "x$has_forbidden_chars" != x; then 21740 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21741 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21742 fi 21743 21744 21745 windows_path="$new_path" 21746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21747 unix_path=`$CYGPATH -u "$windows_path"` 21748 new_path="$unix_path" 21749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21750 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21751 new_path="$unix_path" 21752 fi 21753 21754 if test "x$path" != "x$new_path"; then 21755 BOOT_JDK="$new_path" 21756 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21757 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21758 fi 21759 21760 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21761 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21762 21763 else 21764 # We're on a posix platform. Hooray! :) 21765 path="$BOOT_JDK" 21766 has_space=`$ECHO "$path" | $GREP " "` 21767 if test "x$has_space" != x; then 21768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21769 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21770 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21771 fi 21772 21773 # Use eval to expand a potential ~ 21774 eval path="$path" 21775 if test ! -f "$path" && test ! -d "$path"; then 21776 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21777 fi 21778 21779 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21780 fi 21781 21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21783 $as_echo_n "checking for Boot JDK... " >&6; } 21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21785 $as_echo "$BOOT_JDK" >&6; } 21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21787 $as_echo_n "checking Boot JDK version... " >&6; } 21788 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21790 $as_echo "$BOOT_JDK_VERSION" >&6; } 21791 fi # end check jdk version 21792 fi # end check rt.jar 21793 fi # end check javac 21794 fi # end check java 21795 fi # end check boot jdk found 21796 fi 21797 21798 21799 # Test: Is there a JDK installed in default, well-known locations? 21800 21801 if test "x$BOOT_JDK_FOUND" = xno; then 21802 # Now execute the test 21803 21804 if test "x$OPENJDK_TARGET_OS" = xwindows; then 21805 21806 if test "x$BOOT_JDK_FOUND" = xno; then 21807 # Now execute the test 21808 21809 if test "x$ProgramW6432" != x; then 21810 VIRTUAL_DIR="$ProgramW6432/Java" 21811 21812 windows_path="$VIRTUAL_DIR" 21813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21814 unix_path=`$CYGPATH -u "$windows_path"` 21815 VIRTUAL_DIR="$unix_path" 21816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21817 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21818 VIRTUAL_DIR="$unix_path" 21819 fi 21820 21821 21822 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21823 BOOT_JDK_SUFFIX="" 21824 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21825 if test "x$ALL_JDKS_FOUND" != x; then 21826 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21827 21828 if test "x$BOOT_JDK_FOUND" = xno; then 21829 # Now execute the test 21830 21831 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21832 if test -d "$BOOT_JDK"; then 21833 BOOT_JDK_FOUND=maybe 21834 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21835 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21836 fi 21837 21838 21839 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21840 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21841 # Do we have a bin/java? 21842 if test ! -x "$BOOT_JDK/bin/java"; then 21843 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21844 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21845 BOOT_JDK_FOUND=no 21846 else 21847 # Do we have a bin/javac? 21848 if test ! -x "$BOOT_JDK/bin/javac"; then 21849 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21850 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21851 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21852 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21853 BOOT_JDK_FOUND=no 21854 else 21855 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21856 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21857 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21858 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21859 BOOT_JDK_FOUND=no 21860 else 21861 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21862 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21863 21864 # Extra M4 quote needed to protect [] in grep expression. 21865 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21866 if test "x$FOUND_CORRECT_VERSION" = x; then 21867 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21868 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21869 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21870 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21871 BOOT_JDK_FOUND=no 21872 else 21873 # We're done! :-) 21874 BOOT_JDK_FOUND=yes 21875 21876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21877 21878 # Input might be given as Windows format, start by converting to 21879 # unix format. 21880 path="$BOOT_JDK" 21881 new_path=`$CYGPATH -u "$path"` 21882 21883 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21884 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21885 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21886 # "foo.exe" is OK but "foo" is an error. 21887 # 21888 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21889 # It is also a way to make sure we got the proper file name for the real test later on. 21890 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21891 if test "x$test_shortpath" = x; then 21892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21893 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21894 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21895 fi 21896 21897 # Call helper function which possibly converts this using DOS-style short mode. 21898 # If so, the updated path is stored in $new_path. 21899 21900 input_path="$new_path" 21901 # Check if we need to convert this using DOS-style short mode. If the path 21902 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21903 # take no chances and rewrite it. 21904 # Note: m4 eats our [], so we need to use [ and ] instead. 21905 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21906 if test "x$has_forbidden_chars" != x; then 21907 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21908 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21909 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21910 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21911 # Going to short mode and back again did indeed matter. Since short mode is 21912 # case insensitive, let's make it lowercase to improve readability. 21913 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21914 # Now convert it back to Unix-stile (cygpath) 21915 input_path=`$CYGPATH -u "$shortmode_path"` 21916 new_path="$input_path" 21917 fi 21918 fi 21919 21920 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21921 if test "x$test_cygdrive_prefix" = x; then 21922 # As a simple fix, exclude /usr/bin since it's not a real path. 21923 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21924 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21925 # a path prefixed by /cygdrive for fixpath to work. 21926 new_path="$CYGWIN_ROOT_PATH$input_path" 21927 fi 21928 fi 21929 21930 21931 if test "x$path" != "x$new_path"; then 21932 BOOT_JDK="$new_path" 21933 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21934 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21935 fi 21936 21937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21938 21939 path="$BOOT_JDK" 21940 has_colon=`$ECHO $path | $GREP ^.:` 21941 new_path="$path" 21942 if test "x$has_colon" = x; then 21943 # Not in mixed or Windows style, start by that. 21944 new_path=`cmd //c echo $path` 21945 fi 21946 21947 21948 input_path="$new_path" 21949 # Check if we need to convert this using DOS-style short mode. If the path 21950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21951 # take no chances and rewrite it. 21952 # Note: m4 eats our [], so we need to use [ and ] instead. 21953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21954 if test "x$has_forbidden_chars" != x; then 21955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21956 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21957 fi 21958 21959 21960 windows_path="$new_path" 21961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21962 unix_path=`$CYGPATH -u "$windows_path"` 21963 new_path="$unix_path" 21964 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21965 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21966 new_path="$unix_path" 21967 fi 21968 21969 if test "x$path" != "x$new_path"; then 21970 BOOT_JDK="$new_path" 21971 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21972 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21973 fi 21974 21975 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21976 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21977 21978 else 21979 # We're on a posix platform. Hooray! :) 21980 path="$BOOT_JDK" 21981 has_space=`$ECHO "$path" | $GREP " "` 21982 if test "x$has_space" != x; then 21983 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21984 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21985 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21986 fi 21987 21988 # Use eval to expand a potential ~ 21989 eval path="$path" 21990 if test ! -f "$path" && test ! -d "$path"; then 21991 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21992 fi 21993 21994 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21995 fi 21996 21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21998 $as_echo_n "checking for Boot JDK... " >&6; } 21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22000 $as_echo "$BOOT_JDK" >&6; } 22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22002 $as_echo_n "checking Boot JDK version... " >&6; } 22003 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22005 $as_echo "$BOOT_JDK_VERSION" >&6; } 22006 fi # end check jdk version 22007 fi # end check rt.jar 22008 fi # end check javac 22009 fi # end check java 22010 fi # end check boot jdk found 22011 fi 22012 22013 done 22014 fi 22015 22016 fi 22017 22018 22019 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22020 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22021 # Do we have a bin/java? 22022 if test ! -x "$BOOT_JDK/bin/java"; then 22023 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22024 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22025 BOOT_JDK_FOUND=no 22026 else 22027 # Do we have a bin/javac? 22028 if test ! -x "$BOOT_JDK/bin/javac"; then 22029 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22030 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22031 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22032 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22033 BOOT_JDK_FOUND=no 22034 else 22035 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22036 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22037 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22038 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22039 BOOT_JDK_FOUND=no 22040 else 22041 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22042 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22043 22044 # Extra M4 quote needed to protect [] in grep expression. 22045 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22046 if test "x$FOUND_CORRECT_VERSION" = x; then 22047 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22048 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22049 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22050 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22051 BOOT_JDK_FOUND=no 22052 else 22053 # We're done! :-) 22054 BOOT_JDK_FOUND=yes 22055 22056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22057 22058 # Input might be given as Windows format, start by converting to 22059 # unix format. 22060 path="$BOOT_JDK" 22061 new_path=`$CYGPATH -u "$path"` 22062 22063 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22064 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22065 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22066 # "foo.exe" is OK but "foo" is an error. 22067 # 22068 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22069 # It is also a way to make sure we got the proper file name for the real test later on. 22070 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22071 if test "x$test_shortpath" = x; then 22072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22073 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22074 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22075 fi 22076 22077 # Call helper function which possibly converts this using DOS-style short mode. 22078 # If so, the updated path is stored in $new_path. 22079 22080 input_path="$new_path" 22081 # Check if we need to convert this using DOS-style short mode. If the path 22082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22083 # take no chances and rewrite it. 22084 # Note: m4 eats our [], so we need to use [ and ] instead. 22085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22086 if test "x$has_forbidden_chars" != x; then 22087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22088 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22089 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22090 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22091 # Going to short mode and back again did indeed matter. Since short mode is 22092 # case insensitive, let's make it lowercase to improve readability. 22093 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22094 # Now convert it back to Unix-stile (cygpath) 22095 input_path=`$CYGPATH -u "$shortmode_path"` 22096 new_path="$input_path" 22097 fi 22098 fi 22099 22100 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22101 if test "x$test_cygdrive_prefix" = x; then 22102 # As a simple fix, exclude /usr/bin since it's not a real path. 22103 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22104 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22105 # a path prefixed by /cygdrive for fixpath to work. 22106 new_path="$CYGWIN_ROOT_PATH$input_path" 22107 fi 22108 fi 22109 22110 22111 if test "x$path" != "x$new_path"; then 22112 BOOT_JDK="$new_path" 22113 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22114 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22115 fi 22116 22117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22118 22119 path="$BOOT_JDK" 22120 has_colon=`$ECHO $path | $GREP ^.:` 22121 new_path="$path" 22122 if test "x$has_colon" = x; then 22123 # Not in mixed or Windows style, start by that. 22124 new_path=`cmd //c echo $path` 22125 fi 22126 22127 22128 input_path="$new_path" 22129 # Check if we need to convert this using DOS-style short mode. If the path 22130 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22131 # take no chances and rewrite it. 22132 # Note: m4 eats our [], so we need to use [ and ] instead. 22133 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22134 if test "x$has_forbidden_chars" != x; then 22135 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22136 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22137 fi 22138 22139 22140 windows_path="$new_path" 22141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22142 unix_path=`$CYGPATH -u "$windows_path"` 22143 new_path="$unix_path" 22144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22146 new_path="$unix_path" 22147 fi 22148 22149 if test "x$path" != "x$new_path"; then 22150 BOOT_JDK="$new_path" 22151 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22152 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22153 fi 22154 22155 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22156 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22157 22158 else 22159 # We're on a posix platform. Hooray! :) 22160 path="$BOOT_JDK" 22161 has_space=`$ECHO "$path" | $GREP " "` 22162 if test "x$has_space" != x; then 22163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22164 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22165 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22166 fi 22167 22168 # Use eval to expand a potential ~ 22169 eval path="$path" 22170 if test ! -f "$path" && test ! -d "$path"; then 22171 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22172 fi 22173 22174 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22175 fi 22176 22177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22178 $as_echo_n "checking for Boot JDK... " >&6; } 22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22180 $as_echo "$BOOT_JDK" >&6; } 22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22182 $as_echo_n "checking Boot JDK version... " >&6; } 22183 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22185 $as_echo "$BOOT_JDK_VERSION" >&6; } 22186 fi # end check jdk version 22187 fi # end check rt.jar 22188 fi # end check javac 22189 fi # end check java 22190 fi # end check boot jdk found 22191 fi 22192 22193 22194 if test "x$BOOT_JDK_FOUND" = xno; then 22195 # Now execute the test 22196 22197 if test "x$PROGRAMW6432" != x; then 22198 VIRTUAL_DIR="$PROGRAMW6432/Java" 22199 22200 windows_path="$VIRTUAL_DIR" 22201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22202 unix_path=`$CYGPATH -u "$windows_path"` 22203 VIRTUAL_DIR="$unix_path" 22204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22205 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22206 VIRTUAL_DIR="$unix_path" 22207 fi 22208 22209 22210 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22211 BOOT_JDK_SUFFIX="" 22212 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22213 if test "x$ALL_JDKS_FOUND" != x; then 22214 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22215 22216 if test "x$BOOT_JDK_FOUND" = xno; then 22217 # Now execute the test 22218 22219 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22220 if test -d "$BOOT_JDK"; then 22221 BOOT_JDK_FOUND=maybe 22222 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22223 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22224 fi 22225 22226 22227 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22228 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22229 # Do we have a bin/java? 22230 if test ! -x "$BOOT_JDK/bin/java"; then 22231 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22232 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22233 BOOT_JDK_FOUND=no 22234 else 22235 # Do we have a bin/javac? 22236 if test ! -x "$BOOT_JDK/bin/javac"; then 22237 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22238 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22239 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22240 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22241 BOOT_JDK_FOUND=no 22242 else 22243 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22244 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22245 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22247 BOOT_JDK_FOUND=no 22248 else 22249 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22250 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22251 22252 # Extra M4 quote needed to protect [] in grep expression. 22253 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22254 if test "x$FOUND_CORRECT_VERSION" = x; then 22255 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22256 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22257 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22258 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22259 BOOT_JDK_FOUND=no 22260 else 22261 # We're done! :-) 22262 BOOT_JDK_FOUND=yes 22263 22264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22265 22266 # Input might be given as Windows format, start by converting to 22267 # unix format. 22268 path="$BOOT_JDK" 22269 new_path=`$CYGPATH -u "$path"` 22270 22271 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22272 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22273 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22274 # "foo.exe" is OK but "foo" is an error. 22275 # 22276 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22277 # It is also a way to make sure we got the proper file name for the real test later on. 22278 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22279 if test "x$test_shortpath" = x; then 22280 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22281 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22282 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22283 fi 22284 22285 # Call helper function which possibly converts this using DOS-style short mode. 22286 # If so, the updated path is stored in $new_path. 22287 22288 input_path="$new_path" 22289 # Check if we need to convert this using DOS-style short mode. If the path 22290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22291 # take no chances and rewrite it. 22292 # Note: m4 eats our [], so we need to use [ and ] instead. 22293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22294 if test "x$has_forbidden_chars" != x; then 22295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22296 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22297 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22298 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22299 # Going to short mode and back again did indeed matter. Since short mode is 22300 # case insensitive, let's make it lowercase to improve readability. 22301 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22302 # Now convert it back to Unix-stile (cygpath) 22303 input_path=`$CYGPATH -u "$shortmode_path"` 22304 new_path="$input_path" 22305 fi 22306 fi 22307 22308 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22309 if test "x$test_cygdrive_prefix" = x; then 22310 # As a simple fix, exclude /usr/bin since it's not a real path. 22311 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22312 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22313 # a path prefixed by /cygdrive for fixpath to work. 22314 new_path="$CYGWIN_ROOT_PATH$input_path" 22315 fi 22316 fi 22317 22318 22319 if test "x$path" != "x$new_path"; then 22320 BOOT_JDK="$new_path" 22321 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22322 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22323 fi 22324 22325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22326 22327 path="$BOOT_JDK" 22328 has_colon=`$ECHO $path | $GREP ^.:` 22329 new_path="$path" 22330 if test "x$has_colon" = x; then 22331 # Not in mixed or Windows style, start by that. 22332 new_path=`cmd //c echo $path` 22333 fi 22334 22335 22336 input_path="$new_path" 22337 # Check if we need to convert this using DOS-style short mode. If the path 22338 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22339 # take no chances and rewrite it. 22340 # Note: m4 eats our [], so we need to use [ and ] instead. 22341 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22342 if test "x$has_forbidden_chars" != x; then 22343 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22344 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22345 fi 22346 22347 22348 windows_path="$new_path" 22349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22350 unix_path=`$CYGPATH -u "$windows_path"` 22351 new_path="$unix_path" 22352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22353 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22354 new_path="$unix_path" 22355 fi 22356 22357 if test "x$path" != "x$new_path"; then 22358 BOOT_JDK="$new_path" 22359 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22360 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22361 fi 22362 22363 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22364 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22365 22366 else 22367 # We're on a posix platform. Hooray! :) 22368 path="$BOOT_JDK" 22369 has_space=`$ECHO "$path" | $GREP " "` 22370 if test "x$has_space" != x; then 22371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22372 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22373 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22374 fi 22375 22376 # Use eval to expand a potential ~ 22377 eval path="$path" 22378 if test ! -f "$path" && test ! -d "$path"; then 22379 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22380 fi 22381 22382 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22383 fi 22384 22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22386 $as_echo_n "checking for Boot JDK... " >&6; } 22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22388 $as_echo "$BOOT_JDK" >&6; } 22389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22390 $as_echo_n "checking Boot JDK version... " >&6; } 22391 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22393 $as_echo "$BOOT_JDK_VERSION" >&6; } 22394 fi # end check jdk version 22395 fi # end check rt.jar 22396 fi # end check javac 22397 fi # end check java 22398 fi # end check boot jdk found 22399 fi 22400 22401 done 22402 fi 22403 22404 fi 22405 22406 22407 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22408 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22409 # Do we have a bin/java? 22410 if test ! -x "$BOOT_JDK/bin/java"; then 22411 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22412 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22413 BOOT_JDK_FOUND=no 22414 else 22415 # Do we have a bin/javac? 22416 if test ! -x "$BOOT_JDK/bin/javac"; then 22417 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22418 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22419 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22420 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22421 BOOT_JDK_FOUND=no 22422 else 22423 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22424 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22425 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22426 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22427 BOOT_JDK_FOUND=no 22428 else 22429 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22430 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22431 22432 # Extra M4 quote needed to protect [] in grep expression. 22433 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22434 if test "x$FOUND_CORRECT_VERSION" = x; then 22435 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22436 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22437 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22438 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22439 BOOT_JDK_FOUND=no 22440 else 22441 # We're done! :-) 22442 BOOT_JDK_FOUND=yes 22443 22444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22445 22446 # Input might be given as Windows format, start by converting to 22447 # unix format. 22448 path="$BOOT_JDK" 22449 new_path=`$CYGPATH -u "$path"` 22450 22451 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22452 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22453 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22454 # "foo.exe" is OK but "foo" is an error. 22455 # 22456 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22457 # It is also a way to make sure we got the proper file name for the real test later on. 22458 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22459 if test "x$test_shortpath" = x; then 22460 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22461 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22462 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22463 fi 22464 22465 # Call helper function which possibly converts this using DOS-style short mode. 22466 # If so, the updated path is stored in $new_path. 22467 22468 input_path="$new_path" 22469 # Check if we need to convert this using DOS-style short mode. If the path 22470 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22471 # take no chances and rewrite it. 22472 # Note: m4 eats our [], so we need to use [ and ] instead. 22473 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22474 if test "x$has_forbidden_chars" != x; then 22475 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22476 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22477 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22478 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22479 # Going to short mode and back again did indeed matter. Since short mode is 22480 # case insensitive, let's make it lowercase to improve readability. 22481 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22482 # Now convert it back to Unix-stile (cygpath) 22483 input_path=`$CYGPATH -u "$shortmode_path"` 22484 new_path="$input_path" 22485 fi 22486 fi 22487 22488 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22489 if test "x$test_cygdrive_prefix" = x; then 22490 # As a simple fix, exclude /usr/bin since it's not a real path. 22491 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22492 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22493 # a path prefixed by /cygdrive for fixpath to work. 22494 new_path="$CYGWIN_ROOT_PATH$input_path" 22495 fi 22496 fi 22497 22498 22499 if test "x$path" != "x$new_path"; then 22500 BOOT_JDK="$new_path" 22501 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22502 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22503 fi 22504 22505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22506 22507 path="$BOOT_JDK" 22508 has_colon=`$ECHO $path | $GREP ^.:` 22509 new_path="$path" 22510 if test "x$has_colon" = x; then 22511 # Not in mixed or Windows style, start by that. 22512 new_path=`cmd //c echo $path` 22513 fi 22514 22515 22516 input_path="$new_path" 22517 # Check if we need to convert this using DOS-style short mode. If the path 22518 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22519 # take no chances and rewrite it. 22520 # Note: m4 eats our [], so we need to use [ and ] instead. 22521 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22522 if test "x$has_forbidden_chars" != x; then 22523 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22524 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22525 fi 22526 22527 22528 windows_path="$new_path" 22529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22530 unix_path=`$CYGPATH -u "$windows_path"` 22531 new_path="$unix_path" 22532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22533 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22534 new_path="$unix_path" 22535 fi 22536 22537 if test "x$path" != "x$new_path"; then 22538 BOOT_JDK="$new_path" 22539 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22540 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22541 fi 22542 22543 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22544 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22545 22546 else 22547 # We're on a posix platform. Hooray! :) 22548 path="$BOOT_JDK" 22549 has_space=`$ECHO "$path" | $GREP " "` 22550 if test "x$has_space" != x; then 22551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22552 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22553 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22554 fi 22555 22556 # Use eval to expand a potential ~ 22557 eval path="$path" 22558 if test ! -f "$path" && test ! -d "$path"; then 22559 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22560 fi 22561 22562 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22563 fi 22564 22565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22566 $as_echo_n "checking for Boot JDK... " >&6; } 22567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22568 $as_echo "$BOOT_JDK" >&6; } 22569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22570 $as_echo_n "checking Boot JDK version... " >&6; } 22571 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22573 $as_echo "$BOOT_JDK_VERSION" >&6; } 22574 fi # end check jdk version 22575 fi # end check rt.jar 22576 fi # end check javac 22577 fi # end check java 22578 fi # end check boot jdk found 22579 fi 22580 22581 22582 if test "x$BOOT_JDK_FOUND" = xno; then 22583 # Now execute the test 22584 22585 if test "x$PROGRAMFILES" != x; then 22586 VIRTUAL_DIR="$PROGRAMFILES/Java" 22587 22588 windows_path="$VIRTUAL_DIR" 22589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22590 unix_path=`$CYGPATH -u "$windows_path"` 22591 VIRTUAL_DIR="$unix_path" 22592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22594 VIRTUAL_DIR="$unix_path" 22595 fi 22596 22597 22598 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22599 BOOT_JDK_SUFFIX="" 22600 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22601 if test "x$ALL_JDKS_FOUND" != x; then 22602 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22603 22604 if test "x$BOOT_JDK_FOUND" = xno; then 22605 # Now execute the test 22606 22607 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22608 if test -d "$BOOT_JDK"; then 22609 BOOT_JDK_FOUND=maybe 22610 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22611 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22612 fi 22613 22614 22615 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22616 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22617 # Do we have a bin/java? 22618 if test ! -x "$BOOT_JDK/bin/java"; then 22619 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22620 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22621 BOOT_JDK_FOUND=no 22622 else 22623 # Do we have a bin/javac? 22624 if test ! -x "$BOOT_JDK/bin/javac"; then 22625 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22626 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22627 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22628 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22629 BOOT_JDK_FOUND=no 22630 else 22631 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22632 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22633 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22634 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22635 BOOT_JDK_FOUND=no 22636 else 22637 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22638 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22639 22640 # Extra M4 quote needed to protect [] in grep expression. 22641 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22642 if test "x$FOUND_CORRECT_VERSION" = x; then 22643 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22644 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22645 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22646 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22647 BOOT_JDK_FOUND=no 22648 else 22649 # We're done! :-) 22650 BOOT_JDK_FOUND=yes 22651 22652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22653 22654 # Input might be given as Windows format, start by converting to 22655 # unix format. 22656 path="$BOOT_JDK" 22657 new_path=`$CYGPATH -u "$path"` 22658 22659 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22660 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22661 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22662 # "foo.exe" is OK but "foo" is an error. 22663 # 22664 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22665 # It is also a way to make sure we got the proper file name for the real test later on. 22666 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22667 if test "x$test_shortpath" = x; then 22668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22669 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22670 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22671 fi 22672 22673 # Call helper function which possibly converts this using DOS-style short mode. 22674 # If so, the updated path is stored in $new_path. 22675 22676 input_path="$new_path" 22677 # Check if we need to convert this using DOS-style short mode. If the path 22678 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22679 # take no chances and rewrite it. 22680 # Note: m4 eats our [], so we need to use [ and ] instead. 22681 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22682 if test "x$has_forbidden_chars" != x; then 22683 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22684 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22685 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22686 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22687 # Going to short mode and back again did indeed matter. Since short mode is 22688 # case insensitive, let's make it lowercase to improve readability. 22689 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22690 # Now convert it back to Unix-stile (cygpath) 22691 input_path=`$CYGPATH -u "$shortmode_path"` 22692 new_path="$input_path" 22693 fi 22694 fi 22695 22696 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22697 if test "x$test_cygdrive_prefix" = x; then 22698 # As a simple fix, exclude /usr/bin since it's not a real path. 22699 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22700 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22701 # a path prefixed by /cygdrive for fixpath to work. 22702 new_path="$CYGWIN_ROOT_PATH$input_path" 22703 fi 22704 fi 22705 22706 22707 if test "x$path" != "x$new_path"; then 22708 BOOT_JDK="$new_path" 22709 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22710 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22711 fi 22712 22713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22714 22715 path="$BOOT_JDK" 22716 has_colon=`$ECHO $path | $GREP ^.:` 22717 new_path="$path" 22718 if test "x$has_colon" = x; then 22719 # Not in mixed or Windows style, start by that. 22720 new_path=`cmd //c echo $path` 22721 fi 22722 22723 22724 input_path="$new_path" 22725 # Check if we need to convert this using DOS-style short mode. If the path 22726 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22727 # take no chances and rewrite it. 22728 # Note: m4 eats our [], so we need to use [ and ] instead. 22729 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22730 if test "x$has_forbidden_chars" != x; then 22731 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22732 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22733 fi 22734 22735 22736 windows_path="$new_path" 22737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22738 unix_path=`$CYGPATH -u "$windows_path"` 22739 new_path="$unix_path" 22740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22742 new_path="$unix_path" 22743 fi 22744 22745 if test "x$path" != "x$new_path"; then 22746 BOOT_JDK="$new_path" 22747 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22748 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22749 fi 22750 22751 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22752 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22753 22754 else 22755 # We're on a posix platform. Hooray! :) 22756 path="$BOOT_JDK" 22757 has_space=`$ECHO "$path" | $GREP " "` 22758 if test "x$has_space" != x; then 22759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22760 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22761 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22762 fi 22763 22764 # Use eval to expand a potential ~ 22765 eval path="$path" 22766 if test ! -f "$path" && test ! -d "$path"; then 22767 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22768 fi 22769 22770 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22771 fi 22772 22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22774 $as_echo_n "checking for Boot JDK... " >&6; } 22775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22776 $as_echo "$BOOT_JDK" >&6; } 22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22778 $as_echo_n "checking Boot JDK version... " >&6; } 22779 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22781 $as_echo "$BOOT_JDK_VERSION" >&6; } 22782 fi # end check jdk version 22783 fi # end check rt.jar 22784 fi # end check javac 22785 fi # end check java 22786 fi # end check boot jdk found 22787 fi 22788 22789 done 22790 fi 22791 22792 fi 22793 22794 22795 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22796 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22797 # Do we have a bin/java? 22798 if test ! -x "$BOOT_JDK/bin/java"; then 22799 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22800 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22801 BOOT_JDK_FOUND=no 22802 else 22803 # Do we have a bin/javac? 22804 if test ! -x "$BOOT_JDK/bin/javac"; then 22805 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22806 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22807 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22808 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22809 BOOT_JDK_FOUND=no 22810 else 22811 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22812 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22813 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22814 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22815 BOOT_JDK_FOUND=no 22816 else 22817 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22818 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22819 22820 # Extra M4 quote needed to protect [] in grep expression. 22821 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22822 if test "x$FOUND_CORRECT_VERSION" = x; then 22823 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22824 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22825 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22826 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22827 BOOT_JDK_FOUND=no 22828 else 22829 # We're done! :-) 22830 BOOT_JDK_FOUND=yes 22831 22832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22833 22834 # Input might be given as Windows format, start by converting to 22835 # unix format. 22836 path="$BOOT_JDK" 22837 new_path=`$CYGPATH -u "$path"` 22838 22839 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22840 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22841 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22842 # "foo.exe" is OK but "foo" is an error. 22843 # 22844 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22845 # It is also a way to make sure we got the proper file name for the real test later on. 22846 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22847 if test "x$test_shortpath" = x; then 22848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22849 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22850 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22851 fi 22852 22853 # Call helper function which possibly converts this using DOS-style short mode. 22854 # If so, the updated path is stored in $new_path. 22855 22856 input_path="$new_path" 22857 # Check if we need to convert this using DOS-style short mode. If the path 22858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22859 # take no chances and rewrite it. 22860 # Note: m4 eats our [], so we need to use [ and ] instead. 22861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22862 if test "x$has_forbidden_chars" != x; then 22863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22864 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22865 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22866 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22867 # Going to short mode and back again did indeed matter. Since short mode is 22868 # case insensitive, let's make it lowercase to improve readability. 22869 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22870 # Now convert it back to Unix-stile (cygpath) 22871 input_path=`$CYGPATH -u "$shortmode_path"` 22872 new_path="$input_path" 22873 fi 22874 fi 22875 22876 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22877 if test "x$test_cygdrive_prefix" = x; then 22878 # As a simple fix, exclude /usr/bin since it's not a real path. 22879 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22880 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22881 # a path prefixed by /cygdrive for fixpath to work. 22882 new_path="$CYGWIN_ROOT_PATH$input_path" 22883 fi 22884 fi 22885 22886 22887 if test "x$path" != "x$new_path"; then 22888 BOOT_JDK="$new_path" 22889 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22890 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22891 fi 22892 22893 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22894 22895 path="$BOOT_JDK" 22896 has_colon=`$ECHO $path | $GREP ^.:` 22897 new_path="$path" 22898 if test "x$has_colon" = x; then 22899 # Not in mixed or Windows style, start by that. 22900 new_path=`cmd //c echo $path` 22901 fi 22902 22903 22904 input_path="$new_path" 22905 # Check if we need to convert this using DOS-style short mode. If the path 22906 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22907 # take no chances and rewrite it. 22908 # Note: m4 eats our [], so we need to use [ and ] instead. 22909 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22910 if test "x$has_forbidden_chars" != x; then 22911 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22912 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22913 fi 22914 22915 22916 windows_path="$new_path" 22917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22918 unix_path=`$CYGPATH -u "$windows_path"` 22919 new_path="$unix_path" 22920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22921 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22922 new_path="$unix_path" 22923 fi 22924 22925 if test "x$path" != "x$new_path"; then 22926 BOOT_JDK="$new_path" 22927 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22928 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22929 fi 22930 22931 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22932 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22933 22934 else 22935 # We're on a posix platform. Hooray! :) 22936 path="$BOOT_JDK" 22937 has_space=`$ECHO "$path" | $GREP " "` 22938 if test "x$has_space" != x; then 22939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22940 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22941 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22942 fi 22943 22944 # Use eval to expand a potential ~ 22945 eval path="$path" 22946 if test ! -f "$path" && test ! -d "$path"; then 22947 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22948 fi 22949 22950 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22951 fi 22952 22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22954 $as_echo_n "checking for Boot JDK... " >&6; } 22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22956 $as_echo "$BOOT_JDK" >&6; } 22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22958 $as_echo_n "checking Boot JDK version... " >&6; } 22959 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22961 $as_echo "$BOOT_JDK_VERSION" >&6; } 22962 fi # end check jdk version 22963 fi # end check rt.jar 22964 fi # end check javac 22965 fi # end check java 22966 fi # end check boot jdk found 22967 fi 22968 22969 22970 if test "x$BOOT_JDK_FOUND" = xno; then 22971 # Now execute the test 22972 22973 if test "x$ProgramFiles" != x; then 22974 VIRTUAL_DIR="$ProgramFiles/Java" 22975 22976 windows_path="$VIRTUAL_DIR" 22977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22978 unix_path=`$CYGPATH -u "$windows_path"` 22979 VIRTUAL_DIR="$unix_path" 22980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22982 VIRTUAL_DIR="$unix_path" 22983 fi 22984 22985 22986 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22987 BOOT_JDK_SUFFIX="" 22988 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22989 if test "x$ALL_JDKS_FOUND" != x; then 22990 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22991 22992 if test "x$BOOT_JDK_FOUND" = xno; then 22993 # Now execute the test 22994 22995 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22996 if test -d "$BOOT_JDK"; then 22997 BOOT_JDK_FOUND=maybe 22998 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22999 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23000 fi 23001 23002 23003 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23004 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23005 # Do we have a bin/java? 23006 if test ! -x "$BOOT_JDK/bin/java"; then 23007 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23009 BOOT_JDK_FOUND=no 23010 else 23011 # Do we have a bin/javac? 23012 if test ! -x "$BOOT_JDK/bin/javac"; then 23013 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23014 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23015 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23016 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23017 BOOT_JDK_FOUND=no 23018 else 23019 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23020 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23021 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23022 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23023 BOOT_JDK_FOUND=no 23024 else 23025 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23026 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23027 23028 # Extra M4 quote needed to protect [] in grep expression. 23029 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23030 if test "x$FOUND_CORRECT_VERSION" = x; then 23031 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23032 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23033 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23034 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23035 BOOT_JDK_FOUND=no 23036 else 23037 # We're done! :-) 23038 BOOT_JDK_FOUND=yes 23039 23040 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23041 23042 # Input might be given as Windows format, start by converting to 23043 # unix format. 23044 path="$BOOT_JDK" 23045 new_path=`$CYGPATH -u "$path"` 23046 23047 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23048 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23049 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23050 # "foo.exe" is OK but "foo" is an error. 23051 # 23052 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23053 # It is also a way to make sure we got the proper file name for the real test later on. 23054 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23055 if test "x$test_shortpath" = x; then 23056 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23057 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23058 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23059 fi 23060 23061 # Call helper function which possibly converts this using DOS-style short mode. 23062 # If so, the updated path is stored in $new_path. 23063 23064 input_path="$new_path" 23065 # Check if we need to convert this using DOS-style short mode. If the path 23066 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23067 # take no chances and rewrite it. 23068 # Note: m4 eats our [], so we need to use [ and ] instead. 23069 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23070 if test "x$has_forbidden_chars" != x; then 23071 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23072 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23073 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23074 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23075 # Going to short mode and back again did indeed matter. Since short mode is 23076 # case insensitive, let's make it lowercase to improve readability. 23077 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23078 # Now convert it back to Unix-stile (cygpath) 23079 input_path=`$CYGPATH -u "$shortmode_path"` 23080 new_path="$input_path" 23081 fi 23082 fi 23083 23084 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23085 if test "x$test_cygdrive_prefix" = x; then 23086 # As a simple fix, exclude /usr/bin since it's not a real path. 23087 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23088 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23089 # a path prefixed by /cygdrive for fixpath to work. 23090 new_path="$CYGWIN_ROOT_PATH$input_path" 23091 fi 23092 fi 23093 23094 23095 if test "x$path" != "x$new_path"; then 23096 BOOT_JDK="$new_path" 23097 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23098 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23099 fi 23100 23101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23102 23103 path="$BOOT_JDK" 23104 has_colon=`$ECHO $path | $GREP ^.:` 23105 new_path="$path" 23106 if test "x$has_colon" = x; then 23107 # Not in mixed or Windows style, start by that. 23108 new_path=`cmd //c echo $path` 23109 fi 23110 23111 23112 input_path="$new_path" 23113 # Check if we need to convert this using DOS-style short mode. If the path 23114 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23115 # take no chances and rewrite it. 23116 # Note: m4 eats our [], so we need to use [ and ] instead. 23117 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23118 if test "x$has_forbidden_chars" != x; then 23119 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23120 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23121 fi 23122 23123 23124 windows_path="$new_path" 23125 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23126 unix_path=`$CYGPATH -u "$windows_path"` 23127 new_path="$unix_path" 23128 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23129 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23130 new_path="$unix_path" 23131 fi 23132 23133 if test "x$path" != "x$new_path"; then 23134 BOOT_JDK="$new_path" 23135 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23136 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23137 fi 23138 23139 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23140 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23141 23142 else 23143 # We're on a posix platform. Hooray! :) 23144 path="$BOOT_JDK" 23145 has_space=`$ECHO "$path" | $GREP " "` 23146 if test "x$has_space" != x; then 23147 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23148 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23149 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23150 fi 23151 23152 # Use eval to expand a potential ~ 23153 eval path="$path" 23154 if test ! -f "$path" && test ! -d "$path"; then 23155 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23156 fi 23157 23158 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23159 fi 23160 23161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23162 $as_echo_n "checking for Boot JDK... " >&6; } 23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23164 $as_echo "$BOOT_JDK" >&6; } 23165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23166 $as_echo_n "checking Boot JDK version... " >&6; } 23167 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23169 $as_echo "$BOOT_JDK_VERSION" >&6; } 23170 fi # end check jdk version 23171 fi # end check rt.jar 23172 fi # end check javac 23173 fi # end check java 23174 fi # end check boot jdk found 23175 fi 23176 23177 done 23178 fi 23179 23180 fi 23181 23182 23183 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23184 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23185 # Do we have a bin/java? 23186 if test ! -x "$BOOT_JDK/bin/java"; then 23187 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23188 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23189 BOOT_JDK_FOUND=no 23190 else 23191 # Do we have a bin/javac? 23192 if test ! -x "$BOOT_JDK/bin/javac"; then 23193 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23194 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23195 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23196 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23197 BOOT_JDK_FOUND=no 23198 else 23199 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23200 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23201 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23202 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23203 BOOT_JDK_FOUND=no 23204 else 23205 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23206 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23207 23208 # Extra M4 quote needed to protect [] in grep expression. 23209 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23210 if test "x$FOUND_CORRECT_VERSION" = x; then 23211 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23212 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23213 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23214 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23215 BOOT_JDK_FOUND=no 23216 else 23217 # We're done! :-) 23218 BOOT_JDK_FOUND=yes 23219 23220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23221 23222 # Input might be given as Windows format, start by converting to 23223 # unix format. 23224 path="$BOOT_JDK" 23225 new_path=`$CYGPATH -u "$path"` 23226 23227 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23228 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23229 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23230 # "foo.exe" is OK but "foo" is an error. 23231 # 23232 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23233 # It is also a way to make sure we got the proper file name for the real test later on. 23234 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23235 if test "x$test_shortpath" = x; then 23236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23237 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23238 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23239 fi 23240 23241 # Call helper function which possibly converts this using DOS-style short mode. 23242 # If so, the updated path is stored in $new_path. 23243 23244 input_path="$new_path" 23245 # Check if we need to convert this using DOS-style short mode. If the path 23246 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23247 # take no chances and rewrite it. 23248 # Note: m4 eats our [], so we need to use [ and ] instead. 23249 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23250 if test "x$has_forbidden_chars" != x; then 23251 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23252 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23253 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23254 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23255 # Going to short mode and back again did indeed matter. Since short mode is 23256 # case insensitive, let's make it lowercase to improve readability. 23257 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23258 # Now convert it back to Unix-stile (cygpath) 23259 input_path=`$CYGPATH -u "$shortmode_path"` 23260 new_path="$input_path" 23261 fi 23262 fi 23263 23264 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23265 if test "x$test_cygdrive_prefix" = x; then 23266 # As a simple fix, exclude /usr/bin since it's not a real path. 23267 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23268 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23269 # a path prefixed by /cygdrive for fixpath to work. 23270 new_path="$CYGWIN_ROOT_PATH$input_path" 23271 fi 23272 fi 23273 23274 23275 if test "x$path" != "x$new_path"; then 23276 BOOT_JDK="$new_path" 23277 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23278 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23279 fi 23280 23281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23282 23283 path="$BOOT_JDK" 23284 has_colon=`$ECHO $path | $GREP ^.:` 23285 new_path="$path" 23286 if test "x$has_colon" = x; then 23287 # Not in mixed or Windows style, start by that. 23288 new_path=`cmd //c echo $path` 23289 fi 23290 23291 23292 input_path="$new_path" 23293 # Check if we need to convert this using DOS-style short mode. If the path 23294 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23295 # take no chances and rewrite it. 23296 # Note: m4 eats our [], so we need to use [ and ] instead. 23297 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23298 if test "x$has_forbidden_chars" != x; then 23299 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23300 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23301 fi 23302 23303 23304 windows_path="$new_path" 23305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23306 unix_path=`$CYGPATH -u "$windows_path"` 23307 new_path="$unix_path" 23308 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23309 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23310 new_path="$unix_path" 23311 fi 23312 23313 if test "x$path" != "x$new_path"; then 23314 BOOT_JDK="$new_path" 23315 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23316 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23317 fi 23318 23319 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23320 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23321 23322 else 23323 # We're on a posix platform. Hooray! :) 23324 path="$BOOT_JDK" 23325 has_space=`$ECHO "$path" | $GREP " "` 23326 if test "x$has_space" != x; then 23327 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23328 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23329 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23330 fi 23331 23332 # Use eval to expand a potential ~ 23333 eval path="$path" 23334 if test ! -f "$path" && test ! -d "$path"; then 23335 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23336 fi 23337 23338 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23339 fi 23340 23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23342 $as_echo_n "checking for Boot JDK... " >&6; } 23343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23344 $as_echo "$BOOT_JDK" >&6; } 23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23346 $as_echo_n "checking Boot JDK version... " >&6; } 23347 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23349 $as_echo "$BOOT_JDK_VERSION" >&6; } 23350 fi # end check jdk version 23351 fi # end check rt.jar 23352 fi # end check javac 23353 fi # end check java 23354 fi # end check boot jdk found 23355 fi 23356 23357 23358 if test "x$BOOT_JDK_FOUND" = xno; then 23359 # Now execute the test 23360 23361 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23362 BOOT_JDK_SUFFIX="" 23363 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23364 if test "x$ALL_JDKS_FOUND" != x; then 23365 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23366 23367 if test "x$BOOT_JDK_FOUND" = xno; then 23368 # Now execute the test 23369 23370 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23371 if test -d "$BOOT_JDK"; then 23372 BOOT_JDK_FOUND=maybe 23373 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23374 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23375 fi 23376 23377 23378 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23379 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23380 # Do we have a bin/java? 23381 if test ! -x "$BOOT_JDK/bin/java"; then 23382 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23383 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23384 BOOT_JDK_FOUND=no 23385 else 23386 # Do we have a bin/javac? 23387 if test ! -x "$BOOT_JDK/bin/javac"; then 23388 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23389 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23390 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23391 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23392 BOOT_JDK_FOUND=no 23393 else 23394 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23395 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23396 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23397 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23398 BOOT_JDK_FOUND=no 23399 else 23400 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23401 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23402 23403 # Extra M4 quote needed to protect [] in grep expression. 23404 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23405 if test "x$FOUND_CORRECT_VERSION" = x; then 23406 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23407 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23408 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23409 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23410 BOOT_JDK_FOUND=no 23411 else 23412 # We're done! :-) 23413 BOOT_JDK_FOUND=yes 23414 23415 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23416 23417 # Input might be given as Windows format, start by converting to 23418 # unix format. 23419 path="$BOOT_JDK" 23420 new_path=`$CYGPATH -u "$path"` 23421 23422 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23423 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23424 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23425 # "foo.exe" is OK but "foo" is an error. 23426 # 23427 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23428 # It is also a way to make sure we got the proper file name for the real test later on. 23429 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23430 if test "x$test_shortpath" = x; then 23431 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23432 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23433 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23434 fi 23435 23436 # Call helper function which possibly converts this using DOS-style short mode. 23437 # If so, the updated path is stored in $new_path. 23438 23439 input_path="$new_path" 23440 # Check if we need to convert this using DOS-style short mode. If the path 23441 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23442 # take no chances and rewrite it. 23443 # Note: m4 eats our [], so we need to use [ and ] instead. 23444 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23445 if test "x$has_forbidden_chars" != x; then 23446 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23447 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23448 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23449 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23450 # Going to short mode and back again did indeed matter. Since short mode is 23451 # case insensitive, let's make it lowercase to improve readability. 23452 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23453 # Now convert it back to Unix-stile (cygpath) 23454 input_path=`$CYGPATH -u "$shortmode_path"` 23455 new_path="$input_path" 23456 fi 23457 fi 23458 23459 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23460 if test "x$test_cygdrive_prefix" = x; then 23461 # As a simple fix, exclude /usr/bin since it's not a real path. 23462 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23463 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23464 # a path prefixed by /cygdrive for fixpath to work. 23465 new_path="$CYGWIN_ROOT_PATH$input_path" 23466 fi 23467 fi 23468 23469 23470 if test "x$path" != "x$new_path"; then 23471 BOOT_JDK="$new_path" 23472 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23473 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23474 fi 23475 23476 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23477 23478 path="$BOOT_JDK" 23479 has_colon=`$ECHO $path | $GREP ^.:` 23480 new_path="$path" 23481 if test "x$has_colon" = x; then 23482 # Not in mixed or Windows style, start by that. 23483 new_path=`cmd //c echo $path` 23484 fi 23485 23486 23487 input_path="$new_path" 23488 # Check if we need to convert this using DOS-style short mode. If the path 23489 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23490 # take no chances and rewrite it. 23491 # Note: m4 eats our [], so we need to use [ and ] instead. 23492 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23493 if test "x$has_forbidden_chars" != x; then 23494 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23495 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23496 fi 23497 23498 23499 windows_path="$new_path" 23500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23501 unix_path=`$CYGPATH -u "$windows_path"` 23502 new_path="$unix_path" 23503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23504 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23505 new_path="$unix_path" 23506 fi 23507 23508 if test "x$path" != "x$new_path"; then 23509 BOOT_JDK="$new_path" 23510 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23511 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23512 fi 23513 23514 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23515 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23516 23517 else 23518 # We're on a posix platform. Hooray! :) 23519 path="$BOOT_JDK" 23520 has_space=`$ECHO "$path" | $GREP " "` 23521 if test "x$has_space" != x; then 23522 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23523 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23524 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23525 fi 23526 23527 # Use eval to expand a potential ~ 23528 eval path="$path" 23529 if test ! -f "$path" && test ! -d "$path"; then 23530 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23531 fi 23532 23533 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23534 fi 23535 23536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23537 $as_echo_n "checking for Boot JDK... " >&6; } 23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23539 $as_echo "$BOOT_JDK" >&6; } 23540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23541 $as_echo_n "checking Boot JDK version... " >&6; } 23542 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23544 $as_echo "$BOOT_JDK_VERSION" >&6; } 23545 fi # end check jdk version 23546 fi # end check rt.jar 23547 fi # end check javac 23548 fi # end check java 23549 fi # end check boot jdk found 23550 fi 23551 23552 done 23553 fi 23554 23555 23556 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23557 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23558 # Do we have a bin/java? 23559 if test ! -x "$BOOT_JDK/bin/java"; then 23560 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23561 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23562 BOOT_JDK_FOUND=no 23563 else 23564 # Do we have a bin/javac? 23565 if test ! -x "$BOOT_JDK/bin/javac"; then 23566 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23567 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23568 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23569 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23570 BOOT_JDK_FOUND=no 23571 else 23572 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23573 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23574 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23575 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23576 BOOT_JDK_FOUND=no 23577 else 23578 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23579 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23580 23581 # Extra M4 quote needed to protect [] in grep expression. 23582 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23583 if test "x$FOUND_CORRECT_VERSION" = x; then 23584 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23585 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23586 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23587 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23588 BOOT_JDK_FOUND=no 23589 else 23590 # We're done! :-) 23591 BOOT_JDK_FOUND=yes 23592 23593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23594 23595 # Input might be given as Windows format, start by converting to 23596 # unix format. 23597 path="$BOOT_JDK" 23598 new_path=`$CYGPATH -u "$path"` 23599 23600 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23601 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23602 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23603 # "foo.exe" is OK but "foo" is an error. 23604 # 23605 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23606 # It is also a way to make sure we got the proper file name for the real test later on. 23607 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23608 if test "x$test_shortpath" = x; then 23609 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23610 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23611 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23612 fi 23613 23614 # Call helper function which possibly converts this using DOS-style short mode. 23615 # If so, the updated path is stored in $new_path. 23616 23617 input_path="$new_path" 23618 # Check if we need to convert this using DOS-style short mode. If the path 23619 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23620 # take no chances and rewrite it. 23621 # Note: m4 eats our [], so we need to use [ and ] instead. 23622 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23623 if test "x$has_forbidden_chars" != x; then 23624 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23625 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23626 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23627 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23628 # Going to short mode and back again did indeed matter. Since short mode is 23629 # case insensitive, let's make it lowercase to improve readability. 23630 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23631 # Now convert it back to Unix-stile (cygpath) 23632 input_path=`$CYGPATH -u "$shortmode_path"` 23633 new_path="$input_path" 23634 fi 23635 fi 23636 23637 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23638 if test "x$test_cygdrive_prefix" = x; then 23639 # As a simple fix, exclude /usr/bin since it's not a real path. 23640 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23641 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23642 # a path prefixed by /cygdrive for fixpath to work. 23643 new_path="$CYGWIN_ROOT_PATH$input_path" 23644 fi 23645 fi 23646 23647 23648 if test "x$path" != "x$new_path"; then 23649 BOOT_JDK="$new_path" 23650 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23651 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23652 fi 23653 23654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23655 23656 path="$BOOT_JDK" 23657 has_colon=`$ECHO $path | $GREP ^.:` 23658 new_path="$path" 23659 if test "x$has_colon" = x; then 23660 # Not in mixed or Windows style, start by that. 23661 new_path=`cmd //c echo $path` 23662 fi 23663 23664 23665 input_path="$new_path" 23666 # Check if we need to convert this using DOS-style short mode. If the path 23667 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23668 # take no chances and rewrite it. 23669 # Note: m4 eats our [], so we need to use [ and ] instead. 23670 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23671 if test "x$has_forbidden_chars" != x; then 23672 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23673 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23674 fi 23675 23676 23677 windows_path="$new_path" 23678 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23679 unix_path=`$CYGPATH -u "$windows_path"` 23680 new_path="$unix_path" 23681 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23682 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23683 new_path="$unix_path" 23684 fi 23685 23686 if test "x$path" != "x$new_path"; then 23687 BOOT_JDK="$new_path" 23688 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23689 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23690 fi 23691 23692 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23693 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23694 23695 else 23696 # We're on a posix platform. Hooray! :) 23697 path="$BOOT_JDK" 23698 has_space=`$ECHO "$path" | $GREP " "` 23699 if test "x$has_space" != x; then 23700 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23701 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23702 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23703 fi 23704 23705 # Use eval to expand a potential ~ 23706 eval path="$path" 23707 if test ! -f "$path" && test ! -d "$path"; then 23708 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23709 fi 23710 23711 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23712 fi 23713 23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23715 $as_echo_n "checking for Boot JDK... " >&6; } 23716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23717 $as_echo "$BOOT_JDK" >&6; } 23718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23719 $as_echo_n "checking Boot JDK version... " >&6; } 23720 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23722 $as_echo "$BOOT_JDK_VERSION" >&6; } 23723 fi # end check jdk version 23724 fi # end check rt.jar 23725 fi # end check javac 23726 fi # end check java 23727 fi # end check boot jdk found 23728 fi 23729 23730 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 23731 23732 if test "x$BOOT_JDK_FOUND" = xno; then 23733 # Now execute the test 23734 23735 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 23736 BOOT_JDK_SUFFIX="/Contents/Home" 23737 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23738 if test "x$ALL_JDKS_FOUND" != x; then 23739 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23740 23741 if test "x$BOOT_JDK_FOUND" = xno; then 23742 # Now execute the test 23743 23744 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23745 if test -d "$BOOT_JDK"; then 23746 BOOT_JDK_FOUND=maybe 23747 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23748 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23749 fi 23750 23751 23752 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23753 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23754 # Do we have a bin/java? 23755 if test ! -x "$BOOT_JDK/bin/java"; then 23756 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23757 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23758 BOOT_JDK_FOUND=no 23759 else 23760 # Do we have a bin/javac? 23761 if test ! -x "$BOOT_JDK/bin/javac"; then 23762 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23763 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23764 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23765 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23766 BOOT_JDK_FOUND=no 23767 else 23768 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23769 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23770 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23771 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23772 BOOT_JDK_FOUND=no 23773 else 23774 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23775 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23776 23777 # Extra M4 quote needed to protect [] in grep expression. 23778 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23779 if test "x$FOUND_CORRECT_VERSION" = x; then 23780 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23781 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23782 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23783 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23784 BOOT_JDK_FOUND=no 23785 else 23786 # We're done! :-) 23787 BOOT_JDK_FOUND=yes 23788 23789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23790 23791 # Input might be given as Windows format, start by converting to 23792 # unix format. 23793 path="$BOOT_JDK" 23794 new_path=`$CYGPATH -u "$path"` 23795 23796 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23797 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23798 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23799 # "foo.exe" is OK but "foo" is an error. 23800 # 23801 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23802 # It is also a way to make sure we got the proper file name for the real test later on. 23803 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23804 if test "x$test_shortpath" = x; then 23805 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23806 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23807 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23808 fi 23809 23810 # Call helper function which possibly converts this using DOS-style short mode. 23811 # If so, the updated path is stored in $new_path. 23812 23813 input_path="$new_path" 23814 # Check if we need to convert this using DOS-style short mode. If the path 23815 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23816 # take no chances and rewrite it. 23817 # Note: m4 eats our [], so we need to use [ and ] instead. 23818 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23819 if test "x$has_forbidden_chars" != x; then 23820 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23821 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23822 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23823 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23824 # Going to short mode and back again did indeed matter. Since short mode is 23825 # case insensitive, let's make it lowercase to improve readability. 23826 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23827 # Now convert it back to Unix-stile (cygpath) 23828 input_path=`$CYGPATH -u "$shortmode_path"` 23829 new_path="$input_path" 23830 fi 23831 fi 23832 23833 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23834 if test "x$test_cygdrive_prefix" = x; then 23835 # As a simple fix, exclude /usr/bin since it's not a real path. 23836 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23837 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23838 # a path prefixed by /cygdrive for fixpath to work. 23839 new_path="$CYGWIN_ROOT_PATH$input_path" 23840 fi 23841 fi 23842 23843 23844 if test "x$path" != "x$new_path"; then 23845 BOOT_JDK="$new_path" 23846 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23847 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23848 fi 23849 23850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23851 23852 path="$BOOT_JDK" 23853 has_colon=`$ECHO $path | $GREP ^.:` 23854 new_path="$path" 23855 if test "x$has_colon" = x; then 23856 # Not in mixed or Windows style, start by that. 23857 new_path=`cmd //c echo $path` 23858 fi 23859 23860 23861 input_path="$new_path" 23862 # Check if we need to convert this using DOS-style short mode. If the path 23863 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23864 # take no chances and rewrite it. 23865 # Note: m4 eats our [], so we need to use [ and ] instead. 23866 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23867 if test "x$has_forbidden_chars" != x; then 23868 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23869 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23870 fi 23871 23872 23873 windows_path="$new_path" 23874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23875 unix_path=`$CYGPATH -u "$windows_path"` 23876 new_path="$unix_path" 23877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23878 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23879 new_path="$unix_path" 23880 fi 23881 23882 if test "x$path" != "x$new_path"; then 23883 BOOT_JDK="$new_path" 23884 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23885 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23886 fi 23887 23888 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23889 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23890 23891 else 23892 # We're on a posix platform. Hooray! :) 23893 path="$BOOT_JDK" 23894 has_space=`$ECHO "$path" | $GREP " "` 23895 if test "x$has_space" != x; then 23896 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23897 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23898 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23899 fi 23900 23901 # Use eval to expand a potential ~ 23902 eval path="$path" 23903 if test ! -f "$path" && test ! -d "$path"; then 23904 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23905 fi 23906 23907 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23908 fi 23909 23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23911 $as_echo_n "checking for Boot JDK... " >&6; } 23912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23913 $as_echo "$BOOT_JDK" >&6; } 23914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23915 $as_echo_n "checking Boot JDK version... " >&6; } 23916 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23918 $as_echo "$BOOT_JDK_VERSION" >&6; } 23919 fi # end check jdk version 23920 fi # end check rt.jar 23921 fi # end check javac 23922 fi # end check java 23923 fi # end check boot jdk found 23924 fi 23925 23926 done 23927 fi 23928 23929 23930 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23931 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23932 # Do we have a bin/java? 23933 if test ! -x "$BOOT_JDK/bin/java"; then 23934 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23935 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23936 BOOT_JDK_FOUND=no 23937 else 23938 # Do we have a bin/javac? 23939 if test ! -x "$BOOT_JDK/bin/javac"; then 23940 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23941 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23942 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23943 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23944 BOOT_JDK_FOUND=no 23945 else 23946 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23947 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23948 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23949 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23950 BOOT_JDK_FOUND=no 23951 else 23952 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23953 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23954 23955 # Extra M4 quote needed to protect [] in grep expression. 23956 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23957 if test "x$FOUND_CORRECT_VERSION" = x; then 23958 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23959 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23960 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23961 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23962 BOOT_JDK_FOUND=no 23963 else 23964 # We're done! :-) 23965 BOOT_JDK_FOUND=yes 23966 23967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23968 23969 # Input might be given as Windows format, start by converting to 23970 # unix format. 23971 path="$BOOT_JDK" 23972 new_path=`$CYGPATH -u "$path"` 23973 23974 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23975 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23976 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23977 # "foo.exe" is OK but "foo" is an error. 23978 # 23979 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23980 # It is also a way to make sure we got the proper file name for the real test later on. 23981 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23982 if test "x$test_shortpath" = x; then 23983 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23984 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23985 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23986 fi 23987 23988 # Call helper function which possibly converts this using DOS-style short mode. 23989 # If so, the updated path is stored in $new_path. 23990 23991 input_path="$new_path" 23992 # Check if we need to convert this using DOS-style short mode. If the path 23993 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23994 # take no chances and rewrite it. 23995 # Note: m4 eats our [], so we need to use [ and ] instead. 23996 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23997 if test "x$has_forbidden_chars" != x; then 23998 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23999 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24000 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24001 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24002 # Going to short mode and back again did indeed matter. Since short mode is 24003 # case insensitive, let's make it lowercase to improve readability. 24004 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24005 # Now convert it back to Unix-stile (cygpath) 24006 input_path=`$CYGPATH -u "$shortmode_path"` 24007 new_path="$input_path" 24008 fi 24009 fi 24010 24011 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24012 if test "x$test_cygdrive_prefix" = x; then 24013 # As a simple fix, exclude /usr/bin since it's not a real path. 24014 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24015 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24016 # a path prefixed by /cygdrive for fixpath to work. 24017 new_path="$CYGWIN_ROOT_PATH$input_path" 24018 fi 24019 fi 24020 24021 24022 if test "x$path" != "x$new_path"; then 24023 BOOT_JDK="$new_path" 24024 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24025 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24026 fi 24027 24028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24029 24030 path="$BOOT_JDK" 24031 has_colon=`$ECHO $path | $GREP ^.:` 24032 new_path="$path" 24033 if test "x$has_colon" = x; then 24034 # Not in mixed or Windows style, start by that. 24035 new_path=`cmd //c echo $path` 24036 fi 24037 24038 24039 input_path="$new_path" 24040 # Check if we need to convert this using DOS-style short mode. If the path 24041 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24042 # take no chances and rewrite it. 24043 # Note: m4 eats our [], so we need to use [ and ] instead. 24044 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24045 if test "x$has_forbidden_chars" != x; then 24046 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24047 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24048 fi 24049 24050 24051 windows_path="$new_path" 24052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24053 unix_path=`$CYGPATH -u "$windows_path"` 24054 new_path="$unix_path" 24055 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24056 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24057 new_path="$unix_path" 24058 fi 24059 24060 if test "x$path" != "x$new_path"; then 24061 BOOT_JDK="$new_path" 24062 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24063 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24064 fi 24065 24066 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24067 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24068 24069 else 24070 # We're on a posix platform. Hooray! :) 24071 path="$BOOT_JDK" 24072 has_space=`$ECHO "$path" | $GREP " "` 24073 if test "x$has_space" != x; then 24074 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24075 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24076 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24077 fi 24078 24079 # Use eval to expand a potential ~ 24080 eval path="$path" 24081 if test ! -f "$path" && test ! -d "$path"; then 24082 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24083 fi 24084 24085 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24086 fi 24087 24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24089 $as_echo_n "checking for Boot JDK... " >&6; } 24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24091 $as_echo "$BOOT_JDK" >&6; } 24092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24093 $as_echo_n "checking Boot JDK version... " >&6; } 24094 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24096 $as_echo "$BOOT_JDK_VERSION" >&6; } 24097 fi # end check jdk version 24098 fi # end check rt.jar 24099 fi # end check javac 24100 fi # end check java 24101 fi # end check boot jdk found 24102 fi 24103 24104 24105 if test "x$BOOT_JDK_FOUND" = xno; then 24106 # Now execute the test 24107 24108 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24109 BOOT_JDK_SUFFIX="/Contents/Home" 24110 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24111 if test "x$ALL_JDKS_FOUND" != x; then 24112 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24113 24114 if test "x$BOOT_JDK_FOUND" = xno; then 24115 # Now execute the test 24116 24117 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24118 if test -d "$BOOT_JDK"; then 24119 BOOT_JDK_FOUND=maybe 24120 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24121 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24122 fi 24123 24124 24125 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24126 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24127 # Do we have a bin/java? 24128 if test ! -x "$BOOT_JDK/bin/java"; then 24129 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24130 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24131 BOOT_JDK_FOUND=no 24132 else 24133 # Do we have a bin/javac? 24134 if test ! -x "$BOOT_JDK/bin/javac"; then 24135 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24136 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24137 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24138 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24139 BOOT_JDK_FOUND=no 24140 else 24141 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24142 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24143 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24144 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24145 BOOT_JDK_FOUND=no 24146 else 24147 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24148 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24149 24150 # Extra M4 quote needed to protect [] in grep expression. 24151 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24152 if test "x$FOUND_CORRECT_VERSION" = x; then 24153 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24154 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24155 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24156 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24157 BOOT_JDK_FOUND=no 24158 else 24159 # We're done! :-) 24160 BOOT_JDK_FOUND=yes 24161 24162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24163 24164 # Input might be given as Windows format, start by converting to 24165 # unix format. 24166 path="$BOOT_JDK" 24167 new_path=`$CYGPATH -u "$path"` 24168 24169 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24170 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24171 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24172 # "foo.exe" is OK but "foo" is an error. 24173 # 24174 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24175 # It is also a way to make sure we got the proper file name for the real test later on. 24176 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24177 if test "x$test_shortpath" = x; then 24178 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24179 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24180 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24181 fi 24182 24183 # Call helper function which possibly converts this using DOS-style short mode. 24184 # If so, the updated path is stored in $new_path. 24185 24186 input_path="$new_path" 24187 # Check if we need to convert this using DOS-style short mode. If the path 24188 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24189 # take no chances and rewrite it. 24190 # Note: m4 eats our [], so we need to use [ and ] instead. 24191 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24192 if test "x$has_forbidden_chars" != x; then 24193 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24194 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24195 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24196 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24197 # Going to short mode and back again did indeed matter. Since short mode is 24198 # case insensitive, let's make it lowercase to improve readability. 24199 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24200 # Now convert it back to Unix-stile (cygpath) 24201 input_path=`$CYGPATH -u "$shortmode_path"` 24202 new_path="$input_path" 24203 fi 24204 fi 24205 24206 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24207 if test "x$test_cygdrive_prefix" = x; then 24208 # As a simple fix, exclude /usr/bin since it's not a real path. 24209 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24210 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24211 # a path prefixed by /cygdrive for fixpath to work. 24212 new_path="$CYGWIN_ROOT_PATH$input_path" 24213 fi 24214 fi 24215 24216 24217 if test "x$path" != "x$new_path"; then 24218 BOOT_JDK="$new_path" 24219 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24220 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24221 fi 24222 24223 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24224 24225 path="$BOOT_JDK" 24226 has_colon=`$ECHO $path | $GREP ^.:` 24227 new_path="$path" 24228 if test "x$has_colon" = x; then 24229 # Not in mixed or Windows style, start by that. 24230 new_path=`cmd //c echo $path` 24231 fi 24232 24233 24234 input_path="$new_path" 24235 # Check if we need to convert this using DOS-style short mode. If the path 24236 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24237 # take no chances and rewrite it. 24238 # Note: m4 eats our [], so we need to use [ and ] instead. 24239 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24240 if test "x$has_forbidden_chars" != x; then 24241 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24242 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24243 fi 24244 24245 24246 windows_path="$new_path" 24247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24248 unix_path=`$CYGPATH -u "$windows_path"` 24249 new_path="$unix_path" 24250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24251 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24252 new_path="$unix_path" 24253 fi 24254 24255 if test "x$path" != "x$new_path"; then 24256 BOOT_JDK="$new_path" 24257 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24258 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24259 fi 24260 24261 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24262 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24263 24264 else 24265 # We're on a posix platform. Hooray! :) 24266 path="$BOOT_JDK" 24267 has_space=`$ECHO "$path" | $GREP " "` 24268 if test "x$has_space" != x; then 24269 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24270 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24271 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24272 fi 24273 24274 # Use eval to expand a potential ~ 24275 eval path="$path" 24276 if test ! -f "$path" && test ! -d "$path"; then 24277 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24278 fi 24279 24280 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24281 fi 24282 24283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24284 $as_echo_n "checking for Boot JDK... " >&6; } 24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24286 $as_echo "$BOOT_JDK" >&6; } 24287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24288 $as_echo_n "checking Boot JDK version... " >&6; } 24289 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24291 $as_echo "$BOOT_JDK_VERSION" >&6; } 24292 fi # end check jdk version 24293 fi # end check rt.jar 24294 fi # end check javac 24295 fi # end check java 24296 fi # end check boot jdk found 24297 fi 24298 24299 done 24300 fi 24301 24302 24303 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24304 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24305 # Do we have a bin/java? 24306 if test ! -x "$BOOT_JDK/bin/java"; then 24307 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24308 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24309 BOOT_JDK_FOUND=no 24310 else 24311 # Do we have a bin/javac? 24312 if test ! -x "$BOOT_JDK/bin/javac"; then 24313 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24314 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24315 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24316 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24317 BOOT_JDK_FOUND=no 24318 else 24319 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24320 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24321 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24322 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24323 BOOT_JDK_FOUND=no 24324 else 24325 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24326 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24327 24328 # Extra M4 quote needed to protect [] in grep expression. 24329 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24330 if test "x$FOUND_CORRECT_VERSION" = x; then 24331 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24332 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24333 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24334 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24335 BOOT_JDK_FOUND=no 24336 else 24337 # We're done! :-) 24338 BOOT_JDK_FOUND=yes 24339 24340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24341 24342 # Input might be given as Windows format, start by converting to 24343 # unix format. 24344 path="$BOOT_JDK" 24345 new_path=`$CYGPATH -u "$path"` 24346 24347 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24348 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24349 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24350 # "foo.exe" is OK but "foo" is an error. 24351 # 24352 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24353 # It is also a way to make sure we got the proper file name for the real test later on. 24354 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24355 if test "x$test_shortpath" = x; then 24356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24357 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24358 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24359 fi 24360 24361 # Call helper function which possibly converts this using DOS-style short mode. 24362 # If so, the updated path is stored in $new_path. 24363 24364 input_path="$new_path" 24365 # Check if we need to convert this using DOS-style short mode. If the path 24366 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24367 # take no chances and rewrite it. 24368 # Note: m4 eats our [], so we need to use [ and ] instead. 24369 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24370 if test "x$has_forbidden_chars" != x; then 24371 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24372 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24373 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24374 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24375 # Going to short mode and back again did indeed matter. Since short mode is 24376 # case insensitive, let's make it lowercase to improve readability. 24377 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24378 # Now convert it back to Unix-stile (cygpath) 24379 input_path=`$CYGPATH -u "$shortmode_path"` 24380 new_path="$input_path" 24381 fi 24382 fi 24383 24384 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24385 if test "x$test_cygdrive_prefix" = x; then 24386 # As a simple fix, exclude /usr/bin since it's not a real path. 24387 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24388 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24389 # a path prefixed by /cygdrive for fixpath to work. 24390 new_path="$CYGWIN_ROOT_PATH$input_path" 24391 fi 24392 fi 24393 24394 24395 if test "x$path" != "x$new_path"; then 24396 BOOT_JDK="$new_path" 24397 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24398 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24399 fi 24400 24401 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24402 24403 path="$BOOT_JDK" 24404 has_colon=`$ECHO $path | $GREP ^.:` 24405 new_path="$path" 24406 if test "x$has_colon" = x; then 24407 # Not in mixed or Windows style, start by that. 24408 new_path=`cmd //c echo $path` 24409 fi 24410 24411 24412 input_path="$new_path" 24413 # Check if we need to convert this using DOS-style short mode. If the path 24414 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24415 # take no chances and rewrite it. 24416 # Note: m4 eats our [], so we need to use [ and ] instead. 24417 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24418 if test "x$has_forbidden_chars" != x; then 24419 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24420 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24421 fi 24422 24423 24424 windows_path="$new_path" 24425 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24426 unix_path=`$CYGPATH -u "$windows_path"` 24427 new_path="$unix_path" 24428 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24429 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24430 new_path="$unix_path" 24431 fi 24432 24433 if test "x$path" != "x$new_path"; then 24434 BOOT_JDK="$new_path" 24435 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24436 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24437 fi 24438 24439 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24440 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24441 24442 else 24443 # We're on a posix platform. Hooray! :) 24444 path="$BOOT_JDK" 24445 has_space=`$ECHO "$path" | $GREP " "` 24446 if test "x$has_space" != x; then 24447 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24448 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24449 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24450 fi 24451 24452 # Use eval to expand a potential ~ 24453 eval path="$path" 24454 if test ! -f "$path" && test ! -d "$path"; then 24455 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24456 fi 24457 24458 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24459 fi 24460 24461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24462 $as_echo_n "checking for Boot JDK... " >&6; } 24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24464 $as_echo "$BOOT_JDK" >&6; } 24465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24466 $as_echo_n "checking Boot JDK version... " >&6; } 24467 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24469 $as_echo "$BOOT_JDK_VERSION" >&6; } 24470 fi # end check jdk version 24471 fi # end check rt.jar 24472 fi # end check javac 24473 fi # end check java 24474 fi # end check boot jdk found 24475 fi 24476 24477 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24478 24479 if test "x$BOOT_JDK_FOUND" = xno; then 24480 # Now execute the test 24481 24482 BOOT_JDK_PREFIX="/usr/lib/jvm" 24483 BOOT_JDK_SUFFIX="" 24484 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24485 if test "x$ALL_JDKS_FOUND" != x; then 24486 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24487 24488 if test "x$BOOT_JDK_FOUND" = xno; then 24489 # Now execute the test 24490 24491 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24492 if test -d "$BOOT_JDK"; then 24493 BOOT_JDK_FOUND=maybe 24494 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24495 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24496 fi 24497 24498 24499 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24500 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24501 # Do we have a bin/java? 24502 if test ! -x "$BOOT_JDK/bin/java"; then 24503 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24504 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24505 BOOT_JDK_FOUND=no 24506 else 24507 # Do we have a bin/javac? 24508 if test ! -x "$BOOT_JDK/bin/javac"; then 24509 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24510 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24511 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24512 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24513 BOOT_JDK_FOUND=no 24514 else 24515 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24516 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24517 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24518 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24519 BOOT_JDK_FOUND=no 24520 else 24521 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24522 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24523 24524 # Extra M4 quote needed to protect [] in grep expression. 24525 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24526 if test "x$FOUND_CORRECT_VERSION" = x; then 24527 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24528 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24529 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24530 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24531 BOOT_JDK_FOUND=no 24532 else 24533 # We're done! :-) 24534 BOOT_JDK_FOUND=yes 24535 24536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24537 24538 # Input might be given as Windows format, start by converting to 24539 # unix format. 24540 path="$BOOT_JDK" 24541 new_path=`$CYGPATH -u "$path"` 24542 24543 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24544 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24545 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24546 # "foo.exe" is OK but "foo" is an error. 24547 # 24548 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24549 # It is also a way to make sure we got the proper file name for the real test later on. 24550 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24551 if test "x$test_shortpath" = x; then 24552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24553 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24554 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24555 fi 24556 24557 # Call helper function which possibly converts this using DOS-style short mode. 24558 # If so, the updated path is stored in $new_path. 24559 24560 input_path="$new_path" 24561 # Check if we need to convert this using DOS-style short mode. If the path 24562 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24563 # take no chances and rewrite it. 24564 # Note: m4 eats our [], so we need to use [ and ] instead. 24565 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24566 if test "x$has_forbidden_chars" != x; then 24567 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24568 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24569 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24570 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24571 # Going to short mode and back again did indeed matter. Since short mode is 24572 # case insensitive, let's make it lowercase to improve readability. 24573 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24574 # Now convert it back to Unix-stile (cygpath) 24575 input_path=`$CYGPATH -u "$shortmode_path"` 24576 new_path="$input_path" 24577 fi 24578 fi 24579 24580 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24581 if test "x$test_cygdrive_prefix" = x; then 24582 # As a simple fix, exclude /usr/bin since it's not a real path. 24583 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24584 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24585 # a path prefixed by /cygdrive for fixpath to work. 24586 new_path="$CYGWIN_ROOT_PATH$input_path" 24587 fi 24588 fi 24589 24590 24591 if test "x$path" != "x$new_path"; then 24592 BOOT_JDK="$new_path" 24593 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24594 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24595 fi 24596 24597 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24598 24599 path="$BOOT_JDK" 24600 has_colon=`$ECHO $path | $GREP ^.:` 24601 new_path="$path" 24602 if test "x$has_colon" = x; then 24603 # Not in mixed or Windows style, start by that. 24604 new_path=`cmd //c echo $path` 24605 fi 24606 24607 24608 input_path="$new_path" 24609 # Check if we need to convert this using DOS-style short mode. If the path 24610 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24611 # take no chances and rewrite it. 24612 # Note: m4 eats our [], so we need to use [ and ] instead. 24613 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24614 if test "x$has_forbidden_chars" != x; then 24615 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24616 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24617 fi 24618 24619 24620 windows_path="$new_path" 24621 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24622 unix_path=`$CYGPATH -u "$windows_path"` 24623 new_path="$unix_path" 24624 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24625 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24626 new_path="$unix_path" 24627 fi 24628 24629 if test "x$path" != "x$new_path"; then 24630 BOOT_JDK="$new_path" 24631 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24632 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24633 fi 24634 24635 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24636 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24637 24638 else 24639 # We're on a posix platform. Hooray! :) 24640 path="$BOOT_JDK" 24641 has_space=`$ECHO "$path" | $GREP " "` 24642 if test "x$has_space" != x; then 24643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24644 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24645 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24646 fi 24647 24648 # Use eval to expand a potential ~ 24649 eval path="$path" 24650 if test ! -f "$path" && test ! -d "$path"; then 24651 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24652 fi 24653 24654 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24655 fi 24656 24657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24658 $as_echo_n "checking for Boot JDK... " >&6; } 24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24660 $as_echo "$BOOT_JDK" >&6; } 24661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24662 $as_echo_n "checking Boot JDK version... " >&6; } 24663 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24665 $as_echo "$BOOT_JDK_VERSION" >&6; } 24666 fi # end check jdk version 24667 fi # end check rt.jar 24668 fi # end check javac 24669 fi # end check java 24670 fi # end check boot jdk found 24671 fi 24672 24673 done 24674 fi 24675 24676 24677 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24678 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24679 # Do we have a bin/java? 24680 if test ! -x "$BOOT_JDK/bin/java"; then 24681 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24682 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24683 BOOT_JDK_FOUND=no 24684 else 24685 # Do we have a bin/javac? 24686 if test ! -x "$BOOT_JDK/bin/javac"; then 24687 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24688 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24689 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24690 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24691 BOOT_JDK_FOUND=no 24692 else 24693 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24694 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24695 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24696 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24697 BOOT_JDK_FOUND=no 24698 else 24699 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24700 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24701 24702 # Extra M4 quote needed to protect [] in grep expression. 24703 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24704 if test "x$FOUND_CORRECT_VERSION" = x; then 24705 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24706 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24707 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24708 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24709 BOOT_JDK_FOUND=no 24710 else 24711 # We're done! :-) 24712 BOOT_JDK_FOUND=yes 24713 24714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24715 24716 # Input might be given as Windows format, start by converting to 24717 # unix format. 24718 path="$BOOT_JDK" 24719 new_path=`$CYGPATH -u "$path"` 24720 24721 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24722 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24723 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24724 # "foo.exe" is OK but "foo" is an error. 24725 # 24726 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24727 # It is also a way to make sure we got the proper file name for the real test later on. 24728 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24729 if test "x$test_shortpath" = x; then 24730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24731 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24732 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24733 fi 24734 24735 # Call helper function which possibly converts this using DOS-style short mode. 24736 # If so, the updated path is stored in $new_path. 24737 24738 input_path="$new_path" 24739 # Check if we need to convert this using DOS-style short mode. If the path 24740 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24741 # take no chances and rewrite it. 24742 # Note: m4 eats our [], so we need to use [ and ] instead. 24743 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24744 if test "x$has_forbidden_chars" != x; then 24745 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24746 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24747 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24748 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24749 # Going to short mode and back again did indeed matter. Since short mode is 24750 # case insensitive, let's make it lowercase to improve readability. 24751 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24752 # Now convert it back to Unix-stile (cygpath) 24753 input_path=`$CYGPATH -u "$shortmode_path"` 24754 new_path="$input_path" 24755 fi 24756 fi 24757 24758 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24759 if test "x$test_cygdrive_prefix" = x; then 24760 # As a simple fix, exclude /usr/bin since it's not a real path. 24761 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24762 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24763 # a path prefixed by /cygdrive for fixpath to work. 24764 new_path="$CYGWIN_ROOT_PATH$input_path" 24765 fi 24766 fi 24767 24768 24769 if test "x$path" != "x$new_path"; then 24770 BOOT_JDK="$new_path" 24771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24772 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24773 fi 24774 24775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24776 24777 path="$BOOT_JDK" 24778 has_colon=`$ECHO $path | $GREP ^.:` 24779 new_path="$path" 24780 if test "x$has_colon" = x; then 24781 # Not in mixed or Windows style, start by that. 24782 new_path=`cmd //c echo $path` 24783 fi 24784 24785 24786 input_path="$new_path" 24787 # Check if we need to convert this using DOS-style short mode. If the path 24788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24789 # take no chances and rewrite it. 24790 # Note: m4 eats our [], so we need to use [ and ] instead. 24791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24792 if test "x$has_forbidden_chars" != x; then 24793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24794 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24795 fi 24796 24797 24798 windows_path="$new_path" 24799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24800 unix_path=`$CYGPATH -u "$windows_path"` 24801 new_path="$unix_path" 24802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24804 new_path="$unix_path" 24805 fi 24806 24807 if test "x$path" != "x$new_path"; then 24808 BOOT_JDK="$new_path" 24809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24810 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24811 fi 24812 24813 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24814 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24815 24816 else 24817 # We're on a posix platform. Hooray! :) 24818 path="$BOOT_JDK" 24819 has_space=`$ECHO "$path" | $GREP " "` 24820 if test "x$has_space" != x; then 24821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24822 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24823 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24824 fi 24825 24826 # Use eval to expand a potential ~ 24827 eval path="$path" 24828 if test ! -f "$path" && test ! -d "$path"; then 24829 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24830 fi 24831 24832 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24833 fi 24834 24835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24836 $as_echo_n "checking for Boot JDK... " >&6; } 24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24838 $as_echo "$BOOT_JDK" >&6; } 24839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24840 $as_echo_n "checking Boot JDK version... " >&6; } 24841 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24843 $as_echo "$BOOT_JDK_VERSION" >&6; } 24844 fi # end check jdk version 24845 fi # end check rt.jar 24846 fi # end check javac 24847 fi # end check java 24848 fi # end check boot jdk found 24849 fi 24850 24851 fi 24852 24853 24854 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24855 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24856 # Do we have a bin/java? 24857 if test ! -x "$BOOT_JDK/bin/java"; then 24858 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24859 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24860 BOOT_JDK_FOUND=no 24861 else 24862 # Do we have a bin/javac? 24863 if test ! -x "$BOOT_JDK/bin/javac"; then 24864 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24865 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24866 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24867 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24868 BOOT_JDK_FOUND=no 24869 else 24870 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24871 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24872 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24873 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24874 BOOT_JDK_FOUND=no 24875 else 24876 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24877 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24878 24879 # Extra M4 quote needed to protect [] in grep expression. 24880 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24881 if test "x$FOUND_CORRECT_VERSION" = x; then 24882 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24883 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24884 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24885 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24886 BOOT_JDK_FOUND=no 24887 else 24888 # We're done! :-) 24889 BOOT_JDK_FOUND=yes 24890 24891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24892 24893 # Input might be given as Windows format, start by converting to 24894 # unix format. 24895 path="$BOOT_JDK" 24896 new_path=`$CYGPATH -u "$path"` 24897 24898 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24899 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24900 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24901 # "foo.exe" is OK but "foo" is an error. 24902 # 24903 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24904 # It is also a way to make sure we got the proper file name for the real test later on. 24905 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24906 if test "x$test_shortpath" = x; then 24907 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24908 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24909 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24910 fi 24911 24912 # Call helper function which possibly converts this using DOS-style short mode. 24913 # If so, the updated path is stored in $new_path. 24914 24915 input_path="$new_path" 24916 # Check if we need to convert this using DOS-style short mode. If the path 24917 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24918 # take no chances and rewrite it. 24919 # Note: m4 eats our [], so we need to use [ and ] instead. 24920 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24921 if test "x$has_forbidden_chars" != x; then 24922 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24923 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24924 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24925 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24926 # Going to short mode and back again did indeed matter. Since short mode is 24927 # case insensitive, let's make it lowercase to improve readability. 24928 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24929 # Now convert it back to Unix-stile (cygpath) 24930 input_path=`$CYGPATH -u "$shortmode_path"` 24931 new_path="$input_path" 24932 fi 24933 fi 24934 24935 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24936 if test "x$test_cygdrive_prefix" = x; then 24937 # As a simple fix, exclude /usr/bin since it's not a real path. 24938 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24939 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24940 # a path prefixed by /cygdrive for fixpath to work. 24941 new_path="$CYGWIN_ROOT_PATH$input_path" 24942 fi 24943 fi 24944 24945 24946 if test "x$path" != "x$new_path"; then 24947 BOOT_JDK="$new_path" 24948 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24949 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24950 fi 24951 24952 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24953 24954 path="$BOOT_JDK" 24955 has_colon=`$ECHO $path | $GREP ^.:` 24956 new_path="$path" 24957 if test "x$has_colon" = x; then 24958 # Not in mixed or Windows style, start by that. 24959 new_path=`cmd //c echo $path` 24960 fi 24961 24962 24963 input_path="$new_path" 24964 # Check if we need to convert this using DOS-style short mode. If the path 24965 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24966 # take no chances and rewrite it. 24967 # Note: m4 eats our [], so we need to use [ and ] instead. 24968 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24969 if test "x$has_forbidden_chars" != x; then 24970 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24971 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24972 fi 24973 24974 24975 windows_path="$new_path" 24976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24977 unix_path=`$CYGPATH -u "$windows_path"` 24978 new_path="$unix_path" 24979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24980 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24981 new_path="$unix_path" 24982 fi 24983 24984 if test "x$path" != "x$new_path"; then 24985 BOOT_JDK="$new_path" 24986 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24987 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24988 fi 24989 24990 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24991 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24992 24993 else 24994 # We're on a posix platform. Hooray! :) 24995 path="$BOOT_JDK" 24996 has_space=`$ECHO "$path" | $GREP " "` 24997 if test "x$has_space" != x; then 24998 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24999 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25000 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25001 fi 25002 25003 # Use eval to expand a potential ~ 25004 eval path="$path" 25005 if test ! -f "$path" && test ! -d "$path"; then 25006 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25007 fi 25008 25009 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25010 fi 25011 25012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25013 $as_echo_n "checking for Boot JDK... " >&6; } 25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25015 $as_echo "$BOOT_JDK" >&6; } 25016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25017 $as_echo_n "checking Boot JDK version... " >&6; } 25018 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25020 $as_echo "$BOOT_JDK_VERSION" >&6; } 25021 fi # end check jdk version 25022 fi # end check rt.jar 25023 fi # end check javac 25024 fi # end check java 25025 fi # end check boot jdk found 25026 fi 25027 25028 25029 # If we haven't found anything yet, we've truly lost. Give up. 25030 if test "x$BOOT_JDK_FOUND" = xno; then 25031 25032 # Print a helpful message on how to acquire the necessary build dependency. 25033 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25034 MISSING_DEPENDENCY=openjdk 25035 25036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25037 cygwin_help $MISSING_DEPENDENCY 25038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25039 msys_help $MISSING_DEPENDENCY 25040 else 25041 PKGHANDLER_COMMAND= 25042 25043 case $PKGHANDLER in 25044 apt-get) 25045 apt_help $MISSING_DEPENDENCY ;; 25046 yum) 25047 yum_help $MISSING_DEPENDENCY ;; 25048 port) 25049 port_help $MISSING_DEPENDENCY ;; 25050 pkgutil) 25051 pkgutil_help $MISSING_DEPENDENCY ;; 25052 pkgadd) 25053 pkgadd_help $MISSING_DEPENDENCY ;; 25054 esac 25055 25056 if test "x$PKGHANDLER_COMMAND" != x; then 25057 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25058 fi 25059 fi 25060 25061 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25062 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25063 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25064 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25065 as_fn_error $? "Cannot continue" "$LINENO" 5 25066 fi 25067 25068 # Setup proper paths for what we found 25069 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 25070 if test ! -f "$BOOT_RTJAR"; then 25071 # On MacOSX it is called classes.jar 25072 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 25073 if test -f "$BOOT_RTJAR"; then 25074 # Remove the .. 25075 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 25076 fi 25077 fi 25078 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 25079 BOOT_JDK="$BOOT_JDK" 25080 25081 25082 25083 25084 # Setup tools from the Boot JDK. 25085 25086 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25087 25088 # Publish this variable in the help. 25089 25090 25091 if test "x$JAVA" = x; then 25092 # The variable is not set by user, try to locate tool using the code snippet 25093 25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25095 $as_echo_n "checking for java in Boot JDK... " >&6; } 25096 JAVA=$BOOT_JDK/bin/java 25097 if test ! -x $JAVA; then 25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25099 $as_echo "not found" >&6; } 25100 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25101 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25102 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25103 fi 25104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25105 $as_echo "ok" >&6; } 25106 25107 25108 else 25109 # The variable is set, but is it from the command line or the environment? 25110 25111 # Try to remove the string !JAVA! from our list. 25112 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 25113 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25114 # If it failed, the variable was not from the command line. Ignore it, 25115 # but warn the user (except for BASH, which is always set by the calling BASH). 25116 if test "xJAVA" != xBASH; then 25117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 25118 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 25119 fi 25120 # Try to locate tool using the code snippet 25121 25122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25123 $as_echo_n "checking for java in Boot JDK... " >&6; } 25124 JAVA=$BOOT_JDK/bin/java 25125 if test ! -x $JAVA; then 25126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25127 $as_echo "not found" >&6; } 25128 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25129 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25130 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25131 fi 25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25133 $as_echo "ok" >&6; } 25134 25135 25136 else 25137 # If it succeeded, then it was overridden by the user. We will use it 25138 # for the tool. 25139 25140 # First remove it from the list of overridden variables, so we can test 25141 # for unknown variables in the end. 25142 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25143 25144 # Check if the provided tool contains a complete path. 25145 tool_specified="$JAVA" 25146 tool_basename="${tool_specified##*/}" 25147 if test "x$tool_basename" = "x$tool_specified"; then 25148 # A command without a complete path is provided, search $PATH. 25149 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 25150 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 25151 # Extract the first word of "$tool_basename", so it can be a program name with args. 25152 set dummy $tool_basename; ac_word=$2 25153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25154 $as_echo_n "checking for $ac_word... " >&6; } 25155 if ${ac_cv_path_JAVA+:} false; then : 25156 $as_echo_n "(cached) " >&6 25157 else 25158 case $JAVA in 25159 [\\/]* | ?:[\\/]*) 25160 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 25161 ;; 25162 *) 25163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25164 for as_dir in $PATH 25165 do 25166 IFS=$as_save_IFS 25167 test -z "$as_dir" && as_dir=. 25168 for ac_exec_ext in '' $ac_executable_extensions; do 25169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25170 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25172 break 2 25173 fi 25174 done 25175 done 25176 IFS=$as_save_IFS 25177 25178 ;; 25179 esac 25180 fi 25181 JAVA=$ac_cv_path_JAVA 25182 if test -n "$JAVA"; then 25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25184 $as_echo "$JAVA" >&6; } 25185 else 25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25187 $as_echo "no" >&6; } 25188 fi 25189 25190 25191 if test "x$JAVA" = x; then 25192 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25193 fi 25194 else 25195 # Otherwise we believe it is a complete path. Use it as it is. 25196 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25197 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25199 $as_echo_n "checking for JAVA... " >&6; } 25200 if test ! -x "$tool_specified"; then 25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25202 $as_echo "not found" >&6; } 25203 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25204 fi 25205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25206 $as_echo "$tool_specified" >&6; } 25207 fi 25208 fi 25209 fi 25210 25211 25212 25213 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25214 25215 # Publish this variable in the help. 25216 25217 25218 if test "x$JAVAC" = x; then 25219 # The variable is not set by user, try to locate tool using the code snippet 25220 25221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25222 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25223 JAVAC=$BOOT_JDK/bin/javac 25224 if test ! -x $JAVAC; then 25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25226 $as_echo "not found" >&6; } 25227 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25228 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25229 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25230 fi 25231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25232 $as_echo "ok" >&6; } 25233 25234 25235 else 25236 # The variable is set, but is it from the command line or the environment? 25237 25238 # Try to remove the string !JAVAC! from our list. 25239 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25240 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25241 # If it failed, the variable was not from the command line. Ignore it, 25242 # but warn the user (except for BASH, which is always set by the calling BASH). 25243 if test "xJAVAC" != xBASH; then 25244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25245 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25246 fi 25247 # Try to locate tool using the code snippet 25248 25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25250 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25251 JAVAC=$BOOT_JDK/bin/javac 25252 if test ! -x $JAVAC; then 25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25254 $as_echo "not found" >&6; } 25255 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25256 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25257 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25258 fi 25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25260 $as_echo "ok" >&6; } 25261 25262 25263 else 25264 # If it succeeded, then it was overridden by the user. We will use it 25265 # for the tool. 25266 25267 # First remove it from the list of overridden variables, so we can test 25268 # for unknown variables in the end. 25269 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25270 25271 # Check if the provided tool contains a complete path. 25272 tool_specified="$JAVAC" 25273 tool_basename="${tool_specified##*/}" 25274 if test "x$tool_basename" = "x$tool_specified"; then 25275 # A command without a complete path is provided, search $PATH. 25276 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25277 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25278 # Extract the first word of "$tool_basename", so it can be a program name with args. 25279 set dummy $tool_basename; ac_word=$2 25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25281 $as_echo_n "checking for $ac_word... " >&6; } 25282 if ${ac_cv_path_JAVAC+:} false; then : 25283 $as_echo_n "(cached) " >&6 25284 else 25285 case $JAVAC in 25286 [\\/]* | ?:[\\/]*) 25287 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25288 ;; 25289 *) 25290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25291 for as_dir in $PATH 25292 do 25293 IFS=$as_save_IFS 25294 test -z "$as_dir" && as_dir=. 25295 for ac_exec_ext in '' $ac_executable_extensions; do 25296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25297 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25299 break 2 25300 fi 25301 done 25302 done 25303 IFS=$as_save_IFS 25304 25305 ;; 25306 esac 25307 fi 25308 JAVAC=$ac_cv_path_JAVAC 25309 if test -n "$JAVAC"; then 25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25311 $as_echo "$JAVAC" >&6; } 25312 else 25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25314 $as_echo "no" >&6; } 25315 fi 25316 25317 25318 if test "x$JAVAC" = x; then 25319 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25320 fi 25321 else 25322 # Otherwise we believe it is a complete path. Use it as it is. 25323 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25324 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25326 $as_echo_n "checking for JAVAC... " >&6; } 25327 if test ! -x "$tool_specified"; then 25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25329 $as_echo "not found" >&6; } 25330 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25331 fi 25332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25333 $as_echo "$tool_specified" >&6; } 25334 fi 25335 fi 25336 fi 25337 25338 25339 25340 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25341 25342 # Publish this variable in the help. 25343 25344 25345 if test "x$JAVAH" = x; then 25346 # The variable is not set by user, try to locate tool using the code snippet 25347 25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25349 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25350 JAVAH=$BOOT_JDK/bin/javah 25351 if test ! -x $JAVAH; then 25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25353 $as_echo "not found" >&6; } 25354 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25355 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25356 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25357 fi 25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25359 $as_echo "ok" >&6; } 25360 25361 25362 else 25363 # The variable is set, but is it from the command line or the environment? 25364 25365 # Try to remove the string !JAVAH! from our list. 25366 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25367 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25368 # If it failed, the variable was not from the command line. Ignore it, 25369 # but warn the user (except for BASH, which is always set by the calling BASH). 25370 if test "xJAVAH" != xBASH; then 25371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25372 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25373 fi 25374 # Try to locate tool using the code snippet 25375 25376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25377 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25378 JAVAH=$BOOT_JDK/bin/javah 25379 if test ! -x $JAVAH; then 25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25381 $as_echo "not found" >&6; } 25382 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25383 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25384 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25385 fi 25386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25387 $as_echo "ok" >&6; } 25388 25389 25390 else 25391 # If it succeeded, then it was overridden by the user. We will use it 25392 # for the tool. 25393 25394 # First remove it from the list of overridden variables, so we can test 25395 # for unknown variables in the end. 25396 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25397 25398 # Check if the provided tool contains a complete path. 25399 tool_specified="$JAVAH" 25400 tool_basename="${tool_specified##*/}" 25401 if test "x$tool_basename" = "x$tool_specified"; then 25402 # A command without a complete path is provided, search $PATH. 25403 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25404 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25405 # Extract the first word of "$tool_basename", so it can be a program name with args. 25406 set dummy $tool_basename; ac_word=$2 25407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25408 $as_echo_n "checking for $ac_word... " >&6; } 25409 if ${ac_cv_path_JAVAH+:} false; then : 25410 $as_echo_n "(cached) " >&6 25411 else 25412 case $JAVAH in 25413 [\\/]* | ?:[\\/]*) 25414 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25415 ;; 25416 *) 25417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25418 for as_dir in $PATH 25419 do 25420 IFS=$as_save_IFS 25421 test -z "$as_dir" && as_dir=. 25422 for ac_exec_ext in '' $ac_executable_extensions; do 25423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25424 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25426 break 2 25427 fi 25428 done 25429 done 25430 IFS=$as_save_IFS 25431 25432 ;; 25433 esac 25434 fi 25435 JAVAH=$ac_cv_path_JAVAH 25436 if test -n "$JAVAH"; then 25437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25438 $as_echo "$JAVAH" >&6; } 25439 else 25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25441 $as_echo "no" >&6; } 25442 fi 25443 25444 25445 if test "x$JAVAH" = x; then 25446 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25447 fi 25448 else 25449 # Otherwise we believe it is a complete path. Use it as it is. 25450 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25451 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25453 $as_echo_n "checking for JAVAH... " >&6; } 25454 if test ! -x "$tool_specified"; then 25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25456 $as_echo "not found" >&6; } 25457 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25458 fi 25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25460 $as_echo "$tool_specified" >&6; } 25461 fi 25462 fi 25463 fi 25464 25465 25466 25467 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25468 25469 # Publish this variable in the help. 25470 25471 25472 if test "x$JAR" = x; then 25473 # The variable is not set by user, try to locate tool using the code snippet 25474 25475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25476 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25477 JAR=$BOOT_JDK/bin/jar 25478 if test ! -x $JAR; then 25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25480 $as_echo "not found" >&6; } 25481 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25482 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25483 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25484 fi 25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25486 $as_echo "ok" >&6; } 25487 25488 25489 else 25490 # The variable is set, but is it from the command line or the environment? 25491 25492 # Try to remove the string !JAR! from our list. 25493 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25494 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25495 # If it failed, the variable was not from the command line. Ignore it, 25496 # but warn the user (except for BASH, which is always set by the calling BASH). 25497 if test "xJAR" != xBASH; then 25498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25499 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25500 fi 25501 # Try to locate tool using the code snippet 25502 25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25504 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25505 JAR=$BOOT_JDK/bin/jar 25506 if test ! -x $JAR; then 25507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25508 $as_echo "not found" >&6; } 25509 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25510 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25511 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25512 fi 25513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25514 $as_echo "ok" >&6; } 25515 25516 25517 else 25518 # If it succeeded, then it was overridden by the user. We will use it 25519 # for the tool. 25520 25521 # First remove it from the list of overridden variables, so we can test 25522 # for unknown variables in the end. 25523 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25524 25525 # Check if the provided tool contains a complete path. 25526 tool_specified="$JAR" 25527 tool_basename="${tool_specified##*/}" 25528 if test "x$tool_basename" = "x$tool_specified"; then 25529 # A command without a complete path is provided, search $PATH. 25530 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 25531 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 25532 # Extract the first word of "$tool_basename", so it can be a program name with args. 25533 set dummy $tool_basename; ac_word=$2 25534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25535 $as_echo_n "checking for $ac_word... " >&6; } 25536 if ${ac_cv_path_JAR+:} false; then : 25537 $as_echo_n "(cached) " >&6 25538 else 25539 case $JAR in 25540 [\\/]* | ?:[\\/]*) 25541 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 25542 ;; 25543 *) 25544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25545 for as_dir in $PATH 25546 do 25547 IFS=$as_save_IFS 25548 test -z "$as_dir" && as_dir=. 25549 for ac_exec_ext in '' $ac_executable_extensions; do 25550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25551 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 25552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25553 break 2 25554 fi 25555 done 25556 done 25557 IFS=$as_save_IFS 25558 25559 ;; 25560 esac 25561 fi 25562 JAR=$ac_cv_path_JAR 25563 if test -n "$JAR"; then 25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 25565 $as_echo "$JAR" >&6; } 25566 else 25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25568 $as_echo "no" >&6; } 25569 fi 25570 25571 25572 if test "x$JAR" = x; then 25573 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25574 fi 25575 else 25576 # Otherwise we believe it is a complete path. Use it as it is. 25577 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 25578 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 25580 $as_echo_n "checking for JAR... " >&6; } 25581 if test ! -x "$tool_specified"; then 25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25583 $as_echo "not found" >&6; } 25584 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 25585 fi 25586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25587 $as_echo "$tool_specified" >&6; } 25588 fi 25589 fi 25590 fi 25591 25592 25593 25594 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25595 25596 # Publish this variable in the help. 25597 25598 25599 if test "x$NATIVE2ASCII" = x; then 25600 # The variable is not set by user, try to locate tool using the code snippet 25601 25602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25603 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25604 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25605 if test ! -x $NATIVE2ASCII; then 25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25607 $as_echo "not found" >&6; } 25608 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25609 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25610 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25611 fi 25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25613 $as_echo "ok" >&6; } 25614 25615 25616 else 25617 # The variable is set, but is it from the command line or the environment? 25618 25619 # Try to remove the string !NATIVE2ASCII! from our list. 25620 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 25621 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25622 # If it failed, the variable was not from the command line. Ignore it, 25623 # but warn the user (except for BASH, which is always set by the calling BASH). 25624 if test "xNATIVE2ASCII" != xBASH; then 25625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 25626 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 25627 fi 25628 # Try to locate tool using the code snippet 25629 25630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25631 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25632 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25633 if test ! -x $NATIVE2ASCII; then 25634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25635 $as_echo "not found" >&6; } 25636 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25637 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25638 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25639 fi 25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25641 $as_echo "ok" >&6; } 25642 25643 25644 else 25645 # If it succeeded, then it was overridden by the user. We will use it 25646 # for the tool. 25647 25648 # First remove it from the list of overridden variables, so we can test 25649 # for unknown variables in the end. 25650 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25651 25652 # Check if the provided tool contains a complete path. 25653 tool_specified="$NATIVE2ASCII" 25654 tool_basename="${tool_specified##*/}" 25655 if test "x$tool_basename" = "x$tool_specified"; then 25656 # A command without a complete path is provided, search $PATH. 25657 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 25658 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 25659 # Extract the first word of "$tool_basename", so it can be a program name with args. 25660 set dummy $tool_basename; ac_word=$2 25661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25662 $as_echo_n "checking for $ac_word... " >&6; } 25663 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 25664 $as_echo_n "(cached) " >&6 25665 else 25666 case $NATIVE2ASCII in 25667 [\\/]* | ?:[\\/]*) 25668 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 25669 ;; 25670 *) 25671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25672 for as_dir in $PATH 25673 do 25674 IFS=$as_save_IFS 25675 test -z "$as_dir" && as_dir=. 25676 for ac_exec_ext in '' $ac_executable_extensions; do 25677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25678 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 25679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25680 break 2 25681 fi 25682 done 25683 done 25684 IFS=$as_save_IFS 25685 25686 ;; 25687 esac 25688 fi 25689 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 25690 if test -n "$NATIVE2ASCII"; then 25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 25692 $as_echo "$NATIVE2ASCII" >&6; } 25693 else 25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25695 $as_echo "no" >&6; } 25696 fi 25697 25698 25699 if test "x$NATIVE2ASCII" = x; then 25700 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25701 fi 25702 else 25703 # Otherwise we believe it is a complete path. Use it as it is. 25704 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 25705 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 25706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 25707 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 25708 if test ! -x "$tool_specified"; then 25709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25710 $as_echo "not found" >&6; } 25711 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 25712 fi 25713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25714 $as_echo "$tool_specified" >&6; } 25715 fi 25716 fi 25717 fi 25718 25719 25720 25721 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25722 25723 # Publish this variable in the help. 25724 25725 25726 if test "x$JARSIGNER" = x; then 25727 # The variable is not set by user, try to locate tool using the code snippet 25728 25729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 25730 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 25731 JARSIGNER=$BOOT_JDK/bin/jarsigner 25732 if test ! -x $JARSIGNER; then 25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25734 $as_echo "not found" >&6; } 25735 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25736 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25737 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 25738 fi 25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25740 $as_echo "ok" >&6; } 25741 25742 25743 else 25744 # The variable is set, but is it from the command line or the environment? 25745 25746 # Try to remove the string !JARSIGNER! from our list. 25747 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 25748 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25749 # If it failed, the variable was not from the command line. Ignore it, 25750 # but warn the user (except for BASH, which is always set by the calling BASH). 25751 if test "xJARSIGNER" != xBASH; then 25752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 25753 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 25754 fi 25755 # Try to locate tool using the code snippet 25756 25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 25758 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 25759 JARSIGNER=$BOOT_JDK/bin/jarsigner 25760 if test ! -x $JARSIGNER; then 25761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25762 $as_echo "not found" >&6; } 25763 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25764 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25765 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 25766 fi 25767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25768 $as_echo "ok" >&6; } 25769 25770 25771 else 25772 # If it succeeded, then it was overridden by the user. We will use it 25773 # for the tool. 25774 25775 # First remove it from the list of overridden variables, so we can test 25776 # for unknown variables in the end. 25777 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25778 25779 # Check if the provided tool contains a complete path. 25780 tool_specified="$JARSIGNER" 25781 tool_basename="${tool_specified##*/}" 25782 if test "x$tool_basename" = "x$tool_specified"; then 25783 # A command without a complete path is provided, search $PATH. 25784 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 25785 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 25786 # Extract the first word of "$tool_basename", so it can be a program name with args. 25787 set dummy $tool_basename; ac_word=$2 25788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25789 $as_echo_n "checking for $ac_word... " >&6; } 25790 if ${ac_cv_path_JARSIGNER+:} false; then : 25791 $as_echo_n "(cached) " >&6 25792 else 25793 case $JARSIGNER in 25794 [\\/]* | ?:[\\/]*) 25795 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 25796 ;; 25797 *) 25798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25799 for as_dir in $PATH 25800 do 25801 IFS=$as_save_IFS 25802 test -z "$as_dir" && as_dir=. 25803 for ac_exec_ext in '' $ac_executable_extensions; do 25804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25805 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 25806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25807 break 2 25808 fi 25809 done 25810 done 25811 IFS=$as_save_IFS 25812 25813 ;; 25814 esac 25815 fi 25816 JARSIGNER=$ac_cv_path_JARSIGNER 25817 if test -n "$JARSIGNER"; then 25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 25819 $as_echo "$JARSIGNER" >&6; } 25820 else 25821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25822 $as_echo "no" >&6; } 25823 fi 25824 25825 25826 if test "x$JARSIGNER" = x; then 25827 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25828 fi 25829 else 25830 # Otherwise we believe it is a complete path. Use it as it is. 25831 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 25832 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 25833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 25834 $as_echo_n "checking for JARSIGNER... " >&6; } 25835 if test ! -x "$tool_specified"; then 25836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25837 $as_echo "not found" >&6; } 25838 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 25839 fi 25840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25841 $as_echo "$tool_specified" >&6; } 25842 fi 25843 fi 25844 fi 25845 25846 25847 25848 # Finally, set some other options... 25849 25850 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 25851 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 25852 25853 25854 25855 25856 ############################################################################## 25857 # 25858 # Specify jvm options for anything that is run with the Boot JDK. 25859 # Not all JVM:s accept the same arguments on the command line. 25860 # 25861 25862 # Check whether --with-boot-jdk-jvmargs was given. 25863 if test "${with_boot_jdk_jvmargs+set}" = set; then : 25864 withval=$with_boot_jdk_jvmargs; 25865 fi 25866 25867 25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 25869 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 25870 25871 # Disable special log output when a debug build is used as Boot JDK... 25872 25873 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 25874 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 25875 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 25876 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25877 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25878 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25879 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 25880 JVM_ARG_OK=true 25881 else 25882 $ECHO "Arg failed:" >&5 25883 $ECHO "$OUTPUT" >&5 25884 JVM_ARG_OK=false 25885 fi 25886 25887 25888 # Apply user provided options. 25889 25890 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 25891 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 25892 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 25893 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25894 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25895 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25896 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 25897 JVM_ARG_OK=true 25898 else 25899 $ECHO "Arg failed:" >&5 25900 $ECHO "$OUTPUT" >&5 25901 JVM_ARG_OK=false 25902 fi 25903 25904 25905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 25906 $as_echo "$boot_jdk_jvmargs" >&6; } 25907 25908 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 25909 JAVA_FLAGS=$boot_jdk_jvmargs 25910 25911 25912 25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 25914 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 25915 25916 # Starting amount of heap memory. 25917 25918 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 25919 $ECHO "Command: $JAVA -Xms64M -version" >&5 25920 OUTPUT=`$JAVA -Xms64M -version 2>&1` 25921 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25922 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25923 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25924 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 25925 JVM_ARG_OK=true 25926 else 25927 $ECHO "Arg failed:" >&5 25928 $ECHO "$OUTPUT" >&5 25929 JVM_ARG_OK=false 25930 fi 25931 25932 25933 # Maximum amount of heap memory. 25934 # Maximum stack size. 25935 if test "x$BUILD_NUM_BITS" = x32; then 25936 JVM_MAX_HEAP=1100M 25937 STACK_SIZE=768 25938 else 25939 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 25940 # pointers are used. Apparently, we need to increase the heap and stack 25941 # space for the jvm. More specifically, when running javac to build huge 25942 # jdk batch 25943 JVM_MAX_HEAP=1600M 25944 STACK_SIZE=1536 25945 fi 25946 25947 $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5 25948 $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5 25949 OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1` 25950 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25951 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25952 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25953 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP" 25954 JVM_ARG_OK=true 25955 else 25956 $ECHO "Arg failed:" >&5 25957 $ECHO "$OUTPUT" >&5 25958 JVM_ARG_OK=false 25959 fi 25960 25961 25962 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 25963 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 25964 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 25965 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25966 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25967 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25968 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 25969 JVM_ARG_OK=true 25970 else 25971 $ECHO "Arg failed:" >&5 25972 $ECHO "$OUTPUT" >&5 25973 JVM_ARG_OK=false 25974 fi 25975 25976 25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 25978 $as_echo "$boot_jdk_jvmargs_big" >&6; } 25979 25980 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 25981 25982 25983 25984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 25985 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 25986 25987 # Use serial gc for small short lived tools if possible 25988 25989 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 25990 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 25991 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 25992 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25993 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25994 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25995 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 25996 JVM_ARG_OK=true 25997 else 25998 $ECHO "Arg failed:" >&5 25999 $ECHO "$OUTPUT" >&5 26000 JVM_ARG_OK=false 26001 fi 26002 26003 26004 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 26005 $ECHO "Command: $JAVA -Xms32M -version" >&5 26006 OUTPUT=`$JAVA -Xms32M -version 2>&1` 26007 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26008 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26009 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26010 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 26011 JVM_ARG_OK=true 26012 else 26013 $ECHO "Arg failed:" >&5 26014 $ECHO "$OUTPUT" >&5 26015 JVM_ARG_OK=false 26016 fi 26017 26018 26019 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 26020 $ECHO "Command: $JAVA -Xmx512M -version" >&5 26021 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 26022 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26023 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26024 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26025 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 26026 JVM_ARG_OK=true 26027 else 26028 $ECHO "Arg failed:" >&5 26029 $ECHO "$OUTPUT" >&5 26030 JVM_ARG_OK=false 26031 fi 26032 26033 26034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 26035 $as_echo "$boot_jdk_jvmargs_small" >&6; } 26036 26037 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 26038 26039 26040 26041 ############################################################################### 26042 # 26043 # Configure the sources to use. We can add or override individual directories. 26044 # 26045 ############################################################################### 26046 26047 26048 # Where are the sources. Any of these can be overridden 26049 # using --with-override-corba and the likes. 26050 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26051 CORBA_TOPDIR="$SRC_ROOT/corba" 26052 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26053 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26054 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26055 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26056 JDK_TOPDIR="$SRC_ROOT/jdk" 26057 26058 26059 26060 26061 26062 26063 26064 26065 26066 26067 ############################################################################### 26068 # 26069 # Pickup additional source for a component from outside of the source root 26070 # or override source for a component. 26071 # 26072 26073 # Check whether --with-add-source-root was given. 26074 if test "${with_add_source_root+set}" = set; then : 26075 withval=$with_add_source_root; 26076 fi 26077 26078 26079 26080 # Check whether --with-override-source-root was given. 26081 if test "${with_override_source_root+set}" = set; then : 26082 withval=$with_override_source_root; 26083 fi 26084 26085 26086 26087 # Check whether --with-adds-and-overrides was given. 26088 if test "${with_adds_and_overrides+set}" = set; then : 26089 withval=$with_adds_and_overrides; 26090 fi 26091 26092 26093 if test "x$with_adds_and_overrides" != x; then 26094 with_add_source_root="$with_adds_and_overrides/adds" 26095 with_override_source_root="$with_adds_and_overrides/overrides" 26096 fi 26097 26098 if test "x$with_add_source_root" != x; then 26099 if ! test -d $with_add_source_root; then 26100 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26101 fi 26102 CURDIR="$PWD" 26103 cd "$with_add_source_root" 26104 ADD_SRC_ROOT="`pwd`" 26105 cd "$CURDIR" 26106 # Verify that the addon source root does not have any root makefiles. 26107 # If it does, then it is usually an error, prevent this. 26108 if test -f $with_add_source_root/langtools/make/Makefile; then 26109 as_fn_error $? "Your add source root seems to contain a full langtools repo! An add source root should only contain additional sources." "$LINENO" 5 26110 fi 26111 if test -f $with_add_source_root/corba/make/Makefile; then 26112 as_fn_error $? "Your add source root seems to contain a full corba repo! An add source root should only contain additional sources." "$LINENO" 5 26113 fi 26114 if test -f $with_add_source_root/jaxp/make/Makefile; then 26115 as_fn_error $? "Your add source root seems to contain a full jaxp repo! An add source root should only contain additional sources." "$LINENO" 5 26116 fi 26117 if test -f $with_add_source_root/jaxws/make/Makefile; then 26118 as_fn_error $? "Your add source root seems to contain a full jaxws repo! An add source root should only contain additional sources." "$LINENO" 5 26119 fi 26120 if test -f $with_add_source_root/hotspot/make/Makefile; then 26121 as_fn_error $? "Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources." "$LINENO" 5 26122 fi 26123 if test -f $with_add_source_root/nashorn/make/Makefile; then 26124 as_fn_error $? "Your add source root seems to contain a full nashorn repo! An add source root should only contain additional sources." "$LINENO" 5 26125 fi 26126 if test -f $with_add_source_root/jdk/make/Makefile; then 26127 as_fn_error $? "Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources." "$LINENO" 5 26128 fi 26129 fi 26130 26131 26132 if test "x$with_override_source_root" != x; then 26133 if ! test -d $with_override_source_root; then 26134 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26135 fi 26136 CURDIR="$PWD" 26137 cd "$with_override_source_root" 26138 OVERRIDE_SRC_ROOT="`pwd`" 26139 cd "$CURDIR" 26140 if test -f $with_override_source_root/langtools/make/Makefile; then 26141 as_fn_error $? "Your override source root seems to contain a full langtools repo! An override source root should only contain sources that override." "$LINENO" 5 26142 fi 26143 if test -f $with_override_source_root/corba/make/Makefile; then 26144 as_fn_error $? "Your override source root seems to contain a full corba repo! An override source root should only contain sources that override." "$LINENO" 5 26145 fi 26146 if test -f $with_override_source_root/jaxp/make/Makefile; then 26147 as_fn_error $? "Your override source root seems to contain a full jaxp repo! An override source root should only contain sources that override." "$LINENO" 5 26148 fi 26149 if test -f $with_override_source_root/jaxws/make/Makefile; then 26150 as_fn_error $? "Your override source root seems to contain a full jaxws repo! An override source root should only contain sources that override." "$LINENO" 5 26151 fi 26152 if test -f $with_override_source_root/hotspot/make/Makefile; then 26153 as_fn_error $? "Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override." "$LINENO" 5 26154 fi 26155 if test -f $with_override_source_root/nashorn/make/Makefile; then 26156 as_fn_error $? "Your override source root seems to contain a full nashorn repo! An override source root should only contain sources that override." "$LINENO" 5 26157 fi 26158 if test -f $with_override_source_root/jdk/make/Makefile; then 26159 as_fn_error $? "Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override." "$LINENO" 5 26160 fi 26161 fi 26162 26163 26164 ############################################################################### 26165 # 26166 # Override a repo completely, this is used for example when you have 3 small 26167 # development sandboxes of the langtools sources and want to avoid having 3 full 26168 # OpenJDK sources checked out on disk. 26169 # 26170 # Assuming that the 3 langtools sandboxes are located here: 26171 # /home/fredrik/sandbox1/langtools 26172 # /home/fredrik/sandbox2/langtools 26173 # /home/fredrik/sandbox3/langtools 26174 # 26175 # From the source root you create build subdirs manually: 26176 # mkdir -p build1 build2 build3 26177 # in each build directory run: 26178 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26179 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26180 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26181 # 26182 26183 26184 # Check whether --with-override-langtools was given. 26185 if test "${with_override_langtools+set}" = set; then : 26186 withval=$with_override_langtools; 26187 fi 26188 26189 26190 26191 # Check whether --with-override-corba was given. 26192 if test "${with_override_corba+set}" = set; then : 26193 withval=$with_override_corba; 26194 fi 26195 26196 26197 26198 # Check whether --with-override-jaxp was given. 26199 if test "${with_override_jaxp+set}" = set; then : 26200 withval=$with_override_jaxp; 26201 fi 26202 26203 26204 26205 # Check whether --with-override-jaxws was given. 26206 if test "${with_override_jaxws+set}" = set; then : 26207 withval=$with_override_jaxws; 26208 fi 26209 26210 26211 26212 # Check whether --with-override-hotspot was given. 26213 if test "${with_override_hotspot+set}" = set; then : 26214 withval=$with_override_hotspot; 26215 fi 26216 26217 26218 26219 # Check whether --with-override-nashorn was given. 26220 if test "${with_override_nashorn+set}" = set; then : 26221 withval=$with_override_nashorn; 26222 fi 26223 26224 26225 26226 # Check whether --with-override-jdk was given. 26227 if test "${with_override_jdk+set}" = set; then : 26228 withval=$with_override_jdk; 26229 fi 26230 26231 26232 if test "x$with_override_langtools" != x; then 26233 CURDIR="$PWD" 26234 cd "$with_override_langtools" 26235 LANGTOOLS_TOPDIR="`pwd`" 26236 cd "$CURDIR" 26237 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26238 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26239 fi 26240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26241 $as_echo_n "checking if langtools should be overridden... " >&6; } 26242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26243 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26244 fi 26245 if test "x$with_override_corba" != x; then 26246 CURDIR="$PWD" 26247 cd "$with_override_corba" 26248 CORBA_TOPDIR="`pwd`" 26249 cd "$CURDIR" 26250 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26251 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26252 fi 26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26254 $as_echo_n "checking if corba should be overridden... " >&6; } 26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26256 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26257 fi 26258 if test "x$with_override_jaxp" != x; then 26259 CURDIR="$PWD" 26260 cd "$with_override_jaxp" 26261 JAXP_TOPDIR="`pwd`" 26262 cd "$CURDIR" 26263 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26264 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26265 fi 26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26267 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26269 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26270 fi 26271 if test "x$with_override_jaxws" != x; then 26272 CURDIR="$PWD" 26273 cd "$with_override_jaxws" 26274 JAXWS_TOPDIR="`pwd`" 26275 cd "$CURDIR" 26276 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26277 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26278 fi 26279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26280 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26282 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26283 fi 26284 if test "x$with_override_hotspot" != x; then 26285 CURDIR="$PWD" 26286 cd "$with_override_hotspot" 26287 HOTSPOT_TOPDIR="`pwd`" 26288 cd "$CURDIR" 26289 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26290 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26291 fi 26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26293 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26295 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26296 fi 26297 if test "x$with_override_nashorn" != x; then 26298 CURDIR="$PWD" 26299 cd "$with_override_nashorn" 26300 NASHORN_TOPDIR="`pwd`" 26301 cd "$CURDIR" 26302 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26303 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26304 fi 26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26306 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26308 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26309 fi 26310 if test "x$with_override_jdk" != x; then 26311 CURDIR="$PWD" 26312 cd "$with_override_jdk" 26313 JDK_TOPDIR="`pwd`" 26314 cd "$CURDIR" 26315 if ! test -f $JDK_TOPDIR/make/Makefile; then 26316 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26317 fi 26318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26319 $as_echo_n "checking if JDK should be overridden... " >&6; } 26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26321 $as_echo "yes with $JDK_TOPDIR" >&6; } 26322 fi 26323 26324 26325 BUILD_OUTPUT="$OUTPUT_ROOT" 26326 26327 26328 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26329 BUILD_HOTSPOT=true 26330 26331 26332 26333 # Check whether --with-import-hotspot was given. 26334 if test "${with_import_hotspot+set}" = set; then : 26335 withval=$with_import_hotspot; 26336 fi 26337 26338 if test "x$with_import_hotspot" != x; then 26339 CURDIR="$PWD" 26340 cd "$with_import_hotspot" 26341 HOTSPOT_DIST="`pwd`" 26342 cd "$CURDIR" 26343 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26344 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26345 fi 26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26347 $as_echo_n "checking if hotspot should be imported... " >&6; } 26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26349 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26350 BUILD_HOTSPOT=false 26351 fi 26352 26353 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26354 26355 26356 ############################################################################### 26357 # 26358 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26359 # native code. 26360 # 26361 ############################################################################### 26362 26363 # First determine the toolchain type (compiler family) 26364 26365 26366 # Check whether --with-toolchain-type was given. 26367 if test "${with_toolchain_type+set}" = set; then : 26368 withval=$with_toolchain_type; 26369 fi 26370 26371 26372 # Use indirect variable referencing 26373 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26374 VALID_TOOLCHAINS=${!toolchain_var_name} 26375 26376 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26377 # On Mac OS X, default toolchain to clang after Xcode 5 26378 XCODE_VERSION_OUTPUT=`xcodebuild -version 2>&1 | $HEAD -n 1` 26379 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26380 if test $? -ne 0; then 26381 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26382 fi 26383 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26384 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26385 $CUT -f 1 -d .` 26386 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26387 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26388 if test $XCODE_MAJOR_VERSION -ge 5; then 26389 DEFAULT_TOOLCHAIN="clang" 26390 else 26391 DEFAULT_TOOLCHAIN="gcc" 26392 fi 26393 else 26394 # First toolchain type in the list is the default 26395 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26396 fi 26397 26398 if test "x$with_toolchain_type" = xlist; then 26399 # List all toolchains 26400 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26401 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26402 for toolchain in $VALID_TOOLCHAINS; do 26403 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 26404 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26405 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 26406 done 26407 26408 exit 0 26409 elif test "x$with_toolchain_type" != x; then 26410 # User override; check that it is valid 26411 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 26412 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 26413 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 26414 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 26415 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 26416 as_fn_error $? "Cannot continue." "$LINENO" 5 26417 fi 26418 TOOLCHAIN_TYPE=$with_toolchain_type 26419 else 26420 # No flag given, use default 26421 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 26422 fi 26423 26424 26425 TOOLCHAIN_CC_BINARY_clang="clang" 26426 TOOLCHAIN_CC_BINARY_gcc="gcc" 26427 TOOLCHAIN_CC_BINARY_microsoft="cl" 26428 TOOLCHAIN_CC_BINARY_solstudio="cc" 26429 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 26430 26431 TOOLCHAIN_CXX_BINARY_clang="clang++" 26432 TOOLCHAIN_CXX_BINARY_gcc="g++" 26433 TOOLCHAIN_CXX_BINARY_microsoft="cl" 26434 TOOLCHAIN_CXX_BINARY_solstudio="CC" 26435 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 26436 26437 # Use indirect variable referencing 26438 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 26439 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26440 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 26441 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 26442 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 26443 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 26444 26445 26446 # Define filename patterns 26447 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26448 LIBRARY_PREFIX= 26449 SHARED_LIBRARY_SUFFIX='.dll' 26450 STATIC_LIBRARY_SUFFIX='.lib' 26451 SHARED_LIBRARY='$1.dll' 26452 STATIC_LIBRARY='$1.lib' 26453 OBJ_SUFFIX='.obj' 26454 EXE_SUFFIX='.exe' 26455 else 26456 LIBRARY_PREFIX=lib 26457 SHARED_LIBRARY_SUFFIX='.so' 26458 STATIC_LIBRARY_SUFFIX='.a' 26459 SHARED_LIBRARY='lib$1.so' 26460 STATIC_LIBRARY='lib$1.a' 26461 OBJ_SUFFIX='.o' 26462 EXE_SUFFIX='' 26463 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26464 SHARED_LIBRARY='lib$1.dylib' 26465 SHARED_LIBRARY_SUFFIX='.dylib' 26466 fi 26467 fi 26468 26469 26470 26471 26472 26473 26474 26475 26476 26477 26478 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 26479 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 26480 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 26481 else 26482 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 26483 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 26484 fi 26485 26486 26487 # Then detect the actual binaries needed 26488 26489 # FIXME: Is this needed? 26490 ac_ext=cpp 26491 ac_cpp='$CXXCPP $CPPFLAGS' 26492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26495 26496 26497 # Store the CFLAGS etc passed to the configure script. 26498 ORG_CFLAGS="$CFLAGS" 26499 ORG_CXXFLAGS="$CXXFLAGS" 26500 ORG_OBJCFLAGS="$OBJCFLAGS" 26501 26502 # On Windows, we need to detect the visual studio installation first. 26503 # This will change the PATH, but we need to keep that new PATH even 26504 # after toolchain detection is done, since the compiler (on x86) uses 26505 # it for DLL resolution in runtime. 26506 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 26507 26508 # Store path to cygwin link.exe to help excluding it when searching for 26509 # VS linker. This must be done before changing the PATH when looking for VS. 26510 # Extract the first word of "link", so it can be a program name with args. 26511 set dummy link; ac_word=$2 26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26513 $as_echo_n "checking for $ac_word... " >&6; } 26514 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26515 $as_echo_n "(cached) " >&6 26516 else 26517 case $CYGWIN_LINK in 26518 [\\/]* | ?:[\\/]*) 26519 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26520 ;; 26521 *) 26522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26523 for as_dir in $PATH 26524 do 26525 IFS=$as_save_IFS 26526 test -z "$as_dir" && as_dir=. 26527 for ac_exec_ext in '' $ac_executable_extensions; do 26528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26529 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26531 break 2 26532 fi 26533 done 26534 done 26535 IFS=$as_save_IFS 26536 26537 ;; 26538 esac 26539 fi 26540 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26541 if test -n "$CYGWIN_LINK"; then 26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26543 $as_echo "$CYGWIN_LINK" >&6; } 26544 else 26545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26546 $as_echo "no" >&6; } 26547 fi 26548 26549 26550 if test "x$CYGWIN_LINK" != x; then 26551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26552 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26553 "$CYGWIN_LINK" --version > /dev/null 26554 if test $? -eq 0 ; then 26555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26556 $as_echo "yes" >&6; } 26557 else 26558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26559 $as_echo "no" >&6; } 26560 # This might be the VS linker. Don't exclude it later on. 26561 CYGWIN_LINK="" 26562 fi 26563 fi 26564 26565 # First-hand choice is to locate and run the vsvars bat file. 26566 26567 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26568 VCVARSFILE="vc/bin/vcvars32.bat" 26569 else 26570 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26571 fi 26572 26573 VS_ENV_CMD="" 26574 VS_ENV_ARGS="" 26575 if test "x$with_toolsdir" != x; then 26576 26577 if test "x$VS_ENV_CMD" = x; then 26578 VS100BASE="$with_toolsdir/../.." 26579 METHOD="--with-tools-dir" 26580 26581 windows_path="$VS100BASE" 26582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26583 unix_path=`$CYGPATH -u "$windows_path"` 26584 VS100BASE="$unix_path" 26585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26586 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26587 VS100BASE="$unix_path" 26588 fi 26589 26590 if test -d "$VS100BASE"; then 26591 if test -f "$VS100BASE/$VCVARSFILE"; then 26592 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26593 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26594 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26595 else 26596 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26597 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26598 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26599 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26600 fi 26601 fi 26602 fi 26603 26604 fi 26605 26606 if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 26607 # Having specified an argument which is incorrect will produce an instant failure; 26608 # we should not go on looking 26609 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 26610 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 26611 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 26612 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 26613 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 26614 fi 26615 26616 if test "x$VS100COMNTOOLS" != x; then 26617 26618 if test "x$VS_ENV_CMD" = x; then 26619 VS100BASE="$VS100COMNTOOLS/../.." 26620 METHOD="VS100COMNTOOLS variable" 26621 26622 windows_path="$VS100BASE" 26623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26624 unix_path=`$CYGPATH -u "$windows_path"` 26625 VS100BASE="$unix_path" 26626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26627 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26628 VS100BASE="$unix_path" 26629 fi 26630 26631 if test -d "$VS100BASE"; then 26632 if test -f "$VS100BASE/$VCVARSFILE"; then 26633 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26634 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26635 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26636 else 26637 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26638 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26639 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26640 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26641 fi 26642 fi 26643 fi 26644 26645 fi 26646 if test "x$PROGRAMFILES" != x; then 26647 26648 if test "x$VS_ENV_CMD" = x; then 26649 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 26650 METHOD="well-known name" 26651 26652 windows_path="$VS100BASE" 26653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26654 unix_path=`$CYGPATH -u "$windows_path"` 26655 VS100BASE="$unix_path" 26656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26658 VS100BASE="$unix_path" 26659 fi 26660 26661 if test -d "$VS100BASE"; then 26662 if test -f "$VS100BASE/$VCVARSFILE"; then 26663 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26664 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26665 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26666 else 26667 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26668 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26669 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26670 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26671 fi 26672 fi 26673 fi 26674 26675 fi 26676 26677 if test "x$VS_ENV_CMD" = x; then 26678 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 26679 METHOD="well-known name" 26680 26681 windows_path="$VS100BASE" 26682 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26683 unix_path=`$CYGPATH -u "$windows_path"` 26684 VS100BASE="$unix_path" 26685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26686 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26687 VS100BASE="$unix_path" 26688 fi 26689 26690 if test -d "$VS100BASE"; then 26691 if test -f "$VS100BASE/$VCVARSFILE"; then 26692 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26693 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26694 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26695 else 26696 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26697 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26698 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26699 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26700 fi 26701 fi 26702 fi 26703 26704 26705 if test "x$VS_ENV_CMD" = x; then 26706 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 26707 METHOD="well-known name" 26708 26709 windows_path="$VS100BASE" 26710 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26711 unix_path=`$CYGPATH -u "$windows_path"` 26712 VS100BASE="$unix_path" 26713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26714 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26715 VS100BASE="$unix_path" 26716 fi 26717 26718 if test -d "$VS100BASE"; then 26719 if test -f "$VS100BASE/$VCVARSFILE"; then 26720 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26721 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26722 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26723 else 26724 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26725 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26726 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26727 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26728 fi 26729 fi 26730 fi 26731 26732 26733 if test "x$ProgramW6432" != x; then 26734 26735 if test "x$VS_ENV_CMD" = x; then 26736 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 26737 METHOD="well-known name" 26738 26739 windows_path="$WIN_SDK_BASE" 26740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26741 unix_path=`$CYGPATH -u "$windows_path"` 26742 WIN_SDK_BASE="$unix_path" 26743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26745 WIN_SDK_BASE="$unix_path" 26746 fi 26747 26748 if test -d "$WIN_SDK_BASE"; then 26749 # There have been cases of partial or broken SDK installations. A missing 26750 # lib dir is not going to work. 26751 if test ! -d "$WIN_SDK_BASE/../lib"; then 26752 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26753 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26754 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26755 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26756 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26757 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26758 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26759 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26760 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26761 VS_ENV_ARGS="/x86" 26762 else 26763 VS_ENV_ARGS="/x64" 26764 fi 26765 else 26766 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26767 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26768 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26769 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26770 fi 26771 fi 26772 fi 26773 26774 fi 26775 if test "x$PROGRAMW6432" != x; then 26776 26777 if test "x$VS_ENV_CMD" = x; then 26778 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 26779 METHOD="well-known name" 26780 26781 windows_path="$WIN_SDK_BASE" 26782 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26783 unix_path=`$CYGPATH -u "$windows_path"` 26784 WIN_SDK_BASE="$unix_path" 26785 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26786 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26787 WIN_SDK_BASE="$unix_path" 26788 fi 26789 26790 if test -d "$WIN_SDK_BASE"; then 26791 # There have been cases of partial or broken SDK installations. A missing 26792 # lib dir is not going to work. 26793 if test ! -d "$WIN_SDK_BASE/../lib"; then 26794 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26795 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26796 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26797 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26798 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26799 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26800 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26801 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26802 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26803 VS_ENV_ARGS="/x86" 26804 else 26805 VS_ENV_ARGS="/x64" 26806 fi 26807 else 26808 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26809 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26810 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26811 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26812 fi 26813 fi 26814 fi 26815 26816 fi 26817 if test "x$PROGRAMFILES" != x; then 26818 26819 if test "x$VS_ENV_CMD" = x; then 26820 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 26821 METHOD="well-known name" 26822 26823 windows_path="$WIN_SDK_BASE" 26824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26825 unix_path=`$CYGPATH -u "$windows_path"` 26826 WIN_SDK_BASE="$unix_path" 26827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26828 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26829 WIN_SDK_BASE="$unix_path" 26830 fi 26831 26832 if test -d "$WIN_SDK_BASE"; then 26833 # There have been cases of partial or broken SDK installations. A missing 26834 # lib dir is not going to work. 26835 if test ! -d "$WIN_SDK_BASE/../lib"; then 26836 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26837 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26838 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26839 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26840 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26841 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26842 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26843 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26844 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26845 VS_ENV_ARGS="/x86" 26846 else 26847 VS_ENV_ARGS="/x64" 26848 fi 26849 else 26850 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26851 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26852 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26853 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26854 fi 26855 fi 26856 fi 26857 26858 fi 26859 26860 if test "x$VS_ENV_CMD" = x; then 26861 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 26862 METHOD="well-known name" 26863 26864 windows_path="$WIN_SDK_BASE" 26865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26866 unix_path=`$CYGPATH -u "$windows_path"` 26867 WIN_SDK_BASE="$unix_path" 26868 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26869 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26870 WIN_SDK_BASE="$unix_path" 26871 fi 26872 26873 if test -d "$WIN_SDK_BASE"; then 26874 # There have been cases of partial or broken SDK installations. A missing 26875 # lib dir is not going to work. 26876 if test ! -d "$WIN_SDK_BASE/../lib"; then 26877 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26878 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26879 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26880 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26881 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26882 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26883 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26884 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26885 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26886 VS_ENV_ARGS="/x86" 26887 else 26888 VS_ENV_ARGS="/x64" 26889 fi 26890 else 26891 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26892 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26893 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26894 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26895 fi 26896 fi 26897 fi 26898 26899 26900 if test "x$VS_ENV_CMD" = x; then 26901 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 26902 METHOD="well-known name" 26903 26904 windows_path="$WIN_SDK_BASE" 26905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26906 unix_path=`$CYGPATH -u "$windows_path"` 26907 WIN_SDK_BASE="$unix_path" 26908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26910 WIN_SDK_BASE="$unix_path" 26911 fi 26912 26913 if test -d "$WIN_SDK_BASE"; then 26914 # There have been cases of partial or broken SDK installations. A missing 26915 # lib dir is not going to work. 26916 if test ! -d "$WIN_SDK_BASE/../lib"; then 26917 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26918 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26919 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26920 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26921 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26922 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26923 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26924 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26925 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26926 VS_ENV_ARGS="/x86" 26927 else 26928 VS_ENV_ARGS="/x64" 26929 fi 26930 else 26931 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26932 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26933 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26934 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26935 fi 26936 fi 26937 fi 26938 26939 26940 if test "x$VS_ENV_CMD" != x; then 26941 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 26942 26943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26944 26945 # First separate the path from the arguments. This will split at the first 26946 # space. 26947 complete="$VS_ENV_CMD" 26948 path="${complete%% *}" 26949 tmp="$complete EOL" 26950 arguments="${tmp#* }" 26951 26952 # Input might be given as Windows format, start by converting to 26953 # unix format. 26954 new_path=`$CYGPATH -u "$path"` 26955 26956 # Now try to locate executable using which 26957 new_path=`$WHICH "$new_path" 2> /dev/null` 26958 # bat and cmd files are not always considered executable in cygwin causing which 26959 # to not find them 26960 if test "x$new_path" = x \ 26961 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26962 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26963 new_path=`$CYGPATH -u "$path"` 26964 fi 26965 if test "x$new_path" = x; then 26966 # Oops. Which didn't find the executable. 26967 # The splitting of arguments from the executable at a space might have been incorrect, 26968 # since paths with space are more likely in Windows. Give it another try with the whole 26969 # argument. 26970 path="$complete" 26971 arguments="EOL" 26972 new_path=`$CYGPATH -u "$path"` 26973 new_path=`$WHICH "$new_path" 2> /dev/null` 26974 # bat and cmd files are not always considered executable in cygwin causing which 26975 # to not find them 26976 if test "x$new_path" = x \ 26977 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26978 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26979 new_path=`$CYGPATH -u "$path"` 26980 fi 26981 if test "x$new_path" = x; then 26982 # It's still not found. Now this is an unrecoverable error. 26983 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26984 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26985 has_space=`$ECHO "$complete" | $GREP " "` 26986 if test "x$has_space" != x; then 26987 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26988 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26989 fi 26990 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26991 fi 26992 fi 26993 26994 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26995 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26996 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26997 # "foo.exe" is OK but "foo" is an error. 26998 # 26999 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27000 # It is also a way to make sure we got the proper file name for the real test later on. 27001 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27002 if test "x$test_shortpath" = x; then 27003 # Short path failed, file does not exist as specified. 27004 # Try adding .exe or .cmd 27005 if test -f "${new_path}.exe"; then 27006 input_to_shortpath="${new_path}.exe" 27007 elif test -f "${new_path}.cmd"; then 27008 input_to_shortpath="${new_path}.cmd" 27009 else 27010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27011 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27012 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27013 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27014 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27015 fi 27016 else 27017 input_to_shortpath="$new_path" 27018 fi 27019 27020 # Call helper function which possibly converts this using DOS-style short mode. 27021 # If so, the updated path is stored in $new_path. 27022 new_path="$input_to_shortpath" 27023 27024 input_path="$input_to_shortpath" 27025 # Check if we need to convert this using DOS-style short mode. If the path 27026 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27027 # take no chances and rewrite it. 27028 # Note: m4 eats our [], so we need to use [ and ] instead. 27029 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27030 if test "x$has_forbidden_chars" != x; then 27031 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27032 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27033 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27034 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27035 # Going to short mode and back again did indeed matter. Since short mode is 27036 # case insensitive, let's make it lowercase to improve readability. 27037 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27038 # Now convert it back to Unix-stile (cygpath) 27039 input_path=`$CYGPATH -u "$shortmode_path"` 27040 new_path="$input_path" 27041 fi 27042 fi 27043 27044 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27045 if test "x$test_cygdrive_prefix" = x; then 27046 # As a simple fix, exclude /usr/bin since it's not a real path. 27047 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27048 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27049 # a path prefixed by /cygdrive for fixpath to work. 27050 new_path="$CYGWIN_ROOT_PATH$input_path" 27051 fi 27052 fi 27053 27054 # remove trailing .exe if any 27055 new_path="${new_path/%.exe/}" 27056 27057 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27058 27059 # First separate the path from the arguments. This will split at the first 27060 # space. 27061 complete="$VS_ENV_CMD" 27062 path="${complete%% *}" 27063 tmp="$complete EOL" 27064 arguments="${tmp#* }" 27065 27066 # Input might be given as Windows format, start by converting to 27067 # unix format. 27068 new_path="$path" 27069 27070 windows_path="$new_path" 27071 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27072 unix_path=`$CYGPATH -u "$windows_path"` 27073 new_path="$unix_path" 27074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27075 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27076 new_path="$unix_path" 27077 fi 27078 27079 27080 # Now try to locate executable using which 27081 new_path=`$WHICH "$new_path" 2> /dev/null` 27082 27083 if test "x$new_path" = x; then 27084 # Oops. Which didn't find the executable. 27085 # The splitting of arguments from the executable at a space might have been incorrect, 27086 # since paths with space are more likely in Windows. Give it another try with the whole 27087 # argument. 27088 path="$complete" 27089 arguments="EOL" 27090 new_path="$path" 27091 27092 windows_path="$new_path" 27093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27094 unix_path=`$CYGPATH -u "$windows_path"` 27095 new_path="$unix_path" 27096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27097 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27098 new_path="$unix_path" 27099 fi 27100 27101 27102 new_path=`$WHICH "$new_path" 2> /dev/null` 27103 27104 if test "x$new_path" = x; then 27105 # It's still not found. Now this is an unrecoverable error. 27106 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27107 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27108 has_space=`$ECHO "$complete" | $GREP " "` 27109 if test "x$has_space" != x; then 27110 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27111 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27112 fi 27113 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27114 fi 27115 fi 27116 27117 # Now new_path has a complete unix path to the binary 27118 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27119 # Keep paths in /bin as-is, but remove trailing .exe if any 27120 new_path="${new_path/%.exe/}" 27121 # Do not save /bin paths to all_fixpath_prefixes! 27122 else 27123 # Not in mixed or Windows style, start by that. 27124 new_path=`cmd //c echo $new_path` 27125 27126 input_path="$new_path" 27127 # Check if we need to convert this using DOS-style short mode. If the path 27128 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27129 # take no chances and rewrite it. 27130 # Note: m4 eats our [], so we need to use [ and ] instead. 27131 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27132 if test "x$has_forbidden_chars" != x; then 27133 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27134 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27135 fi 27136 27137 # Output is in $new_path 27138 27139 windows_path="$new_path" 27140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27141 unix_path=`$CYGPATH -u "$windows_path"` 27142 new_path="$unix_path" 27143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27144 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27145 new_path="$unix_path" 27146 fi 27147 27148 # remove trailing .exe if any 27149 new_path="${new_path/%.exe/}" 27150 27151 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27152 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27153 fi 27154 27155 else 27156 # We're on a posix platform. Hooray! :) 27157 # First separate the path from the arguments. This will split at the first 27158 # space. 27159 complete="$VS_ENV_CMD" 27160 path="${complete%% *}" 27161 tmp="$complete EOL" 27162 arguments="${tmp#* }" 27163 27164 # Cannot rely on the command "which" here since it doesn't always work. 27165 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27166 if test -z "$is_absolute_path"; then 27167 # Path to executable is not absolute. Find it. 27168 IFS_save="$IFS" 27169 IFS=: 27170 for p in $PATH; do 27171 if test -f "$p/$path" && test -x "$p/$path"; then 27172 new_path="$p/$path" 27173 break 27174 fi 27175 done 27176 IFS="$IFS_save" 27177 else 27178 # This is an absolute path, we can use it without further modifications. 27179 new_path="$path" 27180 fi 27181 27182 if test "x$new_path" = x; then 27183 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27184 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27185 has_space=`$ECHO "$complete" | $GREP " "` 27186 if test "x$has_space" != x; then 27187 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27188 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27189 fi 27190 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27191 fi 27192 fi 27193 27194 # Now join together the path and the arguments once again 27195 if test "x$arguments" != xEOL; then 27196 new_complete="$new_path ${arguments% *}" 27197 else 27198 new_complete="$new_path" 27199 fi 27200 27201 if test "x$complete" != "x$new_complete"; then 27202 VS_ENV_CMD="$new_complete" 27203 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 27204 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 27205 fi 27206 27207 27208 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 27209 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 27210 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 27211 cd $OUTPUT_ROOT 27212 # FIXME: The code betweeen ---- was inlined from a separate script and is not properly adapted 27213 # to autoconf standards. 27214 27215 #---- 27216 27217 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment) 27218 # but calculate the difference in Cygwin environment before/after running it and then 27219 # apply the diff. 27220 27221 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 27222 _vs10varsall=`cygpath -a -m -s "$VS_ENV_CMD"` 27223 _dosvs10varsall=`cygpath -a -w -s $_vs10varsall` 27224 _dosbash=`cygpath -a -w -s \`which bash\`.*` 27225 else 27226 _dosvs10varsall=`cmd //c echo $VS_ENV_CMD` 27227 _dosbash=`cmd //c echo \`which bash\`` 27228 fi 27229 27230 # generate the set of exported vars before/after the vs10 setup 27231 $ECHO "@echo off" > localdevenvtmp.bat 27232 $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export0" >> localdevenvtmp.bat 27233 $ECHO "call $_dosvs10varsall $VS_ENV_ARGS" >> localdevenvtmp.bat 27234 $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export1" >> localdevenvtmp.bat 27235 27236 # Now execute the newly created bat file. 27237 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys 27238 cmd /c localdevenvtmp.bat | cat 27239 27240 # apply the diff (less some non-vs10 vars named by "!") 27241 $SORT localdevenvtmp.export0 | $GREP -v "!" > localdevenvtmp.export0.sort 27242 $SORT localdevenvtmp.export1 | $GREP -v "!" > localdevenvtmp.export1.sort 27243 $COMM -1 -3 localdevenvtmp.export0.sort localdevenvtmp.export1.sort > localdevenv.sh 27244 27245 # cleanup 27246 $RM localdevenvtmp* 27247 #---- 27248 cd $CURDIR 27249 if test ! -s $OUTPUT_ROOT/localdevenv.sh; then 27250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27251 $as_echo "no" >&6; } 27252 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 27253 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 27254 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27255 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27256 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27257 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27258 as_fn_error $? "Cannot continue" "$LINENO" 5 27259 fi 27260 27261 # Now set all paths and other env variables. This will allow the rest of 27262 # the configure script to find and run the compiler in the proper way. 27263 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 27264 $as_echo "$as_me: Setting extracted environment variables" >&6;} 27265 . $OUTPUT_ROOT/localdevenv.sh 27266 else 27267 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 27268 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 27269 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 27270 fi 27271 27272 # At this point, we should have corrent variables in the environment, or we can't continue. 27273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 27274 $as_echo_n "checking for Visual Studio variables... " >&6; } 27275 27276 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 27277 if test "x$INCLUDE" = x || test "x$LIB" = x; then 27278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 27279 $as_echo "present but broken" >&6; } 27280 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 27281 else 27282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27283 $as_echo "ok" >&6; } 27284 # Remove any trailing \ from INCLUDE and LIB to avoid trouble in spec.gmk. 27285 VS_INCLUDE=`$ECHO "$INCLUDE" | $SED 's/\\\\$//'` 27286 VS_LIB=`$ECHO "$LIB" | $SED 's/\\\\$//'` 27287 # Remove any paths containing # (typically F#) as that messes up make 27288 PATH=`$ECHO "$PATH" | $SED 's/[^:#]*#[^:]*://g'` 27289 VS_PATH="$PATH" 27290 27291 27292 27293 fi 27294 else 27295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27296 $as_echo "not found" >&6; } 27297 27298 if test "x$VS_ENV_CMD" = x; then 27299 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 27300 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 27301 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 27302 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 27303 else 27304 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 27305 $as_echo "$as_me: Running the extraction script failed." >&6;} 27306 fi 27307 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27308 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27309 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27310 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27311 as_fn_error $? "Cannot continue" "$LINENO" 5 27312 fi 27313 27314 fi 27315 27316 # autoconf magic only relies on PATH, so update it if tools dir is specified 27317 OLD_PATH="$PATH" 27318 27319 # For solaris we really need solaris tools, and not the GNU equivalent. 27320 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 27321 # so add that to path before starting to probe. 27322 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 27323 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 27324 PATH="/usr/ccs/bin:$PATH" 27325 fi 27326 27327 # Finally add TOOLS_DIR at the beginning, to allow --with-tools-dir to 27328 # override all other locations. 27329 if test "x$TOOLS_DIR" != x; then 27330 PATH=$TOOLS_DIR:$PATH 27331 fi 27332 27333 # If a devkit is found on the builddeps server, then prepend its path to the 27334 # PATH variable. If there are cross compilers available in the devkit, these 27335 # will be found by AC_PROG_CC et al. 27336 DEVKIT= 27337 27338 27339 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 27340 # Source the builddeps file again, to make sure it uses the latest variables! 27341 . $builddepsfile 27342 # Look for a target and build machine specific resource! 27343 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 27344 if test "x$resource" = x; then 27345 # Ok, lets instead look for a target specific resource 27346 eval resource=\${builddep_devkit_TARGET_${rewritten_target_var}} 27347 fi 27348 if test "x$resource" = x; then 27349 # Ok, lets instead look for a build specific resource 27350 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}} 27351 fi 27352 if test "x$resource" = x; then 27353 # Ok, lets instead look for a generic resource 27354 # (The devkit comes from M4 and not the shell, thus no need for eval here.) 27355 resource=${builddep_devkit} 27356 fi 27357 if test "x$resource" != x; then 27358 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5 27359 $as_echo "$as_me: Using builddeps $resource for devkit" >&6;} 27360 # If the resource in the builddeps.conf file is an existing directory, 27361 # for example /java/linux/cups 27362 if test -d ${resource}; then 27363 depdir=${resource} 27364 else 27365 27366 # devkit is for example mymodule 27367 # $resource is for example libs/general/libmymod_1_2_3.zip 27368 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 27369 # $with_builddeps_dir is for example /localhome/builddeps 27370 # depdir is the name of the variable into which we store the depdir, eg MYMOD 27371 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 27372 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 27373 filename=`basename $resource` 27374 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 27375 filebase=${filename%%.*} 27376 extension=${filename#*.} 27377 installdir=$with_builddeps_dir/$filebase 27378 if test ! -f $installdir/$filename.unpacked; then 27379 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5 27380 $as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;} 27381 if test ! -d $installdir; then 27382 mkdir -p $installdir 27383 fi 27384 if test ! -d $installdir; then 27385 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 27386 fi 27387 tmpfile=`mktemp $installdir/devkit.XXXXXXXXX` 27388 touch $tmpfile 27389 if test ! -f $tmpfile; then 27390 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 27391 fi 27392 27393 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 27394 # $tmpfile is the local file name for the downloaded file. 27395 VALID_TOOL=no 27396 if test "x$BDEPS_FTP" = xwget; then 27397 VALID_TOOL=yes 27398 wget -O $tmpfile $with_builddeps_server/$resource 27399 fi 27400 if test "x$BDEPS_FTP" = xlftp; then 27401 VALID_TOOL=yes 27402 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 27403 fi 27404 if test "x$BDEPS_FTP" = xftp; then 27405 VALID_TOOL=yes 27406 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 27407 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 27408 FTPUSERPWD=${FTPSERVER%%@*} 27409 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 27410 FTPUSER=${userpwd%%:*} 27411 FTPPWD=${userpwd#*@} 27412 FTPSERVER=${FTPSERVER#*@} 27413 else 27414 FTPUSER=ftp 27415 FTPPWD=ftp 27416 fi 27417 # the "pass" command does not work on some 27418 # ftp clients (read ftp.exe) but if it works, 27419 # passive mode is better! 27420 ( \ 27421 echo "user $FTPUSER $FTPPWD" ; \ 27422 echo "pass" ; \ 27423 echo "bin" ; \ 27424 echo "get $FTPPATH $tmpfile" ; \ 27425 ) | ftp -in $FTPSERVER 27426 fi 27427 if test "x$VALID_TOOL" != xyes; then 27428 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 27429 fi 27430 27431 mv $tmpfile $installdir/$filename 27432 if test ! -s $installdir/$filename; then 27433 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 27434 fi 27435 case "$extension" in 27436 zip) echo "Unzipping $installdir/$filename..." 27437 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 27438 ;; 27439 tar.gz) echo "Untaring $installdir/$filename..." 27440 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 27441 ;; 27442 tgz) echo "Untaring $installdir/$filename..." 27443 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 27444 ;; 27445 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 27446 ;; 27447 esac 27448 fi 27449 if test -f $installdir/$filename.unpacked; then 27450 depdir=$installdir 27451 fi 27452 27453 fi 27454 # Source the builddeps file again, because in the previous command, the depdir 27455 # was updated to point at the current build dependency install directory. 27456 . $builddepsfile 27457 # Now extract variables from the builddeps.conf files. 27458 theroot=${builddep_devkit_ROOT} 27459 thecflags=${builddep_devkit_CFLAGS} 27460 thelibs=${builddep_devkit_LIBS} 27461 if test "x$depdir" = x; then 27462 as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5 27463 fi 27464 DEVKIT=$depdir 27465 if test "x$theroot" != x; then 27466 DEVKIT="$theroot" 27467 fi 27468 if test "x$thecflags" != x; then 27469 DEVKIT_CFLAGS="$thecflags" 27470 fi 27471 if test "x$thelibs" != x; then 27472 DEVKIT_LIBS="$thelibs" 27473 fi 27474 27475 # Found devkit 27476 PATH="$DEVKIT/bin:$PATH" 27477 SYS_ROOT="$DEVKIT/${rewritten_target}/sys-root" 27478 if test "x$x_includes" = "xNONE"; then 27479 x_includes="$SYS_ROOT/usr/include/X11" 27480 fi 27481 if test "x$x_libraries" = "xNONE"; then 27482 x_libraries="$SYS_ROOT/usr/lib" 27483 fi 27484 27485 27486 fi 27487 27488 fi 27489 27490 27491 27492 # 27493 # Setup the compilers (CC and CXX) 27494 # 27495 27496 COMPILER_NAME=C 27497 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 27498 27499 if test "x$CC" != x; then 27500 # User has supplied compiler name already, always let that override. 27501 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 27502 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 27503 if test "x`basename $CC`" = "x$CC"; then 27504 # A command without a complete path is provided, search $PATH. 27505 27506 for ac_prog in $CC 27507 do 27508 # Extract the first word of "$ac_prog", so it can be a program name with args. 27509 set dummy $ac_prog; ac_word=$2 27510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27511 $as_echo_n "checking for $ac_word... " >&6; } 27512 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27513 $as_echo_n "(cached) " >&6 27514 else 27515 case $POTENTIAL_CC in 27516 [\\/]* | ?:[\\/]*) 27517 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27518 ;; 27519 *) 27520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27521 for as_dir in $PATH 27522 do 27523 IFS=$as_save_IFS 27524 test -z "$as_dir" && as_dir=. 27525 for ac_exec_ext in '' $ac_executable_extensions; do 27526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27527 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27529 break 2 27530 fi 27531 done 27532 done 27533 IFS=$as_save_IFS 27534 27535 ;; 27536 esac 27537 fi 27538 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27539 if test -n "$POTENTIAL_CC"; then 27540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27541 $as_echo "$POTENTIAL_CC" >&6; } 27542 else 27543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27544 $as_echo "no" >&6; } 27545 fi 27546 27547 27548 test -n "$POTENTIAL_CC" && break 27549 done 27550 27551 if test "x$POTENTIAL_CC" != x; then 27552 CC=$POTENTIAL_CC 27553 else 27554 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 27555 fi 27556 else 27557 # Otherwise it might already be a complete path 27558 if test ! -x "$CC"; then 27559 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 27560 fi 27561 fi 27562 else 27563 # No user supplied value. Locate compiler ourselves. 27564 27565 # If we are cross compiling, assume cross compilation tools follows the 27566 # cross compilation standard where they are prefixed with the autoconf 27567 # standard name for the target. For example the binary 27568 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 27569 # If we are not cross compiling, then the default compiler name will be 27570 # used. 27571 27572 CC= 27573 # If TOOLS_DIR is set, check for all compiler names in there first 27574 # before checking the rest of the PATH. 27575 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 27576 # step, this should not be necessary. 27577 if test -n "$TOOLS_DIR"; then 27578 PATH_save="$PATH" 27579 PATH="$TOOLS_DIR" 27580 for ac_prog in $SEARCH_LIST 27581 do 27582 # Extract the first word of "$ac_prog", so it can be a program name with args. 27583 set dummy $ac_prog; ac_word=$2 27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27585 $as_echo_n "checking for $ac_word... " >&6; } 27586 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then : 27587 $as_echo_n "(cached) " >&6 27588 else 27589 case $TOOLS_DIR_CC in 27590 [\\/]* | ?:[\\/]*) 27591 ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path. 27592 ;; 27593 *) 27594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27595 for as_dir in $PATH 27596 do 27597 IFS=$as_save_IFS 27598 test -z "$as_dir" && as_dir=. 27599 for ac_exec_ext in '' $ac_executable_extensions; do 27600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27601 ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext" 27602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27603 break 2 27604 fi 27605 done 27606 done 27607 IFS=$as_save_IFS 27608 27609 ;; 27610 esac 27611 fi 27612 TOOLS_DIR_CC=$ac_cv_path_TOOLS_DIR_CC 27613 if test -n "$TOOLS_DIR_CC"; then 27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CC" >&5 27615 $as_echo "$TOOLS_DIR_CC" >&6; } 27616 else 27617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27618 $as_echo "no" >&6; } 27619 fi 27620 27621 27622 test -n "$TOOLS_DIR_CC" && break 27623 done 27624 27625 CC=$TOOLS_DIR_CC 27626 PATH="$PATH_save" 27627 fi 27628 27629 # AC_PATH_PROGS can't be run multiple times with the same variable, 27630 # so create a new name for this run. 27631 if test "x$CC" = x; then 27632 for ac_prog in $SEARCH_LIST 27633 do 27634 # Extract the first word of "$ac_prog", so it can be a program name with args. 27635 set dummy $ac_prog; ac_word=$2 27636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27637 $as_echo_n "checking for $ac_word... " >&6; } 27638 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27639 $as_echo_n "(cached) " >&6 27640 else 27641 case $POTENTIAL_CC in 27642 [\\/]* | ?:[\\/]*) 27643 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27644 ;; 27645 *) 27646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27647 for as_dir in $PATH 27648 do 27649 IFS=$as_save_IFS 27650 test -z "$as_dir" && as_dir=. 27651 for ac_exec_ext in '' $ac_executable_extensions; do 27652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27653 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27655 break 2 27656 fi 27657 done 27658 done 27659 IFS=$as_save_IFS 27660 27661 ;; 27662 esac 27663 fi 27664 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27665 if test -n "$POTENTIAL_CC"; then 27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27667 $as_echo "$POTENTIAL_CC" >&6; } 27668 else 27669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27670 $as_echo "no" >&6; } 27671 fi 27672 27673 27674 test -n "$POTENTIAL_CC" && break 27675 done 27676 27677 CC=$POTENTIAL_CC 27678 fi 27679 27680 if test "x$CC" = x; then 27681 27682 # Print a helpful message on how to acquire the necessary build dependency. 27683 # devkit is the help tag: freetype, cups, pulse, alsa etc 27684 MISSING_DEPENDENCY=devkit 27685 27686 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27687 cygwin_help $MISSING_DEPENDENCY 27688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27689 msys_help $MISSING_DEPENDENCY 27690 else 27691 PKGHANDLER_COMMAND= 27692 27693 case $PKGHANDLER in 27694 apt-get) 27695 apt_help $MISSING_DEPENDENCY ;; 27696 yum) 27697 yum_help $MISSING_DEPENDENCY ;; 27698 port) 27699 port_help $MISSING_DEPENDENCY ;; 27700 pkgutil) 27701 pkgutil_help $MISSING_DEPENDENCY ;; 27702 pkgadd) 27703 pkgadd_help $MISSING_DEPENDENCY ;; 27704 esac 27705 27706 if test "x$PKGHANDLER_COMMAND" != x; then 27707 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 27708 fi 27709 fi 27710 27711 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 27712 fi 27713 fi 27714 27715 # Now we have a compiler binary in CC. Make sure it's okay. 27716 27717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27718 27719 # First separate the path from the arguments. This will split at the first 27720 # space. 27721 complete="$CC" 27722 path="${complete%% *}" 27723 tmp="$complete EOL" 27724 arguments="${tmp#* }" 27725 27726 # Input might be given as Windows format, start by converting to 27727 # unix format. 27728 new_path=`$CYGPATH -u "$path"` 27729 27730 # Now try to locate executable using which 27731 new_path=`$WHICH "$new_path" 2> /dev/null` 27732 # bat and cmd files are not always considered executable in cygwin causing which 27733 # to not find them 27734 if test "x$new_path" = x \ 27735 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27736 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27737 new_path=`$CYGPATH -u "$path"` 27738 fi 27739 if test "x$new_path" = x; then 27740 # Oops. Which didn't find the executable. 27741 # The splitting of arguments from the executable at a space might have been incorrect, 27742 # since paths with space are more likely in Windows. Give it another try with the whole 27743 # argument. 27744 path="$complete" 27745 arguments="EOL" 27746 new_path=`$CYGPATH -u "$path"` 27747 new_path=`$WHICH "$new_path" 2> /dev/null` 27748 # bat and cmd files are not always considered executable in cygwin causing which 27749 # to not find them 27750 if test "x$new_path" = x \ 27751 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27752 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27753 new_path=`$CYGPATH -u "$path"` 27754 fi 27755 if test "x$new_path" = x; then 27756 # It's still not found. Now this is an unrecoverable error. 27757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27758 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27759 has_space=`$ECHO "$complete" | $GREP " "` 27760 if test "x$has_space" != x; then 27761 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27762 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27763 fi 27764 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27765 fi 27766 fi 27767 27768 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27769 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27770 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27771 # "foo.exe" is OK but "foo" is an error. 27772 # 27773 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27774 # It is also a way to make sure we got the proper file name for the real test later on. 27775 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27776 if test "x$test_shortpath" = x; then 27777 # Short path failed, file does not exist as specified. 27778 # Try adding .exe or .cmd 27779 if test -f "${new_path}.exe"; then 27780 input_to_shortpath="${new_path}.exe" 27781 elif test -f "${new_path}.cmd"; then 27782 input_to_shortpath="${new_path}.cmd" 27783 else 27784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 27785 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 27786 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27787 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27788 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27789 fi 27790 else 27791 input_to_shortpath="$new_path" 27792 fi 27793 27794 # Call helper function which possibly converts this using DOS-style short mode. 27795 # If so, the updated path is stored in $new_path. 27796 new_path="$input_to_shortpath" 27797 27798 input_path="$input_to_shortpath" 27799 # Check if we need to convert this using DOS-style short mode. If the path 27800 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27801 # take no chances and rewrite it. 27802 # Note: m4 eats our [], so we need to use [ and ] instead. 27803 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27804 if test "x$has_forbidden_chars" != x; then 27805 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27806 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27807 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27808 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27809 # Going to short mode and back again did indeed matter. Since short mode is 27810 # case insensitive, let's make it lowercase to improve readability. 27811 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27812 # Now convert it back to Unix-stile (cygpath) 27813 input_path=`$CYGPATH -u "$shortmode_path"` 27814 new_path="$input_path" 27815 fi 27816 fi 27817 27818 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27819 if test "x$test_cygdrive_prefix" = x; then 27820 # As a simple fix, exclude /usr/bin since it's not a real path. 27821 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27822 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27823 # a path prefixed by /cygdrive for fixpath to work. 27824 new_path="$CYGWIN_ROOT_PATH$input_path" 27825 fi 27826 fi 27827 27828 # remove trailing .exe if any 27829 new_path="${new_path/%.exe/}" 27830 27831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27832 27833 # First separate the path from the arguments. This will split at the first 27834 # space. 27835 complete="$CC" 27836 path="${complete%% *}" 27837 tmp="$complete EOL" 27838 arguments="${tmp#* }" 27839 27840 # Input might be given as Windows format, start by converting to 27841 # unix format. 27842 new_path="$path" 27843 27844 windows_path="$new_path" 27845 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27846 unix_path=`$CYGPATH -u "$windows_path"` 27847 new_path="$unix_path" 27848 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27849 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27850 new_path="$unix_path" 27851 fi 27852 27853 27854 # Now try to locate executable using which 27855 new_path=`$WHICH "$new_path" 2> /dev/null` 27856 27857 if test "x$new_path" = x; then 27858 # Oops. Which didn't find the executable. 27859 # The splitting of arguments from the executable at a space might have been incorrect, 27860 # since paths with space are more likely in Windows. Give it another try with the whole 27861 # argument. 27862 path="$complete" 27863 arguments="EOL" 27864 new_path="$path" 27865 27866 windows_path="$new_path" 27867 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27868 unix_path=`$CYGPATH -u "$windows_path"` 27869 new_path="$unix_path" 27870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27871 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27872 new_path="$unix_path" 27873 fi 27874 27875 27876 new_path=`$WHICH "$new_path" 2> /dev/null` 27877 27878 if test "x$new_path" = x; then 27879 # It's still not found. Now this is an unrecoverable error. 27880 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27881 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27882 has_space=`$ECHO "$complete" | $GREP " "` 27883 if test "x$has_space" != x; then 27884 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27885 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27886 fi 27887 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27888 fi 27889 fi 27890 27891 # Now new_path has a complete unix path to the binary 27892 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27893 # Keep paths in /bin as-is, but remove trailing .exe if any 27894 new_path="${new_path/%.exe/}" 27895 # Do not save /bin paths to all_fixpath_prefixes! 27896 else 27897 # Not in mixed or Windows style, start by that. 27898 new_path=`cmd //c echo $new_path` 27899 27900 input_path="$new_path" 27901 # Check if we need to convert this using DOS-style short mode. If the path 27902 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27903 # take no chances and rewrite it. 27904 # Note: m4 eats our [], so we need to use [ and ] instead. 27905 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27906 if test "x$has_forbidden_chars" != x; then 27907 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27908 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27909 fi 27910 27911 # Output is in $new_path 27912 27913 windows_path="$new_path" 27914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27915 unix_path=`$CYGPATH -u "$windows_path"` 27916 new_path="$unix_path" 27917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27918 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27919 new_path="$unix_path" 27920 fi 27921 27922 # remove trailing .exe if any 27923 new_path="${new_path/%.exe/}" 27924 27925 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27926 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27927 fi 27928 27929 else 27930 # We're on a posix platform. Hooray! :) 27931 # First separate the path from the arguments. This will split at the first 27932 # space. 27933 complete="$CC" 27934 path="${complete%% *}" 27935 tmp="$complete EOL" 27936 arguments="${tmp#* }" 27937 27938 # Cannot rely on the command "which" here since it doesn't always work. 27939 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27940 if test -z "$is_absolute_path"; then 27941 # Path to executable is not absolute. Find it. 27942 IFS_save="$IFS" 27943 IFS=: 27944 for p in $PATH; do 27945 if test -f "$p/$path" && test -x "$p/$path"; then 27946 new_path="$p/$path" 27947 break 27948 fi 27949 done 27950 IFS="$IFS_save" 27951 else 27952 # This is an absolute path, we can use it without further modifications. 27953 new_path="$path" 27954 fi 27955 27956 if test "x$new_path" = x; then 27957 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27958 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27959 has_space=`$ECHO "$complete" | $GREP " "` 27960 if test "x$has_space" != x; then 27961 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27962 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27963 fi 27964 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27965 fi 27966 fi 27967 27968 # Now join together the path and the arguments once again 27969 if test "x$arguments" != xEOL; then 27970 new_complete="$new_path ${arguments% *}" 27971 else 27972 new_complete="$new_path" 27973 fi 27974 27975 if test "x$complete" != "x$new_complete"; then 27976 CC="$new_complete" 27977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 27978 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 27979 fi 27980 27981 TEST_COMPILER="$CC" 27982 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 27983 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 27984 if test "x$OPENJDK_BUILD_OS" != xaix; then 27985 # FIXME: This test should not be needed anymore; we don't do that for any platform. 27986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 27987 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 27988 27989 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27990 # Follow a chain of symbolic links. Use readlink 27991 # where it exists, else fall back to horribly 27992 # complicated shell code. 27993 if test "x$READLINK_TESTED" != yes; then 27994 # On MacOSX there is a readlink tool with a different 27995 # purpose than the GNU readlink tool. Check the found readlink. 27996 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27997 if test "x$ISGNU" = x; then 27998 # A readlink that we do not know how to use. 27999 # Are there other non-GNU readlinks out there? 28000 READLINK_TESTED=yes 28001 READLINK= 28002 fi 28003 fi 28004 28005 if test "x$READLINK" != x; then 28006 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 28007 else 28008 # Save the current directory for restoring afterwards 28009 STARTDIR=$PWD 28010 COUNTER=0 28011 sym_link_dir=`$DIRNAME $TEST_COMPILER` 28012 sym_link_file=`$BASENAME $TEST_COMPILER` 28013 cd $sym_link_dir 28014 # Use -P flag to resolve symlinks in directories. 28015 cd `$THEPWDCMD -P` 28016 sym_link_dir=`$THEPWDCMD -P` 28017 # Resolve file symlinks 28018 while test $COUNTER -lt 20; do 28019 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28020 if test "x$ISLINK" == x; then 28021 # This is not a symbolic link! We are done! 28022 break 28023 fi 28024 # Again resolve directory symlinks since the target of the just found 28025 # link could be in a different directory 28026 cd `$DIRNAME $ISLINK` 28027 sym_link_dir=`$THEPWDCMD -P` 28028 sym_link_file=`$BASENAME $ISLINK` 28029 let COUNTER=COUNTER+1 28030 done 28031 cd $STARTDIR 28032 TEST_COMPILER=$sym_link_dir/$sym_link_file 28033 fi 28034 fi 28035 28036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28037 $as_echo "$TEST_COMPILER" >&6; } 28038 fi 28039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 28040 $as_echo_n "checking if CC is disguised ccache... " >&6; } 28041 28042 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28043 if test "x$COMPILER_BASENAME" = "xccache"; then 28044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28045 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28046 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28047 # We want to control ccache invocation ourselves, so ignore this cc and try 28048 # searching again. 28049 28050 # Remove the path to the fake ccache cc from the PATH 28051 RETRY_COMPILER_SAVED_PATH="$PATH" 28052 COMPILER_DIRNAME=`$DIRNAME $CC` 28053 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28054 28055 # Try again looking for our compiler 28056 if test -n "$ac_tool_prefix"; then 28057 for ac_prog in $TOOLCHAIN_CC_BINARY 28058 do 28059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28062 $as_echo_n "checking for $ac_word... " >&6; } 28063 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 28064 $as_echo_n "(cached) " >&6 28065 else 28066 if test -n "$PROPER_COMPILER_CC"; then 28067 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 28068 else 28069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28070 for as_dir in $PATH 28071 do 28072 IFS=$as_save_IFS 28073 test -z "$as_dir" && as_dir=. 28074 for ac_exec_ext in '' $ac_executable_extensions; do 28075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28076 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 28077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28078 break 2 28079 fi 28080 done 28081 done 28082 IFS=$as_save_IFS 28083 28084 fi 28085 fi 28086 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 28087 if test -n "$PROPER_COMPILER_CC"; then 28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28089 $as_echo "$PROPER_COMPILER_CC" >&6; } 28090 else 28091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28092 $as_echo "no" >&6; } 28093 fi 28094 28095 28096 test -n "$PROPER_COMPILER_CC" && break 28097 done 28098 fi 28099 if test -z "$PROPER_COMPILER_CC"; then 28100 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 28101 for ac_prog in $TOOLCHAIN_CC_BINARY 28102 do 28103 # Extract the first word of "$ac_prog", so it can be a program name with args. 28104 set dummy $ac_prog; ac_word=$2 28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28106 $as_echo_n "checking for $ac_word... " >&6; } 28107 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 28108 $as_echo_n "(cached) " >&6 28109 else 28110 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28111 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 28112 else 28113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28114 for as_dir in $PATH 28115 do 28116 IFS=$as_save_IFS 28117 test -z "$as_dir" && as_dir=. 28118 for ac_exec_ext in '' $ac_executable_extensions; do 28119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28120 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 28121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28122 break 2 28123 fi 28124 done 28125 done 28126 IFS=$as_save_IFS 28127 28128 fi 28129 fi 28130 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 28131 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 28133 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 28134 else 28135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28136 $as_echo "no" >&6; } 28137 fi 28138 28139 28140 test -n "$ac_ct_PROPER_COMPILER_CC" && break 28141 done 28142 28143 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 28144 PROPER_COMPILER_CC="" 28145 else 28146 case $cross_compiling:$ac_tool_warned in 28147 yes:) 28148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28150 ac_tool_warned=yes ;; 28151 esac 28152 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 28153 fi 28154 fi 28155 28156 28157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28158 28159 # First separate the path from the arguments. This will split at the first 28160 # space. 28161 complete="$PROPER_COMPILER_CC" 28162 path="${complete%% *}" 28163 tmp="$complete EOL" 28164 arguments="${tmp#* }" 28165 28166 # Input might be given as Windows format, start by converting to 28167 # unix format. 28168 new_path=`$CYGPATH -u "$path"` 28169 28170 # Now try to locate executable using which 28171 new_path=`$WHICH "$new_path" 2> /dev/null` 28172 # bat and cmd files are not always considered executable in cygwin causing which 28173 # to not find them 28174 if test "x$new_path" = x \ 28175 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28176 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28177 new_path=`$CYGPATH -u "$path"` 28178 fi 28179 if test "x$new_path" = x; then 28180 # Oops. Which didn't find the executable. 28181 # The splitting of arguments from the executable at a space might have been incorrect, 28182 # since paths with space are more likely in Windows. Give it another try with the whole 28183 # argument. 28184 path="$complete" 28185 arguments="EOL" 28186 new_path=`$CYGPATH -u "$path"` 28187 new_path=`$WHICH "$new_path" 2> /dev/null` 28188 # bat and cmd files are not always considered executable in cygwin causing which 28189 # to not find them 28190 if test "x$new_path" = x \ 28191 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28192 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28193 new_path=`$CYGPATH -u "$path"` 28194 fi 28195 if test "x$new_path" = x; then 28196 # It's still not found. Now this is an unrecoverable error. 28197 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28198 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28199 has_space=`$ECHO "$complete" | $GREP " "` 28200 if test "x$has_space" != x; then 28201 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28202 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28203 fi 28204 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28205 fi 28206 fi 28207 28208 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28209 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28210 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28211 # "foo.exe" is OK but "foo" is an error. 28212 # 28213 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28214 # It is also a way to make sure we got the proper file name for the real test later on. 28215 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28216 if test "x$test_shortpath" = x; then 28217 # Short path failed, file does not exist as specified. 28218 # Try adding .exe or .cmd 28219 if test -f "${new_path}.exe"; then 28220 input_to_shortpath="${new_path}.exe" 28221 elif test -f "${new_path}.cmd"; then 28222 input_to_shortpath="${new_path}.cmd" 28223 else 28224 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 28225 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 28226 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28227 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28228 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28229 fi 28230 else 28231 input_to_shortpath="$new_path" 28232 fi 28233 28234 # Call helper function which possibly converts this using DOS-style short mode. 28235 # If so, the updated path is stored in $new_path. 28236 new_path="$input_to_shortpath" 28237 28238 input_path="$input_to_shortpath" 28239 # Check if we need to convert this using DOS-style short mode. If the path 28240 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28241 # take no chances and rewrite it. 28242 # Note: m4 eats our [], so we need to use [ and ] instead. 28243 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28244 if test "x$has_forbidden_chars" != x; then 28245 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28246 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28247 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28248 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28249 # Going to short mode and back again did indeed matter. Since short mode is 28250 # case insensitive, let's make it lowercase to improve readability. 28251 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28252 # Now convert it back to Unix-stile (cygpath) 28253 input_path=`$CYGPATH -u "$shortmode_path"` 28254 new_path="$input_path" 28255 fi 28256 fi 28257 28258 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28259 if test "x$test_cygdrive_prefix" = x; then 28260 # As a simple fix, exclude /usr/bin since it's not a real path. 28261 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28262 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28263 # a path prefixed by /cygdrive for fixpath to work. 28264 new_path="$CYGWIN_ROOT_PATH$input_path" 28265 fi 28266 fi 28267 28268 # remove trailing .exe if any 28269 new_path="${new_path/%.exe/}" 28270 28271 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28272 28273 # First separate the path from the arguments. This will split at the first 28274 # space. 28275 complete="$PROPER_COMPILER_CC" 28276 path="${complete%% *}" 28277 tmp="$complete EOL" 28278 arguments="${tmp#* }" 28279 28280 # Input might be given as Windows format, start by converting to 28281 # unix format. 28282 new_path="$path" 28283 28284 windows_path="$new_path" 28285 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28286 unix_path=`$CYGPATH -u "$windows_path"` 28287 new_path="$unix_path" 28288 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28289 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28290 new_path="$unix_path" 28291 fi 28292 28293 28294 # Now try to locate executable using which 28295 new_path=`$WHICH "$new_path" 2> /dev/null` 28296 28297 if test "x$new_path" = x; then 28298 # Oops. Which didn't find the executable. 28299 # The splitting of arguments from the executable at a space might have been incorrect, 28300 # since paths with space are more likely in Windows. Give it another try with the whole 28301 # argument. 28302 path="$complete" 28303 arguments="EOL" 28304 new_path="$path" 28305 28306 windows_path="$new_path" 28307 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28308 unix_path=`$CYGPATH -u "$windows_path"` 28309 new_path="$unix_path" 28310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28311 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28312 new_path="$unix_path" 28313 fi 28314 28315 28316 new_path=`$WHICH "$new_path" 2> /dev/null` 28317 28318 if test "x$new_path" = x; then 28319 # It's still not found. Now this is an unrecoverable error. 28320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28321 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28322 has_space=`$ECHO "$complete" | $GREP " "` 28323 if test "x$has_space" != x; then 28324 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28325 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28326 fi 28327 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28328 fi 28329 fi 28330 28331 # Now new_path has a complete unix path to the binary 28332 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28333 # Keep paths in /bin as-is, but remove trailing .exe if any 28334 new_path="${new_path/%.exe/}" 28335 # Do not save /bin paths to all_fixpath_prefixes! 28336 else 28337 # Not in mixed or Windows style, start by that. 28338 new_path=`cmd //c echo $new_path` 28339 28340 input_path="$new_path" 28341 # Check if we need to convert this using DOS-style short mode. If the path 28342 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28343 # take no chances and rewrite it. 28344 # Note: m4 eats our [], so we need to use [ and ] instead. 28345 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28346 if test "x$has_forbidden_chars" != x; then 28347 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28348 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28349 fi 28350 28351 # Output is in $new_path 28352 28353 windows_path="$new_path" 28354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28355 unix_path=`$CYGPATH -u "$windows_path"` 28356 new_path="$unix_path" 28357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28358 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28359 new_path="$unix_path" 28360 fi 28361 28362 # remove trailing .exe if any 28363 new_path="${new_path/%.exe/}" 28364 28365 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28366 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28367 fi 28368 28369 else 28370 # We're on a posix platform. Hooray! :) 28371 # First separate the path from the arguments. This will split at the first 28372 # space. 28373 complete="$PROPER_COMPILER_CC" 28374 path="${complete%% *}" 28375 tmp="$complete EOL" 28376 arguments="${tmp#* }" 28377 28378 # Cannot rely on the command "which" here since it doesn't always work. 28379 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28380 if test -z "$is_absolute_path"; then 28381 # Path to executable is not absolute. Find it. 28382 IFS_save="$IFS" 28383 IFS=: 28384 for p in $PATH; do 28385 if test -f "$p/$path" && test -x "$p/$path"; then 28386 new_path="$p/$path" 28387 break 28388 fi 28389 done 28390 IFS="$IFS_save" 28391 else 28392 # This is an absolute path, we can use it without further modifications. 28393 new_path="$path" 28394 fi 28395 28396 if test "x$new_path" = x; then 28397 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28398 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28399 has_space=`$ECHO "$complete" | $GREP " "` 28400 if test "x$has_space" != x; then 28401 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28402 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28403 fi 28404 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28405 fi 28406 fi 28407 28408 # Now join together the path and the arguments once again 28409 if test "x$arguments" != xEOL; then 28410 new_complete="$new_path ${arguments% *}" 28411 else 28412 new_complete="$new_path" 28413 fi 28414 28415 if test "x$complete" != "x$new_complete"; then 28416 PROPER_COMPILER_CC="$new_complete" 28417 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 28418 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 28419 fi 28420 28421 PATH="$RETRY_COMPILER_SAVED_PATH" 28422 28423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 28424 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 28425 28426 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28427 # Follow a chain of symbolic links. Use readlink 28428 # where it exists, else fall back to horribly 28429 # complicated shell code. 28430 if test "x$READLINK_TESTED" != yes; then 28431 # On MacOSX there is a readlink tool with a different 28432 # purpose than the GNU readlink tool. Check the found readlink. 28433 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28434 if test "x$ISGNU" = x; then 28435 # A readlink that we do not know how to use. 28436 # Are there other non-GNU readlinks out there? 28437 READLINK_TESTED=yes 28438 READLINK= 28439 fi 28440 fi 28441 28442 if test "x$READLINK" != x; then 28443 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 28444 else 28445 # Save the current directory for restoring afterwards 28446 STARTDIR=$PWD 28447 COUNTER=0 28448 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 28449 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 28450 cd $sym_link_dir 28451 # Use -P flag to resolve symlinks in directories. 28452 cd `$THEPWDCMD -P` 28453 sym_link_dir=`$THEPWDCMD -P` 28454 # Resolve file symlinks 28455 while test $COUNTER -lt 20; do 28456 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28457 if test "x$ISLINK" == x; then 28458 # This is not a symbolic link! We are done! 28459 break 28460 fi 28461 # Again resolve directory symlinks since the target of the just found 28462 # link could be in a different directory 28463 cd `$DIRNAME $ISLINK` 28464 sym_link_dir=`$THEPWDCMD -P` 28465 sym_link_file=`$BASENAME $ISLINK` 28466 let COUNTER=COUNTER+1 28467 done 28468 cd $STARTDIR 28469 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 28470 fi 28471 fi 28472 28473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28474 $as_echo "$PROPER_COMPILER_CC" >&6; } 28475 CC="$PROPER_COMPILER_CC" 28476 else 28477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 28478 $as_echo "no, keeping CC" >&6; } 28479 fi 28480 28481 28482 COMPILER=$CC 28483 COMPILER_NAME=$COMPILER_NAME 28484 28485 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 28486 # cc -V output typically looks like 28487 # cc: Sun C 5.12 Linux_i386 2011/11/16 28488 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 28489 # Check that this is likely to be the Solaris Studio cc. 28490 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 28491 if test $? -ne 0; then 28492 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28493 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28494 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28495 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28496 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28497 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28498 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28499 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28500 fi 28501 # Remove usage instructions (if present), and 28502 # collapse compiler output into a single line 28503 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28504 $SED -e 's/ *[Uu]sage:.*//'` 28505 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28506 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 28507 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 28508 # xlc -qversion output typically looks like 28509 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 28510 # Version: 11.01.0000.0015 28511 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 28512 # Check that this is likely to be the IBM XL C compiler. 28513 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 28514 if test $? -ne 0; then 28515 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28516 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28517 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28518 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28519 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28520 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28521 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28522 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28523 fi 28524 # Collapse compiler output into a single line 28525 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28526 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28527 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 28528 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 28529 # There is no specific version flag, but all output starts with a version string. 28530 # First line typically looks something like: 28531 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 28532 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 28533 # Check that this is likely to be Microsoft CL.EXE. 28534 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 28535 if test $? -ne 0; then 28536 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28537 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28538 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28539 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28540 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28541 fi 28542 # Collapse compiler output into a single line 28543 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28544 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28545 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 28546 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 28547 # gcc --version output typically looks like 28548 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 28549 # Copyright (C) 2013 Free Software Foundation, Inc. 28550 # This is free software; see the source for copying conditions. There is NO 28551 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28552 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28553 # Check that this is likely to be GCC. 28554 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 28555 if test $? -ne 0; then 28556 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28557 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28558 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28559 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28560 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28561 fi 28562 # Remove Copyright and legalese from version string, and 28563 # collapse into a single line 28564 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28565 $SED -e 's/ *Copyright .*//'` 28566 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28567 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 28568 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28569 # clang --version output typically looks like 28570 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28571 # clang version 3.3 (tags/RELEASE_33/final) 28572 # or 28573 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28574 # Target: x86_64-pc-linux-gnu 28575 # Thread model: posix 28576 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28577 # Check that this is likely to be clang 28578 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28579 if test $? -ne 0; then 28580 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28581 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28582 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28583 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28584 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28585 fi 28586 # Collapse compiler output into a single line 28587 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28588 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28589 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28590 else 28591 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28592 fi 28593 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28594 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28595 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28596 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 28597 28598 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28599 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28600 28601 28602 # Now that we have resolved CC ourself, let autoconf have its go at it 28603 ac_ext=c 28604 ac_cpp='$CPP $CPPFLAGS' 28605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28607 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28608 if test -n "$ac_tool_prefix"; then 28609 for ac_prog in $CC 28610 do 28611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28614 $as_echo_n "checking for $ac_word... " >&6; } 28615 if ${ac_cv_prog_CC+:} false; then : 28616 $as_echo_n "(cached) " >&6 28617 else 28618 if test -n "$CC"; then 28619 ac_cv_prog_CC="$CC" # Let the user override the test. 28620 else 28621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28622 for as_dir in $PATH 28623 do 28624 IFS=$as_save_IFS 28625 test -z "$as_dir" && as_dir=. 28626 for ac_exec_ext in '' $ac_executable_extensions; do 28627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28630 break 2 28631 fi 28632 done 28633 done 28634 IFS=$as_save_IFS 28635 28636 fi 28637 fi 28638 CC=$ac_cv_prog_CC 28639 if test -n "$CC"; then 28640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28641 $as_echo "$CC" >&6; } 28642 else 28643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28644 $as_echo "no" >&6; } 28645 fi 28646 28647 28648 test -n "$CC" && break 28649 done 28650 fi 28651 if test -z "$CC"; then 28652 ac_ct_CC=$CC 28653 for ac_prog in $CC 28654 do 28655 # Extract the first word of "$ac_prog", so it can be a program name with args. 28656 set dummy $ac_prog; ac_word=$2 28657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28658 $as_echo_n "checking for $ac_word... " >&6; } 28659 if ${ac_cv_prog_ac_ct_CC+:} false; then : 28660 $as_echo_n "(cached) " >&6 28661 else 28662 if test -n "$ac_ct_CC"; then 28663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28664 else 28665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28666 for as_dir in $PATH 28667 do 28668 IFS=$as_save_IFS 28669 test -z "$as_dir" && as_dir=. 28670 for ac_exec_ext in '' $ac_executable_extensions; do 28671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28672 ac_cv_prog_ac_ct_CC="$ac_prog" 28673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28674 break 2 28675 fi 28676 done 28677 done 28678 IFS=$as_save_IFS 28679 28680 fi 28681 fi 28682 ac_ct_CC=$ac_cv_prog_ac_ct_CC 28683 if test -n "$ac_ct_CC"; then 28684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28685 $as_echo "$ac_ct_CC" >&6; } 28686 else 28687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28688 $as_echo "no" >&6; } 28689 fi 28690 28691 28692 test -n "$ac_ct_CC" && break 28693 done 28694 28695 if test "x$ac_ct_CC" = x; then 28696 CC="" 28697 else 28698 case $cross_compiling:$ac_tool_warned in 28699 yes:) 28700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28702 ac_tool_warned=yes ;; 28703 esac 28704 CC=$ac_ct_CC 28705 fi 28706 fi 28707 28708 28709 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28711 as_fn_error $? "no acceptable C compiler found in \$PATH 28712 See \`config.log' for more details" "$LINENO" 5; } 28713 28714 # Provide some information about the compiler. 28715 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 28716 set X $ac_compile 28717 ac_compiler=$2 28718 for ac_option in --version -v -V -qversion; do 28719 { { ac_try="$ac_compiler $ac_option >&5" 28720 case "(($ac_try" in 28721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28722 *) ac_try_echo=$ac_try;; 28723 esac 28724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28725 $as_echo "$ac_try_echo"; } >&5 28726 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28727 ac_status=$? 28728 if test -s conftest.err; then 28729 sed '10a\ 28730 ... rest of stderr output deleted ... 28731 10q' conftest.err >conftest.er1 28732 cat conftest.er1 >&5 28733 fi 28734 rm -f conftest.er1 conftest.err 28735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28736 test $ac_status = 0; } 28737 done 28738 28739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28740 /* end confdefs.h. */ 28741 28742 int 28743 main () 28744 { 28745 28746 ; 28747 return 0; 28748 } 28749 _ACEOF 28750 ac_clean_files_save=$ac_clean_files 28751 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 28752 # Try to create an executable without -o first, disregard a.out. 28753 # It will help us diagnose broken compilers, and finding out an intuition 28754 # of exeext. 28755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 28756 $as_echo_n "checking whether the C compiler works... " >&6; } 28757 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 28758 28759 # The possible output files: 28760 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 28761 28762 ac_rmfiles= 28763 for ac_file in $ac_files 28764 do 28765 case $ac_file in 28766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28767 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 28768 esac 28769 done 28770 rm -f $ac_rmfiles 28771 28772 if { { ac_try="$ac_link_default" 28773 case "(($ac_try" in 28774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28775 *) ac_try_echo=$ac_try;; 28776 esac 28777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28778 $as_echo "$ac_try_echo"; } >&5 28779 (eval "$ac_link_default") 2>&5 28780 ac_status=$? 28781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28782 test $ac_status = 0; }; then : 28783 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 28784 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 28785 # in a Makefile. We should not override ac_cv_exeext if it was cached, 28786 # so that the user can short-circuit this test for compilers unknown to 28787 # Autoconf. 28788 for ac_file in $ac_files '' 28789 do 28790 test -f "$ac_file" || continue 28791 case $ac_file in 28792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 28793 ;; 28794 [ab].out ) 28795 # We found the default executable, but exeext='' is most 28796 # certainly right. 28797 break;; 28798 *.* ) 28799 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 28800 then :; else 28801 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28802 fi 28803 # We set ac_cv_exeext here because the later test for it is not 28804 # safe: cross compilers may not add the suffix if given an `-o' 28805 # argument, so we may need to know it at that point already. 28806 # Even if this section looks crufty: it has the advantage of 28807 # actually working. 28808 break;; 28809 * ) 28810 break;; 28811 esac 28812 done 28813 test "$ac_cv_exeext" = no && ac_cv_exeext= 28814 28815 else 28816 ac_file='' 28817 fi 28818 if test -z "$ac_file"; then : 28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28820 $as_echo "no" >&6; } 28821 $as_echo "$as_me: failed program was:" >&5 28822 sed 's/^/| /' conftest.$ac_ext >&5 28823 28824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28826 as_fn_error 77 "C compiler cannot create executables 28827 See \`config.log' for more details" "$LINENO" 5; } 28828 else 28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28830 $as_echo "yes" >&6; } 28831 fi 28832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 28833 $as_echo_n "checking for C compiler default output file name... " >&6; } 28834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 28835 $as_echo "$ac_file" >&6; } 28836 ac_exeext=$ac_cv_exeext 28837 28838 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 28839 ac_clean_files=$ac_clean_files_save 28840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 28841 $as_echo_n "checking for suffix of executables... " >&6; } 28842 if { { ac_try="$ac_link" 28843 case "(($ac_try" in 28844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28845 *) ac_try_echo=$ac_try;; 28846 esac 28847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28848 $as_echo "$ac_try_echo"; } >&5 28849 (eval "$ac_link") 2>&5 28850 ac_status=$? 28851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28852 test $ac_status = 0; }; then : 28853 # If both `conftest.exe' and `conftest' are `present' (well, observable) 28854 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 28855 # work properly (i.e., refer to `conftest.exe'), while it won't with 28856 # `rm'. 28857 for ac_file in conftest.exe conftest conftest.*; do 28858 test -f "$ac_file" || continue 28859 case $ac_file in 28860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28861 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28862 break;; 28863 * ) break;; 28864 esac 28865 done 28866 else 28867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28869 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 28870 See \`config.log' for more details" "$LINENO" 5; } 28871 fi 28872 rm -f conftest conftest$ac_cv_exeext 28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 28874 $as_echo "$ac_cv_exeext" >&6; } 28875 28876 rm -f conftest.$ac_ext 28877 EXEEXT=$ac_cv_exeext 28878 ac_exeext=$EXEEXT 28879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28880 /* end confdefs.h. */ 28881 #include <stdio.h> 28882 int 28883 main () 28884 { 28885 FILE *f = fopen ("conftest.out", "w"); 28886 return ferror (f) || fclose (f) != 0; 28887 28888 ; 28889 return 0; 28890 } 28891 _ACEOF 28892 ac_clean_files="$ac_clean_files conftest.out" 28893 # Check that the compiler produces executables we can run. If not, either 28894 # the compiler is broken, or we cross compile. 28895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 28896 $as_echo_n "checking whether we are cross compiling... " >&6; } 28897 if test "$cross_compiling" != yes; then 28898 { { ac_try="$ac_link" 28899 case "(($ac_try" in 28900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28901 *) ac_try_echo=$ac_try;; 28902 esac 28903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28904 $as_echo "$ac_try_echo"; } >&5 28905 (eval "$ac_link") 2>&5 28906 ac_status=$? 28907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28908 test $ac_status = 0; } 28909 if { ac_try='./conftest$ac_cv_exeext' 28910 { { case "(($ac_try" in 28911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28912 *) ac_try_echo=$ac_try;; 28913 esac 28914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28915 $as_echo "$ac_try_echo"; } >&5 28916 (eval "$ac_try") 2>&5 28917 ac_status=$? 28918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28919 test $ac_status = 0; }; }; then 28920 cross_compiling=no 28921 else 28922 if test "$cross_compiling" = maybe; then 28923 cross_compiling=yes 28924 else 28925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28927 as_fn_error $? "cannot run C compiled programs. 28928 If you meant to cross compile, use \`--host'. 28929 See \`config.log' for more details" "$LINENO" 5; } 28930 fi 28931 fi 28932 fi 28933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 28934 $as_echo "$cross_compiling" >&6; } 28935 28936 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 28937 ac_clean_files=$ac_clean_files_save 28938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 28939 $as_echo_n "checking for suffix of object files... " >&6; } 28940 if ${ac_cv_objext+:} false; then : 28941 $as_echo_n "(cached) " >&6 28942 else 28943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28944 /* end confdefs.h. */ 28945 28946 int 28947 main () 28948 { 28949 28950 ; 28951 return 0; 28952 } 28953 _ACEOF 28954 rm -f conftest.o conftest.obj 28955 if { { ac_try="$ac_compile" 28956 case "(($ac_try" in 28957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28958 *) ac_try_echo=$ac_try;; 28959 esac 28960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28961 $as_echo "$ac_try_echo"; } >&5 28962 (eval "$ac_compile") 2>&5 28963 ac_status=$? 28964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28965 test $ac_status = 0; }; then : 28966 for ac_file in conftest.o conftest.obj conftest.*; do 28967 test -f "$ac_file" || continue; 28968 case $ac_file in 28969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 28970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 28971 break;; 28972 esac 28973 done 28974 else 28975 $as_echo "$as_me: failed program was:" >&5 28976 sed 's/^/| /' conftest.$ac_ext >&5 28977 28978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28980 as_fn_error $? "cannot compute suffix of object files: cannot compile 28981 See \`config.log' for more details" "$LINENO" 5; } 28982 fi 28983 rm -f conftest.$ac_cv_objext conftest.$ac_ext 28984 fi 28985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 28986 $as_echo "$ac_cv_objext" >&6; } 28987 OBJEXT=$ac_cv_objext 28988 ac_objext=$OBJEXT 28989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 28990 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 28991 if ${ac_cv_c_compiler_gnu+:} false; then : 28992 $as_echo_n "(cached) " >&6 28993 else 28994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28995 /* end confdefs.h. */ 28996 28997 int 28998 main () 28999 { 29000 #ifndef __GNUC__ 29001 choke me 29002 #endif 29003 29004 ; 29005 return 0; 29006 } 29007 _ACEOF 29008 if ac_fn_c_try_compile "$LINENO"; then : 29009 ac_compiler_gnu=yes 29010 else 29011 ac_compiler_gnu=no 29012 fi 29013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29014 ac_cv_c_compiler_gnu=$ac_compiler_gnu 29015 29016 fi 29017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 29018 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 29019 if test $ac_compiler_gnu = yes; then 29020 GCC=yes 29021 else 29022 GCC= 29023 fi 29024 ac_test_CFLAGS=${CFLAGS+set} 29025 ac_save_CFLAGS=$CFLAGS 29026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 29027 $as_echo_n "checking whether $CC accepts -g... " >&6; } 29028 if ${ac_cv_prog_cc_g+:} false; then : 29029 $as_echo_n "(cached) " >&6 29030 else 29031 ac_save_c_werror_flag=$ac_c_werror_flag 29032 ac_c_werror_flag=yes 29033 ac_cv_prog_cc_g=no 29034 CFLAGS="-g" 29035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29036 /* end confdefs.h. */ 29037 29038 int 29039 main () 29040 { 29041 29042 ; 29043 return 0; 29044 } 29045 _ACEOF 29046 if ac_fn_c_try_compile "$LINENO"; then : 29047 ac_cv_prog_cc_g=yes 29048 else 29049 CFLAGS="" 29050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29051 /* end confdefs.h. */ 29052 29053 int 29054 main () 29055 { 29056 29057 ; 29058 return 0; 29059 } 29060 _ACEOF 29061 if ac_fn_c_try_compile "$LINENO"; then : 29062 29063 else 29064 ac_c_werror_flag=$ac_save_c_werror_flag 29065 CFLAGS="-g" 29066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29067 /* end confdefs.h. */ 29068 29069 int 29070 main () 29071 { 29072 29073 ; 29074 return 0; 29075 } 29076 _ACEOF 29077 if ac_fn_c_try_compile "$LINENO"; then : 29078 ac_cv_prog_cc_g=yes 29079 fi 29080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29081 fi 29082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29083 fi 29084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29085 ac_c_werror_flag=$ac_save_c_werror_flag 29086 fi 29087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 29088 $as_echo "$ac_cv_prog_cc_g" >&6; } 29089 if test "$ac_test_CFLAGS" = set; then 29090 CFLAGS=$ac_save_CFLAGS 29091 elif test $ac_cv_prog_cc_g = yes; then 29092 if test "$GCC" = yes; then 29093 CFLAGS="-g -O2" 29094 else 29095 CFLAGS="-g" 29096 fi 29097 else 29098 if test "$GCC" = yes; then 29099 CFLAGS="-O2" 29100 else 29101 CFLAGS= 29102 fi 29103 fi 29104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 29105 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 29106 if ${ac_cv_prog_cc_c89+:} false; then : 29107 $as_echo_n "(cached) " >&6 29108 else 29109 ac_cv_prog_cc_c89=no 29110 ac_save_CC=$CC 29111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29112 /* end confdefs.h. */ 29113 #include <stdarg.h> 29114 #include <stdio.h> 29115 struct stat; 29116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29117 struct buf { int x; }; 29118 FILE * (*rcsopen) (struct buf *, struct stat *, int); 29119 static char *e (p, i) 29120 char **p; 29121 int i; 29122 { 29123 return p[i]; 29124 } 29125 static char *f (char * (*g) (char **, int), char **p, ...) 29126 { 29127 char *s; 29128 va_list v; 29129 va_start (v,p); 29130 s = g (p, va_arg (v,int)); 29131 va_end (v); 29132 return s; 29133 } 29134 29135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29136 function prototypes and stuff, but not '\xHH' hex character constants. 29137 These don't provoke an error unfortunately, instead are silently treated 29138 as 'x'. The following induces an error, until -std is added to get 29139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29140 array size at least. It's necessary to write '\x00'==0 to get something 29141 that's true only with -std. */ 29142 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29143 29144 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29145 inside strings and character constants. */ 29146 #define FOO(x) 'x' 29147 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29148 29149 int test (int i, double x); 29150 struct s1 {int (*f) (int a);}; 29151 struct s2 {int (*f) (double a);}; 29152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29153 int argc; 29154 char **argv; 29155 int 29156 main () 29157 { 29158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29159 ; 29160 return 0; 29161 } 29162 _ACEOF 29163 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29164 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29165 do 29166 CC="$ac_save_CC $ac_arg" 29167 if ac_fn_c_try_compile "$LINENO"; then : 29168 ac_cv_prog_cc_c89=$ac_arg 29169 fi 29170 rm -f core conftest.err conftest.$ac_objext 29171 test "x$ac_cv_prog_cc_c89" != "xno" && break 29172 done 29173 rm -f conftest.$ac_ext 29174 CC=$ac_save_CC 29175 29176 fi 29177 # AC_CACHE_VAL 29178 case "x$ac_cv_prog_cc_c89" in 29179 x) 29180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29181 $as_echo "none needed" >&6; } ;; 29182 xno) 29183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29184 $as_echo "unsupported" >&6; } ;; 29185 *) 29186 CC="$CC $ac_cv_prog_cc_c89" 29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29188 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29189 esac 29190 if test "x$ac_cv_prog_cc_c89" != xno; then : 29191 29192 fi 29193 29194 ac_ext=cpp 29195 ac_cpp='$CXXCPP $CPPFLAGS' 29196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29199 29200 29201 29202 COMPILER_NAME=C++ 29203 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 29204 29205 if test "x$CXX" != x; then 29206 # User has supplied compiler name already, always let that override. 29207 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 29208 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 29209 if test "x`basename $CXX`" = "x$CXX"; then 29210 # A command without a complete path is provided, search $PATH. 29211 29212 for ac_prog in $CXX 29213 do 29214 # Extract the first word of "$ac_prog", so it can be a program name with args. 29215 set dummy $ac_prog; ac_word=$2 29216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29217 $as_echo_n "checking for $ac_word... " >&6; } 29218 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29219 $as_echo_n "(cached) " >&6 29220 else 29221 case $POTENTIAL_CXX in 29222 [\\/]* | ?:[\\/]*) 29223 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29224 ;; 29225 *) 29226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29227 for as_dir in $PATH 29228 do 29229 IFS=$as_save_IFS 29230 test -z "$as_dir" && as_dir=. 29231 for ac_exec_ext in '' $ac_executable_extensions; do 29232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29233 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29235 break 2 29236 fi 29237 done 29238 done 29239 IFS=$as_save_IFS 29240 29241 ;; 29242 esac 29243 fi 29244 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29245 if test -n "$POTENTIAL_CXX"; then 29246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29247 $as_echo "$POTENTIAL_CXX" >&6; } 29248 else 29249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29250 $as_echo "no" >&6; } 29251 fi 29252 29253 29254 test -n "$POTENTIAL_CXX" && break 29255 done 29256 29257 if test "x$POTENTIAL_CXX" != x; then 29258 CXX=$POTENTIAL_CXX 29259 else 29260 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 29261 fi 29262 else 29263 # Otherwise it might already be a complete path 29264 if test ! -x "$CXX"; then 29265 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 29266 fi 29267 fi 29268 else 29269 # No user supplied value. Locate compiler ourselves. 29270 29271 # If we are cross compiling, assume cross compilation tools follows the 29272 # cross compilation standard where they are prefixed with the autoconf 29273 # standard name for the target. For example the binary 29274 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29275 # If we are not cross compiling, then the default compiler name will be 29276 # used. 29277 29278 CXX= 29279 # If TOOLS_DIR is set, check for all compiler names in there first 29280 # before checking the rest of the PATH. 29281 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 29282 # step, this should not be necessary. 29283 if test -n "$TOOLS_DIR"; then 29284 PATH_save="$PATH" 29285 PATH="$TOOLS_DIR" 29286 for ac_prog in $SEARCH_LIST 29287 do 29288 # Extract the first word of "$ac_prog", so it can be a program name with args. 29289 set dummy $ac_prog; ac_word=$2 29290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29291 $as_echo_n "checking for $ac_word... " >&6; } 29292 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then : 29293 $as_echo_n "(cached) " >&6 29294 else 29295 case $TOOLS_DIR_CXX in 29296 [\\/]* | ?:[\\/]*) 29297 ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path. 29298 ;; 29299 *) 29300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29301 for as_dir in $PATH 29302 do 29303 IFS=$as_save_IFS 29304 test -z "$as_dir" && as_dir=. 29305 for ac_exec_ext in '' $ac_executable_extensions; do 29306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29307 ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext" 29308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29309 break 2 29310 fi 29311 done 29312 done 29313 IFS=$as_save_IFS 29314 29315 ;; 29316 esac 29317 fi 29318 TOOLS_DIR_CXX=$ac_cv_path_TOOLS_DIR_CXX 29319 if test -n "$TOOLS_DIR_CXX"; then 29320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CXX" >&5 29321 $as_echo "$TOOLS_DIR_CXX" >&6; } 29322 else 29323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29324 $as_echo "no" >&6; } 29325 fi 29326 29327 29328 test -n "$TOOLS_DIR_CXX" && break 29329 done 29330 29331 CXX=$TOOLS_DIR_CXX 29332 PATH="$PATH_save" 29333 fi 29334 29335 # AC_PATH_PROGS can't be run multiple times with the same variable, 29336 # so create a new name for this run. 29337 if test "x$CXX" = x; then 29338 for ac_prog in $SEARCH_LIST 29339 do 29340 # Extract the first word of "$ac_prog", so it can be a program name with args. 29341 set dummy $ac_prog; ac_word=$2 29342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29343 $as_echo_n "checking for $ac_word... " >&6; } 29344 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29345 $as_echo_n "(cached) " >&6 29346 else 29347 case $POTENTIAL_CXX in 29348 [\\/]* | ?:[\\/]*) 29349 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29350 ;; 29351 *) 29352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29353 for as_dir in $PATH 29354 do 29355 IFS=$as_save_IFS 29356 test -z "$as_dir" && as_dir=. 29357 for ac_exec_ext in '' $ac_executable_extensions; do 29358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29359 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29361 break 2 29362 fi 29363 done 29364 done 29365 IFS=$as_save_IFS 29366 29367 ;; 29368 esac 29369 fi 29370 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29371 if test -n "$POTENTIAL_CXX"; then 29372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29373 $as_echo "$POTENTIAL_CXX" >&6; } 29374 else 29375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29376 $as_echo "no" >&6; } 29377 fi 29378 29379 29380 test -n "$POTENTIAL_CXX" && break 29381 done 29382 29383 CXX=$POTENTIAL_CXX 29384 fi 29385 29386 if test "x$CXX" = x; then 29387 29388 # Print a helpful message on how to acquire the necessary build dependency. 29389 # devkit is the help tag: freetype, cups, pulse, alsa etc 29390 MISSING_DEPENDENCY=devkit 29391 29392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29393 cygwin_help $MISSING_DEPENDENCY 29394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29395 msys_help $MISSING_DEPENDENCY 29396 else 29397 PKGHANDLER_COMMAND= 29398 29399 case $PKGHANDLER in 29400 apt-get) 29401 apt_help $MISSING_DEPENDENCY ;; 29402 yum) 29403 yum_help $MISSING_DEPENDENCY ;; 29404 port) 29405 port_help $MISSING_DEPENDENCY ;; 29406 pkgutil) 29407 pkgutil_help $MISSING_DEPENDENCY ;; 29408 pkgadd) 29409 pkgadd_help $MISSING_DEPENDENCY ;; 29410 esac 29411 29412 if test "x$PKGHANDLER_COMMAND" != x; then 29413 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29414 fi 29415 fi 29416 29417 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 29418 fi 29419 fi 29420 29421 # Now we have a compiler binary in CXX. Make sure it's okay. 29422 29423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29424 29425 # First separate the path from the arguments. This will split at the first 29426 # space. 29427 complete="$CXX" 29428 path="${complete%% *}" 29429 tmp="$complete EOL" 29430 arguments="${tmp#* }" 29431 29432 # Input might be given as Windows format, start by converting to 29433 # unix format. 29434 new_path=`$CYGPATH -u "$path"` 29435 29436 # Now try to locate executable using which 29437 new_path=`$WHICH "$new_path" 2> /dev/null` 29438 # bat and cmd files are not always considered executable in cygwin causing which 29439 # to not find them 29440 if test "x$new_path" = x \ 29441 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29442 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29443 new_path=`$CYGPATH -u "$path"` 29444 fi 29445 if test "x$new_path" = x; then 29446 # Oops. Which didn't find the executable. 29447 # The splitting of arguments from the executable at a space might have been incorrect, 29448 # since paths with space are more likely in Windows. Give it another try with the whole 29449 # argument. 29450 path="$complete" 29451 arguments="EOL" 29452 new_path=`$CYGPATH -u "$path"` 29453 new_path=`$WHICH "$new_path" 2> /dev/null` 29454 # bat and cmd files are not always considered executable in cygwin causing which 29455 # to not find them 29456 if test "x$new_path" = x \ 29457 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29458 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29459 new_path=`$CYGPATH -u "$path"` 29460 fi 29461 if test "x$new_path" = x; then 29462 # It's still not found. Now this is an unrecoverable error. 29463 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29464 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29465 has_space=`$ECHO "$complete" | $GREP " "` 29466 if test "x$has_space" != x; then 29467 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29468 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29469 fi 29470 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29471 fi 29472 fi 29473 29474 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29475 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29476 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29477 # "foo.exe" is OK but "foo" is an error. 29478 # 29479 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29480 # It is also a way to make sure we got the proper file name for the real test later on. 29481 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29482 if test "x$test_shortpath" = x; then 29483 # Short path failed, file does not exist as specified. 29484 # Try adding .exe or .cmd 29485 if test -f "${new_path}.exe"; then 29486 input_to_shortpath="${new_path}.exe" 29487 elif test -f "${new_path}.cmd"; then 29488 input_to_shortpath="${new_path}.cmd" 29489 else 29490 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 29491 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 29492 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29493 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29494 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29495 fi 29496 else 29497 input_to_shortpath="$new_path" 29498 fi 29499 29500 # Call helper function which possibly converts this using DOS-style short mode. 29501 # If so, the updated path is stored in $new_path. 29502 new_path="$input_to_shortpath" 29503 29504 input_path="$input_to_shortpath" 29505 # Check if we need to convert this using DOS-style short mode. If the path 29506 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29507 # take no chances and rewrite it. 29508 # Note: m4 eats our [], so we need to use [ and ] instead. 29509 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29510 if test "x$has_forbidden_chars" != x; then 29511 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29512 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29513 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29514 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29515 # Going to short mode and back again did indeed matter. Since short mode is 29516 # case insensitive, let's make it lowercase to improve readability. 29517 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29518 # Now convert it back to Unix-stile (cygpath) 29519 input_path=`$CYGPATH -u "$shortmode_path"` 29520 new_path="$input_path" 29521 fi 29522 fi 29523 29524 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29525 if test "x$test_cygdrive_prefix" = x; then 29526 # As a simple fix, exclude /usr/bin since it's not a real path. 29527 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29528 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29529 # a path prefixed by /cygdrive for fixpath to work. 29530 new_path="$CYGWIN_ROOT_PATH$input_path" 29531 fi 29532 fi 29533 29534 # remove trailing .exe if any 29535 new_path="${new_path/%.exe/}" 29536 29537 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29538 29539 # First separate the path from the arguments. This will split at the first 29540 # space. 29541 complete="$CXX" 29542 path="${complete%% *}" 29543 tmp="$complete EOL" 29544 arguments="${tmp#* }" 29545 29546 # Input might be given as Windows format, start by converting to 29547 # unix format. 29548 new_path="$path" 29549 29550 windows_path="$new_path" 29551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29552 unix_path=`$CYGPATH -u "$windows_path"` 29553 new_path="$unix_path" 29554 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29555 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29556 new_path="$unix_path" 29557 fi 29558 29559 29560 # Now try to locate executable using which 29561 new_path=`$WHICH "$new_path" 2> /dev/null` 29562 29563 if test "x$new_path" = x; then 29564 # Oops. Which didn't find the executable. 29565 # The splitting of arguments from the executable at a space might have been incorrect, 29566 # since paths with space are more likely in Windows. Give it another try with the whole 29567 # argument. 29568 path="$complete" 29569 arguments="EOL" 29570 new_path="$path" 29571 29572 windows_path="$new_path" 29573 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29574 unix_path=`$CYGPATH -u "$windows_path"` 29575 new_path="$unix_path" 29576 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29577 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29578 new_path="$unix_path" 29579 fi 29580 29581 29582 new_path=`$WHICH "$new_path" 2> /dev/null` 29583 29584 if test "x$new_path" = x; then 29585 # It's still not found. Now this is an unrecoverable error. 29586 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29587 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29588 has_space=`$ECHO "$complete" | $GREP " "` 29589 if test "x$has_space" != x; then 29590 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29591 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29592 fi 29593 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29594 fi 29595 fi 29596 29597 # Now new_path has a complete unix path to the binary 29598 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29599 # Keep paths in /bin as-is, but remove trailing .exe if any 29600 new_path="${new_path/%.exe/}" 29601 # Do not save /bin paths to all_fixpath_prefixes! 29602 else 29603 # Not in mixed or Windows style, start by that. 29604 new_path=`cmd //c echo $new_path` 29605 29606 input_path="$new_path" 29607 # Check if we need to convert this using DOS-style short mode. If the path 29608 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29609 # take no chances and rewrite it. 29610 # Note: m4 eats our [], so we need to use [ and ] instead. 29611 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29612 if test "x$has_forbidden_chars" != x; then 29613 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29614 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29615 fi 29616 29617 # Output is in $new_path 29618 29619 windows_path="$new_path" 29620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29621 unix_path=`$CYGPATH -u "$windows_path"` 29622 new_path="$unix_path" 29623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29625 new_path="$unix_path" 29626 fi 29627 29628 # remove trailing .exe if any 29629 new_path="${new_path/%.exe/}" 29630 29631 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29632 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29633 fi 29634 29635 else 29636 # We're on a posix platform. Hooray! :) 29637 # First separate the path from the arguments. This will split at the first 29638 # space. 29639 complete="$CXX" 29640 path="${complete%% *}" 29641 tmp="$complete EOL" 29642 arguments="${tmp#* }" 29643 29644 # Cannot rely on the command "which" here since it doesn't always work. 29645 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29646 if test -z "$is_absolute_path"; then 29647 # Path to executable is not absolute. Find it. 29648 IFS_save="$IFS" 29649 IFS=: 29650 for p in $PATH; do 29651 if test -f "$p/$path" && test -x "$p/$path"; then 29652 new_path="$p/$path" 29653 break 29654 fi 29655 done 29656 IFS="$IFS_save" 29657 else 29658 # This is an absolute path, we can use it without further modifications. 29659 new_path="$path" 29660 fi 29661 29662 if test "x$new_path" = x; then 29663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29664 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29665 has_space=`$ECHO "$complete" | $GREP " "` 29666 if test "x$has_space" != x; then 29667 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29668 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29669 fi 29670 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29671 fi 29672 fi 29673 29674 # Now join together the path and the arguments once again 29675 if test "x$arguments" != xEOL; then 29676 new_complete="$new_path ${arguments% *}" 29677 else 29678 new_complete="$new_path" 29679 fi 29680 29681 if test "x$complete" != "x$new_complete"; then 29682 CXX="$new_complete" 29683 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 29684 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 29685 fi 29686 29687 TEST_COMPILER="$CXX" 29688 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 29689 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 29690 if test "x$OPENJDK_BUILD_OS" != xaix; then 29691 # FIXME: This test should not be needed anymore; we don't do that for any platform. 29692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 29693 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 29694 29695 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29696 # Follow a chain of symbolic links. Use readlink 29697 # where it exists, else fall back to horribly 29698 # complicated shell code. 29699 if test "x$READLINK_TESTED" != yes; then 29700 # On MacOSX there is a readlink tool with a different 29701 # purpose than the GNU readlink tool. Check the found readlink. 29702 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29703 if test "x$ISGNU" = x; then 29704 # A readlink that we do not know how to use. 29705 # Are there other non-GNU readlinks out there? 29706 READLINK_TESTED=yes 29707 READLINK= 29708 fi 29709 fi 29710 29711 if test "x$READLINK" != x; then 29712 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 29713 else 29714 # Save the current directory for restoring afterwards 29715 STARTDIR=$PWD 29716 COUNTER=0 29717 sym_link_dir=`$DIRNAME $TEST_COMPILER` 29718 sym_link_file=`$BASENAME $TEST_COMPILER` 29719 cd $sym_link_dir 29720 # Use -P flag to resolve symlinks in directories. 29721 cd `$THEPWDCMD -P` 29722 sym_link_dir=`$THEPWDCMD -P` 29723 # Resolve file symlinks 29724 while test $COUNTER -lt 20; do 29725 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29726 if test "x$ISLINK" == x; then 29727 # This is not a symbolic link! We are done! 29728 break 29729 fi 29730 # Again resolve directory symlinks since the target of the just found 29731 # link could be in a different directory 29732 cd `$DIRNAME $ISLINK` 29733 sym_link_dir=`$THEPWDCMD -P` 29734 sym_link_file=`$BASENAME $ISLINK` 29735 let COUNTER=COUNTER+1 29736 done 29737 cd $STARTDIR 29738 TEST_COMPILER=$sym_link_dir/$sym_link_file 29739 fi 29740 fi 29741 29742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 29743 $as_echo "$TEST_COMPILER" >&6; } 29744 fi 29745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 29746 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 29747 29748 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 29749 if test "x$COMPILER_BASENAME" = "xccache"; then 29750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 29751 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 29752 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 29753 # We want to control ccache invocation ourselves, so ignore this cc and try 29754 # searching again. 29755 29756 # Remove the path to the fake ccache cc from the PATH 29757 RETRY_COMPILER_SAVED_PATH="$PATH" 29758 COMPILER_DIRNAME=`$DIRNAME $CXX` 29759 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 29760 29761 # Try again looking for our compiler 29762 if test -n "$ac_tool_prefix"; then 29763 for ac_prog in $TOOLCHAIN_CXX_BINARY 29764 do 29765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29768 $as_echo_n "checking for $ac_word... " >&6; } 29769 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 29770 $as_echo_n "(cached) " >&6 29771 else 29772 if test -n "$PROPER_COMPILER_CXX"; then 29773 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 29774 else 29775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29776 for as_dir in $PATH 29777 do 29778 IFS=$as_save_IFS 29779 test -z "$as_dir" && as_dir=. 29780 for ac_exec_ext in '' $ac_executable_extensions; do 29781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29782 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 29783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29784 break 2 29785 fi 29786 done 29787 done 29788 IFS=$as_save_IFS 29789 29790 fi 29791 fi 29792 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 29793 if test -n "$PROPER_COMPILER_CXX"; then 29794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 29795 $as_echo "$PROPER_COMPILER_CXX" >&6; } 29796 else 29797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29798 $as_echo "no" >&6; } 29799 fi 29800 29801 29802 test -n "$PROPER_COMPILER_CXX" && break 29803 done 29804 fi 29805 if test -z "$PROPER_COMPILER_CXX"; then 29806 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 29807 for ac_prog in $TOOLCHAIN_CXX_BINARY 29808 do 29809 # Extract the first word of "$ac_prog", so it can be a program name with args. 29810 set dummy $ac_prog; ac_word=$2 29811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29812 $as_echo_n "checking for $ac_word... " >&6; } 29813 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 29814 $as_echo_n "(cached) " >&6 29815 else 29816 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29817 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 29818 else 29819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29820 for as_dir in $PATH 29821 do 29822 IFS=$as_save_IFS 29823 test -z "$as_dir" && as_dir=. 29824 for ac_exec_ext in '' $ac_executable_extensions; do 29825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29826 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 29827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29828 break 2 29829 fi 29830 done 29831 done 29832 IFS=$as_save_IFS 29833 29834 fi 29835 fi 29836 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 29837 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 29839 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 29840 else 29841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29842 $as_echo "no" >&6; } 29843 fi 29844 29845 29846 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 29847 done 29848 29849 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 29850 PROPER_COMPILER_CXX="" 29851 else 29852 case $cross_compiling:$ac_tool_warned in 29853 yes:) 29854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29856 ac_tool_warned=yes ;; 29857 esac 29858 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 29859 fi 29860 fi 29861 29862 29863 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29864 29865 # First separate the path from the arguments. This will split at the first 29866 # space. 29867 complete="$PROPER_COMPILER_CXX" 29868 path="${complete%% *}" 29869 tmp="$complete EOL" 29870 arguments="${tmp#* }" 29871 29872 # Input might be given as Windows format, start by converting to 29873 # unix format. 29874 new_path=`$CYGPATH -u "$path"` 29875 29876 # Now try to locate executable using which 29877 new_path=`$WHICH "$new_path" 2> /dev/null` 29878 # bat and cmd files are not always considered executable in cygwin causing which 29879 # to not find them 29880 if test "x$new_path" = x \ 29881 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29882 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29883 new_path=`$CYGPATH -u "$path"` 29884 fi 29885 if test "x$new_path" = x; then 29886 # Oops. Which didn't find the executable. 29887 # The splitting of arguments from the executable at a space might have been incorrect, 29888 # since paths with space are more likely in Windows. Give it another try with the whole 29889 # argument. 29890 path="$complete" 29891 arguments="EOL" 29892 new_path=`$CYGPATH -u "$path"` 29893 new_path=`$WHICH "$new_path" 2> /dev/null` 29894 # bat and cmd files are not always considered executable in cygwin causing which 29895 # to not find them 29896 if test "x$new_path" = x \ 29897 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29898 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29899 new_path=`$CYGPATH -u "$path"` 29900 fi 29901 if test "x$new_path" = x; then 29902 # It's still not found. Now this is an unrecoverable error. 29903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29904 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29905 has_space=`$ECHO "$complete" | $GREP " "` 29906 if test "x$has_space" != x; then 29907 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29908 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29909 fi 29910 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29911 fi 29912 fi 29913 29914 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29915 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29916 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29917 # "foo.exe" is OK but "foo" is an error. 29918 # 29919 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29920 # It is also a way to make sure we got the proper file name for the real test later on. 29921 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29922 if test "x$test_shortpath" = x; then 29923 # Short path failed, file does not exist as specified. 29924 # Try adding .exe or .cmd 29925 if test -f "${new_path}.exe"; then 29926 input_to_shortpath="${new_path}.exe" 29927 elif test -f "${new_path}.cmd"; then 29928 input_to_shortpath="${new_path}.cmd" 29929 else 29930 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 29931 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 29932 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29933 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29934 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29935 fi 29936 else 29937 input_to_shortpath="$new_path" 29938 fi 29939 29940 # Call helper function which possibly converts this using DOS-style short mode. 29941 # If so, the updated path is stored in $new_path. 29942 new_path="$input_to_shortpath" 29943 29944 input_path="$input_to_shortpath" 29945 # Check if we need to convert this using DOS-style short mode. If the path 29946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29947 # take no chances and rewrite it. 29948 # Note: m4 eats our [], so we need to use [ and ] instead. 29949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29950 if test "x$has_forbidden_chars" != x; then 29951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29952 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29953 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29954 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29955 # Going to short mode and back again did indeed matter. Since short mode is 29956 # case insensitive, let's make it lowercase to improve readability. 29957 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29958 # Now convert it back to Unix-stile (cygpath) 29959 input_path=`$CYGPATH -u "$shortmode_path"` 29960 new_path="$input_path" 29961 fi 29962 fi 29963 29964 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29965 if test "x$test_cygdrive_prefix" = x; then 29966 # As a simple fix, exclude /usr/bin since it's not a real path. 29967 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29968 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29969 # a path prefixed by /cygdrive for fixpath to work. 29970 new_path="$CYGWIN_ROOT_PATH$input_path" 29971 fi 29972 fi 29973 29974 # remove trailing .exe if any 29975 new_path="${new_path/%.exe/}" 29976 29977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29978 29979 # First separate the path from the arguments. This will split at the first 29980 # space. 29981 complete="$PROPER_COMPILER_CXX" 29982 path="${complete%% *}" 29983 tmp="$complete EOL" 29984 arguments="${tmp#* }" 29985 29986 # Input might be given as Windows format, start by converting to 29987 # unix format. 29988 new_path="$path" 29989 29990 windows_path="$new_path" 29991 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29992 unix_path=`$CYGPATH -u "$windows_path"` 29993 new_path="$unix_path" 29994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29995 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29996 new_path="$unix_path" 29997 fi 29998 29999 30000 # Now try to locate executable using which 30001 new_path=`$WHICH "$new_path" 2> /dev/null` 30002 30003 if test "x$new_path" = x; then 30004 # Oops. Which didn't find the executable. 30005 # The splitting of arguments from the executable at a space might have been incorrect, 30006 # since paths with space are more likely in Windows. Give it another try with the whole 30007 # argument. 30008 path="$complete" 30009 arguments="EOL" 30010 new_path="$path" 30011 30012 windows_path="$new_path" 30013 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30014 unix_path=`$CYGPATH -u "$windows_path"` 30015 new_path="$unix_path" 30016 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30017 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30018 new_path="$unix_path" 30019 fi 30020 30021 30022 new_path=`$WHICH "$new_path" 2> /dev/null` 30023 30024 if test "x$new_path" = x; then 30025 # It's still not found. Now this is an unrecoverable error. 30026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30027 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30028 has_space=`$ECHO "$complete" | $GREP " "` 30029 if test "x$has_space" != x; then 30030 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30031 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30032 fi 30033 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30034 fi 30035 fi 30036 30037 # Now new_path has a complete unix path to the binary 30038 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30039 # Keep paths in /bin as-is, but remove trailing .exe if any 30040 new_path="${new_path/%.exe/}" 30041 # Do not save /bin paths to all_fixpath_prefixes! 30042 else 30043 # Not in mixed or Windows style, start by that. 30044 new_path=`cmd //c echo $new_path` 30045 30046 input_path="$new_path" 30047 # Check if we need to convert this using DOS-style short mode. If the path 30048 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30049 # take no chances and rewrite it. 30050 # Note: m4 eats our [], so we need to use [ and ] instead. 30051 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30052 if test "x$has_forbidden_chars" != x; then 30053 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30054 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30055 fi 30056 30057 # Output is in $new_path 30058 30059 windows_path="$new_path" 30060 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30061 unix_path=`$CYGPATH -u "$windows_path"` 30062 new_path="$unix_path" 30063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30064 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30065 new_path="$unix_path" 30066 fi 30067 30068 # remove trailing .exe if any 30069 new_path="${new_path/%.exe/}" 30070 30071 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30072 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30073 fi 30074 30075 else 30076 # We're on a posix platform. Hooray! :) 30077 # First separate the path from the arguments. This will split at the first 30078 # space. 30079 complete="$PROPER_COMPILER_CXX" 30080 path="${complete%% *}" 30081 tmp="$complete EOL" 30082 arguments="${tmp#* }" 30083 30084 # Cannot rely on the command "which" here since it doesn't always work. 30085 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30086 if test -z "$is_absolute_path"; then 30087 # Path to executable is not absolute. Find it. 30088 IFS_save="$IFS" 30089 IFS=: 30090 for p in $PATH; do 30091 if test -f "$p/$path" && test -x "$p/$path"; then 30092 new_path="$p/$path" 30093 break 30094 fi 30095 done 30096 IFS="$IFS_save" 30097 else 30098 # This is an absolute path, we can use it without further modifications. 30099 new_path="$path" 30100 fi 30101 30102 if test "x$new_path" = x; then 30103 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30104 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30105 has_space=`$ECHO "$complete" | $GREP " "` 30106 if test "x$has_space" != x; then 30107 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30108 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30109 fi 30110 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30111 fi 30112 fi 30113 30114 # Now join together the path and the arguments once again 30115 if test "x$arguments" != xEOL; then 30116 new_complete="$new_path ${arguments% *}" 30117 else 30118 new_complete="$new_path" 30119 fi 30120 30121 if test "x$complete" != "x$new_complete"; then 30122 PROPER_COMPILER_CXX="$new_complete" 30123 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 30124 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 30125 fi 30126 30127 PATH="$RETRY_COMPILER_SAVED_PATH" 30128 30129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 30130 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 30131 30132 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30133 # Follow a chain of symbolic links. Use readlink 30134 # where it exists, else fall back to horribly 30135 # complicated shell code. 30136 if test "x$READLINK_TESTED" != yes; then 30137 # On MacOSX there is a readlink tool with a different 30138 # purpose than the GNU readlink tool. Check the found readlink. 30139 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30140 if test "x$ISGNU" = x; then 30141 # A readlink that we do not know how to use. 30142 # Are there other non-GNU readlinks out there? 30143 READLINK_TESTED=yes 30144 READLINK= 30145 fi 30146 fi 30147 30148 if test "x$READLINK" != x; then 30149 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 30150 else 30151 # Save the current directory for restoring afterwards 30152 STARTDIR=$PWD 30153 COUNTER=0 30154 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 30155 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 30156 cd $sym_link_dir 30157 # Use -P flag to resolve symlinks in directories. 30158 cd `$THEPWDCMD -P` 30159 sym_link_dir=`$THEPWDCMD -P` 30160 # Resolve file symlinks 30161 while test $COUNTER -lt 20; do 30162 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30163 if test "x$ISLINK" == x; then 30164 # This is not a symbolic link! We are done! 30165 break 30166 fi 30167 # Again resolve directory symlinks since the target of the just found 30168 # link could be in a different directory 30169 cd `$DIRNAME $ISLINK` 30170 sym_link_dir=`$THEPWDCMD -P` 30171 sym_link_file=`$BASENAME $ISLINK` 30172 let COUNTER=COUNTER+1 30173 done 30174 cd $STARTDIR 30175 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 30176 fi 30177 fi 30178 30179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30180 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30181 CXX="$PROPER_COMPILER_CXX" 30182 else 30183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 30184 $as_echo "no, keeping CXX" >&6; } 30185 fi 30186 30187 30188 COMPILER=$CXX 30189 COMPILER_NAME=$COMPILER_NAME 30190 30191 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30192 # cc -V output typically looks like 30193 # cc: Sun C 5.12 Linux_i386 2011/11/16 30194 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 30195 # Check that this is likely to be the Solaris Studio cc. 30196 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30197 if test $? -ne 0; then 30198 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30199 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 30200 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30201 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30202 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30203 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30204 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30205 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30206 fi 30207 # Remove usage instructions (if present), and 30208 # collapse compiler output into a single line 30209 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30210 $SED -e 's/ *[Uu]sage:.*//'` 30211 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30212 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30213 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30214 # xlc -qversion output typically looks like 30215 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30216 # Version: 11.01.0000.0015 30217 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30218 # Check that this is likely to be the IBM XL C compiler. 30219 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30220 if test $? -ne 0; then 30221 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30222 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 30223 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30224 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30225 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30226 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30227 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30228 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30229 fi 30230 # Collapse compiler output into a single line 30231 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30232 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30233 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30234 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30235 # There is no specific version flag, but all output starts with a version string. 30236 # First line typically looks something like: 30237 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30238 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30239 # Check that this is likely to be Microsoft CL.EXE. 30240 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30241 if test $? -ne 0; then 30242 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 30243 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30244 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30245 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30246 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30247 fi 30248 # Collapse compiler output into a single line 30249 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30250 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30251 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30252 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30253 # gcc --version output typically looks like 30254 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30255 # Copyright (C) 2013 Free Software Foundation, Inc. 30256 # This is free software; see the source for copying conditions. There is NO 30257 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30258 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30259 # Check that this is likely to be GCC. 30260 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30261 if test $? -ne 0; then 30262 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 30263 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30264 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30265 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30266 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30267 fi 30268 # Remove Copyright and legalese from version string, and 30269 # collapse into a single line 30270 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30271 $SED -e 's/ *Copyright .*//'` 30272 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30273 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 30274 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30275 # clang --version output typically looks like 30276 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 30277 # clang version 3.3 (tags/RELEASE_33/final) 30278 # or 30279 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 30280 # Target: x86_64-pc-linux-gnu 30281 # Thread model: posix 30282 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30283 # Check that this is likely to be clang 30284 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 30285 if test $? -ne 0; then 30286 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 30287 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30288 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30289 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30290 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30291 fi 30292 # Collapse compiler output into a single line 30293 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30294 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30295 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 30296 else 30297 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 30298 fi 30299 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 30300 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 30301 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 30302 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 30303 30304 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 30305 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 30306 30307 30308 # Now that we have resolved CXX ourself, let autoconf have its go at it 30309 ac_ext=cpp 30310 ac_cpp='$CXXCPP $CPPFLAGS' 30311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30314 if test -z "$CXX"; then 30315 if test -n "$CCC"; then 30316 CXX=$CCC 30317 else 30318 if test -n "$ac_tool_prefix"; then 30319 for ac_prog in $CXX 30320 do 30321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30324 $as_echo_n "checking for $ac_word... " >&6; } 30325 if ${ac_cv_prog_CXX+:} false; then : 30326 $as_echo_n "(cached) " >&6 30327 else 30328 if test -n "$CXX"; then 30329 ac_cv_prog_CXX="$CXX" # Let the user override the test. 30330 else 30331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30332 for as_dir in $PATH 30333 do 30334 IFS=$as_save_IFS 30335 test -z "$as_dir" && as_dir=. 30336 for ac_exec_ext in '' $ac_executable_extensions; do 30337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30338 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 30339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30340 break 2 30341 fi 30342 done 30343 done 30344 IFS=$as_save_IFS 30345 30346 fi 30347 fi 30348 CXX=$ac_cv_prog_CXX 30349 if test -n "$CXX"; then 30350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 30351 $as_echo "$CXX" >&6; } 30352 else 30353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30354 $as_echo "no" >&6; } 30355 fi 30356 30357 30358 test -n "$CXX" && break 30359 done 30360 fi 30361 if test -z "$CXX"; then 30362 ac_ct_CXX=$CXX 30363 for ac_prog in $CXX 30364 do 30365 # Extract the first word of "$ac_prog", so it can be a program name with args. 30366 set dummy $ac_prog; ac_word=$2 30367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30368 $as_echo_n "checking for $ac_word... " >&6; } 30369 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 30370 $as_echo_n "(cached) " >&6 30371 else 30372 if test -n "$ac_ct_CXX"; then 30373 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 30374 else 30375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30376 for as_dir in $PATH 30377 do 30378 IFS=$as_save_IFS 30379 test -z "$as_dir" && as_dir=. 30380 for ac_exec_ext in '' $ac_executable_extensions; do 30381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30382 ac_cv_prog_ac_ct_CXX="$ac_prog" 30383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30384 break 2 30385 fi 30386 done 30387 done 30388 IFS=$as_save_IFS 30389 30390 fi 30391 fi 30392 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 30393 if test -n "$ac_ct_CXX"; then 30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 30395 $as_echo "$ac_ct_CXX" >&6; } 30396 else 30397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30398 $as_echo "no" >&6; } 30399 fi 30400 30401 30402 test -n "$ac_ct_CXX" && break 30403 done 30404 30405 if test "x$ac_ct_CXX" = x; then 30406 CXX="g++" 30407 else 30408 case $cross_compiling:$ac_tool_warned in 30409 yes:) 30410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30412 ac_tool_warned=yes ;; 30413 esac 30414 CXX=$ac_ct_CXX 30415 fi 30416 fi 30417 30418 fi 30419 fi 30420 # Provide some information about the compiler. 30421 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 30422 set X $ac_compile 30423 ac_compiler=$2 30424 for ac_option in --version -v -V -qversion; do 30425 { { ac_try="$ac_compiler $ac_option >&5" 30426 case "(($ac_try" in 30427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30428 *) ac_try_echo=$ac_try;; 30429 esac 30430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30431 $as_echo "$ac_try_echo"; } >&5 30432 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30433 ac_status=$? 30434 if test -s conftest.err; then 30435 sed '10a\ 30436 ... rest of stderr output deleted ... 30437 10q' conftest.err >conftest.er1 30438 cat conftest.er1 >&5 30439 fi 30440 rm -f conftest.er1 conftest.err 30441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30442 test $ac_status = 0; } 30443 done 30444 30445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 30446 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 30447 if ${ac_cv_cxx_compiler_gnu+:} false; then : 30448 $as_echo_n "(cached) " >&6 30449 else 30450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30451 /* end confdefs.h. */ 30452 30453 int 30454 main () 30455 { 30456 #ifndef __GNUC__ 30457 choke me 30458 #endif 30459 30460 ; 30461 return 0; 30462 } 30463 _ACEOF 30464 if ac_fn_cxx_try_compile "$LINENO"; then : 30465 ac_compiler_gnu=yes 30466 else 30467 ac_compiler_gnu=no 30468 fi 30469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30470 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 30471 30472 fi 30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 30474 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 30475 if test $ac_compiler_gnu = yes; then 30476 GXX=yes 30477 else 30478 GXX= 30479 fi 30480 ac_test_CXXFLAGS=${CXXFLAGS+set} 30481 ac_save_CXXFLAGS=$CXXFLAGS 30482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 30483 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 30484 if ${ac_cv_prog_cxx_g+:} false; then : 30485 $as_echo_n "(cached) " >&6 30486 else 30487 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 30488 ac_cxx_werror_flag=yes 30489 ac_cv_prog_cxx_g=no 30490 CXXFLAGS="-g" 30491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30492 /* end confdefs.h. */ 30493 30494 int 30495 main () 30496 { 30497 30498 ; 30499 return 0; 30500 } 30501 _ACEOF 30502 if ac_fn_cxx_try_compile "$LINENO"; then : 30503 ac_cv_prog_cxx_g=yes 30504 else 30505 CXXFLAGS="" 30506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30507 /* end confdefs.h. */ 30508 30509 int 30510 main () 30511 { 30512 30513 ; 30514 return 0; 30515 } 30516 _ACEOF 30517 if ac_fn_cxx_try_compile "$LINENO"; then : 30518 30519 else 30520 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30521 CXXFLAGS="-g" 30522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30523 /* end confdefs.h. */ 30524 30525 int 30526 main () 30527 { 30528 30529 ; 30530 return 0; 30531 } 30532 _ACEOF 30533 if ac_fn_cxx_try_compile "$LINENO"; then : 30534 ac_cv_prog_cxx_g=yes 30535 fi 30536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30537 fi 30538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30539 fi 30540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30541 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30542 fi 30543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 30544 $as_echo "$ac_cv_prog_cxx_g" >&6; } 30545 if test "$ac_test_CXXFLAGS" = set; then 30546 CXXFLAGS=$ac_save_CXXFLAGS 30547 elif test $ac_cv_prog_cxx_g = yes; then 30548 if test "$GXX" = yes; then 30549 CXXFLAGS="-g -O2" 30550 else 30551 CXXFLAGS="-g" 30552 fi 30553 else 30554 if test "$GXX" = yes; then 30555 CXXFLAGS="-O2" 30556 else 30557 CXXFLAGS= 30558 fi 30559 fi 30560 ac_ext=cpp 30561 ac_cpp='$CXXCPP $CPPFLAGS' 30562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30565 30566 30567 # 30568 # Setup the preprocessor (CPP and CXXCPP) 30569 # 30570 ac_ext=c 30571 ac_cpp='$CPP $CPPFLAGS' 30572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30574 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 30576 $as_echo_n "checking how to run the C preprocessor... " >&6; } 30577 # On Suns, sometimes $CPP names a directory. 30578 if test -n "$CPP" && test -d "$CPP"; then 30579 CPP= 30580 fi 30581 if test -z "$CPP"; then 30582 if ${ac_cv_prog_CPP+:} false; then : 30583 $as_echo_n "(cached) " >&6 30584 else 30585 # Double quotes because CPP needs to be expanded 30586 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 30587 do 30588 ac_preproc_ok=false 30589 for ac_c_preproc_warn_flag in '' yes 30590 do 30591 # Use a header file that comes with gcc, so configuring glibc 30592 # with a fresh cross-compiler works. 30593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30594 # <limits.h> exists even on freestanding compilers. 30595 # On the NeXT, cc -E runs the code through the compiler's parser, 30596 # not just through cpp. "Syntax error" is here to catch this case. 30597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30598 /* end confdefs.h. */ 30599 #ifdef __STDC__ 30600 # include <limits.h> 30601 #else 30602 # include <assert.h> 30603 #endif 30604 Syntax error 30605 _ACEOF 30606 if ac_fn_c_try_cpp "$LINENO"; then : 30607 30608 else 30609 # Broken: fails on valid input. 30610 continue 30611 fi 30612 rm -f conftest.err conftest.i conftest.$ac_ext 30613 30614 # OK, works on sane cases. Now check whether nonexistent headers 30615 # can be detected and how. 30616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30617 /* end confdefs.h. */ 30618 #include <ac_nonexistent.h> 30619 _ACEOF 30620 if ac_fn_c_try_cpp "$LINENO"; then : 30621 # Broken: success on invalid input. 30622 continue 30623 else 30624 # Passes both tests. 30625 ac_preproc_ok=: 30626 break 30627 fi 30628 rm -f conftest.err conftest.i conftest.$ac_ext 30629 30630 done 30631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30632 rm -f conftest.i conftest.err conftest.$ac_ext 30633 if $ac_preproc_ok; then : 30634 break 30635 fi 30636 30637 done 30638 ac_cv_prog_CPP=$CPP 30639 30640 fi 30641 CPP=$ac_cv_prog_CPP 30642 else 30643 ac_cv_prog_CPP=$CPP 30644 fi 30645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 30646 $as_echo "$CPP" >&6; } 30647 ac_preproc_ok=false 30648 for ac_c_preproc_warn_flag in '' yes 30649 do 30650 # Use a header file that comes with gcc, so configuring glibc 30651 # with a fresh cross-compiler works. 30652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30653 # <limits.h> exists even on freestanding compilers. 30654 # On the NeXT, cc -E runs the code through the compiler's parser, 30655 # not just through cpp. "Syntax error" is here to catch this case. 30656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30657 /* end confdefs.h. */ 30658 #ifdef __STDC__ 30659 # include <limits.h> 30660 #else 30661 # include <assert.h> 30662 #endif 30663 Syntax error 30664 _ACEOF 30665 if ac_fn_c_try_cpp "$LINENO"; then : 30666 30667 else 30668 # Broken: fails on valid input. 30669 continue 30670 fi 30671 rm -f conftest.err conftest.i conftest.$ac_ext 30672 30673 # OK, works on sane cases. Now check whether nonexistent headers 30674 # can be detected and how. 30675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30676 /* end confdefs.h. */ 30677 #include <ac_nonexistent.h> 30678 _ACEOF 30679 if ac_fn_c_try_cpp "$LINENO"; then : 30680 # Broken: success on invalid input. 30681 continue 30682 else 30683 # Passes both tests. 30684 ac_preproc_ok=: 30685 break 30686 fi 30687 rm -f conftest.err conftest.i conftest.$ac_ext 30688 30689 done 30690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30691 rm -f conftest.i conftest.err conftest.$ac_ext 30692 if $ac_preproc_ok; then : 30693 30694 else 30695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30697 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 30698 See \`config.log' for more details" "$LINENO" 5; } 30699 fi 30700 30701 ac_ext=cpp 30702 ac_cpp='$CXXCPP $CPPFLAGS' 30703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30706 30707 30708 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30709 30710 # First separate the path from the arguments. This will split at the first 30711 # space. 30712 complete="$CPP" 30713 path="${complete%% *}" 30714 tmp="$complete EOL" 30715 arguments="${tmp#* }" 30716 30717 # Input might be given as Windows format, start by converting to 30718 # unix format. 30719 new_path=`$CYGPATH -u "$path"` 30720 30721 # Now try to locate executable using which 30722 new_path=`$WHICH "$new_path" 2> /dev/null` 30723 # bat and cmd files are not always considered executable in cygwin causing which 30724 # to not find them 30725 if test "x$new_path" = x \ 30726 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30727 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30728 new_path=`$CYGPATH -u "$path"` 30729 fi 30730 if test "x$new_path" = x; then 30731 # Oops. Which didn't find the executable. 30732 # The splitting of arguments from the executable at a space might have been incorrect, 30733 # since paths with space are more likely in Windows. Give it another try with the whole 30734 # argument. 30735 path="$complete" 30736 arguments="EOL" 30737 new_path=`$CYGPATH -u "$path"` 30738 new_path=`$WHICH "$new_path" 2> /dev/null` 30739 # bat and cmd files are not always considered executable in cygwin causing which 30740 # to not find them 30741 if test "x$new_path" = x \ 30742 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30743 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30744 new_path=`$CYGPATH -u "$path"` 30745 fi 30746 if test "x$new_path" = x; then 30747 # It's still not found. Now this is an unrecoverable error. 30748 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30749 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30750 has_space=`$ECHO "$complete" | $GREP " "` 30751 if test "x$has_space" != x; then 30752 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30753 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30754 fi 30755 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30756 fi 30757 fi 30758 30759 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30760 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30761 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30762 # "foo.exe" is OK but "foo" is an error. 30763 # 30764 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30765 # It is also a way to make sure we got the proper file name for the real test later on. 30766 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30767 if test "x$test_shortpath" = x; then 30768 # Short path failed, file does not exist as specified. 30769 # Try adding .exe or .cmd 30770 if test -f "${new_path}.exe"; then 30771 input_to_shortpath="${new_path}.exe" 30772 elif test -f "${new_path}.cmd"; then 30773 input_to_shortpath="${new_path}.cmd" 30774 else 30775 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 30776 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 30777 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30778 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30779 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30780 fi 30781 else 30782 input_to_shortpath="$new_path" 30783 fi 30784 30785 # Call helper function which possibly converts this using DOS-style short mode. 30786 # If so, the updated path is stored in $new_path. 30787 new_path="$input_to_shortpath" 30788 30789 input_path="$input_to_shortpath" 30790 # Check if we need to convert this using DOS-style short mode. If the path 30791 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30792 # take no chances and rewrite it. 30793 # Note: m4 eats our [], so we need to use [ and ] instead. 30794 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30795 if test "x$has_forbidden_chars" != x; then 30796 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30797 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30798 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30799 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30800 # Going to short mode and back again did indeed matter. Since short mode is 30801 # case insensitive, let's make it lowercase to improve readability. 30802 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30803 # Now convert it back to Unix-stile (cygpath) 30804 input_path=`$CYGPATH -u "$shortmode_path"` 30805 new_path="$input_path" 30806 fi 30807 fi 30808 30809 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30810 if test "x$test_cygdrive_prefix" = x; then 30811 # As a simple fix, exclude /usr/bin since it's not a real path. 30812 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30813 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30814 # a path prefixed by /cygdrive for fixpath to work. 30815 new_path="$CYGWIN_ROOT_PATH$input_path" 30816 fi 30817 fi 30818 30819 # remove trailing .exe if any 30820 new_path="${new_path/%.exe/}" 30821 30822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30823 30824 # First separate the path from the arguments. This will split at the first 30825 # space. 30826 complete="$CPP" 30827 path="${complete%% *}" 30828 tmp="$complete EOL" 30829 arguments="${tmp#* }" 30830 30831 # Input might be given as Windows format, start by converting to 30832 # unix format. 30833 new_path="$path" 30834 30835 windows_path="$new_path" 30836 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30837 unix_path=`$CYGPATH -u "$windows_path"` 30838 new_path="$unix_path" 30839 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30840 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30841 new_path="$unix_path" 30842 fi 30843 30844 30845 # Now try to locate executable using which 30846 new_path=`$WHICH "$new_path" 2> /dev/null` 30847 30848 if test "x$new_path" = x; then 30849 # Oops. Which didn't find the executable. 30850 # The splitting of arguments from the executable at a space might have been incorrect, 30851 # since paths with space are more likely in Windows. Give it another try with the whole 30852 # argument. 30853 path="$complete" 30854 arguments="EOL" 30855 new_path="$path" 30856 30857 windows_path="$new_path" 30858 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30859 unix_path=`$CYGPATH -u "$windows_path"` 30860 new_path="$unix_path" 30861 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30862 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30863 new_path="$unix_path" 30864 fi 30865 30866 30867 new_path=`$WHICH "$new_path" 2> /dev/null` 30868 30869 if test "x$new_path" = x; then 30870 # It's still not found. Now this is an unrecoverable error. 30871 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30872 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30873 has_space=`$ECHO "$complete" | $GREP " "` 30874 if test "x$has_space" != x; then 30875 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30876 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30877 fi 30878 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30879 fi 30880 fi 30881 30882 # Now new_path has a complete unix path to the binary 30883 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30884 # Keep paths in /bin as-is, but remove trailing .exe if any 30885 new_path="${new_path/%.exe/}" 30886 # Do not save /bin paths to all_fixpath_prefixes! 30887 else 30888 # Not in mixed or Windows style, start by that. 30889 new_path=`cmd //c echo $new_path` 30890 30891 input_path="$new_path" 30892 # Check if we need to convert this using DOS-style short mode. If the path 30893 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30894 # take no chances and rewrite it. 30895 # Note: m4 eats our [], so we need to use [ and ] instead. 30896 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30897 if test "x$has_forbidden_chars" != x; then 30898 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30899 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30900 fi 30901 30902 # Output is in $new_path 30903 30904 windows_path="$new_path" 30905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30906 unix_path=`$CYGPATH -u "$windows_path"` 30907 new_path="$unix_path" 30908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30910 new_path="$unix_path" 30911 fi 30912 30913 # remove trailing .exe if any 30914 new_path="${new_path/%.exe/}" 30915 30916 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30917 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30918 fi 30919 30920 else 30921 # We're on a posix platform. Hooray! :) 30922 # First separate the path from the arguments. This will split at the first 30923 # space. 30924 complete="$CPP" 30925 path="${complete%% *}" 30926 tmp="$complete EOL" 30927 arguments="${tmp#* }" 30928 30929 # Cannot rely on the command "which" here since it doesn't always work. 30930 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30931 if test -z "$is_absolute_path"; then 30932 # Path to executable is not absolute. Find it. 30933 IFS_save="$IFS" 30934 IFS=: 30935 for p in $PATH; do 30936 if test -f "$p/$path" && test -x "$p/$path"; then 30937 new_path="$p/$path" 30938 break 30939 fi 30940 done 30941 IFS="$IFS_save" 30942 else 30943 # This is an absolute path, we can use it without further modifications. 30944 new_path="$path" 30945 fi 30946 30947 if test "x$new_path" = x; then 30948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30949 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30950 has_space=`$ECHO "$complete" | $GREP " "` 30951 if test "x$has_space" != x; then 30952 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30953 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30954 fi 30955 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30956 fi 30957 fi 30958 30959 # Now join together the path and the arguments once again 30960 if test "x$arguments" != xEOL; then 30961 new_complete="$new_path ${arguments% *}" 30962 else 30963 new_complete="$new_path" 30964 fi 30965 30966 if test "x$complete" != "x$new_complete"; then 30967 CPP="$new_complete" 30968 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 30969 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 30970 fi 30971 30972 ac_ext=cpp 30973 ac_cpp='$CXXCPP $CPPFLAGS' 30974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 30978 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 30979 if test -z "$CXXCPP"; then 30980 if ${ac_cv_prog_CXXCPP+:} false; then : 30981 $as_echo_n "(cached) " >&6 30982 else 30983 # Double quotes because CXXCPP needs to be expanded 30984 for CXXCPP in "$CXX -E" "/lib/cpp" 30985 do 30986 ac_preproc_ok=false 30987 for ac_cxx_preproc_warn_flag in '' yes 30988 do 30989 # Use a header file that comes with gcc, so configuring glibc 30990 # with a fresh cross-compiler works. 30991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30992 # <limits.h> exists even on freestanding compilers. 30993 # On the NeXT, cc -E runs the code through the compiler's parser, 30994 # not just through cpp. "Syntax error" is here to catch this case. 30995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30996 /* end confdefs.h. */ 30997 #ifdef __STDC__ 30998 # include <limits.h> 30999 #else 31000 # include <assert.h> 31001 #endif 31002 Syntax error 31003 _ACEOF 31004 if ac_fn_cxx_try_cpp "$LINENO"; then : 31005 31006 else 31007 # Broken: fails on valid input. 31008 continue 31009 fi 31010 rm -f conftest.err conftest.i conftest.$ac_ext 31011 31012 # OK, works on sane cases. Now check whether nonexistent headers 31013 # can be detected and how. 31014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31015 /* end confdefs.h. */ 31016 #include <ac_nonexistent.h> 31017 _ACEOF 31018 if ac_fn_cxx_try_cpp "$LINENO"; then : 31019 # Broken: success on invalid input. 31020 continue 31021 else 31022 # Passes both tests. 31023 ac_preproc_ok=: 31024 break 31025 fi 31026 rm -f conftest.err conftest.i conftest.$ac_ext 31027 31028 done 31029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31030 rm -f conftest.i conftest.err conftest.$ac_ext 31031 if $ac_preproc_ok; then : 31032 break 31033 fi 31034 31035 done 31036 ac_cv_prog_CXXCPP=$CXXCPP 31037 31038 fi 31039 CXXCPP=$ac_cv_prog_CXXCPP 31040 else 31041 ac_cv_prog_CXXCPP=$CXXCPP 31042 fi 31043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 31044 $as_echo "$CXXCPP" >&6; } 31045 ac_preproc_ok=false 31046 for ac_cxx_preproc_warn_flag in '' yes 31047 do 31048 # Use a header file that comes with gcc, so configuring glibc 31049 # with a fresh cross-compiler works. 31050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31051 # <limits.h> exists even on freestanding compilers. 31052 # On the NeXT, cc -E runs the code through the compiler's parser, 31053 # not just through cpp. "Syntax error" is here to catch this case. 31054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31055 /* end confdefs.h. */ 31056 #ifdef __STDC__ 31057 # include <limits.h> 31058 #else 31059 # include <assert.h> 31060 #endif 31061 Syntax error 31062 _ACEOF 31063 if ac_fn_cxx_try_cpp "$LINENO"; then : 31064 31065 else 31066 # Broken: fails on valid input. 31067 continue 31068 fi 31069 rm -f conftest.err conftest.i conftest.$ac_ext 31070 31071 # OK, works on sane cases. Now check whether nonexistent headers 31072 # can be detected and how. 31073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31074 /* end confdefs.h. */ 31075 #include <ac_nonexistent.h> 31076 _ACEOF 31077 if ac_fn_cxx_try_cpp "$LINENO"; then : 31078 # Broken: success on invalid input. 31079 continue 31080 else 31081 # Passes both tests. 31082 ac_preproc_ok=: 31083 break 31084 fi 31085 rm -f conftest.err conftest.i conftest.$ac_ext 31086 31087 done 31088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31089 rm -f conftest.i conftest.err conftest.$ac_ext 31090 if $ac_preproc_ok; then : 31091 31092 else 31093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31095 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 31096 See \`config.log' for more details" "$LINENO" 5; } 31097 fi 31098 31099 ac_ext=cpp 31100 ac_cpp='$CXXCPP $CPPFLAGS' 31101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31104 31105 31106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31107 31108 # First separate the path from the arguments. This will split at the first 31109 # space. 31110 complete="$CXXCPP" 31111 path="${complete%% *}" 31112 tmp="$complete EOL" 31113 arguments="${tmp#* }" 31114 31115 # Input might be given as Windows format, start by converting to 31116 # unix format. 31117 new_path=`$CYGPATH -u "$path"` 31118 31119 # Now try to locate executable using which 31120 new_path=`$WHICH "$new_path" 2> /dev/null` 31121 # bat and cmd files are not always considered executable in cygwin causing which 31122 # to not find them 31123 if test "x$new_path" = x \ 31124 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31125 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31126 new_path=`$CYGPATH -u "$path"` 31127 fi 31128 if test "x$new_path" = x; then 31129 # Oops. Which didn't find the executable. 31130 # The splitting of arguments from the executable at a space might have been incorrect, 31131 # since paths with space are more likely in Windows. Give it another try with the whole 31132 # argument. 31133 path="$complete" 31134 arguments="EOL" 31135 new_path=`$CYGPATH -u "$path"` 31136 new_path=`$WHICH "$new_path" 2> /dev/null` 31137 # bat and cmd files are not always considered executable in cygwin causing which 31138 # to not find them 31139 if test "x$new_path" = x \ 31140 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31141 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31142 new_path=`$CYGPATH -u "$path"` 31143 fi 31144 if test "x$new_path" = x; then 31145 # It's still not found. Now this is an unrecoverable error. 31146 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31147 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31148 has_space=`$ECHO "$complete" | $GREP " "` 31149 if test "x$has_space" != x; then 31150 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31151 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31152 fi 31153 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31154 fi 31155 fi 31156 31157 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31158 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31159 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31160 # "foo.exe" is OK but "foo" is an error. 31161 # 31162 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31163 # It is also a way to make sure we got the proper file name for the real test later on. 31164 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31165 if test "x$test_shortpath" = x; then 31166 # Short path failed, file does not exist as specified. 31167 # Try adding .exe or .cmd 31168 if test -f "${new_path}.exe"; then 31169 input_to_shortpath="${new_path}.exe" 31170 elif test -f "${new_path}.cmd"; then 31171 input_to_shortpath="${new_path}.cmd" 31172 else 31173 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 31174 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 31175 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31176 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31177 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31178 fi 31179 else 31180 input_to_shortpath="$new_path" 31181 fi 31182 31183 # Call helper function which possibly converts this using DOS-style short mode. 31184 # If so, the updated path is stored in $new_path. 31185 new_path="$input_to_shortpath" 31186 31187 input_path="$input_to_shortpath" 31188 # Check if we need to convert this using DOS-style short mode. If the path 31189 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31190 # take no chances and rewrite it. 31191 # Note: m4 eats our [], so we need to use [ and ] instead. 31192 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31193 if test "x$has_forbidden_chars" != x; then 31194 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31195 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31196 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31197 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31198 # Going to short mode and back again did indeed matter. Since short mode is 31199 # case insensitive, let's make it lowercase to improve readability. 31200 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31201 # Now convert it back to Unix-stile (cygpath) 31202 input_path=`$CYGPATH -u "$shortmode_path"` 31203 new_path="$input_path" 31204 fi 31205 fi 31206 31207 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31208 if test "x$test_cygdrive_prefix" = x; then 31209 # As a simple fix, exclude /usr/bin since it's not a real path. 31210 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31211 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31212 # a path prefixed by /cygdrive for fixpath to work. 31213 new_path="$CYGWIN_ROOT_PATH$input_path" 31214 fi 31215 fi 31216 31217 # remove trailing .exe if any 31218 new_path="${new_path/%.exe/}" 31219 31220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31221 31222 # First separate the path from the arguments. This will split at the first 31223 # space. 31224 complete="$CXXCPP" 31225 path="${complete%% *}" 31226 tmp="$complete EOL" 31227 arguments="${tmp#* }" 31228 31229 # Input might be given as Windows format, start by converting to 31230 # unix format. 31231 new_path="$path" 31232 31233 windows_path="$new_path" 31234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31235 unix_path=`$CYGPATH -u "$windows_path"` 31236 new_path="$unix_path" 31237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31239 new_path="$unix_path" 31240 fi 31241 31242 31243 # Now try to locate executable using which 31244 new_path=`$WHICH "$new_path" 2> /dev/null` 31245 31246 if test "x$new_path" = x; then 31247 # Oops. Which didn't find the executable. 31248 # The splitting of arguments from the executable at a space might have been incorrect, 31249 # since paths with space are more likely in Windows. Give it another try with the whole 31250 # argument. 31251 path="$complete" 31252 arguments="EOL" 31253 new_path="$path" 31254 31255 windows_path="$new_path" 31256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31257 unix_path=`$CYGPATH -u "$windows_path"` 31258 new_path="$unix_path" 31259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31261 new_path="$unix_path" 31262 fi 31263 31264 31265 new_path=`$WHICH "$new_path" 2> /dev/null` 31266 31267 if test "x$new_path" = x; then 31268 # It's still not found. Now this is an unrecoverable error. 31269 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31270 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31271 has_space=`$ECHO "$complete" | $GREP " "` 31272 if test "x$has_space" != x; then 31273 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31274 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31275 fi 31276 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31277 fi 31278 fi 31279 31280 # Now new_path has a complete unix path to the binary 31281 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31282 # Keep paths in /bin as-is, but remove trailing .exe if any 31283 new_path="${new_path/%.exe/}" 31284 # Do not save /bin paths to all_fixpath_prefixes! 31285 else 31286 # Not in mixed or Windows style, start by that. 31287 new_path=`cmd //c echo $new_path` 31288 31289 input_path="$new_path" 31290 # Check if we need to convert this using DOS-style short mode. If the path 31291 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31292 # take no chances and rewrite it. 31293 # Note: m4 eats our [], so we need to use [ and ] instead. 31294 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31295 if test "x$has_forbidden_chars" != x; then 31296 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31297 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31298 fi 31299 31300 # Output is in $new_path 31301 31302 windows_path="$new_path" 31303 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31304 unix_path=`$CYGPATH -u "$windows_path"` 31305 new_path="$unix_path" 31306 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31307 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31308 new_path="$unix_path" 31309 fi 31310 31311 # remove trailing .exe if any 31312 new_path="${new_path/%.exe/}" 31313 31314 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31315 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31316 fi 31317 31318 else 31319 # We're on a posix platform. Hooray! :) 31320 # First separate the path from the arguments. This will split at the first 31321 # space. 31322 complete="$CXXCPP" 31323 path="${complete%% *}" 31324 tmp="$complete EOL" 31325 arguments="${tmp#* }" 31326 31327 # Cannot rely on the command "which" here since it doesn't always work. 31328 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31329 if test -z "$is_absolute_path"; then 31330 # Path to executable is not absolute. Find it. 31331 IFS_save="$IFS" 31332 IFS=: 31333 for p in $PATH; do 31334 if test -f "$p/$path" && test -x "$p/$path"; then 31335 new_path="$p/$path" 31336 break 31337 fi 31338 done 31339 IFS="$IFS_save" 31340 else 31341 # This is an absolute path, we can use it without further modifications. 31342 new_path="$path" 31343 fi 31344 31345 if test "x$new_path" = x; then 31346 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31347 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31348 has_space=`$ECHO "$complete" | $GREP " "` 31349 if test "x$has_space" != x; then 31350 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31351 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31352 fi 31353 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31354 fi 31355 fi 31356 31357 # Now join together the path and the arguments once again 31358 if test "x$arguments" != xEOL; then 31359 new_complete="$new_path ${arguments% *}" 31360 else 31361 new_complete="$new_path" 31362 fi 31363 31364 if test "x$complete" != "x$new_complete"; then 31365 CXXCPP="$new_complete" 31366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 31367 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 31368 fi 31369 31370 31371 # 31372 # Setup the linker (LD) 31373 # 31374 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31375 # In the Microsoft toolchain we have a separate LD command "link". 31376 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 31377 # a cygwin program for something completely different. 31378 # Extract the first word of "link", so it can be a program name with args. 31379 set dummy link; ac_word=$2 31380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31381 $as_echo_n "checking for $ac_word... " >&6; } 31382 if ${ac_cv_prog_LD+:} false; then : 31383 $as_echo_n "(cached) " >&6 31384 else 31385 if test -n "$LD"; then 31386 ac_cv_prog_LD="$LD" # Let the user override the test. 31387 else 31388 ac_prog_rejected=no 31389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31390 for as_dir in $PATH 31391 do 31392 IFS=$as_save_IFS 31393 test -z "$as_dir" && as_dir=. 31394 for ac_exec_ext in '' $ac_executable_extensions; do 31395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31396 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 31397 ac_prog_rejected=yes 31398 continue 31399 fi 31400 ac_cv_prog_LD="link" 31401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31402 break 2 31403 fi 31404 done 31405 done 31406 IFS=$as_save_IFS 31407 31408 if test $ac_prog_rejected = yes; then 31409 # We found a bogon in the path, so make sure we never use it. 31410 set dummy $ac_cv_prog_LD 31411 shift 31412 if test $# != 0; then 31413 # We chose a different compiler from the bogus one. 31414 # However, it has the same basename, so the bogon will be chosen 31415 # first if we set LD to just the basename; use the full file name. 31416 shift 31417 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 31418 fi 31419 fi 31420 fi 31421 fi 31422 LD=$ac_cv_prog_LD 31423 if test -n "$LD"; then 31424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 31425 $as_echo "$LD" >&6; } 31426 else 31427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31428 $as_echo "no" >&6; } 31429 fi 31430 31431 31432 31433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31434 31435 # First separate the path from the arguments. This will split at the first 31436 # space. 31437 complete="$LD" 31438 path="${complete%% *}" 31439 tmp="$complete EOL" 31440 arguments="${tmp#* }" 31441 31442 # Input might be given as Windows format, start by converting to 31443 # unix format. 31444 new_path=`$CYGPATH -u "$path"` 31445 31446 # Now try to locate executable using which 31447 new_path=`$WHICH "$new_path" 2> /dev/null` 31448 # bat and cmd files are not always considered executable in cygwin causing which 31449 # to not find them 31450 if test "x$new_path" = x \ 31451 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31452 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31453 new_path=`$CYGPATH -u "$path"` 31454 fi 31455 if test "x$new_path" = x; then 31456 # Oops. Which didn't find the executable. 31457 # The splitting of arguments from the executable at a space might have been incorrect, 31458 # since paths with space are more likely in Windows. Give it another try with the whole 31459 # argument. 31460 path="$complete" 31461 arguments="EOL" 31462 new_path=`$CYGPATH -u "$path"` 31463 new_path=`$WHICH "$new_path" 2> /dev/null` 31464 # bat and cmd files are not always considered executable in cygwin causing which 31465 # to not find them 31466 if test "x$new_path" = x \ 31467 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31468 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31469 new_path=`$CYGPATH -u "$path"` 31470 fi 31471 if test "x$new_path" = x; then 31472 # It's still not found. Now this is an unrecoverable error. 31473 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31474 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31475 has_space=`$ECHO "$complete" | $GREP " "` 31476 if test "x$has_space" != x; then 31477 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31478 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31479 fi 31480 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31481 fi 31482 fi 31483 31484 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31485 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31486 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31487 # "foo.exe" is OK but "foo" is an error. 31488 # 31489 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31490 # It is also a way to make sure we got the proper file name for the real test later on. 31491 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31492 if test "x$test_shortpath" = x; then 31493 # Short path failed, file does not exist as specified. 31494 # Try adding .exe or .cmd 31495 if test -f "${new_path}.exe"; then 31496 input_to_shortpath="${new_path}.exe" 31497 elif test -f "${new_path}.cmd"; then 31498 input_to_shortpath="${new_path}.cmd" 31499 else 31500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 31501 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 31502 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31503 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31504 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31505 fi 31506 else 31507 input_to_shortpath="$new_path" 31508 fi 31509 31510 # Call helper function which possibly converts this using DOS-style short mode. 31511 # If so, the updated path is stored in $new_path. 31512 new_path="$input_to_shortpath" 31513 31514 input_path="$input_to_shortpath" 31515 # Check if we need to convert this using DOS-style short mode. If the path 31516 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31517 # take no chances and rewrite it. 31518 # Note: m4 eats our [], so we need to use [ and ] instead. 31519 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31520 if test "x$has_forbidden_chars" != x; then 31521 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31522 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31523 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31524 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31525 # Going to short mode and back again did indeed matter. Since short mode is 31526 # case insensitive, let's make it lowercase to improve readability. 31527 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31528 # Now convert it back to Unix-stile (cygpath) 31529 input_path=`$CYGPATH -u "$shortmode_path"` 31530 new_path="$input_path" 31531 fi 31532 fi 31533 31534 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31535 if test "x$test_cygdrive_prefix" = x; then 31536 # As a simple fix, exclude /usr/bin since it's not a real path. 31537 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31538 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31539 # a path prefixed by /cygdrive for fixpath to work. 31540 new_path="$CYGWIN_ROOT_PATH$input_path" 31541 fi 31542 fi 31543 31544 # remove trailing .exe if any 31545 new_path="${new_path/%.exe/}" 31546 31547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31548 31549 # First separate the path from the arguments. This will split at the first 31550 # space. 31551 complete="$LD" 31552 path="${complete%% *}" 31553 tmp="$complete EOL" 31554 arguments="${tmp#* }" 31555 31556 # Input might be given as Windows format, start by converting to 31557 # unix format. 31558 new_path="$path" 31559 31560 windows_path="$new_path" 31561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31562 unix_path=`$CYGPATH -u "$windows_path"` 31563 new_path="$unix_path" 31564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31565 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31566 new_path="$unix_path" 31567 fi 31568 31569 31570 # Now try to locate executable using which 31571 new_path=`$WHICH "$new_path" 2> /dev/null` 31572 31573 if test "x$new_path" = x; then 31574 # Oops. Which didn't find the executable. 31575 # The splitting of arguments from the executable at a space might have been incorrect, 31576 # since paths with space are more likely in Windows. Give it another try with the whole 31577 # argument. 31578 path="$complete" 31579 arguments="EOL" 31580 new_path="$path" 31581 31582 windows_path="$new_path" 31583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31584 unix_path=`$CYGPATH -u "$windows_path"` 31585 new_path="$unix_path" 31586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31587 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31588 new_path="$unix_path" 31589 fi 31590 31591 31592 new_path=`$WHICH "$new_path" 2> /dev/null` 31593 31594 if test "x$new_path" = x; then 31595 # It's still not found. Now this is an unrecoverable error. 31596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31597 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31598 has_space=`$ECHO "$complete" | $GREP " "` 31599 if test "x$has_space" != x; then 31600 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31601 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31602 fi 31603 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31604 fi 31605 fi 31606 31607 # Now new_path has a complete unix path to the binary 31608 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31609 # Keep paths in /bin as-is, but remove trailing .exe if any 31610 new_path="${new_path/%.exe/}" 31611 # Do not save /bin paths to all_fixpath_prefixes! 31612 else 31613 # Not in mixed or Windows style, start by that. 31614 new_path=`cmd //c echo $new_path` 31615 31616 input_path="$new_path" 31617 # Check if we need to convert this using DOS-style short mode. If the path 31618 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31619 # take no chances and rewrite it. 31620 # Note: m4 eats our [], so we need to use [ and ] instead. 31621 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31622 if test "x$has_forbidden_chars" != x; then 31623 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31624 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31625 fi 31626 31627 # Output is in $new_path 31628 31629 windows_path="$new_path" 31630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31631 unix_path=`$CYGPATH -u "$windows_path"` 31632 new_path="$unix_path" 31633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31634 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31635 new_path="$unix_path" 31636 fi 31637 31638 # remove trailing .exe if any 31639 new_path="${new_path/%.exe/}" 31640 31641 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31642 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31643 fi 31644 31645 else 31646 # We're on a posix platform. Hooray! :) 31647 # First separate the path from the arguments. This will split at the first 31648 # space. 31649 complete="$LD" 31650 path="${complete%% *}" 31651 tmp="$complete EOL" 31652 arguments="${tmp#* }" 31653 31654 # Cannot rely on the command "which" here since it doesn't always work. 31655 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31656 if test -z "$is_absolute_path"; then 31657 # Path to executable is not absolute. Find it. 31658 IFS_save="$IFS" 31659 IFS=: 31660 for p in $PATH; do 31661 if test -f "$p/$path" && test -x "$p/$path"; then 31662 new_path="$p/$path" 31663 break 31664 fi 31665 done 31666 IFS="$IFS_save" 31667 else 31668 # This is an absolute path, we can use it without further modifications. 31669 new_path="$path" 31670 fi 31671 31672 if test "x$new_path" = x; then 31673 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31674 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31675 has_space=`$ECHO "$complete" | $GREP " "` 31676 if test "x$has_space" != x; then 31677 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31678 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31679 fi 31680 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31681 fi 31682 fi 31683 31684 # Now join together the path and the arguments once again 31685 if test "x$arguments" != xEOL; then 31686 new_complete="$new_path ${arguments% *}" 31687 else 31688 new_complete="$new_path" 31689 fi 31690 31691 if test "x$complete" != "x$new_complete"; then 31692 LD="$new_complete" 31693 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 31694 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 31695 fi 31696 31697 # Verify that we indeed succeeded with this trick. 31698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 31699 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 31700 "$LD" --version > /dev/null 31701 if test $? -eq 0 ; then 31702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31703 $as_echo "no" >&6; } 31704 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 31705 else 31706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31707 $as_echo "yes" >&6; } 31708 fi 31709 LDCXX="$LD" 31710 else 31711 # All other toolchains use the compiler to link. 31712 LD="$CC" 31713 LDCXX="$CXX" 31714 fi 31715 31716 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 31717 31718 31719 # 31720 # Setup the assembler (AS) 31721 # 31722 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31723 # FIXME: should this really be solaris, or solstudio? 31724 31725 31726 # Publish this variable in the help. 31727 31728 31729 if test "x$AS" = x; then 31730 # The variable is not set by user, try to locate tool using the code snippet 31731 for ac_prog in as 31732 do 31733 # Extract the first word of "$ac_prog", so it can be a program name with args. 31734 set dummy $ac_prog; ac_word=$2 31735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31736 $as_echo_n "checking for $ac_word... " >&6; } 31737 if ${ac_cv_path_AS+:} false; then : 31738 $as_echo_n "(cached) " >&6 31739 else 31740 case $AS in 31741 [\\/]* | ?:[\\/]*) 31742 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31743 ;; 31744 *) 31745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31746 for as_dir in $PATH 31747 do 31748 IFS=$as_save_IFS 31749 test -z "$as_dir" && as_dir=. 31750 for ac_exec_ext in '' $ac_executable_extensions; do 31751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31752 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31754 break 2 31755 fi 31756 done 31757 done 31758 IFS=$as_save_IFS 31759 31760 ;; 31761 esac 31762 fi 31763 AS=$ac_cv_path_AS 31764 if test -n "$AS"; then 31765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31766 $as_echo "$AS" >&6; } 31767 else 31768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31769 $as_echo "no" >&6; } 31770 fi 31771 31772 31773 test -n "$AS" && break 31774 done 31775 31776 else 31777 # The variable is set, but is it from the command line or the environment? 31778 31779 # Try to remove the string !AS! from our list. 31780 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 31781 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31782 # If it failed, the variable was not from the command line. Ignore it, 31783 # but warn the user (except for BASH, which is always set by the calling BASH). 31784 if test "xAS" != xBASH; then 31785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 31786 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 31787 fi 31788 # Try to locate tool using the code snippet 31789 for ac_prog in as 31790 do 31791 # Extract the first word of "$ac_prog", so it can be a program name with args. 31792 set dummy $ac_prog; ac_word=$2 31793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31794 $as_echo_n "checking for $ac_word... " >&6; } 31795 if ${ac_cv_path_AS+:} false; then : 31796 $as_echo_n "(cached) " >&6 31797 else 31798 case $AS in 31799 [\\/]* | ?:[\\/]*) 31800 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31801 ;; 31802 *) 31803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31804 for as_dir in $PATH 31805 do 31806 IFS=$as_save_IFS 31807 test -z "$as_dir" && as_dir=. 31808 for ac_exec_ext in '' $ac_executable_extensions; do 31809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31810 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31812 break 2 31813 fi 31814 done 31815 done 31816 IFS=$as_save_IFS 31817 31818 ;; 31819 esac 31820 fi 31821 AS=$ac_cv_path_AS 31822 if test -n "$AS"; then 31823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31824 $as_echo "$AS" >&6; } 31825 else 31826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31827 $as_echo "no" >&6; } 31828 fi 31829 31830 31831 test -n "$AS" && break 31832 done 31833 31834 else 31835 # If it succeeded, then it was overridden by the user. We will use it 31836 # for the tool. 31837 31838 # First remove it from the list of overridden variables, so we can test 31839 # for unknown variables in the end. 31840 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31841 31842 # Check if the provided tool contains a complete path. 31843 tool_specified="$AS" 31844 tool_basename="${tool_specified##*/}" 31845 if test "x$tool_basename" = "x$tool_specified"; then 31846 # A command without a complete path is provided, search $PATH. 31847 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 31848 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 31849 # Extract the first word of "$tool_basename", so it can be a program name with args. 31850 set dummy $tool_basename; ac_word=$2 31851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31852 $as_echo_n "checking for $ac_word... " >&6; } 31853 if ${ac_cv_path_AS+:} false; then : 31854 $as_echo_n "(cached) " >&6 31855 else 31856 case $AS in 31857 [\\/]* | ?:[\\/]*) 31858 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31859 ;; 31860 *) 31861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31862 for as_dir in $PATH 31863 do 31864 IFS=$as_save_IFS 31865 test -z "$as_dir" && as_dir=. 31866 for ac_exec_ext in '' $ac_executable_extensions; do 31867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31868 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31870 break 2 31871 fi 31872 done 31873 done 31874 IFS=$as_save_IFS 31875 31876 ;; 31877 esac 31878 fi 31879 AS=$ac_cv_path_AS 31880 if test -n "$AS"; then 31881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31882 $as_echo "$AS" >&6; } 31883 else 31884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31885 $as_echo "no" >&6; } 31886 fi 31887 31888 31889 if test "x$AS" = x; then 31890 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31891 fi 31892 else 31893 # Otherwise we believe it is a complete path. Use it as it is. 31894 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 31895 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 31896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 31897 $as_echo_n "checking for AS... " >&6; } 31898 if test ! -x "$tool_specified"; then 31899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31900 $as_echo "not found" >&6; } 31901 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 31902 fi 31903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31904 $as_echo "$tool_specified" >&6; } 31905 fi 31906 fi 31907 fi 31908 31909 31910 31911 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31912 31913 # First separate the path from the arguments. This will split at the first 31914 # space. 31915 complete="$AS" 31916 path="${complete%% *}" 31917 tmp="$complete EOL" 31918 arguments="${tmp#* }" 31919 31920 # Input might be given as Windows format, start by converting to 31921 # unix format. 31922 new_path=`$CYGPATH -u "$path"` 31923 31924 # Now try to locate executable using which 31925 new_path=`$WHICH "$new_path" 2> /dev/null` 31926 # bat and cmd files are not always considered executable in cygwin causing which 31927 # to not find them 31928 if test "x$new_path" = x \ 31929 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31930 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31931 new_path=`$CYGPATH -u "$path"` 31932 fi 31933 if test "x$new_path" = x; then 31934 # Oops. Which didn't find the executable. 31935 # The splitting of arguments from the executable at a space might have been incorrect, 31936 # since paths with space are more likely in Windows. Give it another try with the whole 31937 # argument. 31938 path="$complete" 31939 arguments="EOL" 31940 new_path=`$CYGPATH -u "$path"` 31941 new_path=`$WHICH "$new_path" 2> /dev/null` 31942 # bat and cmd files are not always considered executable in cygwin causing which 31943 # to not find them 31944 if test "x$new_path" = x \ 31945 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31946 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31947 new_path=`$CYGPATH -u "$path"` 31948 fi 31949 if test "x$new_path" = x; then 31950 # It's still not found. Now this is an unrecoverable error. 31951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31952 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31953 has_space=`$ECHO "$complete" | $GREP " "` 31954 if test "x$has_space" != x; then 31955 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31956 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31957 fi 31958 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31959 fi 31960 fi 31961 31962 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31963 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31964 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31965 # "foo.exe" is OK but "foo" is an error. 31966 # 31967 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31968 # It is also a way to make sure we got the proper file name for the real test later on. 31969 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31970 if test "x$test_shortpath" = x; then 31971 # Short path failed, file does not exist as specified. 31972 # Try adding .exe or .cmd 31973 if test -f "${new_path}.exe"; then 31974 input_to_shortpath="${new_path}.exe" 31975 elif test -f "${new_path}.cmd"; then 31976 input_to_shortpath="${new_path}.cmd" 31977 else 31978 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 31979 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 31980 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31981 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31982 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31983 fi 31984 else 31985 input_to_shortpath="$new_path" 31986 fi 31987 31988 # Call helper function which possibly converts this using DOS-style short mode. 31989 # If so, the updated path is stored in $new_path. 31990 new_path="$input_to_shortpath" 31991 31992 input_path="$input_to_shortpath" 31993 # Check if we need to convert this using DOS-style short mode. If the path 31994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31995 # take no chances and rewrite it. 31996 # Note: m4 eats our [], so we need to use [ and ] instead. 31997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31998 if test "x$has_forbidden_chars" != x; then 31999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32000 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32001 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32002 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32003 # Going to short mode and back again did indeed matter. Since short mode is 32004 # case insensitive, let's make it lowercase to improve readability. 32005 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32006 # Now convert it back to Unix-stile (cygpath) 32007 input_path=`$CYGPATH -u "$shortmode_path"` 32008 new_path="$input_path" 32009 fi 32010 fi 32011 32012 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32013 if test "x$test_cygdrive_prefix" = x; then 32014 # As a simple fix, exclude /usr/bin since it's not a real path. 32015 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32016 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32017 # a path prefixed by /cygdrive for fixpath to work. 32018 new_path="$CYGWIN_ROOT_PATH$input_path" 32019 fi 32020 fi 32021 32022 # remove trailing .exe if any 32023 new_path="${new_path/%.exe/}" 32024 32025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32026 32027 # First separate the path from the arguments. This will split at the first 32028 # space. 32029 complete="$AS" 32030 path="${complete%% *}" 32031 tmp="$complete EOL" 32032 arguments="${tmp#* }" 32033 32034 # Input might be given as Windows format, start by converting to 32035 # unix format. 32036 new_path="$path" 32037 32038 windows_path="$new_path" 32039 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32040 unix_path=`$CYGPATH -u "$windows_path"` 32041 new_path="$unix_path" 32042 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32043 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32044 new_path="$unix_path" 32045 fi 32046 32047 32048 # Now try to locate executable using which 32049 new_path=`$WHICH "$new_path" 2> /dev/null` 32050 32051 if test "x$new_path" = x; then 32052 # Oops. Which didn't find the executable. 32053 # The splitting of arguments from the executable at a space might have been incorrect, 32054 # since paths with space are more likely in Windows. Give it another try with the whole 32055 # argument. 32056 path="$complete" 32057 arguments="EOL" 32058 new_path="$path" 32059 32060 windows_path="$new_path" 32061 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32062 unix_path=`$CYGPATH -u "$windows_path"` 32063 new_path="$unix_path" 32064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32065 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32066 new_path="$unix_path" 32067 fi 32068 32069 32070 new_path=`$WHICH "$new_path" 2> /dev/null` 32071 32072 if test "x$new_path" = x; then 32073 # It's still not found. Now this is an unrecoverable error. 32074 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32075 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32076 has_space=`$ECHO "$complete" | $GREP " "` 32077 if test "x$has_space" != x; then 32078 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32079 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32080 fi 32081 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32082 fi 32083 fi 32084 32085 # Now new_path has a complete unix path to the binary 32086 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32087 # Keep paths in /bin as-is, but remove trailing .exe if any 32088 new_path="${new_path/%.exe/}" 32089 # Do not save /bin paths to all_fixpath_prefixes! 32090 else 32091 # Not in mixed or Windows style, start by that. 32092 new_path=`cmd //c echo $new_path` 32093 32094 input_path="$new_path" 32095 # Check if we need to convert this using DOS-style short mode. If the path 32096 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32097 # take no chances and rewrite it. 32098 # Note: m4 eats our [], so we need to use [ and ] instead. 32099 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32100 if test "x$has_forbidden_chars" != x; then 32101 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32102 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32103 fi 32104 32105 # Output is in $new_path 32106 32107 windows_path="$new_path" 32108 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32109 unix_path=`$CYGPATH -u "$windows_path"` 32110 new_path="$unix_path" 32111 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32112 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32113 new_path="$unix_path" 32114 fi 32115 32116 # remove trailing .exe if any 32117 new_path="${new_path/%.exe/}" 32118 32119 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32120 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32121 fi 32122 32123 else 32124 # We're on a posix platform. Hooray! :) 32125 # First separate the path from the arguments. This will split at the first 32126 # space. 32127 complete="$AS" 32128 path="${complete%% *}" 32129 tmp="$complete EOL" 32130 arguments="${tmp#* }" 32131 32132 # Cannot rely on the command "which" here since it doesn't always work. 32133 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32134 if test -z "$is_absolute_path"; then 32135 # Path to executable is not absolute. Find it. 32136 IFS_save="$IFS" 32137 IFS=: 32138 for p in $PATH; do 32139 if test -f "$p/$path" && test -x "$p/$path"; then 32140 new_path="$p/$path" 32141 break 32142 fi 32143 done 32144 IFS="$IFS_save" 32145 else 32146 # This is an absolute path, we can use it without further modifications. 32147 new_path="$path" 32148 fi 32149 32150 if test "x$new_path" = x; then 32151 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32152 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32153 has_space=`$ECHO "$complete" | $GREP " "` 32154 if test "x$has_space" != x; then 32155 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32156 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32157 fi 32158 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32159 fi 32160 fi 32161 32162 # Now join together the path and the arguments once again 32163 if test "x$arguments" != xEOL; then 32164 new_complete="$new_path ${arguments% *}" 32165 else 32166 new_complete="$new_path" 32167 fi 32168 32169 if test "x$complete" != "x$new_complete"; then 32170 AS="$new_complete" 32171 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 32172 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 32173 fi 32174 32175 else 32176 # FIXME: is this correct for microsoft? 32177 AS="$CC -c" 32178 fi 32179 32180 32181 # 32182 # Setup the archiver (AR) 32183 # 32184 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32185 # The corresponding ar tool is lib.exe (used to create static libraries) 32186 # Extract the first word of "lib", so it can be a program name with args. 32187 set dummy lib; ac_word=$2 32188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32189 $as_echo_n "checking for $ac_word... " >&6; } 32190 if ${ac_cv_prog_AR+:} false; then : 32191 $as_echo_n "(cached) " >&6 32192 else 32193 if test -n "$AR"; then 32194 ac_cv_prog_AR="$AR" # Let the user override the test. 32195 else 32196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32197 for as_dir in $PATH 32198 do 32199 IFS=$as_save_IFS 32200 test -z "$as_dir" && as_dir=. 32201 for ac_exec_ext in '' $ac_executable_extensions; do 32202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32203 ac_cv_prog_AR="lib" 32204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32205 break 2 32206 fi 32207 done 32208 done 32209 IFS=$as_save_IFS 32210 32211 fi 32212 fi 32213 AR=$ac_cv_prog_AR 32214 if test -n "$AR"; then 32215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32216 $as_echo "$AR" >&6; } 32217 else 32218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32219 $as_echo "no" >&6; } 32220 fi 32221 32222 32223 else 32224 32225 32226 # Publish this variable in the help. 32227 32228 32229 if test "x$AR" = x; then 32230 # The variable is not set by user, try to locate tool using the code snippet 32231 if test -n "$ac_tool_prefix"; then 32232 for ac_prog in ar 32233 do 32234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32237 $as_echo_n "checking for $ac_word... " >&6; } 32238 if ${ac_cv_prog_AR+:} false; then : 32239 $as_echo_n "(cached) " >&6 32240 else 32241 if test -n "$AR"; then 32242 ac_cv_prog_AR="$AR" # Let the user override the test. 32243 else 32244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32245 for as_dir in $PATH 32246 do 32247 IFS=$as_save_IFS 32248 test -z "$as_dir" && as_dir=. 32249 for ac_exec_ext in '' $ac_executable_extensions; do 32250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32251 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32253 break 2 32254 fi 32255 done 32256 done 32257 IFS=$as_save_IFS 32258 32259 fi 32260 fi 32261 AR=$ac_cv_prog_AR 32262 if test -n "$AR"; then 32263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32264 $as_echo "$AR" >&6; } 32265 else 32266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32267 $as_echo "no" >&6; } 32268 fi 32269 32270 32271 test -n "$AR" && break 32272 done 32273 fi 32274 if test -z "$AR"; then 32275 ac_ct_AR=$AR 32276 for ac_prog in ar 32277 do 32278 # Extract the first word of "$ac_prog", so it can be a program name with args. 32279 set dummy $ac_prog; ac_word=$2 32280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32281 $as_echo_n "checking for $ac_word... " >&6; } 32282 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32283 $as_echo_n "(cached) " >&6 32284 else 32285 if test -n "$ac_ct_AR"; then 32286 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32287 else 32288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32289 for as_dir in $PATH 32290 do 32291 IFS=$as_save_IFS 32292 test -z "$as_dir" && as_dir=. 32293 for ac_exec_ext in '' $ac_executable_extensions; do 32294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32295 ac_cv_prog_ac_ct_AR="$ac_prog" 32296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32297 break 2 32298 fi 32299 done 32300 done 32301 IFS=$as_save_IFS 32302 32303 fi 32304 fi 32305 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32306 if test -n "$ac_ct_AR"; then 32307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32308 $as_echo "$ac_ct_AR" >&6; } 32309 else 32310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32311 $as_echo "no" >&6; } 32312 fi 32313 32314 32315 test -n "$ac_ct_AR" && break 32316 done 32317 32318 if test "x$ac_ct_AR" = x; then 32319 AR="" 32320 else 32321 case $cross_compiling:$ac_tool_warned in 32322 yes:) 32323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32325 ac_tool_warned=yes ;; 32326 esac 32327 AR=$ac_ct_AR 32328 fi 32329 fi 32330 32331 else 32332 # The variable is set, but is it from the command line or the environment? 32333 32334 # Try to remove the string !AR! from our list. 32335 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 32336 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32337 # If it failed, the variable was not from the command line. Ignore it, 32338 # but warn the user (except for BASH, which is always set by the calling BASH). 32339 if test "xAR" != xBASH; then 32340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 32341 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 32342 fi 32343 # Try to locate tool using the code snippet 32344 if test -n "$ac_tool_prefix"; then 32345 for ac_prog in ar 32346 do 32347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32350 $as_echo_n "checking for $ac_word... " >&6; } 32351 if ${ac_cv_prog_AR+:} false; then : 32352 $as_echo_n "(cached) " >&6 32353 else 32354 if test -n "$AR"; then 32355 ac_cv_prog_AR="$AR" # Let the user override the test. 32356 else 32357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32358 for as_dir in $PATH 32359 do 32360 IFS=$as_save_IFS 32361 test -z "$as_dir" && as_dir=. 32362 for ac_exec_ext in '' $ac_executable_extensions; do 32363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32364 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32366 break 2 32367 fi 32368 done 32369 done 32370 IFS=$as_save_IFS 32371 32372 fi 32373 fi 32374 AR=$ac_cv_prog_AR 32375 if test -n "$AR"; then 32376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32377 $as_echo "$AR" >&6; } 32378 else 32379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32380 $as_echo "no" >&6; } 32381 fi 32382 32383 32384 test -n "$AR" && break 32385 done 32386 fi 32387 if test -z "$AR"; then 32388 ac_ct_AR=$AR 32389 for ac_prog in ar 32390 do 32391 # Extract the first word of "$ac_prog", so it can be a program name with args. 32392 set dummy $ac_prog; ac_word=$2 32393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32394 $as_echo_n "checking for $ac_word... " >&6; } 32395 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32396 $as_echo_n "(cached) " >&6 32397 else 32398 if test -n "$ac_ct_AR"; then 32399 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32400 else 32401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32402 for as_dir in $PATH 32403 do 32404 IFS=$as_save_IFS 32405 test -z "$as_dir" && as_dir=. 32406 for ac_exec_ext in '' $ac_executable_extensions; do 32407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32408 ac_cv_prog_ac_ct_AR="$ac_prog" 32409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32410 break 2 32411 fi 32412 done 32413 done 32414 IFS=$as_save_IFS 32415 32416 fi 32417 fi 32418 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32419 if test -n "$ac_ct_AR"; then 32420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32421 $as_echo "$ac_ct_AR" >&6; } 32422 else 32423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32424 $as_echo "no" >&6; } 32425 fi 32426 32427 32428 test -n "$ac_ct_AR" && break 32429 done 32430 32431 if test "x$ac_ct_AR" = x; then 32432 AR="" 32433 else 32434 case $cross_compiling:$ac_tool_warned in 32435 yes:) 32436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32438 ac_tool_warned=yes ;; 32439 esac 32440 AR=$ac_ct_AR 32441 fi 32442 fi 32443 32444 else 32445 # If it succeeded, then it was overridden by the user. We will use it 32446 # for the tool. 32447 32448 # First remove it from the list of overridden variables, so we can test 32449 # for unknown variables in the end. 32450 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32451 32452 # Check if the provided tool contains a complete path. 32453 tool_specified="$AR" 32454 tool_basename="${tool_specified##*/}" 32455 if test "x$tool_basename" = "x$tool_specified"; then 32456 # A command without a complete path is provided, search $PATH. 32457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 32458 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 32459 # Extract the first word of "$tool_basename", so it can be a program name with args. 32460 set dummy $tool_basename; ac_word=$2 32461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32462 $as_echo_n "checking for $ac_word... " >&6; } 32463 if ${ac_cv_path_AR+:} false; then : 32464 $as_echo_n "(cached) " >&6 32465 else 32466 case $AR in 32467 [\\/]* | ?:[\\/]*) 32468 ac_cv_path_AR="$AR" # Let the user override the test with a path. 32469 ;; 32470 *) 32471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32472 for as_dir in $PATH 32473 do 32474 IFS=$as_save_IFS 32475 test -z "$as_dir" && as_dir=. 32476 for ac_exec_ext in '' $ac_executable_extensions; do 32477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32478 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 32479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32480 break 2 32481 fi 32482 done 32483 done 32484 IFS=$as_save_IFS 32485 32486 ;; 32487 esac 32488 fi 32489 AR=$ac_cv_path_AR 32490 if test -n "$AR"; then 32491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32492 $as_echo "$AR" >&6; } 32493 else 32494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32495 $as_echo "no" >&6; } 32496 fi 32497 32498 32499 if test "x$AR" = x; then 32500 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32501 fi 32502 else 32503 # Otherwise we believe it is a complete path. Use it as it is. 32504 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 32505 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 32506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 32507 $as_echo_n "checking for AR... " >&6; } 32508 if test ! -x "$tool_specified"; then 32509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32510 $as_echo "not found" >&6; } 32511 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 32512 fi 32513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32514 $as_echo "$tool_specified" >&6; } 32515 fi 32516 fi 32517 fi 32518 32519 32520 fi 32521 32522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32523 32524 # First separate the path from the arguments. This will split at the first 32525 # space. 32526 complete="$AR" 32527 path="${complete%% *}" 32528 tmp="$complete EOL" 32529 arguments="${tmp#* }" 32530 32531 # Input might be given as Windows format, start by converting to 32532 # unix format. 32533 new_path=`$CYGPATH -u "$path"` 32534 32535 # Now try to locate executable using which 32536 new_path=`$WHICH "$new_path" 2> /dev/null` 32537 # bat and cmd files are not always considered executable in cygwin causing which 32538 # to not find them 32539 if test "x$new_path" = x \ 32540 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32541 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32542 new_path=`$CYGPATH -u "$path"` 32543 fi 32544 if test "x$new_path" = x; then 32545 # Oops. Which didn't find the executable. 32546 # The splitting of arguments from the executable at a space might have been incorrect, 32547 # since paths with space are more likely in Windows. Give it another try with the whole 32548 # argument. 32549 path="$complete" 32550 arguments="EOL" 32551 new_path=`$CYGPATH -u "$path"` 32552 new_path=`$WHICH "$new_path" 2> /dev/null` 32553 # bat and cmd files are not always considered executable in cygwin causing which 32554 # to not find them 32555 if test "x$new_path" = x \ 32556 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32557 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32558 new_path=`$CYGPATH -u "$path"` 32559 fi 32560 if test "x$new_path" = x; then 32561 # It's still not found. Now this is an unrecoverable error. 32562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32563 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32564 has_space=`$ECHO "$complete" | $GREP " "` 32565 if test "x$has_space" != x; then 32566 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32567 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32568 fi 32569 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32570 fi 32571 fi 32572 32573 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32574 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32575 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32576 # "foo.exe" is OK but "foo" is an error. 32577 # 32578 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32579 # It is also a way to make sure we got the proper file name for the real test later on. 32580 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32581 if test "x$test_shortpath" = x; then 32582 # Short path failed, file does not exist as specified. 32583 # Try adding .exe or .cmd 32584 if test -f "${new_path}.exe"; then 32585 input_to_shortpath="${new_path}.exe" 32586 elif test -f "${new_path}.cmd"; then 32587 input_to_shortpath="${new_path}.cmd" 32588 else 32589 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 32590 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 32591 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32592 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32593 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32594 fi 32595 else 32596 input_to_shortpath="$new_path" 32597 fi 32598 32599 # Call helper function which possibly converts this using DOS-style short mode. 32600 # If so, the updated path is stored in $new_path. 32601 new_path="$input_to_shortpath" 32602 32603 input_path="$input_to_shortpath" 32604 # Check if we need to convert this using DOS-style short mode. If the path 32605 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32606 # take no chances and rewrite it. 32607 # Note: m4 eats our [], so we need to use [ and ] instead. 32608 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32609 if test "x$has_forbidden_chars" != x; then 32610 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32611 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32612 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32613 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32614 # Going to short mode and back again did indeed matter. Since short mode is 32615 # case insensitive, let's make it lowercase to improve readability. 32616 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32617 # Now convert it back to Unix-stile (cygpath) 32618 input_path=`$CYGPATH -u "$shortmode_path"` 32619 new_path="$input_path" 32620 fi 32621 fi 32622 32623 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32624 if test "x$test_cygdrive_prefix" = x; then 32625 # As a simple fix, exclude /usr/bin since it's not a real path. 32626 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32627 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32628 # a path prefixed by /cygdrive for fixpath to work. 32629 new_path="$CYGWIN_ROOT_PATH$input_path" 32630 fi 32631 fi 32632 32633 # remove trailing .exe if any 32634 new_path="${new_path/%.exe/}" 32635 32636 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32637 32638 # First separate the path from the arguments. This will split at the first 32639 # space. 32640 complete="$AR" 32641 path="${complete%% *}" 32642 tmp="$complete EOL" 32643 arguments="${tmp#* }" 32644 32645 # Input might be given as Windows format, start by converting to 32646 # unix format. 32647 new_path="$path" 32648 32649 windows_path="$new_path" 32650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32651 unix_path=`$CYGPATH -u "$windows_path"` 32652 new_path="$unix_path" 32653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32654 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32655 new_path="$unix_path" 32656 fi 32657 32658 32659 # Now try to locate executable using which 32660 new_path=`$WHICH "$new_path" 2> /dev/null` 32661 32662 if test "x$new_path" = x; then 32663 # Oops. Which didn't find the executable. 32664 # The splitting of arguments from the executable at a space might have been incorrect, 32665 # since paths with space are more likely in Windows. Give it another try with the whole 32666 # argument. 32667 path="$complete" 32668 arguments="EOL" 32669 new_path="$path" 32670 32671 windows_path="$new_path" 32672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32673 unix_path=`$CYGPATH -u "$windows_path"` 32674 new_path="$unix_path" 32675 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32676 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32677 new_path="$unix_path" 32678 fi 32679 32680 32681 new_path=`$WHICH "$new_path" 2> /dev/null` 32682 32683 if test "x$new_path" = x; then 32684 # It's still not found. Now this is an unrecoverable error. 32685 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32686 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32687 has_space=`$ECHO "$complete" | $GREP " "` 32688 if test "x$has_space" != x; then 32689 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32690 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32691 fi 32692 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32693 fi 32694 fi 32695 32696 # Now new_path has a complete unix path to the binary 32697 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32698 # Keep paths in /bin as-is, but remove trailing .exe if any 32699 new_path="${new_path/%.exe/}" 32700 # Do not save /bin paths to all_fixpath_prefixes! 32701 else 32702 # Not in mixed or Windows style, start by that. 32703 new_path=`cmd //c echo $new_path` 32704 32705 input_path="$new_path" 32706 # Check if we need to convert this using DOS-style short mode. If the path 32707 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32708 # take no chances and rewrite it. 32709 # Note: m4 eats our [], so we need to use [ and ] instead. 32710 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32711 if test "x$has_forbidden_chars" != x; then 32712 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32713 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32714 fi 32715 32716 # Output is in $new_path 32717 32718 windows_path="$new_path" 32719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32720 unix_path=`$CYGPATH -u "$windows_path"` 32721 new_path="$unix_path" 32722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32723 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32724 new_path="$unix_path" 32725 fi 32726 32727 # remove trailing .exe if any 32728 new_path="${new_path/%.exe/}" 32729 32730 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32731 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32732 fi 32733 32734 else 32735 # We're on a posix platform. Hooray! :) 32736 # First separate the path from the arguments. This will split at the first 32737 # space. 32738 complete="$AR" 32739 path="${complete%% *}" 32740 tmp="$complete EOL" 32741 arguments="${tmp#* }" 32742 32743 # Cannot rely on the command "which" here since it doesn't always work. 32744 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32745 if test -z "$is_absolute_path"; then 32746 # Path to executable is not absolute. Find it. 32747 IFS_save="$IFS" 32748 IFS=: 32749 for p in $PATH; do 32750 if test -f "$p/$path" && test -x "$p/$path"; then 32751 new_path="$p/$path" 32752 break 32753 fi 32754 done 32755 IFS="$IFS_save" 32756 else 32757 # This is an absolute path, we can use it without further modifications. 32758 new_path="$path" 32759 fi 32760 32761 if test "x$new_path" = x; then 32762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32763 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32764 has_space=`$ECHO "$complete" | $GREP " "` 32765 if test "x$has_space" != x; then 32766 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32767 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32768 fi 32769 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32770 fi 32771 fi 32772 32773 # Now join together the path and the arguments once again 32774 if test "x$arguments" != xEOL; then 32775 new_complete="$new_path ${arguments% *}" 32776 else 32777 new_complete="$new_path" 32778 fi 32779 32780 if test "x$complete" != "x$new_complete"; then 32781 AR="$new_complete" 32782 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 32783 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 32784 fi 32785 32786 32787 32788 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 32789 ac_ext=m 32790 ac_cpp='$OBJCPP $CPPFLAGS' 32791 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32792 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32793 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 32794 if test -n "$ac_tool_prefix"; then 32795 for ac_prog in gcc objcc objc cc CC 32796 do 32797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32800 $as_echo_n "checking for $ac_word... " >&6; } 32801 if ${ac_cv_prog_OBJC+:} false; then : 32802 $as_echo_n "(cached) " >&6 32803 else 32804 if test -n "$OBJC"; then 32805 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 32806 else 32807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32808 for as_dir in $PATH 32809 do 32810 IFS=$as_save_IFS 32811 test -z "$as_dir" && as_dir=. 32812 for ac_exec_ext in '' $ac_executable_extensions; do 32813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32814 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 32815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32816 break 2 32817 fi 32818 done 32819 done 32820 IFS=$as_save_IFS 32821 32822 fi 32823 fi 32824 OBJC=$ac_cv_prog_OBJC 32825 if test -n "$OBJC"; then 32826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 32827 $as_echo "$OBJC" >&6; } 32828 else 32829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32830 $as_echo "no" >&6; } 32831 fi 32832 32833 32834 test -n "$OBJC" && break 32835 done 32836 fi 32837 if test -z "$OBJC"; then 32838 ac_ct_OBJC=$OBJC 32839 for ac_prog in gcc objcc objc cc CC 32840 do 32841 # Extract the first word of "$ac_prog", so it can be a program name with args. 32842 set dummy $ac_prog; ac_word=$2 32843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32844 $as_echo_n "checking for $ac_word... " >&6; } 32845 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 32846 $as_echo_n "(cached) " >&6 32847 else 32848 if test -n "$ac_ct_OBJC"; then 32849 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 32850 else 32851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32852 for as_dir in $PATH 32853 do 32854 IFS=$as_save_IFS 32855 test -z "$as_dir" && as_dir=. 32856 for ac_exec_ext in '' $ac_executable_extensions; do 32857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32858 ac_cv_prog_ac_ct_OBJC="$ac_prog" 32859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32860 break 2 32861 fi 32862 done 32863 done 32864 IFS=$as_save_IFS 32865 32866 fi 32867 fi 32868 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 32869 if test -n "$ac_ct_OBJC"; then 32870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 32871 $as_echo "$ac_ct_OBJC" >&6; } 32872 else 32873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32874 $as_echo "no" >&6; } 32875 fi 32876 32877 32878 test -n "$ac_ct_OBJC" && break 32879 done 32880 32881 if test "x$ac_ct_OBJC" = x; then 32882 OBJC="gcc" 32883 else 32884 case $cross_compiling:$ac_tool_warned in 32885 yes:) 32886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32888 ac_tool_warned=yes ;; 32889 esac 32890 OBJC=$ac_ct_OBJC 32891 fi 32892 fi 32893 32894 # Provide some information about the compiler. 32895 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 32896 set X $ac_compile 32897 ac_compiler=$2 32898 for ac_option in --version -v -V -qversion; do 32899 { { ac_try="$ac_compiler $ac_option >&5" 32900 case "(($ac_try" in 32901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32902 *) ac_try_echo=$ac_try;; 32903 esac 32904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32905 $as_echo "$ac_try_echo"; } >&5 32906 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32907 ac_status=$? 32908 if test -s conftest.err; then 32909 sed '10a\ 32910 ... rest of stderr output deleted ... 32911 10q' conftest.err >conftest.er1 32912 cat conftest.er1 >&5 32913 fi 32914 rm -f conftest.er1 conftest.err 32915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32916 test $ac_status = 0; } 32917 done 32918 32919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 32920 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 32921 if ${ac_cv_objc_compiler_gnu+:} false; then : 32922 $as_echo_n "(cached) " >&6 32923 else 32924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32925 /* end confdefs.h. */ 32926 32927 int 32928 main () 32929 { 32930 #ifndef __GNUC__ 32931 choke me 32932 #endif 32933 32934 ; 32935 return 0; 32936 } 32937 _ACEOF 32938 if ac_fn_objc_try_compile "$LINENO"; then : 32939 ac_compiler_gnu=yes 32940 else 32941 ac_compiler_gnu=no 32942 fi 32943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32944 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 32945 32946 fi 32947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 32948 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 32949 if test $ac_compiler_gnu = yes; then 32950 GOBJC=yes 32951 else 32952 GOBJC= 32953 fi 32954 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 32955 ac_save_OBJCFLAGS=$OBJCFLAGS 32956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 32957 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 32958 if ${ac_cv_prog_objc_g+:} false; then : 32959 $as_echo_n "(cached) " >&6 32960 else 32961 ac_save_objc_werror_flag=$ac_objc_werror_flag 32962 ac_objc_werror_flag=yes 32963 ac_cv_prog_objc_g=no 32964 OBJCFLAGS="-g" 32965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32966 /* end confdefs.h. */ 32967 32968 int 32969 main () 32970 { 32971 32972 ; 32973 return 0; 32974 } 32975 _ACEOF 32976 if ac_fn_objc_try_compile "$LINENO"; then : 32977 ac_cv_prog_objc_g=yes 32978 else 32979 OBJCFLAGS="" 32980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32981 /* end confdefs.h. */ 32982 32983 int 32984 main () 32985 { 32986 32987 ; 32988 return 0; 32989 } 32990 _ACEOF 32991 if ac_fn_objc_try_compile "$LINENO"; then : 32992 32993 else 32994 ac_objc_werror_flag=$ac_save_objc_werror_flag 32995 OBJCFLAGS="-g" 32996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32997 /* end confdefs.h. */ 32998 32999 int 33000 main () 33001 { 33002 33003 ; 33004 return 0; 33005 } 33006 _ACEOF 33007 if ac_fn_objc_try_compile "$LINENO"; then : 33008 ac_cv_prog_objc_g=yes 33009 fi 33010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33011 fi 33012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33013 fi 33014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33015 ac_objc_werror_flag=$ac_save_objc_werror_flag 33016 fi 33017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 33018 $as_echo "$ac_cv_prog_objc_g" >&6; } 33019 if test "$ac_test_OBJCFLAGS" = set; then 33020 OBJCFLAGS=$ac_save_OBJCFLAGS 33021 elif test $ac_cv_prog_objc_g = yes; then 33022 if test "$GOBJC" = yes; then 33023 OBJCFLAGS="-g -O2" 33024 else 33025 OBJCFLAGS="-g" 33026 fi 33027 else 33028 if test "$GOBJC" = yes; then 33029 OBJCFLAGS="-O2" 33030 else 33031 OBJCFLAGS= 33032 fi 33033 fi 33034 ac_ext=cpp 33035 ac_cpp='$CXXCPP $CPPFLAGS' 33036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 33039 33040 33041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33042 33043 # First separate the path from the arguments. This will split at the first 33044 # space. 33045 complete="$OBJC" 33046 path="${complete%% *}" 33047 tmp="$complete EOL" 33048 arguments="${tmp#* }" 33049 33050 # Input might be given as Windows format, start by converting to 33051 # unix format. 33052 new_path=`$CYGPATH -u "$path"` 33053 33054 # Now try to locate executable using which 33055 new_path=`$WHICH "$new_path" 2> /dev/null` 33056 # bat and cmd files are not always considered executable in cygwin causing which 33057 # to not find them 33058 if test "x$new_path" = x \ 33059 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33060 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33061 new_path=`$CYGPATH -u "$path"` 33062 fi 33063 if test "x$new_path" = x; then 33064 # Oops. Which didn't find the executable. 33065 # The splitting of arguments from the executable at a space might have been incorrect, 33066 # since paths with space are more likely in Windows. Give it another try with the whole 33067 # argument. 33068 path="$complete" 33069 arguments="EOL" 33070 new_path=`$CYGPATH -u "$path"` 33071 new_path=`$WHICH "$new_path" 2> /dev/null` 33072 # bat and cmd files are not always considered executable in cygwin causing which 33073 # to not find them 33074 if test "x$new_path" = x \ 33075 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33076 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33077 new_path=`$CYGPATH -u "$path"` 33078 fi 33079 if test "x$new_path" = x; then 33080 # It's still not found. Now this is an unrecoverable error. 33081 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33082 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33083 has_space=`$ECHO "$complete" | $GREP " "` 33084 if test "x$has_space" != x; then 33085 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33086 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33087 fi 33088 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33089 fi 33090 fi 33091 33092 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33093 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33094 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33095 # "foo.exe" is OK but "foo" is an error. 33096 # 33097 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33098 # It is also a way to make sure we got the proper file name for the real test later on. 33099 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33100 if test "x$test_shortpath" = x; then 33101 # Short path failed, file does not exist as specified. 33102 # Try adding .exe or .cmd 33103 if test -f "${new_path}.exe"; then 33104 input_to_shortpath="${new_path}.exe" 33105 elif test -f "${new_path}.cmd"; then 33106 input_to_shortpath="${new_path}.cmd" 33107 else 33108 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 33109 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 33110 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33111 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33112 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33113 fi 33114 else 33115 input_to_shortpath="$new_path" 33116 fi 33117 33118 # Call helper function which possibly converts this using DOS-style short mode. 33119 # If so, the updated path is stored in $new_path. 33120 new_path="$input_to_shortpath" 33121 33122 input_path="$input_to_shortpath" 33123 # Check if we need to convert this using DOS-style short mode. If the path 33124 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33125 # take no chances and rewrite it. 33126 # Note: m4 eats our [], so we need to use [ and ] instead. 33127 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33128 if test "x$has_forbidden_chars" != x; then 33129 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33130 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33131 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33132 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33133 # Going to short mode and back again did indeed matter. Since short mode is 33134 # case insensitive, let's make it lowercase to improve readability. 33135 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33136 # Now convert it back to Unix-stile (cygpath) 33137 input_path=`$CYGPATH -u "$shortmode_path"` 33138 new_path="$input_path" 33139 fi 33140 fi 33141 33142 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33143 if test "x$test_cygdrive_prefix" = x; then 33144 # As a simple fix, exclude /usr/bin since it's not a real path. 33145 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33146 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33147 # a path prefixed by /cygdrive for fixpath to work. 33148 new_path="$CYGWIN_ROOT_PATH$input_path" 33149 fi 33150 fi 33151 33152 # remove trailing .exe if any 33153 new_path="${new_path/%.exe/}" 33154 33155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33156 33157 # First separate the path from the arguments. This will split at the first 33158 # space. 33159 complete="$OBJC" 33160 path="${complete%% *}" 33161 tmp="$complete EOL" 33162 arguments="${tmp#* }" 33163 33164 # Input might be given as Windows format, start by converting to 33165 # unix format. 33166 new_path="$path" 33167 33168 windows_path="$new_path" 33169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33170 unix_path=`$CYGPATH -u "$windows_path"` 33171 new_path="$unix_path" 33172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33173 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33174 new_path="$unix_path" 33175 fi 33176 33177 33178 # Now try to locate executable using which 33179 new_path=`$WHICH "$new_path" 2> /dev/null` 33180 33181 if test "x$new_path" = x; then 33182 # Oops. Which didn't find the executable. 33183 # The splitting of arguments from the executable at a space might have been incorrect, 33184 # since paths with space are more likely in Windows. Give it another try with the whole 33185 # argument. 33186 path="$complete" 33187 arguments="EOL" 33188 new_path="$path" 33189 33190 windows_path="$new_path" 33191 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33192 unix_path=`$CYGPATH -u "$windows_path"` 33193 new_path="$unix_path" 33194 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33195 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33196 new_path="$unix_path" 33197 fi 33198 33199 33200 new_path=`$WHICH "$new_path" 2> /dev/null` 33201 33202 if test "x$new_path" = x; then 33203 # It's still not found. Now this is an unrecoverable error. 33204 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33205 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33206 has_space=`$ECHO "$complete" | $GREP " "` 33207 if test "x$has_space" != x; then 33208 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33209 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33210 fi 33211 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33212 fi 33213 fi 33214 33215 # Now new_path has a complete unix path to the binary 33216 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33217 # Keep paths in /bin as-is, but remove trailing .exe if any 33218 new_path="${new_path/%.exe/}" 33219 # Do not save /bin paths to all_fixpath_prefixes! 33220 else 33221 # Not in mixed or Windows style, start by that. 33222 new_path=`cmd //c echo $new_path` 33223 33224 input_path="$new_path" 33225 # Check if we need to convert this using DOS-style short mode. If the path 33226 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33227 # take no chances and rewrite it. 33228 # Note: m4 eats our [], so we need to use [ and ] instead. 33229 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33230 if test "x$has_forbidden_chars" != x; then 33231 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33232 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33233 fi 33234 33235 # Output is in $new_path 33236 33237 windows_path="$new_path" 33238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33239 unix_path=`$CYGPATH -u "$windows_path"` 33240 new_path="$unix_path" 33241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33242 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33243 new_path="$unix_path" 33244 fi 33245 33246 # remove trailing .exe if any 33247 new_path="${new_path/%.exe/}" 33248 33249 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33250 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33251 fi 33252 33253 else 33254 # We're on a posix platform. Hooray! :) 33255 # First separate the path from the arguments. This will split at the first 33256 # space. 33257 complete="$OBJC" 33258 path="${complete%% *}" 33259 tmp="$complete EOL" 33260 arguments="${tmp#* }" 33261 33262 # Cannot rely on the command "which" here since it doesn't always work. 33263 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33264 if test -z "$is_absolute_path"; then 33265 # Path to executable is not absolute. Find it. 33266 IFS_save="$IFS" 33267 IFS=: 33268 for p in $PATH; do 33269 if test -f "$p/$path" && test -x "$p/$path"; then 33270 new_path="$p/$path" 33271 break 33272 fi 33273 done 33274 IFS="$IFS_save" 33275 else 33276 # This is an absolute path, we can use it without further modifications. 33277 new_path="$path" 33278 fi 33279 33280 if test "x$new_path" = x; then 33281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33282 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33283 has_space=`$ECHO "$complete" | $GREP " "` 33284 if test "x$has_space" != x; then 33285 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33286 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33287 fi 33288 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33289 fi 33290 fi 33291 33292 # Now join together the path and the arguments once again 33293 if test "x$arguments" != xEOL; then 33294 new_complete="$new_path ${arguments% *}" 33295 else 33296 new_complete="$new_path" 33297 fi 33298 33299 if test "x$complete" != "x$new_complete"; then 33300 OBJC="$new_complete" 33301 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 33302 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 33303 fi 33304 33305 33306 33307 # Publish this variable in the help. 33308 33309 33310 if test "x$LIPO" = x; then 33311 # The variable is not set by user, try to locate tool using the code snippet 33312 for ac_prog in lipo 33313 do 33314 # Extract the first word of "$ac_prog", so it can be a program name with args. 33315 set dummy $ac_prog; ac_word=$2 33316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33317 $as_echo_n "checking for $ac_word... " >&6; } 33318 if ${ac_cv_path_LIPO+:} false; then : 33319 $as_echo_n "(cached) " >&6 33320 else 33321 case $LIPO in 33322 [\\/]* | ?:[\\/]*) 33323 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33324 ;; 33325 *) 33326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33327 for as_dir in $PATH 33328 do 33329 IFS=$as_save_IFS 33330 test -z "$as_dir" && as_dir=. 33331 for ac_exec_ext in '' $ac_executable_extensions; do 33332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33333 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33335 break 2 33336 fi 33337 done 33338 done 33339 IFS=$as_save_IFS 33340 33341 ;; 33342 esac 33343 fi 33344 LIPO=$ac_cv_path_LIPO 33345 if test -n "$LIPO"; then 33346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33347 $as_echo "$LIPO" >&6; } 33348 else 33349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33350 $as_echo "no" >&6; } 33351 fi 33352 33353 33354 test -n "$LIPO" && break 33355 done 33356 33357 else 33358 # The variable is set, but is it from the command line or the environment? 33359 33360 # Try to remove the string !LIPO! from our list. 33361 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 33362 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33363 # If it failed, the variable was not from the command line. Ignore it, 33364 # but warn the user (except for BASH, which is always set by the calling BASH). 33365 if test "xLIPO" != xBASH; then 33366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 33367 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33368 fi 33369 # Try to locate tool using the code snippet 33370 for ac_prog in lipo 33371 do 33372 # Extract the first word of "$ac_prog", so it can be a program name with args. 33373 set dummy $ac_prog; ac_word=$2 33374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33375 $as_echo_n "checking for $ac_word... " >&6; } 33376 if ${ac_cv_path_LIPO+:} false; then : 33377 $as_echo_n "(cached) " >&6 33378 else 33379 case $LIPO in 33380 [\\/]* | ?:[\\/]*) 33381 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33382 ;; 33383 *) 33384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33385 for as_dir in $PATH 33386 do 33387 IFS=$as_save_IFS 33388 test -z "$as_dir" && as_dir=. 33389 for ac_exec_ext in '' $ac_executable_extensions; do 33390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33391 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33393 break 2 33394 fi 33395 done 33396 done 33397 IFS=$as_save_IFS 33398 33399 ;; 33400 esac 33401 fi 33402 LIPO=$ac_cv_path_LIPO 33403 if test -n "$LIPO"; then 33404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33405 $as_echo "$LIPO" >&6; } 33406 else 33407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33408 $as_echo "no" >&6; } 33409 fi 33410 33411 33412 test -n "$LIPO" && break 33413 done 33414 33415 else 33416 # If it succeeded, then it was overridden by the user. We will use it 33417 # for the tool. 33418 33419 # First remove it from the list of overridden variables, so we can test 33420 # for unknown variables in the end. 33421 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33422 33423 # Check if the provided tool contains a complete path. 33424 tool_specified="$LIPO" 33425 tool_basename="${tool_specified##*/}" 33426 if test "x$tool_basename" = "x$tool_specified"; then 33427 # A command without a complete path is provided, search $PATH. 33428 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33429 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33430 # Extract the first word of "$tool_basename", so it can be a program name with args. 33431 set dummy $tool_basename; ac_word=$2 33432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33433 $as_echo_n "checking for $ac_word... " >&6; } 33434 if ${ac_cv_path_LIPO+:} false; then : 33435 $as_echo_n "(cached) " >&6 33436 else 33437 case $LIPO in 33438 [\\/]* | ?:[\\/]*) 33439 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33440 ;; 33441 *) 33442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33443 for as_dir in $PATH 33444 do 33445 IFS=$as_save_IFS 33446 test -z "$as_dir" && as_dir=. 33447 for ac_exec_ext in '' $ac_executable_extensions; do 33448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33449 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33451 break 2 33452 fi 33453 done 33454 done 33455 IFS=$as_save_IFS 33456 33457 ;; 33458 esac 33459 fi 33460 LIPO=$ac_cv_path_LIPO 33461 if test -n "$LIPO"; then 33462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33463 $as_echo "$LIPO" >&6; } 33464 else 33465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33466 $as_echo "no" >&6; } 33467 fi 33468 33469 33470 if test "x$LIPO" = x; then 33471 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33472 fi 33473 else 33474 # Otherwise we believe it is a complete path. Use it as it is. 33475 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33476 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33478 $as_echo_n "checking for LIPO... " >&6; } 33479 if test ! -x "$tool_specified"; then 33480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33481 $as_echo "not found" >&6; } 33482 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33483 fi 33484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33485 $as_echo "$tool_specified" >&6; } 33486 fi 33487 fi 33488 fi 33489 33490 33491 33492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33493 33494 # First separate the path from the arguments. This will split at the first 33495 # space. 33496 complete="$LIPO" 33497 path="${complete%% *}" 33498 tmp="$complete EOL" 33499 arguments="${tmp#* }" 33500 33501 # Input might be given as Windows format, start by converting to 33502 # unix format. 33503 new_path=`$CYGPATH -u "$path"` 33504 33505 # Now try to locate executable using which 33506 new_path=`$WHICH "$new_path" 2> /dev/null` 33507 # bat and cmd files are not always considered executable in cygwin causing which 33508 # to not find them 33509 if test "x$new_path" = x \ 33510 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33511 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33512 new_path=`$CYGPATH -u "$path"` 33513 fi 33514 if test "x$new_path" = x; then 33515 # Oops. Which didn't find the executable. 33516 # The splitting of arguments from the executable at a space might have been incorrect, 33517 # since paths with space are more likely in Windows. Give it another try with the whole 33518 # argument. 33519 path="$complete" 33520 arguments="EOL" 33521 new_path=`$CYGPATH -u "$path"` 33522 new_path=`$WHICH "$new_path" 2> /dev/null` 33523 # bat and cmd files are not always considered executable in cygwin causing which 33524 # to not find them 33525 if test "x$new_path" = x \ 33526 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33527 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33528 new_path=`$CYGPATH -u "$path"` 33529 fi 33530 if test "x$new_path" = x; then 33531 # It's still not found. Now this is an unrecoverable error. 33532 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33533 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33534 has_space=`$ECHO "$complete" | $GREP " "` 33535 if test "x$has_space" != x; then 33536 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33537 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33538 fi 33539 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33540 fi 33541 fi 33542 33543 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33544 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33545 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33546 # "foo.exe" is OK but "foo" is an error. 33547 # 33548 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33549 # It is also a way to make sure we got the proper file name for the real test later on. 33550 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33551 if test "x$test_shortpath" = x; then 33552 # Short path failed, file does not exist as specified. 33553 # Try adding .exe or .cmd 33554 if test -f "${new_path}.exe"; then 33555 input_to_shortpath="${new_path}.exe" 33556 elif test -f "${new_path}.cmd"; then 33557 input_to_shortpath="${new_path}.cmd" 33558 else 33559 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33560 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33561 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33562 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33563 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33564 fi 33565 else 33566 input_to_shortpath="$new_path" 33567 fi 33568 33569 # Call helper function which possibly converts this using DOS-style short mode. 33570 # If so, the updated path is stored in $new_path. 33571 new_path="$input_to_shortpath" 33572 33573 input_path="$input_to_shortpath" 33574 # Check if we need to convert this using DOS-style short mode. If the path 33575 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33576 # take no chances and rewrite it. 33577 # Note: m4 eats our [], so we need to use [ and ] instead. 33578 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33579 if test "x$has_forbidden_chars" != x; then 33580 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33581 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33582 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33583 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33584 # Going to short mode and back again did indeed matter. Since short mode is 33585 # case insensitive, let's make it lowercase to improve readability. 33586 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33587 # Now convert it back to Unix-stile (cygpath) 33588 input_path=`$CYGPATH -u "$shortmode_path"` 33589 new_path="$input_path" 33590 fi 33591 fi 33592 33593 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33594 if test "x$test_cygdrive_prefix" = x; then 33595 # As a simple fix, exclude /usr/bin since it's not a real path. 33596 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33597 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33598 # a path prefixed by /cygdrive for fixpath to work. 33599 new_path="$CYGWIN_ROOT_PATH$input_path" 33600 fi 33601 fi 33602 33603 # remove trailing .exe if any 33604 new_path="${new_path/%.exe/}" 33605 33606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33607 33608 # First separate the path from the arguments. This will split at the first 33609 # space. 33610 complete="$LIPO" 33611 path="${complete%% *}" 33612 tmp="$complete EOL" 33613 arguments="${tmp#* }" 33614 33615 # Input might be given as Windows format, start by converting to 33616 # unix format. 33617 new_path="$path" 33618 33619 windows_path="$new_path" 33620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33621 unix_path=`$CYGPATH -u "$windows_path"` 33622 new_path="$unix_path" 33623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33625 new_path="$unix_path" 33626 fi 33627 33628 33629 # Now try to locate executable using which 33630 new_path=`$WHICH "$new_path" 2> /dev/null` 33631 33632 if test "x$new_path" = x; then 33633 # Oops. Which didn't find the executable. 33634 # The splitting of arguments from the executable at a space might have been incorrect, 33635 # since paths with space are more likely in Windows. Give it another try with the whole 33636 # argument. 33637 path="$complete" 33638 arguments="EOL" 33639 new_path="$path" 33640 33641 windows_path="$new_path" 33642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33643 unix_path=`$CYGPATH -u "$windows_path"` 33644 new_path="$unix_path" 33645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33646 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33647 new_path="$unix_path" 33648 fi 33649 33650 33651 new_path=`$WHICH "$new_path" 2> /dev/null` 33652 33653 if test "x$new_path" = x; then 33654 # It's still not found. Now this is an unrecoverable error. 33655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33656 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33657 has_space=`$ECHO "$complete" | $GREP " "` 33658 if test "x$has_space" != x; then 33659 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33660 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33661 fi 33662 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33663 fi 33664 fi 33665 33666 # Now new_path has a complete unix path to the binary 33667 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33668 # Keep paths in /bin as-is, but remove trailing .exe if any 33669 new_path="${new_path/%.exe/}" 33670 # Do not save /bin paths to all_fixpath_prefixes! 33671 else 33672 # Not in mixed or Windows style, start by that. 33673 new_path=`cmd //c echo $new_path` 33674 33675 input_path="$new_path" 33676 # Check if we need to convert this using DOS-style short mode. If the path 33677 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33678 # take no chances and rewrite it. 33679 # Note: m4 eats our [], so we need to use [ and ] instead. 33680 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33681 if test "x$has_forbidden_chars" != x; then 33682 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33683 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33684 fi 33685 33686 # Output is in $new_path 33687 33688 windows_path="$new_path" 33689 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33690 unix_path=`$CYGPATH -u "$windows_path"` 33691 new_path="$unix_path" 33692 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33693 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33694 new_path="$unix_path" 33695 fi 33696 33697 # remove trailing .exe if any 33698 new_path="${new_path/%.exe/}" 33699 33700 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33701 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33702 fi 33703 33704 else 33705 # We're on a posix platform. Hooray! :) 33706 # First separate the path from the arguments. This will split at the first 33707 # space. 33708 complete="$LIPO" 33709 path="${complete%% *}" 33710 tmp="$complete EOL" 33711 arguments="${tmp#* }" 33712 33713 # Cannot rely on the command "which" here since it doesn't always work. 33714 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33715 if test -z "$is_absolute_path"; then 33716 # Path to executable is not absolute. Find it. 33717 IFS_save="$IFS" 33718 IFS=: 33719 for p in $PATH; do 33720 if test -f "$p/$path" && test -x "$p/$path"; then 33721 new_path="$p/$path" 33722 break 33723 fi 33724 done 33725 IFS="$IFS_save" 33726 else 33727 # This is an absolute path, we can use it without further modifications. 33728 new_path="$path" 33729 fi 33730 33731 if test "x$new_path" = x; then 33732 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33733 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33734 has_space=`$ECHO "$complete" | $GREP " "` 33735 if test "x$has_space" != x; then 33736 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33737 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33738 fi 33739 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33740 fi 33741 fi 33742 33743 # Now join together the path and the arguments once again 33744 if test "x$arguments" != xEOL; then 33745 new_complete="$new_path ${arguments% *}" 33746 else 33747 new_complete="$new_path" 33748 fi 33749 33750 if test "x$complete" != "x$new_complete"; then 33751 LIPO="$new_complete" 33752 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 33753 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 33754 fi 33755 33756 else 33757 OBJC= 33758 fi 33759 33760 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33761 # Extract the first word of "mt", so it can be a program name with args. 33762 set dummy mt; ac_word=$2 33763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33764 $as_echo_n "checking for $ac_word... " >&6; } 33765 if ${ac_cv_prog_MT+:} false; then : 33766 $as_echo_n "(cached) " >&6 33767 else 33768 if test -n "$MT"; then 33769 ac_cv_prog_MT="$MT" # Let the user override the test. 33770 else 33771 ac_prog_rejected=no 33772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33773 for as_dir in $PATH 33774 do 33775 IFS=$as_save_IFS 33776 test -z "$as_dir" && as_dir=. 33777 for ac_exec_ext in '' $ac_executable_extensions; do 33778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 33780 ac_prog_rejected=yes 33781 continue 33782 fi 33783 ac_cv_prog_MT="mt" 33784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33785 break 2 33786 fi 33787 done 33788 done 33789 IFS=$as_save_IFS 33790 33791 if test $ac_prog_rejected = yes; then 33792 # We found a bogon in the path, so make sure we never use it. 33793 set dummy $ac_cv_prog_MT 33794 shift 33795 if test $# != 0; then 33796 # We chose a different compiler from the bogus one. 33797 # However, it has the same basename, so the bogon will be chosen 33798 # first if we set MT to just the basename; use the full file name. 33799 shift 33800 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 33801 fi 33802 fi 33803 fi 33804 fi 33805 MT=$ac_cv_prog_MT 33806 if test -n "$MT"; then 33807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 33808 $as_echo "$MT" >&6; } 33809 else 33810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33811 $as_echo "no" >&6; } 33812 fi 33813 33814 33815 33816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33817 33818 # First separate the path from the arguments. This will split at the first 33819 # space. 33820 complete="$MT" 33821 path="${complete%% *}" 33822 tmp="$complete EOL" 33823 arguments="${tmp#* }" 33824 33825 # Input might be given as Windows format, start by converting to 33826 # unix format. 33827 new_path=`$CYGPATH -u "$path"` 33828 33829 # Now try to locate executable using which 33830 new_path=`$WHICH "$new_path" 2> /dev/null` 33831 # bat and cmd files are not always considered executable in cygwin causing which 33832 # to not find them 33833 if test "x$new_path" = x \ 33834 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33835 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33836 new_path=`$CYGPATH -u "$path"` 33837 fi 33838 if test "x$new_path" = x; then 33839 # Oops. Which didn't find the executable. 33840 # The splitting of arguments from the executable at a space might have been incorrect, 33841 # since paths with space are more likely in Windows. Give it another try with the whole 33842 # argument. 33843 path="$complete" 33844 arguments="EOL" 33845 new_path=`$CYGPATH -u "$path"` 33846 new_path=`$WHICH "$new_path" 2> /dev/null` 33847 # bat and cmd files are not always considered executable in cygwin causing which 33848 # to not find them 33849 if test "x$new_path" = x \ 33850 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33851 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33852 new_path=`$CYGPATH -u "$path"` 33853 fi 33854 if test "x$new_path" = x; then 33855 # It's still not found. Now this is an unrecoverable error. 33856 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33857 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33858 has_space=`$ECHO "$complete" | $GREP " "` 33859 if test "x$has_space" != x; then 33860 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33861 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33862 fi 33863 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33864 fi 33865 fi 33866 33867 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33868 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33869 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33870 # "foo.exe" is OK but "foo" is an error. 33871 # 33872 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33873 # It is also a way to make sure we got the proper file name for the real test later on. 33874 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33875 if test "x$test_shortpath" = x; then 33876 # Short path failed, file does not exist as specified. 33877 # Try adding .exe or .cmd 33878 if test -f "${new_path}.exe"; then 33879 input_to_shortpath="${new_path}.exe" 33880 elif test -f "${new_path}.cmd"; then 33881 input_to_shortpath="${new_path}.cmd" 33882 else 33883 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 33884 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 33885 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33886 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33887 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33888 fi 33889 else 33890 input_to_shortpath="$new_path" 33891 fi 33892 33893 # Call helper function which possibly converts this using DOS-style short mode. 33894 # If so, the updated path is stored in $new_path. 33895 new_path="$input_to_shortpath" 33896 33897 input_path="$input_to_shortpath" 33898 # Check if we need to convert this using DOS-style short mode. If the path 33899 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33900 # take no chances and rewrite it. 33901 # Note: m4 eats our [], so we need to use [ and ] instead. 33902 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33903 if test "x$has_forbidden_chars" != x; then 33904 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33905 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33906 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33907 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33908 # Going to short mode and back again did indeed matter. Since short mode is 33909 # case insensitive, let's make it lowercase to improve readability. 33910 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33911 # Now convert it back to Unix-stile (cygpath) 33912 input_path=`$CYGPATH -u "$shortmode_path"` 33913 new_path="$input_path" 33914 fi 33915 fi 33916 33917 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33918 if test "x$test_cygdrive_prefix" = x; then 33919 # As a simple fix, exclude /usr/bin since it's not a real path. 33920 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33921 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33922 # a path prefixed by /cygdrive for fixpath to work. 33923 new_path="$CYGWIN_ROOT_PATH$input_path" 33924 fi 33925 fi 33926 33927 # remove trailing .exe if any 33928 new_path="${new_path/%.exe/}" 33929 33930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33931 33932 # First separate the path from the arguments. This will split at the first 33933 # space. 33934 complete="$MT" 33935 path="${complete%% *}" 33936 tmp="$complete EOL" 33937 arguments="${tmp#* }" 33938 33939 # Input might be given as Windows format, start by converting to 33940 # unix format. 33941 new_path="$path" 33942 33943 windows_path="$new_path" 33944 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33945 unix_path=`$CYGPATH -u "$windows_path"` 33946 new_path="$unix_path" 33947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33948 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33949 new_path="$unix_path" 33950 fi 33951 33952 33953 # Now try to locate executable using which 33954 new_path=`$WHICH "$new_path" 2> /dev/null` 33955 33956 if test "x$new_path" = x; then 33957 # Oops. Which didn't find the executable. 33958 # The splitting of arguments from the executable at a space might have been incorrect, 33959 # since paths with space are more likely in Windows. Give it another try with the whole 33960 # argument. 33961 path="$complete" 33962 arguments="EOL" 33963 new_path="$path" 33964 33965 windows_path="$new_path" 33966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33967 unix_path=`$CYGPATH -u "$windows_path"` 33968 new_path="$unix_path" 33969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33970 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33971 new_path="$unix_path" 33972 fi 33973 33974 33975 new_path=`$WHICH "$new_path" 2> /dev/null` 33976 33977 if test "x$new_path" = x; then 33978 # It's still not found. Now this is an unrecoverable error. 33979 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33980 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33981 has_space=`$ECHO "$complete" | $GREP " "` 33982 if test "x$has_space" != x; then 33983 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33984 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33985 fi 33986 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33987 fi 33988 fi 33989 33990 # Now new_path has a complete unix path to the binary 33991 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33992 # Keep paths in /bin as-is, but remove trailing .exe if any 33993 new_path="${new_path/%.exe/}" 33994 # Do not save /bin paths to all_fixpath_prefixes! 33995 else 33996 # Not in mixed or Windows style, start by that. 33997 new_path=`cmd //c echo $new_path` 33998 33999 input_path="$new_path" 34000 # Check if we need to convert this using DOS-style short mode. If the path 34001 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34002 # take no chances and rewrite it. 34003 # Note: m4 eats our [], so we need to use [ and ] instead. 34004 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34005 if test "x$has_forbidden_chars" != x; then 34006 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34007 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34008 fi 34009 34010 # Output is in $new_path 34011 34012 windows_path="$new_path" 34013 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34014 unix_path=`$CYGPATH -u "$windows_path"` 34015 new_path="$unix_path" 34016 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34017 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34018 new_path="$unix_path" 34019 fi 34020 34021 # remove trailing .exe if any 34022 new_path="${new_path/%.exe/}" 34023 34024 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34025 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34026 fi 34027 34028 else 34029 # We're on a posix platform. Hooray! :) 34030 # First separate the path from the arguments. This will split at the first 34031 # space. 34032 complete="$MT" 34033 path="${complete%% *}" 34034 tmp="$complete EOL" 34035 arguments="${tmp#* }" 34036 34037 # Cannot rely on the command "which" here since it doesn't always work. 34038 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34039 if test -z "$is_absolute_path"; then 34040 # Path to executable is not absolute. Find it. 34041 IFS_save="$IFS" 34042 IFS=: 34043 for p in $PATH; do 34044 if test -f "$p/$path" && test -x "$p/$path"; then 34045 new_path="$p/$path" 34046 break 34047 fi 34048 done 34049 IFS="$IFS_save" 34050 else 34051 # This is an absolute path, we can use it without further modifications. 34052 new_path="$path" 34053 fi 34054 34055 if test "x$new_path" = x; then 34056 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34057 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34058 has_space=`$ECHO "$complete" | $GREP " "` 34059 if test "x$has_space" != x; then 34060 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34061 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34062 fi 34063 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34064 fi 34065 fi 34066 34067 # Now join together the path and the arguments once again 34068 if test "x$arguments" != xEOL; then 34069 new_complete="$new_path ${arguments% *}" 34070 else 34071 new_complete="$new_path" 34072 fi 34073 34074 if test "x$complete" != "x$new_complete"; then 34075 MT="$new_complete" 34076 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34077 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34078 fi 34079 34080 # Setup the resource compiler (RC) 34081 # Extract the first word of "rc", so it can be a program name with args. 34082 set dummy rc; ac_word=$2 34083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34084 $as_echo_n "checking for $ac_word... " >&6; } 34085 if ${ac_cv_prog_RC+:} false; then : 34086 $as_echo_n "(cached) " >&6 34087 else 34088 if test -n "$RC"; then 34089 ac_cv_prog_RC="$RC" # Let the user override the test. 34090 else 34091 ac_prog_rejected=no 34092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34093 for as_dir in $PATH 34094 do 34095 IFS=$as_save_IFS 34096 test -z "$as_dir" && as_dir=. 34097 for ac_exec_ext in '' $ac_executable_extensions; do 34098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34099 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34100 ac_prog_rejected=yes 34101 continue 34102 fi 34103 ac_cv_prog_RC="rc" 34104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34105 break 2 34106 fi 34107 done 34108 done 34109 IFS=$as_save_IFS 34110 34111 if test $ac_prog_rejected = yes; then 34112 # We found a bogon in the path, so make sure we never use it. 34113 set dummy $ac_cv_prog_RC 34114 shift 34115 if test $# != 0; then 34116 # We chose a different compiler from the bogus one. 34117 # However, it has the same basename, so the bogon will be chosen 34118 # first if we set RC to just the basename; use the full file name. 34119 shift 34120 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34121 fi 34122 fi 34123 fi 34124 fi 34125 RC=$ac_cv_prog_RC 34126 if test -n "$RC"; then 34127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34128 $as_echo "$RC" >&6; } 34129 else 34130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34131 $as_echo "no" >&6; } 34132 fi 34133 34134 34135 34136 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34137 34138 # First separate the path from the arguments. This will split at the first 34139 # space. 34140 complete="$RC" 34141 path="${complete%% *}" 34142 tmp="$complete EOL" 34143 arguments="${tmp#* }" 34144 34145 # Input might be given as Windows format, start by converting to 34146 # unix format. 34147 new_path=`$CYGPATH -u "$path"` 34148 34149 # Now try to locate executable using which 34150 new_path=`$WHICH "$new_path" 2> /dev/null` 34151 # bat and cmd files are not always considered executable in cygwin causing which 34152 # to not find them 34153 if test "x$new_path" = x \ 34154 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34155 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34156 new_path=`$CYGPATH -u "$path"` 34157 fi 34158 if test "x$new_path" = x; then 34159 # Oops. Which didn't find the executable. 34160 # The splitting of arguments from the executable at a space might have been incorrect, 34161 # since paths with space are more likely in Windows. Give it another try with the whole 34162 # argument. 34163 path="$complete" 34164 arguments="EOL" 34165 new_path=`$CYGPATH -u "$path"` 34166 new_path=`$WHICH "$new_path" 2> /dev/null` 34167 # bat and cmd files are not always considered executable in cygwin causing which 34168 # to not find them 34169 if test "x$new_path" = x \ 34170 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34171 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34172 new_path=`$CYGPATH -u "$path"` 34173 fi 34174 if test "x$new_path" = x; then 34175 # It's still not found. Now this is an unrecoverable error. 34176 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34177 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34178 has_space=`$ECHO "$complete" | $GREP " "` 34179 if test "x$has_space" != x; then 34180 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34181 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34182 fi 34183 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34184 fi 34185 fi 34186 34187 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34188 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34189 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34190 # "foo.exe" is OK but "foo" is an error. 34191 # 34192 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34193 # It is also a way to make sure we got the proper file name for the real test later on. 34194 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34195 if test "x$test_shortpath" = x; then 34196 # Short path failed, file does not exist as specified. 34197 # Try adding .exe or .cmd 34198 if test -f "${new_path}.exe"; then 34199 input_to_shortpath="${new_path}.exe" 34200 elif test -f "${new_path}.cmd"; then 34201 input_to_shortpath="${new_path}.cmd" 34202 else 34203 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34204 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34205 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34206 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34207 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34208 fi 34209 else 34210 input_to_shortpath="$new_path" 34211 fi 34212 34213 # Call helper function which possibly converts this using DOS-style short mode. 34214 # If so, the updated path is stored in $new_path. 34215 new_path="$input_to_shortpath" 34216 34217 input_path="$input_to_shortpath" 34218 # Check if we need to convert this using DOS-style short mode. If the path 34219 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34220 # take no chances and rewrite it. 34221 # Note: m4 eats our [], so we need to use [ and ] instead. 34222 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34223 if test "x$has_forbidden_chars" != x; then 34224 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34225 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34226 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34227 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34228 # Going to short mode and back again did indeed matter. Since short mode is 34229 # case insensitive, let's make it lowercase to improve readability. 34230 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34231 # Now convert it back to Unix-stile (cygpath) 34232 input_path=`$CYGPATH -u "$shortmode_path"` 34233 new_path="$input_path" 34234 fi 34235 fi 34236 34237 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34238 if test "x$test_cygdrive_prefix" = x; then 34239 # As a simple fix, exclude /usr/bin since it's not a real path. 34240 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34241 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34242 # a path prefixed by /cygdrive for fixpath to work. 34243 new_path="$CYGWIN_ROOT_PATH$input_path" 34244 fi 34245 fi 34246 34247 # remove trailing .exe if any 34248 new_path="${new_path/%.exe/}" 34249 34250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34251 34252 # First separate the path from the arguments. This will split at the first 34253 # space. 34254 complete="$RC" 34255 path="${complete%% *}" 34256 tmp="$complete EOL" 34257 arguments="${tmp#* }" 34258 34259 # Input might be given as Windows format, start by converting to 34260 # unix format. 34261 new_path="$path" 34262 34263 windows_path="$new_path" 34264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34265 unix_path=`$CYGPATH -u "$windows_path"` 34266 new_path="$unix_path" 34267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34268 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34269 new_path="$unix_path" 34270 fi 34271 34272 34273 # Now try to locate executable using which 34274 new_path=`$WHICH "$new_path" 2> /dev/null` 34275 34276 if test "x$new_path" = x; then 34277 # Oops. Which didn't find the executable. 34278 # The splitting of arguments from the executable at a space might have been incorrect, 34279 # since paths with space are more likely in Windows. Give it another try with the whole 34280 # argument. 34281 path="$complete" 34282 arguments="EOL" 34283 new_path="$path" 34284 34285 windows_path="$new_path" 34286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34287 unix_path=`$CYGPATH -u "$windows_path"` 34288 new_path="$unix_path" 34289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34290 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34291 new_path="$unix_path" 34292 fi 34293 34294 34295 new_path=`$WHICH "$new_path" 2> /dev/null` 34296 34297 if test "x$new_path" = x; then 34298 # It's still not found. Now this is an unrecoverable error. 34299 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34300 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34301 has_space=`$ECHO "$complete" | $GREP " "` 34302 if test "x$has_space" != x; then 34303 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34304 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34305 fi 34306 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34307 fi 34308 fi 34309 34310 # Now new_path has a complete unix path to the binary 34311 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34312 # Keep paths in /bin as-is, but remove trailing .exe if any 34313 new_path="${new_path/%.exe/}" 34314 # Do not save /bin paths to all_fixpath_prefixes! 34315 else 34316 # Not in mixed or Windows style, start by that. 34317 new_path=`cmd //c echo $new_path` 34318 34319 input_path="$new_path" 34320 # Check if we need to convert this using DOS-style short mode. If the path 34321 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34322 # take no chances and rewrite it. 34323 # Note: m4 eats our [], so we need to use [ and ] instead. 34324 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34325 if test "x$has_forbidden_chars" != x; then 34326 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34327 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34328 fi 34329 34330 # Output is in $new_path 34331 34332 windows_path="$new_path" 34333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34334 unix_path=`$CYGPATH -u "$windows_path"` 34335 new_path="$unix_path" 34336 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34337 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34338 new_path="$unix_path" 34339 fi 34340 34341 # remove trailing .exe if any 34342 new_path="${new_path/%.exe/}" 34343 34344 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34345 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34346 fi 34347 34348 else 34349 # We're on a posix platform. Hooray! :) 34350 # First separate the path from the arguments. This will split at the first 34351 # space. 34352 complete="$RC" 34353 path="${complete%% *}" 34354 tmp="$complete EOL" 34355 arguments="${tmp#* }" 34356 34357 # Cannot rely on the command "which" here since it doesn't always work. 34358 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34359 if test -z "$is_absolute_path"; then 34360 # Path to executable is not absolute. Find it. 34361 IFS_save="$IFS" 34362 IFS=: 34363 for p in $PATH; do 34364 if test -f "$p/$path" && test -x "$p/$path"; then 34365 new_path="$p/$path" 34366 break 34367 fi 34368 done 34369 IFS="$IFS_save" 34370 else 34371 # This is an absolute path, we can use it without further modifications. 34372 new_path="$path" 34373 fi 34374 34375 if test "x$new_path" = x; then 34376 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34377 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34378 has_space=`$ECHO "$complete" | $GREP " "` 34379 if test "x$has_space" != x; then 34380 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34381 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34382 fi 34383 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34384 fi 34385 fi 34386 34387 # Now join together the path and the arguments once again 34388 if test "x$arguments" != xEOL; then 34389 new_complete="$new_path ${arguments% *}" 34390 else 34391 new_complete="$new_path" 34392 fi 34393 34394 if test "x$complete" != "x$new_complete"; then 34395 RC="$new_complete" 34396 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34397 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34398 fi 34399 34400 # Extract the first word of "dumpbin", so it can be a program name with args. 34401 set dummy dumpbin; ac_word=$2 34402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34403 $as_echo_n "checking for $ac_word... " >&6; } 34404 if ${ac_cv_prog_DUMPBIN+:} false; then : 34405 $as_echo_n "(cached) " >&6 34406 else 34407 if test -n "$DUMPBIN"; then 34408 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34409 else 34410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34411 for as_dir in $PATH 34412 do 34413 IFS=$as_save_IFS 34414 test -z "$as_dir" && as_dir=. 34415 for ac_exec_ext in '' $ac_executable_extensions; do 34416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34417 ac_cv_prog_DUMPBIN="dumpbin" 34418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34419 break 2 34420 fi 34421 done 34422 done 34423 IFS=$as_save_IFS 34424 34425 fi 34426 fi 34427 DUMPBIN=$ac_cv_prog_DUMPBIN 34428 if test -n "$DUMPBIN"; then 34429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34430 $as_echo "$DUMPBIN" >&6; } 34431 else 34432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34433 $as_echo "no" >&6; } 34434 fi 34435 34436 34437 34438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34439 34440 # First separate the path from the arguments. This will split at the first 34441 # space. 34442 complete="$DUMPBIN" 34443 path="${complete%% *}" 34444 tmp="$complete EOL" 34445 arguments="${tmp#* }" 34446 34447 # Input might be given as Windows format, start by converting to 34448 # unix format. 34449 new_path=`$CYGPATH -u "$path"` 34450 34451 # Now try to locate executable using which 34452 new_path=`$WHICH "$new_path" 2> /dev/null` 34453 # bat and cmd files are not always considered executable in cygwin causing which 34454 # to not find them 34455 if test "x$new_path" = x \ 34456 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34457 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34458 new_path=`$CYGPATH -u "$path"` 34459 fi 34460 if test "x$new_path" = x; then 34461 # Oops. Which didn't find the executable. 34462 # The splitting of arguments from the executable at a space might have been incorrect, 34463 # since paths with space are more likely in Windows. Give it another try with the whole 34464 # argument. 34465 path="$complete" 34466 arguments="EOL" 34467 new_path=`$CYGPATH -u "$path"` 34468 new_path=`$WHICH "$new_path" 2> /dev/null` 34469 # bat and cmd files are not always considered executable in cygwin causing which 34470 # to not find them 34471 if test "x$new_path" = x \ 34472 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34473 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34474 new_path=`$CYGPATH -u "$path"` 34475 fi 34476 if test "x$new_path" = x; then 34477 # It's still not found. Now this is an unrecoverable error. 34478 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34479 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34480 has_space=`$ECHO "$complete" | $GREP " "` 34481 if test "x$has_space" != x; then 34482 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34483 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34484 fi 34485 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34486 fi 34487 fi 34488 34489 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34490 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34491 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34492 # "foo.exe" is OK but "foo" is an error. 34493 # 34494 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34495 # It is also a way to make sure we got the proper file name for the real test later on. 34496 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34497 if test "x$test_shortpath" = x; then 34498 # Short path failed, file does not exist as specified. 34499 # Try adding .exe or .cmd 34500 if test -f "${new_path}.exe"; then 34501 input_to_shortpath="${new_path}.exe" 34502 elif test -f "${new_path}.cmd"; then 34503 input_to_shortpath="${new_path}.cmd" 34504 else 34505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34506 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34507 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34508 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34509 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34510 fi 34511 else 34512 input_to_shortpath="$new_path" 34513 fi 34514 34515 # Call helper function which possibly converts this using DOS-style short mode. 34516 # If so, the updated path is stored in $new_path. 34517 new_path="$input_to_shortpath" 34518 34519 input_path="$input_to_shortpath" 34520 # Check if we need to convert this using DOS-style short mode. If the path 34521 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34522 # take no chances and rewrite it. 34523 # Note: m4 eats our [], so we need to use [ and ] instead. 34524 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34525 if test "x$has_forbidden_chars" != x; then 34526 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34527 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34528 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34529 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34530 # Going to short mode and back again did indeed matter. Since short mode is 34531 # case insensitive, let's make it lowercase to improve readability. 34532 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34533 # Now convert it back to Unix-stile (cygpath) 34534 input_path=`$CYGPATH -u "$shortmode_path"` 34535 new_path="$input_path" 34536 fi 34537 fi 34538 34539 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34540 if test "x$test_cygdrive_prefix" = x; then 34541 # As a simple fix, exclude /usr/bin since it's not a real path. 34542 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34543 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34544 # a path prefixed by /cygdrive for fixpath to work. 34545 new_path="$CYGWIN_ROOT_PATH$input_path" 34546 fi 34547 fi 34548 34549 # remove trailing .exe if any 34550 new_path="${new_path/%.exe/}" 34551 34552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34553 34554 # First separate the path from the arguments. This will split at the first 34555 # space. 34556 complete="$DUMPBIN" 34557 path="${complete%% *}" 34558 tmp="$complete EOL" 34559 arguments="${tmp#* }" 34560 34561 # Input might be given as Windows format, start by converting to 34562 # unix format. 34563 new_path="$path" 34564 34565 windows_path="$new_path" 34566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34567 unix_path=`$CYGPATH -u "$windows_path"` 34568 new_path="$unix_path" 34569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34570 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34571 new_path="$unix_path" 34572 fi 34573 34574 34575 # Now try to locate executable using which 34576 new_path=`$WHICH "$new_path" 2> /dev/null` 34577 34578 if test "x$new_path" = x; then 34579 # Oops. Which didn't find the executable. 34580 # The splitting of arguments from the executable at a space might have been incorrect, 34581 # since paths with space are more likely in Windows. Give it another try with the whole 34582 # argument. 34583 path="$complete" 34584 arguments="EOL" 34585 new_path="$path" 34586 34587 windows_path="$new_path" 34588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34589 unix_path=`$CYGPATH -u "$windows_path"` 34590 new_path="$unix_path" 34591 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34592 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34593 new_path="$unix_path" 34594 fi 34595 34596 34597 new_path=`$WHICH "$new_path" 2> /dev/null` 34598 34599 if test "x$new_path" = x; then 34600 # It's still not found. Now this is an unrecoverable error. 34601 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34602 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34603 has_space=`$ECHO "$complete" | $GREP " "` 34604 if test "x$has_space" != x; then 34605 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34606 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34607 fi 34608 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34609 fi 34610 fi 34611 34612 # Now new_path has a complete unix path to the binary 34613 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34614 # Keep paths in /bin as-is, but remove trailing .exe if any 34615 new_path="${new_path/%.exe/}" 34616 # Do not save /bin paths to all_fixpath_prefixes! 34617 else 34618 # Not in mixed or Windows style, start by that. 34619 new_path=`cmd //c echo $new_path` 34620 34621 input_path="$new_path" 34622 # Check if we need to convert this using DOS-style short mode. If the path 34623 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34624 # take no chances and rewrite it. 34625 # Note: m4 eats our [], so we need to use [ and ] instead. 34626 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34627 if test "x$has_forbidden_chars" != x; then 34628 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34629 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34630 fi 34631 34632 # Output is in $new_path 34633 34634 windows_path="$new_path" 34635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34636 unix_path=`$CYGPATH -u "$windows_path"` 34637 new_path="$unix_path" 34638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34639 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34640 new_path="$unix_path" 34641 fi 34642 34643 # remove trailing .exe if any 34644 new_path="${new_path/%.exe/}" 34645 34646 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34647 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34648 fi 34649 34650 else 34651 # We're on a posix platform. Hooray! :) 34652 # First separate the path from the arguments. This will split at the first 34653 # space. 34654 complete="$DUMPBIN" 34655 path="${complete%% *}" 34656 tmp="$complete EOL" 34657 arguments="${tmp#* }" 34658 34659 # Cannot rely on the command "which" here since it doesn't always work. 34660 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34661 if test -z "$is_absolute_path"; then 34662 # Path to executable is not absolute. Find it. 34663 IFS_save="$IFS" 34664 IFS=: 34665 for p in $PATH; do 34666 if test -f "$p/$path" && test -x "$p/$path"; then 34667 new_path="$p/$path" 34668 break 34669 fi 34670 done 34671 IFS="$IFS_save" 34672 else 34673 # This is an absolute path, we can use it without further modifications. 34674 new_path="$path" 34675 fi 34676 34677 if test "x$new_path" = x; then 34678 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34679 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34680 has_space=`$ECHO "$complete" | $GREP " "` 34681 if test "x$has_space" != x; then 34682 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34683 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34684 fi 34685 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34686 fi 34687 fi 34688 34689 # Now join together the path and the arguments once again 34690 if test "x$arguments" != xEOL; then 34691 new_complete="$new_path ${arguments% *}" 34692 else 34693 new_complete="$new_path" 34694 fi 34695 34696 if test "x$complete" != "x$new_complete"; then 34697 DUMPBIN="$new_complete" 34698 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 34699 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 34700 fi 34701 34702 fi 34703 34704 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 34705 34706 34707 # Publish this variable in the help. 34708 34709 34710 if test "x$STRIP" = x; then 34711 # The variable is not set by user, try to locate tool using the code snippet 34712 for ac_prog in strip 34713 do 34714 # Extract the first word of "$ac_prog", so it can be a program name with args. 34715 set dummy $ac_prog; ac_word=$2 34716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34717 $as_echo_n "checking for $ac_word... " >&6; } 34718 if ${ac_cv_path_STRIP+:} false; then : 34719 $as_echo_n "(cached) " >&6 34720 else 34721 case $STRIP in 34722 [\\/]* | ?:[\\/]*) 34723 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34724 ;; 34725 *) 34726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34727 for as_dir in $PATH 34728 do 34729 IFS=$as_save_IFS 34730 test -z "$as_dir" && as_dir=. 34731 for ac_exec_ext in '' $ac_executable_extensions; do 34732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34733 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34735 break 2 34736 fi 34737 done 34738 done 34739 IFS=$as_save_IFS 34740 34741 ;; 34742 esac 34743 fi 34744 STRIP=$ac_cv_path_STRIP 34745 if test -n "$STRIP"; then 34746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34747 $as_echo "$STRIP" >&6; } 34748 else 34749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34750 $as_echo "no" >&6; } 34751 fi 34752 34753 34754 test -n "$STRIP" && break 34755 done 34756 34757 else 34758 # The variable is set, but is it from the command line or the environment? 34759 34760 # Try to remove the string !STRIP! from our list. 34761 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 34762 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34763 # If it failed, the variable was not from the command line. Ignore it, 34764 # but warn the user (except for BASH, which is always set by the calling BASH). 34765 if test "xSTRIP" != xBASH; then 34766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 34767 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 34768 fi 34769 # Try to locate tool using the code snippet 34770 for ac_prog in strip 34771 do 34772 # Extract the first word of "$ac_prog", so it can be a program name with args. 34773 set dummy $ac_prog; ac_word=$2 34774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34775 $as_echo_n "checking for $ac_word... " >&6; } 34776 if ${ac_cv_path_STRIP+:} false; then : 34777 $as_echo_n "(cached) " >&6 34778 else 34779 case $STRIP in 34780 [\\/]* | ?:[\\/]*) 34781 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34782 ;; 34783 *) 34784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34785 for as_dir in $PATH 34786 do 34787 IFS=$as_save_IFS 34788 test -z "$as_dir" && as_dir=. 34789 for ac_exec_ext in '' $ac_executable_extensions; do 34790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34791 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34793 break 2 34794 fi 34795 done 34796 done 34797 IFS=$as_save_IFS 34798 34799 ;; 34800 esac 34801 fi 34802 STRIP=$ac_cv_path_STRIP 34803 if test -n "$STRIP"; then 34804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34805 $as_echo "$STRIP" >&6; } 34806 else 34807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34808 $as_echo "no" >&6; } 34809 fi 34810 34811 34812 test -n "$STRIP" && break 34813 done 34814 34815 else 34816 # If it succeeded, then it was overridden by the user. We will use it 34817 # for the tool. 34818 34819 # First remove it from the list of overridden variables, so we can test 34820 # for unknown variables in the end. 34821 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34822 34823 # Check if the provided tool contains a complete path. 34824 tool_specified="$STRIP" 34825 tool_basename="${tool_specified##*/}" 34826 if test "x$tool_basename" = "x$tool_specified"; then 34827 # A command without a complete path is provided, search $PATH. 34828 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 34829 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 34830 # Extract the first word of "$tool_basename", so it can be a program name with args. 34831 set dummy $tool_basename; ac_word=$2 34832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34833 $as_echo_n "checking for $ac_word... " >&6; } 34834 if ${ac_cv_path_STRIP+:} false; then : 34835 $as_echo_n "(cached) " >&6 34836 else 34837 case $STRIP in 34838 [\\/]* | ?:[\\/]*) 34839 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34840 ;; 34841 *) 34842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34843 for as_dir in $PATH 34844 do 34845 IFS=$as_save_IFS 34846 test -z "$as_dir" && as_dir=. 34847 for ac_exec_ext in '' $ac_executable_extensions; do 34848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34849 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34851 break 2 34852 fi 34853 done 34854 done 34855 IFS=$as_save_IFS 34856 34857 ;; 34858 esac 34859 fi 34860 STRIP=$ac_cv_path_STRIP 34861 if test -n "$STRIP"; then 34862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34863 $as_echo "$STRIP" >&6; } 34864 else 34865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34866 $as_echo "no" >&6; } 34867 fi 34868 34869 34870 if test "x$STRIP" = x; then 34871 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34872 fi 34873 else 34874 # Otherwise we believe it is a complete path. Use it as it is. 34875 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 34876 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 34877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 34878 $as_echo_n "checking for STRIP... " >&6; } 34879 if test ! -x "$tool_specified"; then 34880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34881 $as_echo "not found" >&6; } 34882 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 34883 fi 34884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34885 $as_echo "$tool_specified" >&6; } 34886 fi 34887 fi 34888 fi 34889 34890 34891 34892 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34893 34894 # First separate the path from the arguments. This will split at the first 34895 # space. 34896 complete="$STRIP" 34897 path="${complete%% *}" 34898 tmp="$complete EOL" 34899 arguments="${tmp#* }" 34900 34901 # Input might be given as Windows format, start by converting to 34902 # unix format. 34903 new_path=`$CYGPATH -u "$path"` 34904 34905 # Now try to locate executable using which 34906 new_path=`$WHICH "$new_path" 2> /dev/null` 34907 # bat and cmd files are not always considered executable in cygwin causing which 34908 # to not find them 34909 if test "x$new_path" = x \ 34910 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34911 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34912 new_path=`$CYGPATH -u "$path"` 34913 fi 34914 if test "x$new_path" = x; then 34915 # Oops. Which didn't find the executable. 34916 # The splitting of arguments from the executable at a space might have been incorrect, 34917 # since paths with space are more likely in Windows. Give it another try with the whole 34918 # argument. 34919 path="$complete" 34920 arguments="EOL" 34921 new_path=`$CYGPATH -u "$path"` 34922 new_path=`$WHICH "$new_path" 2> /dev/null` 34923 # bat and cmd files are not always considered executable in cygwin causing which 34924 # to not find them 34925 if test "x$new_path" = x \ 34926 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34927 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34928 new_path=`$CYGPATH -u "$path"` 34929 fi 34930 if test "x$new_path" = x; then 34931 # It's still not found. Now this is an unrecoverable error. 34932 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34933 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34934 has_space=`$ECHO "$complete" | $GREP " "` 34935 if test "x$has_space" != x; then 34936 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34937 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34938 fi 34939 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34940 fi 34941 fi 34942 34943 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34944 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34945 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34946 # "foo.exe" is OK but "foo" is an error. 34947 # 34948 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34949 # It is also a way to make sure we got the proper file name for the real test later on. 34950 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34951 if test "x$test_shortpath" = x; then 34952 # Short path failed, file does not exist as specified. 34953 # Try adding .exe or .cmd 34954 if test -f "${new_path}.exe"; then 34955 input_to_shortpath="${new_path}.exe" 34956 elif test -f "${new_path}.cmd"; then 34957 input_to_shortpath="${new_path}.cmd" 34958 else 34959 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 34960 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 34961 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34962 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34963 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34964 fi 34965 else 34966 input_to_shortpath="$new_path" 34967 fi 34968 34969 # Call helper function which possibly converts this using DOS-style short mode. 34970 # If so, the updated path is stored in $new_path. 34971 new_path="$input_to_shortpath" 34972 34973 input_path="$input_to_shortpath" 34974 # Check if we need to convert this using DOS-style short mode. If the path 34975 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34976 # take no chances and rewrite it. 34977 # Note: m4 eats our [], so we need to use [ and ] instead. 34978 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34979 if test "x$has_forbidden_chars" != x; then 34980 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34981 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34982 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34983 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34984 # Going to short mode and back again did indeed matter. Since short mode is 34985 # case insensitive, let's make it lowercase to improve readability. 34986 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34987 # Now convert it back to Unix-stile (cygpath) 34988 input_path=`$CYGPATH -u "$shortmode_path"` 34989 new_path="$input_path" 34990 fi 34991 fi 34992 34993 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34994 if test "x$test_cygdrive_prefix" = x; then 34995 # As a simple fix, exclude /usr/bin since it's not a real path. 34996 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34997 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34998 # a path prefixed by /cygdrive for fixpath to work. 34999 new_path="$CYGWIN_ROOT_PATH$input_path" 35000 fi 35001 fi 35002 35003 # remove trailing .exe if any 35004 new_path="${new_path/%.exe/}" 35005 35006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35007 35008 # First separate the path from the arguments. This will split at the first 35009 # space. 35010 complete="$STRIP" 35011 path="${complete%% *}" 35012 tmp="$complete EOL" 35013 arguments="${tmp#* }" 35014 35015 # Input might be given as Windows format, start by converting to 35016 # unix format. 35017 new_path="$path" 35018 35019 windows_path="$new_path" 35020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35021 unix_path=`$CYGPATH -u "$windows_path"` 35022 new_path="$unix_path" 35023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35024 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35025 new_path="$unix_path" 35026 fi 35027 35028 35029 # Now try to locate executable using which 35030 new_path=`$WHICH "$new_path" 2> /dev/null` 35031 35032 if test "x$new_path" = x; then 35033 # Oops. Which didn't find the executable. 35034 # The splitting of arguments from the executable at a space might have been incorrect, 35035 # since paths with space are more likely in Windows. Give it another try with the whole 35036 # argument. 35037 path="$complete" 35038 arguments="EOL" 35039 new_path="$path" 35040 35041 windows_path="$new_path" 35042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35043 unix_path=`$CYGPATH -u "$windows_path"` 35044 new_path="$unix_path" 35045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35046 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35047 new_path="$unix_path" 35048 fi 35049 35050 35051 new_path=`$WHICH "$new_path" 2> /dev/null` 35052 35053 if test "x$new_path" = x; then 35054 # It's still not found. Now this is an unrecoverable error. 35055 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35056 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35057 has_space=`$ECHO "$complete" | $GREP " "` 35058 if test "x$has_space" != x; then 35059 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35060 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35061 fi 35062 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35063 fi 35064 fi 35065 35066 # Now new_path has a complete unix path to the binary 35067 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35068 # Keep paths in /bin as-is, but remove trailing .exe if any 35069 new_path="${new_path/%.exe/}" 35070 # Do not save /bin paths to all_fixpath_prefixes! 35071 else 35072 # Not in mixed or Windows style, start by that. 35073 new_path=`cmd //c echo $new_path` 35074 35075 input_path="$new_path" 35076 # Check if we need to convert this using DOS-style short mode. If the path 35077 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35078 # take no chances and rewrite it. 35079 # Note: m4 eats our [], so we need to use [ and ] instead. 35080 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35081 if test "x$has_forbidden_chars" != x; then 35082 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35083 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35084 fi 35085 35086 # Output is in $new_path 35087 35088 windows_path="$new_path" 35089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35090 unix_path=`$CYGPATH -u "$windows_path"` 35091 new_path="$unix_path" 35092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35093 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35094 new_path="$unix_path" 35095 fi 35096 35097 # remove trailing .exe if any 35098 new_path="${new_path/%.exe/}" 35099 35100 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35101 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35102 fi 35103 35104 else 35105 # We're on a posix platform. Hooray! :) 35106 # First separate the path from the arguments. This will split at the first 35107 # space. 35108 complete="$STRIP" 35109 path="${complete%% *}" 35110 tmp="$complete EOL" 35111 arguments="${tmp#* }" 35112 35113 # Cannot rely on the command "which" here since it doesn't always work. 35114 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35115 if test -z "$is_absolute_path"; then 35116 # Path to executable is not absolute. Find it. 35117 IFS_save="$IFS" 35118 IFS=: 35119 for p in $PATH; do 35120 if test -f "$p/$path" && test -x "$p/$path"; then 35121 new_path="$p/$path" 35122 break 35123 fi 35124 done 35125 IFS="$IFS_save" 35126 else 35127 # This is an absolute path, we can use it without further modifications. 35128 new_path="$path" 35129 fi 35130 35131 if test "x$new_path" = x; then 35132 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35133 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35134 has_space=`$ECHO "$complete" | $GREP " "` 35135 if test "x$has_space" != x; then 35136 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35137 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35138 fi 35139 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35140 fi 35141 fi 35142 35143 # Now join together the path and the arguments once again 35144 if test "x$arguments" != xEOL; then 35145 new_complete="$new_path ${arguments% *}" 35146 else 35147 new_complete="$new_path" 35148 fi 35149 35150 if test "x$complete" != "x$new_complete"; then 35151 STRIP="$new_complete" 35152 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35153 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35154 fi 35155 35156 35157 35158 # Publish this variable in the help. 35159 35160 35161 if test "x$NM" = x; then 35162 # The variable is not set by user, try to locate tool using the code snippet 35163 for ac_prog in nm 35164 do 35165 # Extract the first word of "$ac_prog", so it can be a program name with args. 35166 set dummy $ac_prog; ac_word=$2 35167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35168 $as_echo_n "checking for $ac_word... " >&6; } 35169 if ${ac_cv_path_NM+:} false; then : 35170 $as_echo_n "(cached) " >&6 35171 else 35172 case $NM in 35173 [\\/]* | ?:[\\/]*) 35174 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35175 ;; 35176 *) 35177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35178 for as_dir in $PATH 35179 do 35180 IFS=$as_save_IFS 35181 test -z "$as_dir" && as_dir=. 35182 for ac_exec_ext in '' $ac_executable_extensions; do 35183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35184 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35186 break 2 35187 fi 35188 done 35189 done 35190 IFS=$as_save_IFS 35191 35192 ;; 35193 esac 35194 fi 35195 NM=$ac_cv_path_NM 35196 if test -n "$NM"; then 35197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35198 $as_echo "$NM" >&6; } 35199 else 35200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35201 $as_echo "no" >&6; } 35202 fi 35203 35204 35205 test -n "$NM" && break 35206 done 35207 35208 else 35209 # The variable is set, but is it from the command line or the environment? 35210 35211 # Try to remove the string !NM! from our list. 35212 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35213 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35214 # If it failed, the variable was not from the command line. Ignore it, 35215 # but warn the user (except for BASH, which is always set by the calling BASH). 35216 if test "xNM" != xBASH; then 35217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35218 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35219 fi 35220 # Try to locate tool using the code snippet 35221 for ac_prog in nm 35222 do 35223 # Extract the first word of "$ac_prog", so it can be a program name with args. 35224 set dummy $ac_prog; ac_word=$2 35225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35226 $as_echo_n "checking for $ac_word... " >&6; } 35227 if ${ac_cv_path_NM+:} false; then : 35228 $as_echo_n "(cached) " >&6 35229 else 35230 case $NM in 35231 [\\/]* | ?:[\\/]*) 35232 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35233 ;; 35234 *) 35235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35236 for as_dir in $PATH 35237 do 35238 IFS=$as_save_IFS 35239 test -z "$as_dir" && as_dir=. 35240 for ac_exec_ext in '' $ac_executable_extensions; do 35241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35242 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35244 break 2 35245 fi 35246 done 35247 done 35248 IFS=$as_save_IFS 35249 35250 ;; 35251 esac 35252 fi 35253 NM=$ac_cv_path_NM 35254 if test -n "$NM"; then 35255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35256 $as_echo "$NM" >&6; } 35257 else 35258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35259 $as_echo "no" >&6; } 35260 fi 35261 35262 35263 test -n "$NM" && break 35264 done 35265 35266 else 35267 # If it succeeded, then it was overridden by the user. We will use it 35268 # for the tool. 35269 35270 # First remove it from the list of overridden variables, so we can test 35271 # for unknown variables in the end. 35272 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35273 35274 # Check if the provided tool contains a complete path. 35275 tool_specified="$NM" 35276 tool_basename="${tool_specified##*/}" 35277 if test "x$tool_basename" = "x$tool_specified"; then 35278 # A command without a complete path is provided, search $PATH. 35279 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35280 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35281 # Extract the first word of "$tool_basename", so it can be a program name with args. 35282 set dummy $tool_basename; ac_word=$2 35283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35284 $as_echo_n "checking for $ac_word... " >&6; } 35285 if ${ac_cv_path_NM+:} false; then : 35286 $as_echo_n "(cached) " >&6 35287 else 35288 case $NM in 35289 [\\/]* | ?:[\\/]*) 35290 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35291 ;; 35292 *) 35293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35294 for as_dir in $PATH 35295 do 35296 IFS=$as_save_IFS 35297 test -z "$as_dir" && as_dir=. 35298 for ac_exec_ext in '' $ac_executable_extensions; do 35299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35300 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35302 break 2 35303 fi 35304 done 35305 done 35306 IFS=$as_save_IFS 35307 35308 ;; 35309 esac 35310 fi 35311 NM=$ac_cv_path_NM 35312 if test -n "$NM"; then 35313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35314 $as_echo "$NM" >&6; } 35315 else 35316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35317 $as_echo "no" >&6; } 35318 fi 35319 35320 35321 if test "x$NM" = x; then 35322 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35323 fi 35324 else 35325 # Otherwise we believe it is a complete path. Use it as it is. 35326 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35327 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35329 $as_echo_n "checking for NM... " >&6; } 35330 if test ! -x "$tool_specified"; then 35331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35332 $as_echo "not found" >&6; } 35333 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35334 fi 35335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35336 $as_echo "$tool_specified" >&6; } 35337 fi 35338 fi 35339 fi 35340 35341 35342 35343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35344 35345 # First separate the path from the arguments. This will split at the first 35346 # space. 35347 complete="$NM" 35348 path="${complete%% *}" 35349 tmp="$complete EOL" 35350 arguments="${tmp#* }" 35351 35352 # Input might be given as Windows format, start by converting to 35353 # unix format. 35354 new_path=`$CYGPATH -u "$path"` 35355 35356 # Now try to locate executable using which 35357 new_path=`$WHICH "$new_path" 2> /dev/null` 35358 # bat and cmd files are not always considered executable in cygwin causing which 35359 # to not find them 35360 if test "x$new_path" = x \ 35361 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35362 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35363 new_path=`$CYGPATH -u "$path"` 35364 fi 35365 if test "x$new_path" = x; then 35366 # Oops. Which didn't find the executable. 35367 # The splitting of arguments from the executable at a space might have been incorrect, 35368 # since paths with space are more likely in Windows. Give it another try with the whole 35369 # argument. 35370 path="$complete" 35371 arguments="EOL" 35372 new_path=`$CYGPATH -u "$path"` 35373 new_path=`$WHICH "$new_path" 2> /dev/null` 35374 # bat and cmd files are not always considered executable in cygwin causing which 35375 # to not find them 35376 if test "x$new_path" = x \ 35377 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35378 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35379 new_path=`$CYGPATH -u "$path"` 35380 fi 35381 if test "x$new_path" = x; then 35382 # It's still not found. Now this is an unrecoverable error. 35383 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35384 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35385 has_space=`$ECHO "$complete" | $GREP " "` 35386 if test "x$has_space" != x; then 35387 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35388 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35389 fi 35390 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35391 fi 35392 fi 35393 35394 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35395 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35396 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35397 # "foo.exe" is OK but "foo" is an error. 35398 # 35399 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35400 # It is also a way to make sure we got the proper file name for the real test later on. 35401 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35402 if test "x$test_shortpath" = x; then 35403 # Short path failed, file does not exist as specified. 35404 # Try adding .exe or .cmd 35405 if test -f "${new_path}.exe"; then 35406 input_to_shortpath="${new_path}.exe" 35407 elif test -f "${new_path}.cmd"; then 35408 input_to_shortpath="${new_path}.cmd" 35409 else 35410 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35411 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35412 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35413 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35414 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35415 fi 35416 else 35417 input_to_shortpath="$new_path" 35418 fi 35419 35420 # Call helper function which possibly converts this using DOS-style short mode. 35421 # If so, the updated path is stored in $new_path. 35422 new_path="$input_to_shortpath" 35423 35424 input_path="$input_to_shortpath" 35425 # Check if we need to convert this using DOS-style short mode. If the path 35426 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35427 # take no chances and rewrite it. 35428 # Note: m4 eats our [], so we need to use [ and ] instead. 35429 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35430 if test "x$has_forbidden_chars" != x; then 35431 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35432 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35433 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35434 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35435 # Going to short mode and back again did indeed matter. Since short mode is 35436 # case insensitive, let's make it lowercase to improve readability. 35437 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35438 # Now convert it back to Unix-stile (cygpath) 35439 input_path=`$CYGPATH -u "$shortmode_path"` 35440 new_path="$input_path" 35441 fi 35442 fi 35443 35444 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35445 if test "x$test_cygdrive_prefix" = x; then 35446 # As a simple fix, exclude /usr/bin since it's not a real path. 35447 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35448 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35449 # a path prefixed by /cygdrive for fixpath to work. 35450 new_path="$CYGWIN_ROOT_PATH$input_path" 35451 fi 35452 fi 35453 35454 # remove trailing .exe if any 35455 new_path="${new_path/%.exe/}" 35456 35457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35458 35459 # First separate the path from the arguments. This will split at the first 35460 # space. 35461 complete="$NM" 35462 path="${complete%% *}" 35463 tmp="$complete EOL" 35464 arguments="${tmp#* }" 35465 35466 # Input might be given as Windows format, start by converting to 35467 # unix format. 35468 new_path="$path" 35469 35470 windows_path="$new_path" 35471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35472 unix_path=`$CYGPATH -u "$windows_path"` 35473 new_path="$unix_path" 35474 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35475 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35476 new_path="$unix_path" 35477 fi 35478 35479 35480 # Now try to locate executable using which 35481 new_path=`$WHICH "$new_path" 2> /dev/null` 35482 35483 if test "x$new_path" = x; then 35484 # Oops. Which didn't find the executable. 35485 # The splitting of arguments from the executable at a space might have been incorrect, 35486 # since paths with space are more likely in Windows. Give it another try with the whole 35487 # argument. 35488 path="$complete" 35489 arguments="EOL" 35490 new_path="$path" 35491 35492 windows_path="$new_path" 35493 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35494 unix_path=`$CYGPATH -u "$windows_path"` 35495 new_path="$unix_path" 35496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35497 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35498 new_path="$unix_path" 35499 fi 35500 35501 35502 new_path=`$WHICH "$new_path" 2> /dev/null` 35503 35504 if test "x$new_path" = x; then 35505 # It's still not found. Now this is an unrecoverable error. 35506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35507 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35508 has_space=`$ECHO "$complete" | $GREP " "` 35509 if test "x$has_space" != x; then 35510 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35511 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35512 fi 35513 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35514 fi 35515 fi 35516 35517 # Now new_path has a complete unix path to the binary 35518 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35519 # Keep paths in /bin as-is, but remove trailing .exe if any 35520 new_path="${new_path/%.exe/}" 35521 # Do not save /bin paths to all_fixpath_prefixes! 35522 else 35523 # Not in mixed or Windows style, start by that. 35524 new_path=`cmd //c echo $new_path` 35525 35526 input_path="$new_path" 35527 # Check if we need to convert this using DOS-style short mode. If the path 35528 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35529 # take no chances and rewrite it. 35530 # Note: m4 eats our [], so we need to use [ and ] instead. 35531 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35532 if test "x$has_forbidden_chars" != x; then 35533 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35534 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35535 fi 35536 35537 # Output is in $new_path 35538 35539 windows_path="$new_path" 35540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35541 unix_path=`$CYGPATH -u "$windows_path"` 35542 new_path="$unix_path" 35543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35544 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35545 new_path="$unix_path" 35546 fi 35547 35548 # remove trailing .exe if any 35549 new_path="${new_path/%.exe/}" 35550 35551 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35552 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35553 fi 35554 35555 else 35556 # We're on a posix platform. Hooray! :) 35557 # First separate the path from the arguments. This will split at the first 35558 # space. 35559 complete="$NM" 35560 path="${complete%% *}" 35561 tmp="$complete EOL" 35562 arguments="${tmp#* }" 35563 35564 # Cannot rely on the command "which" here since it doesn't always work. 35565 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35566 if test -z "$is_absolute_path"; then 35567 # Path to executable is not absolute. Find it. 35568 IFS_save="$IFS" 35569 IFS=: 35570 for p in $PATH; do 35571 if test -f "$p/$path" && test -x "$p/$path"; then 35572 new_path="$p/$path" 35573 break 35574 fi 35575 done 35576 IFS="$IFS_save" 35577 else 35578 # This is an absolute path, we can use it without further modifications. 35579 new_path="$path" 35580 fi 35581 35582 if test "x$new_path" = x; then 35583 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35584 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35585 has_space=`$ECHO "$complete" | $GREP " "` 35586 if test "x$has_space" != x; then 35587 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35588 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35589 fi 35590 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35591 fi 35592 fi 35593 35594 # Now join together the path and the arguments once again 35595 if test "x$arguments" != xEOL; then 35596 new_complete="$new_path ${arguments% *}" 35597 else 35598 new_complete="$new_path" 35599 fi 35600 35601 if test "x$complete" != "x$new_complete"; then 35602 NM="$new_complete" 35603 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 35604 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 35605 fi 35606 35607 35608 35609 # Publish this variable in the help. 35610 35611 35612 if test "x$GNM" = x; then 35613 # The variable is not set by user, try to locate tool using the code snippet 35614 for ac_prog in gnm 35615 do 35616 # Extract the first word of "$ac_prog", so it can be a program name with args. 35617 set dummy $ac_prog; ac_word=$2 35618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35619 $as_echo_n "checking for $ac_word... " >&6; } 35620 if ${ac_cv_path_GNM+:} false; then : 35621 $as_echo_n "(cached) " >&6 35622 else 35623 case $GNM in 35624 [\\/]* | ?:[\\/]*) 35625 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35626 ;; 35627 *) 35628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35629 for as_dir in $PATH 35630 do 35631 IFS=$as_save_IFS 35632 test -z "$as_dir" && as_dir=. 35633 for ac_exec_ext in '' $ac_executable_extensions; do 35634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35635 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35637 break 2 35638 fi 35639 done 35640 done 35641 IFS=$as_save_IFS 35642 35643 ;; 35644 esac 35645 fi 35646 GNM=$ac_cv_path_GNM 35647 if test -n "$GNM"; then 35648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35649 $as_echo "$GNM" >&6; } 35650 else 35651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35652 $as_echo "no" >&6; } 35653 fi 35654 35655 35656 test -n "$GNM" && break 35657 done 35658 35659 else 35660 # The variable is set, but is it from the command line or the environment? 35661 35662 # Try to remove the string !GNM! from our list. 35663 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 35664 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35665 # If it failed, the variable was not from the command line. Ignore it, 35666 # but warn the user (except for BASH, which is always set by the calling BASH). 35667 if test "xGNM" != xBASH; then 35668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 35669 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 35670 fi 35671 # Try to locate tool using the code snippet 35672 for ac_prog in gnm 35673 do 35674 # Extract the first word of "$ac_prog", so it can be a program name with args. 35675 set dummy $ac_prog; ac_word=$2 35676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35677 $as_echo_n "checking for $ac_word... " >&6; } 35678 if ${ac_cv_path_GNM+:} false; then : 35679 $as_echo_n "(cached) " >&6 35680 else 35681 case $GNM in 35682 [\\/]* | ?:[\\/]*) 35683 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35684 ;; 35685 *) 35686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35687 for as_dir in $PATH 35688 do 35689 IFS=$as_save_IFS 35690 test -z "$as_dir" && as_dir=. 35691 for ac_exec_ext in '' $ac_executable_extensions; do 35692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35693 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35695 break 2 35696 fi 35697 done 35698 done 35699 IFS=$as_save_IFS 35700 35701 ;; 35702 esac 35703 fi 35704 GNM=$ac_cv_path_GNM 35705 if test -n "$GNM"; then 35706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35707 $as_echo "$GNM" >&6; } 35708 else 35709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35710 $as_echo "no" >&6; } 35711 fi 35712 35713 35714 test -n "$GNM" && break 35715 done 35716 35717 else 35718 # If it succeeded, then it was overridden by the user. We will use it 35719 # for the tool. 35720 35721 # First remove it from the list of overridden variables, so we can test 35722 # for unknown variables in the end. 35723 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35724 35725 # Check if the provided tool contains a complete path. 35726 tool_specified="$GNM" 35727 tool_basename="${tool_specified##*/}" 35728 if test "x$tool_basename" = "x$tool_specified"; then 35729 # A command without a complete path is provided, search $PATH. 35730 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 35731 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 35732 # Extract the first word of "$tool_basename", so it can be a program name with args. 35733 set dummy $tool_basename; ac_word=$2 35734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35735 $as_echo_n "checking for $ac_word... " >&6; } 35736 if ${ac_cv_path_GNM+:} false; then : 35737 $as_echo_n "(cached) " >&6 35738 else 35739 case $GNM in 35740 [\\/]* | ?:[\\/]*) 35741 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35742 ;; 35743 *) 35744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35745 for as_dir in $PATH 35746 do 35747 IFS=$as_save_IFS 35748 test -z "$as_dir" && as_dir=. 35749 for ac_exec_ext in '' $ac_executable_extensions; do 35750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35751 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35753 break 2 35754 fi 35755 done 35756 done 35757 IFS=$as_save_IFS 35758 35759 ;; 35760 esac 35761 fi 35762 GNM=$ac_cv_path_GNM 35763 if test -n "$GNM"; then 35764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35765 $as_echo "$GNM" >&6; } 35766 else 35767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35768 $as_echo "no" >&6; } 35769 fi 35770 35771 35772 if test "x$GNM" = x; then 35773 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35774 fi 35775 else 35776 # Otherwise we believe it is a complete path. Use it as it is. 35777 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 35778 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 35779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 35780 $as_echo_n "checking for GNM... " >&6; } 35781 if test ! -x "$tool_specified"; then 35782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35783 $as_echo "not found" >&6; } 35784 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 35785 fi 35786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35787 $as_echo "$tool_specified" >&6; } 35788 fi 35789 fi 35790 fi 35791 35792 35793 35794 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35795 35796 # First separate the path from the arguments. This will split at the first 35797 # space. 35798 complete="$GNM" 35799 path="${complete%% *}" 35800 tmp="$complete EOL" 35801 arguments="${tmp#* }" 35802 35803 # Input might be given as Windows format, start by converting to 35804 # unix format. 35805 new_path=`$CYGPATH -u "$path"` 35806 35807 # Now try to locate executable using which 35808 new_path=`$WHICH "$new_path" 2> /dev/null` 35809 # bat and cmd files are not always considered executable in cygwin causing which 35810 # to not find them 35811 if test "x$new_path" = x \ 35812 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35813 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35814 new_path=`$CYGPATH -u "$path"` 35815 fi 35816 if test "x$new_path" = x; then 35817 # Oops. Which didn't find the executable. 35818 # The splitting of arguments from the executable at a space might have been incorrect, 35819 # since paths with space are more likely in Windows. Give it another try with the whole 35820 # argument. 35821 path="$complete" 35822 arguments="EOL" 35823 new_path=`$CYGPATH -u "$path"` 35824 new_path=`$WHICH "$new_path" 2> /dev/null` 35825 # bat and cmd files are not always considered executable in cygwin causing which 35826 # to not find them 35827 if test "x$new_path" = x \ 35828 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35829 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35830 new_path=`$CYGPATH -u "$path"` 35831 fi 35832 if test "x$new_path" = x; then 35833 # It's still not found. Now this is an unrecoverable error. 35834 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35835 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35836 has_space=`$ECHO "$complete" | $GREP " "` 35837 if test "x$has_space" != x; then 35838 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35839 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35840 fi 35841 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35842 fi 35843 fi 35844 35845 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35846 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35847 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35848 # "foo.exe" is OK but "foo" is an error. 35849 # 35850 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35851 # It is also a way to make sure we got the proper file name for the real test later on. 35852 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35853 if test "x$test_shortpath" = x; then 35854 # Short path failed, file does not exist as specified. 35855 # Try adding .exe or .cmd 35856 if test -f "${new_path}.exe"; then 35857 input_to_shortpath="${new_path}.exe" 35858 elif test -f "${new_path}.cmd"; then 35859 input_to_shortpath="${new_path}.cmd" 35860 else 35861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 35862 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 35863 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35864 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35865 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35866 fi 35867 else 35868 input_to_shortpath="$new_path" 35869 fi 35870 35871 # Call helper function which possibly converts this using DOS-style short mode. 35872 # If so, the updated path is stored in $new_path. 35873 new_path="$input_to_shortpath" 35874 35875 input_path="$input_to_shortpath" 35876 # Check if we need to convert this using DOS-style short mode. If the path 35877 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35878 # take no chances and rewrite it. 35879 # Note: m4 eats our [], so we need to use [ and ] instead. 35880 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35881 if test "x$has_forbidden_chars" != x; then 35882 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35883 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35884 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35885 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35886 # Going to short mode and back again did indeed matter. Since short mode is 35887 # case insensitive, let's make it lowercase to improve readability. 35888 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35889 # Now convert it back to Unix-stile (cygpath) 35890 input_path=`$CYGPATH -u "$shortmode_path"` 35891 new_path="$input_path" 35892 fi 35893 fi 35894 35895 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35896 if test "x$test_cygdrive_prefix" = x; then 35897 # As a simple fix, exclude /usr/bin since it's not a real path. 35898 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35899 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35900 # a path prefixed by /cygdrive for fixpath to work. 35901 new_path="$CYGWIN_ROOT_PATH$input_path" 35902 fi 35903 fi 35904 35905 # remove trailing .exe if any 35906 new_path="${new_path/%.exe/}" 35907 35908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35909 35910 # First separate the path from the arguments. This will split at the first 35911 # space. 35912 complete="$GNM" 35913 path="${complete%% *}" 35914 tmp="$complete EOL" 35915 arguments="${tmp#* }" 35916 35917 # Input might be given as Windows format, start by converting to 35918 # unix format. 35919 new_path="$path" 35920 35921 windows_path="$new_path" 35922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35923 unix_path=`$CYGPATH -u "$windows_path"` 35924 new_path="$unix_path" 35925 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35926 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35927 new_path="$unix_path" 35928 fi 35929 35930 35931 # Now try to locate executable using which 35932 new_path=`$WHICH "$new_path" 2> /dev/null` 35933 35934 if test "x$new_path" = x; then 35935 # Oops. Which didn't find the executable. 35936 # The splitting of arguments from the executable at a space might have been incorrect, 35937 # since paths with space are more likely in Windows. Give it another try with the whole 35938 # argument. 35939 path="$complete" 35940 arguments="EOL" 35941 new_path="$path" 35942 35943 windows_path="$new_path" 35944 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35945 unix_path=`$CYGPATH -u "$windows_path"` 35946 new_path="$unix_path" 35947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35948 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35949 new_path="$unix_path" 35950 fi 35951 35952 35953 new_path=`$WHICH "$new_path" 2> /dev/null` 35954 35955 if test "x$new_path" = x; then 35956 # It's still not found. Now this is an unrecoverable error. 35957 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35958 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35959 has_space=`$ECHO "$complete" | $GREP " "` 35960 if test "x$has_space" != x; then 35961 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35962 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35963 fi 35964 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35965 fi 35966 fi 35967 35968 # Now new_path has a complete unix path to the binary 35969 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35970 # Keep paths in /bin as-is, but remove trailing .exe if any 35971 new_path="${new_path/%.exe/}" 35972 # Do not save /bin paths to all_fixpath_prefixes! 35973 else 35974 # Not in mixed or Windows style, start by that. 35975 new_path=`cmd //c echo $new_path` 35976 35977 input_path="$new_path" 35978 # Check if we need to convert this using DOS-style short mode. If the path 35979 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35980 # take no chances and rewrite it. 35981 # Note: m4 eats our [], so we need to use [ and ] instead. 35982 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35983 if test "x$has_forbidden_chars" != x; then 35984 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35985 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35986 fi 35987 35988 # Output is in $new_path 35989 35990 windows_path="$new_path" 35991 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35992 unix_path=`$CYGPATH -u "$windows_path"` 35993 new_path="$unix_path" 35994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35995 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35996 new_path="$unix_path" 35997 fi 35998 35999 # remove trailing .exe if any 36000 new_path="${new_path/%.exe/}" 36001 36002 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36003 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36004 fi 36005 36006 else 36007 # We're on a posix platform. Hooray! :) 36008 # First separate the path from the arguments. This will split at the first 36009 # space. 36010 complete="$GNM" 36011 path="${complete%% *}" 36012 tmp="$complete EOL" 36013 arguments="${tmp#* }" 36014 36015 # Cannot rely on the command "which" here since it doesn't always work. 36016 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36017 if test -z "$is_absolute_path"; then 36018 # Path to executable is not absolute. Find it. 36019 IFS_save="$IFS" 36020 IFS=: 36021 for p in $PATH; do 36022 if test -f "$p/$path" && test -x "$p/$path"; then 36023 new_path="$p/$path" 36024 break 36025 fi 36026 done 36027 IFS="$IFS_save" 36028 else 36029 # This is an absolute path, we can use it without further modifications. 36030 new_path="$path" 36031 fi 36032 36033 if test "x$new_path" = x; then 36034 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36035 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36036 has_space=`$ECHO "$complete" | $GREP " "` 36037 if test "x$has_space" != x; then 36038 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36039 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36040 fi 36041 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36042 fi 36043 fi 36044 36045 # Now join together the path and the arguments once again 36046 if test "x$arguments" != xEOL; then 36047 new_complete="$new_path ${arguments% *}" 36048 else 36049 new_complete="$new_path" 36050 fi 36051 36052 if test "x$complete" != "x$new_complete"; then 36053 GNM="$new_complete" 36054 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36055 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36056 fi 36057 36058 36059 36060 36061 # Publish this variable in the help. 36062 36063 36064 if test "x$MCS" = x; then 36065 # The variable is not set by user, try to locate tool using the code snippet 36066 for ac_prog in mcs 36067 do 36068 # Extract the first word of "$ac_prog", so it can be a program name with args. 36069 set dummy $ac_prog; ac_word=$2 36070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36071 $as_echo_n "checking for $ac_word... " >&6; } 36072 if ${ac_cv_path_MCS+:} false; then : 36073 $as_echo_n "(cached) " >&6 36074 else 36075 case $MCS in 36076 [\\/]* | ?:[\\/]*) 36077 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36078 ;; 36079 *) 36080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36081 for as_dir in $PATH 36082 do 36083 IFS=$as_save_IFS 36084 test -z "$as_dir" && as_dir=. 36085 for ac_exec_ext in '' $ac_executable_extensions; do 36086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36087 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36089 break 2 36090 fi 36091 done 36092 done 36093 IFS=$as_save_IFS 36094 36095 ;; 36096 esac 36097 fi 36098 MCS=$ac_cv_path_MCS 36099 if test -n "$MCS"; then 36100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36101 $as_echo "$MCS" >&6; } 36102 else 36103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36104 $as_echo "no" >&6; } 36105 fi 36106 36107 36108 test -n "$MCS" && break 36109 done 36110 36111 else 36112 # The variable is set, but is it from the command line or the environment? 36113 36114 # Try to remove the string !MCS! from our list. 36115 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 36116 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36117 # If it failed, the variable was not from the command line. Ignore it, 36118 # but warn the user (except for BASH, which is always set by the calling BASH). 36119 if test "xMCS" != xBASH; then 36120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 36121 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 36122 fi 36123 # Try to locate tool using the code snippet 36124 for ac_prog in mcs 36125 do 36126 # Extract the first word of "$ac_prog", so it can be a program name with args. 36127 set dummy $ac_prog; ac_word=$2 36128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36129 $as_echo_n "checking for $ac_word... " >&6; } 36130 if ${ac_cv_path_MCS+:} false; then : 36131 $as_echo_n "(cached) " >&6 36132 else 36133 case $MCS in 36134 [\\/]* | ?:[\\/]*) 36135 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36136 ;; 36137 *) 36138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36139 for as_dir in $PATH 36140 do 36141 IFS=$as_save_IFS 36142 test -z "$as_dir" && as_dir=. 36143 for ac_exec_ext in '' $ac_executable_extensions; do 36144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36145 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36147 break 2 36148 fi 36149 done 36150 done 36151 IFS=$as_save_IFS 36152 36153 ;; 36154 esac 36155 fi 36156 MCS=$ac_cv_path_MCS 36157 if test -n "$MCS"; then 36158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36159 $as_echo "$MCS" >&6; } 36160 else 36161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36162 $as_echo "no" >&6; } 36163 fi 36164 36165 36166 test -n "$MCS" && break 36167 done 36168 36169 else 36170 # If it succeeded, then it was overridden by the user. We will use it 36171 # for the tool. 36172 36173 # First remove it from the list of overridden variables, so we can test 36174 # for unknown variables in the end. 36175 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36176 36177 # Check if the provided tool contains a complete path. 36178 tool_specified="$MCS" 36179 tool_basename="${tool_specified##*/}" 36180 if test "x$tool_basename" = "x$tool_specified"; then 36181 # A command without a complete path is provided, search $PATH. 36182 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 36183 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 36184 # Extract the first word of "$tool_basename", so it can be a program name with args. 36185 set dummy $tool_basename; ac_word=$2 36186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36187 $as_echo_n "checking for $ac_word... " >&6; } 36188 if ${ac_cv_path_MCS+:} false; then : 36189 $as_echo_n "(cached) " >&6 36190 else 36191 case $MCS in 36192 [\\/]* | ?:[\\/]*) 36193 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36194 ;; 36195 *) 36196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36197 for as_dir in $PATH 36198 do 36199 IFS=$as_save_IFS 36200 test -z "$as_dir" && as_dir=. 36201 for ac_exec_ext in '' $ac_executable_extensions; do 36202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36203 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36205 break 2 36206 fi 36207 done 36208 done 36209 IFS=$as_save_IFS 36210 36211 ;; 36212 esac 36213 fi 36214 MCS=$ac_cv_path_MCS 36215 if test -n "$MCS"; then 36216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36217 $as_echo "$MCS" >&6; } 36218 else 36219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36220 $as_echo "no" >&6; } 36221 fi 36222 36223 36224 if test "x$MCS" = x; then 36225 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36226 fi 36227 else 36228 # Otherwise we believe it is a complete path. Use it as it is. 36229 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36230 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36232 $as_echo_n "checking for MCS... " >&6; } 36233 if test ! -x "$tool_specified"; then 36234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36235 $as_echo "not found" >&6; } 36236 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36237 fi 36238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36239 $as_echo "$tool_specified" >&6; } 36240 fi 36241 fi 36242 fi 36243 36244 36245 36246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36247 36248 # First separate the path from the arguments. This will split at the first 36249 # space. 36250 complete="$MCS" 36251 path="${complete%% *}" 36252 tmp="$complete EOL" 36253 arguments="${tmp#* }" 36254 36255 # Input might be given as Windows format, start by converting to 36256 # unix format. 36257 new_path=`$CYGPATH -u "$path"` 36258 36259 # Now try to locate executable using which 36260 new_path=`$WHICH "$new_path" 2> /dev/null` 36261 # bat and cmd files are not always considered executable in cygwin causing which 36262 # to not find them 36263 if test "x$new_path" = x \ 36264 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36265 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36266 new_path=`$CYGPATH -u "$path"` 36267 fi 36268 if test "x$new_path" = x; then 36269 # Oops. Which didn't find the executable. 36270 # The splitting of arguments from the executable at a space might have been incorrect, 36271 # since paths with space are more likely in Windows. Give it another try with the whole 36272 # argument. 36273 path="$complete" 36274 arguments="EOL" 36275 new_path=`$CYGPATH -u "$path"` 36276 new_path=`$WHICH "$new_path" 2> /dev/null` 36277 # bat and cmd files are not always considered executable in cygwin causing which 36278 # to not find them 36279 if test "x$new_path" = x \ 36280 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36281 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36282 new_path=`$CYGPATH -u "$path"` 36283 fi 36284 if test "x$new_path" = x; then 36285 # It's still not found. Now this is an unrecoverable error. 36286 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36287 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36288 has_space=`$ECHO "$complete" | $GREP " "` 36289 if test "x$has_space" != x; then 36290 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36291 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36292 fi 36293 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36294 fi 36295 fi 36296 36297 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36298 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36299 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36300 # "foo.exe" is OK but "foo" is an error. 36301 # 36302 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36303 # It is also a way to make sure we got the proper file name for the real test later on. 36304 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36305 if test "x$test_shortpath" = x; then 36306 # Short path failed, file does not exist as specified. 36307 # Try adding .exe or .cmd 36308 if test -f "${new_path}.exe"; then 36309 input_to_shortpath="${new_path}.exe" 36310 elif test -f "${new_path}.cmd"; then 36311 input_to_shortpath="${new_path}.cmd" 36312 else 36313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36314 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36315 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36316 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36317 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36318 fi 36319 else 36320 input_to_shortpath="$new_path" 36321 fi 36322 36323 # Call helper function which possibly converts this using DOS-style short mode. 36324 # If so, the updated path is stored in $new_path. 36325 new_path="$input_to_shortpath" 36326 36327 input_path="$input_to_shortpath" 36328 # Check if we need to convert this using DOS-style short mode. If the path 36329 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36330 # take no chances and rewrite it. 36331 # Note: m4 eats our [], so we need to use [ and ] instead. 36332 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36333 if test "x$has_forbidden_chars" != x; then 36334 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36335 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36336 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36337 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36338 # Going to short mode and back again did indeed matter. Since short mode is 36339 # case insensitive, let's make it lowercase to improve readability. 36340 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36341 # Now convert it back to Unix-stile (cygpath) 36342 input_path=`$CYGPATH -u "$shortmode_path"` 36343 new_path="$input_path" 36344 fi 36345 fi 36346 36347 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36348 if test "x$test_cygdrive_prefix" = x; then 36349 # As a simple fix, exclude /usr/bin since it's not a real path. 36350 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36351 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36352 # a path prefixed by /cygdrive for fixpath to work. 36353 new_path="$CYGWIN_ROOT_PATH$input_path" 36354 fi 36355 fi 36356 36357 # remove trailing .exe if any 36358 new_path="${new_path/%.exe/}" 36359 36360 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36361 36362 # First separate the path from the arguments. This will split at the first 36363 # space. 36364 complete="$MCS" 36365 path="${complete%% *}" 36366 tmp="$complete EOL" 36367 arguments="${tmp#* }" 36368 36369 # Input might be given as Windows format, start by converting to 36370 # unix format. 36371 new_path="$path" 36372 36373 windows_path="$new_path" 36374 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36375 unix_path=`$CYGPATH -u "$windows_path"` 36376 new_path="$unix_path" 36377 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36378 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36379 new_path="$unix_path" 36380 fi 36381 36382 36383 # Now try to locate executable using which 36384 new_path=`$WHICH "$new_path" 2> /dev/null` 36385 36386 if test "x$new_path" = x; then 36387 # Oops. Which didn't find the executable. 36388 # The splitting of arguments from the executable at a space might have been incorrect, 36389 # since paths with space are more likely in Windows. Give it another try with the whole 36390 # argument. 36391 path="$complete" 36392 arguments="EOL" 36393 new_path="$path" 36394 36395 windows_path="$new_path" 36396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36397 unix_path=`$CYGPATH -u "$windows_path"` 36398 new_path="$unix_path" 36399 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36400 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36401 new_path="$unix_path" 36402 fi 36403 36404 36405 new_path=`$WHICH "$new_path" 2> /dev/null` 36406 36407 if test "x$new_path" = x; then 36408 # It's still not found. Now this is an unrecoverable error. 36409 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36410 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36411 has_space=`$ECHO "$complete" | $GREP " "` 36412 if test "x$has_space" != x; then 36413 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36414 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36415 fi 36416 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36417 fi 36418 fi 36419 36420 # Now new_path has a complete unix path to the binary 36421 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36422 # Keep paths in /bin as-is, but remove trailing .exe if any 36423 new_path="${new_path/%.exe/}" 36424 # Do not save /bin paths to all_fixpath_prefixes! 36425 else 36426 # Not in mixed or Windows style, start by that. 36427 new_path=`cmd //c echo $new_path` 36428 36429 input_path="$new_path" 36430 # Check if we need to convert this using DOS-style short mode. If the path 36431 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36432 # take no chances and rewrite it. 36433 # Note: m4 eats our [], so we need to use [ and ] instead. 36434 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36435 if test "x$has_forbidden_chars" != x; then 36436 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36437 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36438 fi 36439 36440 # Output is in $new_path 36441 36442 windows_path="$new_path" 36443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36444 unix_path=`$CYGPATH -u "$windows_path"` 36445 new_path="$unix_path" 36446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36447 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36448 new_path="$unix_path" 36449 fi 36450 36451 # remove trailing .exe if any 36452 new_path="${new_path/%.exe/}" 36453 36454 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36455 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36456 fi 36457 36458 else 36459 # We're on a posix platform. Hooray! :) 36460 # First separate the path from the arguments. This will split at the first 36461 # space. 36462 complete="$MCS" 36463 path="${complete%% *}" 36464 tmp="$complete EOL" 36465 arguments="${tmp#* }" 36466 36467 # Cannot rely on the command "which" here since it doesn't always work. 36468 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36469 if test -z "$is_absolute_path"; then 36470 # Path to executable is not absolute. Find it. 36471 IFS_save="$IFS" 36472 IFS=: 36473 for p in $PATH; do 36474 if test -f "$p/$path" && test -x "$p/$path"; then 36475 new_path="$p/$path" 36476 break 36477 fi 36478 done 36479 IFS="$IFS_save" 36480 else 36481 # This is an absolute path, we can use it without further modifications. 36482 new_path="$path" 36483 fi 36484 36485 if test "x$new_path" = x; then 36486 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36487 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36488 has_space=`$ECHO "$complete" | $GREP " "` 36489 if test "x$has_space" != x; then 36490 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36491 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36492 fi 36493 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36494 fi 36495 fi 36496 36497 # Now join together the path and the arguments once again 36498 if test "x$arguments" != xEOL; then 36499 new_complete="$new_path ${arguments% *}" 36500 else 36501 new_complete="$new_path" 36502 fi 36503 36504 if test "x$complete" != "x$new_complete"; then 36505 MCS="$new_complete" 36506 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 36507 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 36508 fi 36509 36510 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 36511 # FIXME: we should unify this with the solaris case above. 36512 36513 36514 # Publish this variable in the help. 36515 36516 36517 if test "x$STRIP" = x; then 36518 # The variable is not set by user, try to locate tool using the code snippet 36519 if test -n "$ac_tool_prefix"; then 36520 for ac_prog in strip 36521 do 36522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36525 $as_echo_n "checking for $ac_word... " >&6; } 36526 if ${ac_cv_prog_STRIP+:} false; then : 36527 $as_echo_n "(cached) " >&6 36528 else 36529 if test -n "$STRIP"; then 36530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36531 else 36532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36533 for as_dir in $PATH 36534 do 36535 IFS=$as_save_IFS 36536 test -z "$as_dir" && as_dir=. 36537 for ac_exec_ext in '' $ac_executable_extensions; do 36538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36539 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36541 break 2 36542 fi 36543 done 36544 done 36545 IFS=$as_save_IFS 36546 36547 fi 36548 fi 36549 STRIP=$ac_cv_prog_STRIP 36550 if test -n "$STRIP"; then 36551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36552 $as_echo "$STRIP" >&6; } 36553 else 36554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36555 $as_echo "no" >&6; } 36556 fi 36557 36558 36559 test -n "$STRIP" && break 36560 done 36561 fi 36562 if test -z "$STRIP"; then 36563 ac_ct_STRIP=$STRIP 36564 for ac_prog in strip 36565 do 36566 # Extract the first word of "$ac_prog", so it can be a program name with args. 36567 set dummy $ac_prog; ac_word=$2 36568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36569 $as_echo_n "checking for $ac_word... " >&6; } 36570 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36571 $as_echo_n "(cached) " >&6 36572 else 36573 if test -n "$ac_ct_STRIP"; then 36574 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36575 else 36576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36577 for as_dir in $PATH 36578 do 36579 IFS=$as_save_IFS 36580 test -z "$as_dir" && as_dir=. 36581 for ac_exec_ext in '' $ac_executable_extensions; do 36582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36583 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36585 break 2 36586 fi 36587 done 36588 done 36589 IFS=$as_save_IFS 36590 36591 fi 36592 fi 36593 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36594 if test -n "$ac_ct_STRIP"; then 36595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36596 $as_echo "$ac_ct_STRIP" >&6; } 36597 else 36598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36599 $as_echo "no" >&6; } 36600 fi 36601 36602 36603 test -n "$ac_ct_STRIP" && break 36604 done 36605 36606 if test "x$ac_ct_STRIP" = x; then 36607 STRIP="" 36608 else 36609 case $cross_compiling:$ac_tool_warned in 36610 yes:) 36611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36613 ac_tool_warned=yes ;; 36614 esac 36615 STRIP=$ac_ct_STRIP 36616 fi 36617 fi 36618 36619 else 36620 # The variable is set, but is it from the command line or the environment? 36621 36622 # Try to remove the string !STRIP! from our list. 36623 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 36624 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36625 # If it failed, the variable was not from the command line. Ignore it, 36626 # but warn the user (except for BASH, which is always set by the calling BASH). 36627 if test "xSTRIP" != xBASH; then 36628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 36629 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 36630 fi 36631 # Try to locate tool using the code snippet 36632 if test -n "$ac_tool_prefix"; then 36633 for ac_prog in strip 36634 do 36635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36638 $as_echo_n "checking for $ac_word... " >&6; } 36639 if ${ac_cv_prog_STRIP+:} false; then : 36640 $as_echo_n "(cached) " >&6 36641 else 36642 if test -n "$STRIP"; then 36643 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36644 else 36645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36646 for as_dir in $PATH 36647 do 36648 IFS=$as_save_IFS 36649 test -z "$as_dir" && as_dir=. 36650 for ac_exec_ext in '' $ac_executable_extensions; do 36651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36652 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36654 break 2 36655 fi 36656 done 36657 done 36658 IFS=$as_save_IFS 36659 36660 fi 36661 fi 36662 STRIP=$ac_cv_prog_STRIP 36663 if test -n "$STRIP"; then 36664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36665 $as_echo "$STRIP" >&6; } 36666 else 36667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36668 $as_echo "no" >&6; } 36669 fi 36670 36671 36672 test -n "$STRIP" && break 36673 done 36674 fi 36675 if test -z "$STRIP"; then 36676 ac_ct_STRIP=$STRIP 36677 for ac_prog in strip 36678 do 36679 # Extract the first word of "$ac_prog", so it can be a program name with args. 36680 set dummy $ac_prog; ac_word=$2 36681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36682 $as_echo_n "checking for $ac_word... " >&6; } 36683 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36684 $as_echo_n "(cached) " >&6 36685 else 36686 if test -n "$ac_ct_STRIP"; then 36687 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36688 else 36689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36690 for as_dir in $PATH 36691 do 36692 IFS=$as_save_IFS 36693 test -z "$as_dir" && as_dir=. 36694 for ac_exec_ext in '' $ac_executable_extensions; do 36695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36696 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36698 break 2 36699 fi 36700 done 36701 done 36702 IFS=$as_save_IFS 36703 36704 fi 36705 fi 36706 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36707 if test -n "$ac_ct_STRIP"; then 36708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36709 $as_echo "$ac_ct_STRIP" >&6; } 36710 else 36711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36712 $as_echo "no" >&6; } 36713 fi 36714 36715 36716 test -n "$ac_ct_STRIP" && break 36717 done 36718 36719 if test "x$ac_ct_STRIP" = x; then 36720 STRIP="" 36721 else 36722 case $cross_compiling:$ac_tool_warned in 36723 yes:) 36724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36726 ac_tool_warned=yes ;; 36727 esac 36728 STRIP=$ac_ct_STRIP 36729 fi 36730 fi 36731 36732 else 36733 # If it succeeded, then it was overridden by the user. We will use it 36734 # for the tool. 36735 36736 # First remove it from the list of overridden variables, so we can test 36737 # for unknown variables in the end. 36738 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36739 36740 # Check if the provided tool contains a complete path. 36741 tool_specified="$STRIP" 36742 tool_basename="${tool_specified##*/}" 36743 if test "x$tool_basename" = "x$tool_specified"; then 36744 # A command without a complete path is provided, search $PATH. 36745 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 36746 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 36747 # Extract the first word of "$tool_basename", so it can be a program name with args. 36748 set dummy $tool_basename; ac_word=$2 36749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36750 $as_echo_n "checking for $ac_word... " >&6; } 36751 if ${ac_cv_path_STRIP+:} false; then : 36752 $as_echo_n "(cached) " >&6 36753 else 36754 case $STRIP in 36755 [\\/]* | ?:[\\/]*) 36756 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 36757 ;; 36758 *) 36759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36760 for as_dir in $PATH 36761 do 36762 IFS=$as_save_IFS 36763 test -z "$as_dir" && as_dir=. 36764 for ac_exec_ext in '' $ac_executable_extensions; do 36765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36766 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 36767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36768 break 2 36769 fi 36770 done 36771 done 36772 IFS=$as_save_IFS 36773 36774 ;; 36775 esac 36776 fi 36777 STRIP=$ac_cv_path_STRIP 36778 if test -n "$STRIP"; then 36779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36780 $as_echo "$STRIP" >&6; } 36781 else 36782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36783 $as_echo "no" >&6; } 36784 fi 36785 36786 36787 if test "x$STRIP" = x; then 36788 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36789 fi 36790 else 36791 # Otherwise we believe it is a complete path. Use it as it is. 36792 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 36793 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 36794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 36795 $as_echo_n "checking for STRIP... " >&6; } 36796 if test ! -x "$tool_specified"; then 36797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36798 $as_echo "not found" >&6; } 36799 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 36800 fi 36801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36802 $as_echo "$tool_specified" >&6; } 36803 fi 36804 fi 36805 fi 36806 36807 36808 36809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36810 36811 # First separate the path from the arguments. This will split at the first 36812 # space. 36813 complete="$STRIP" 36814 path="${complete%% *}" 36815 tmp="$complete EOL" 36816 arguments="${tmp#* }" 36817 36818 # Input might be given as Windows format, start by converting to 36819 # unix format. 36820 new_path=`$CYGPATH -u "$path"` 36821 36822 # Now try to locate executable using which 36823 new_path=`$WHICH "$new_path" 2> /dev/null` 36824 # bat and cmd files are not always considered executable in cygwin causing which 36825 # to not find them 36826 if test "x$new_path" = x \ 36827 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36828 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36829 new_path=`$CYGPATH -u "$path"` 36830 fi 36831 if test "x$new_path" = x; then 36832 # Oops. Which didn't find the executable. 36833 # The splitting of arguments from the executable at a space might have been incorrect, 36834 # since paths with space are more likely in Windows. Give it another try with the whole 36835 # argument. 36836 path="$complete" 36837 arguments="EOL" 36838 new_path=`$CYGPATH -u "$path"` 36839 new_path=`$WHICH "$new_path" 2> /dev/null` 36840 # bat and cmd files are not always considered executable in cygwin causing which 36841 # to not find them 36842 if test "x$new_path" = x \ 36843 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36844 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36845 new_path=`$CYGPATH -u "$path"` 36846 fi 36847 if test "x$new_path" = x; then 36848 # It's still not found. Now this is an unrecoverable error. 36849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36850 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36851 has_space=`$ECHO "$complete" | $GREP " "` 36852 if test "x$has_space" != x; then 36853 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36854 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36855 fi 36856 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36857 fi 36858 fi 36859 36860 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36861 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36862 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36863 # "foo.exe" is OK but "foo" is an error. 36864 # 36865 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36866 # It is also a way to make sure we got the proper file name for the real test later on. 36867 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36868 if test "x$test_shortpath" = x; then 36869 # Short path failed, file does not exist as specified. 36870 # Try adding .exe or .cmd 36871 if test -f "${new_path}.exe"; then 36872 input_to_shortpath="${new_path}.exe" 36873 elif test -f "${new_path}.cmd"; then 36874 input_to_shortpath="${new_path}.cmd" 36875 else 36876 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 36877 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 36878 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36879 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36880 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36881 fi 36882 else 36883 input_to_shortpath="$new_path" 36884 fi 36885 36886 # Call helper function which possibly converts this using DOS-style short mode. 36887 # If so, the updated path is stored in $new_path. 36888 new_path="$input_to_shortpath" 36889 36890 input_path="$input_to_shortpath" 36891 # Check if we need to convert this using DOS-style short mode. If the path 36892 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36893 # take no chances and rewrite it. 36894 # Note: m4 eats our [], so we need to use [ and ] instead. 36895 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36896 if test "x$has_forbidden_chars" != x; then 36897 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36898 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36899 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36900 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36901 # Going to short mode and back again did indeed matter. Since short mode is 36902 # case insensitive, let's make it lowercase to improve readability. 36903 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36904 # Now convert it back to Unix-stile (cygpath) 36905 input_path=`$CYGPATH -u "$shortmode_path"` 36906 new_path="$input_path" 36907 fi 36908 fi 36909 36910 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36911 if test "x$test_cygdrive_prefix" = x; then 36912 # As a simple fix, exclude /usr/bin since it's not a real path. 36913 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36914 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36915 # a path prefixed by /cygdrive for fixpath to work. 36916 new_path="$CYGWIN_ROOT_PATH$input_path" 36917 fi 36918 fi 36919 36920 # remove trailing .exe if any 36921 new_path="${new_path/%.exe/}" 36922 36923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36924 36925 # First separate the path from the arguments. This will split at the first 36926 # space. 36927 complete="$STRIP" 36928 path="${complete%% *}" 36929 tmp="$complete EOL" 36930 arguments="${tmp#* }" 36931 36932 # Input might be given as Windows format, start by converting to 36933 # unix format. 36934 new_path="$path" 36935 36936 windows_path="$new_path" 36937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36938 unix_path=`$CYGPATH -u "$windows_path"` 36939 new_path="$unix_path" 36940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36941 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36942 new_path="$unix_path" 36943 fi 36944 36945 36946 # Now try to locate executable using which 36947 new_path=`$WHICH "$new_path" 2> /dev/null` 36948 36949 if test "x$new_path" = x; then 36950 # Oops. Which didn't find the executable. 36951 # The splitting of arguments from the executable at a space might have been incorrect, 36952 # since paths with space are more likely in Windows. Give it another try with the whole 36953 # argument. 36954 path="$complete" 36955 arguments="EOL" 36956 new_path="$path" 36957 36958 windows_path="$new_path" 36959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36960 unix_path=`$CYGPATH -u "$windows_path"` 36961 new_path="$unix_path" 36962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36963 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36964 new_path="$unix_path" 36965 fi 36966 36967 36968 new_path=`$WHICH "$new_path" 2> /dev/null` 36969 36970 if test "x$new_path" = x; then 36971 # It's still not found. Now this is an unrecoverable error. 36972 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36973 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36974 has_space=`$ECHO "$complete" | $GREP " "` 36975 if test "x$has_space" != x; then 36976 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36977 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36978 fi 36979 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36980 fi 36981 fi 36982 36983 # Now new_path has a complete unix path to the binary 36984 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36985 # Keep paths in /bin as-is, but remove trailing .exe if any 36986 new_path="${new_path/%.exe/}" 36987 # Do not save /bin paths to all_fixpath_prefixes! 36988 else 36989 # Not in mixed or Windows style, start by that. 36990 new_path=`cmd //c echo $new_path` 36991 36992 input_path="$new_path" 36993 # Check if we need to convert this using DOS-style short mode. If the path 36994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36995 # take no chances and rewrite it. 36996 # Note: m4 eats our [], so we need to use [ and ] instead. 36997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36998 if test "x$has_forbidden_chars" != x; then 36999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37000 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37001 fi 37002 37003 # Output is in $new_path 37004 37005 windows_path="$new_path" 37006 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37007 unix_path=`$CYGPATH -u "$windows_path"` 37008 new_path="$unix_path" 37009 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37010 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37011 new_path="$unix_path" 37012 fi 37013 37014 # remove trailing .exe if any 37015 new_path="${new_path/%.exe/}" 37016 37017 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37018 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37019 fi 37020 37021 else 37022 # We're on a posix platform. Hooray! :) 37023 # First separate the path from the arguments. This will split at the first 37024 # space. 37025 complete="$STRIP" 37026 path="${complete%% *}" 37027 tmp="$complete EOL" 37028 arguments="${tmp#* }" 37029 37030 # Cannot rely on the command "which" here since it doesn't always work. 37031 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37032 if test -z "$is_absolute_path"; then 37033 # Path to executable is not absolute. Find it. 37034 IFS_save="$IFS" 37035 IFS=: 37036 for p in $PATH; do 37037 if test -f "$p/$path" && test -x "$p/$path"; then 37038 new_path="$p/$path" 37039 break 37040 fi 37041 done 37042 IFS="$IFS_save" 37043 else 37044 # This is an absolute path, we can use it without further modifications. 37045 new_path="$path" 37046 fi 37047 37048 if test "x$new_path" = x; then 37049 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37050 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37051 has_space=`$ECHO "$complete" | $GREP " "` 37052 if test "x$has_space" != x; then 37053 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37054 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37055 fi 37056 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37057 fi 37058 fi 37059 37060 # Now join together the path and the arguments once again 37061 if test "x$arguments" != xEOL; then 37062 new_complete="$new_path ${arguments% *}" 37063 else 37064 new_complete="$new_path" 37065 fi 37066 37067 if test "x$complete" != "x$new_complete"; then 37068 STRIP="$new_complete" 37069 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37070 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37071 fi 37072 37073 37074 37075 # Publish this variable in the help. 37076 37077 37078 if test "x$NM" = x; then 37079 # The variable is not set by user, try to locate tool using the code snippet 37080 if test -n "$ac_tool_prefix"; then 37081 for ac_prog in nm 37082 do 37083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37086 $as_echo_n "checking for $ac_word... " >&6; } 37087 if ${ac_cv_prog_NM+:} false; then : 37088 $as_echo_n "(cached) " >&6 37089 else 37090 if test -n "$NM"; then 37091 ac_cv_prog_NM="$NM" # Let the user override the test. 37092 else 37093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37094 for as_dir in $PATH 37095 do 37096 IFS=$as_save_IFS 37097 test -z "$as_dir" && as_dir=. 37098 for ac_exec_ext in '' $ac_executable_extensions; do 37099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37100 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37102 break 2 37103 fi 37104 done 37105 done 37106 IFS=$as_save_IFS 37107 37108 fi 37109 fi 37110 NM=$ac_cv_prog_NM 37111 if test -n "$NM"; then 37112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37113 $as_echo "$NM" >&6; } 37114 else 37115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37116 $as_echo "no" >&6; } 37117 fi 37118 37119 37120 test -n "$NM" && break 37121 done 37122 fi 37123 if test -z "$NM"; then 37124 ac_ct_NM=$NM 37125 for ac_prog in nm 37126 do 37127 # Extract the first word of "$ac_prog", so it can be a program name with args. 37128 set dummy $ac_prog; ac_word=$2 37129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37130 $as_echo_n "checking for $ac_word... " >&6; } 37131 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37132 $as_echo_n "(cached) " >&6 37133 else 37134 if test -n "$ac_ct_NM"; then 37135 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37136 else 37137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37138 for as_dir in $PATH 37139 do 37140 IFS=$as_save_IFS 37141 test -z "$as_dir" && as_dir=. 37142 for ac_exec_ext in '' $ac_executable_extensions; do 37143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37144 ac_cv_prog_ac_ct_NM="$ac_prog" 37145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37146 break 2 37147 fi 37148 done 37149 done 37150 IFS=$as_save_IFS 37151 37152 fi 37153 fi 37154 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37155 if test -n "$ac_ct_NM"; then 37156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37157 $as_echo "$ac_ct_NM" >&6; } 37158 else 37159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37160 $as_echo "no" >&6; } 37161 fi 37162 37163 37164 test -n "$ac_ct_NM" && break 37165 done 37166 37167 if test "x$ac_ct_NM" = x; then 37168 NM="" 37169 else 37170 case $cross_compiling:$ac_tool_warned in 37171 yes:) 37172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37174 ac_tool_warned=yes ;; 37175 esac 37176 NM=$ac_ct_NM 37177 fi 37178 fi 37179 37180 else 37181 # The variable is set, but is it from the command line or the environment? 37182 37183 # Try to remove the string !NM! from our list. 37184 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37185 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37186 # If it failed, the variable was not from the command line. Ignore it, 37187 # but warn the user (except for BASH, which is always set by the calling BASH). 37188 if test "xNM" != xBASH; then 37189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37190 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37191 fi 37192 # Try to locate tool using the code snippet 37193 if test -n "$ac_tool_prefix"; then 37194 for ac_prog in nm 37195 do 37196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37199 $as_echo_n "checking for $ac_word... " >&6; } 37200 if ${ac_cv_prog_NM+:} false; then : 37201 $as_echo_n "(cached) " >&6 37202 else 37203 if test -n "$NM"; then 37204 ac_cv_prog_NM="$NM" # Let the user override the test. 37205 else 37206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37207 for as_dir in $PATH 37208 do 37209 IFS=$as_save_IFS 37210 test -z "$as_dir" && as_dir=. 37211 for ac_exec_ext in '' $ac_executable_extensions; do 37212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37213 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37215 break 2 37216 fi 37217 done 37218 done 37219 IFS=$as_save_IFS 37220 37221 fi 37222 fi 37223 NM=$ac_cv_prog_NM 37224 if test -n "$NM"; then 37225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37226 $as_echo "$NM" >&6; } 37227 else 37228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37229 $as_echo "no" >&6; } 37230 fi 37231 37232 37233 test -n "$NM" && break 37234 done 37235 fi 37236 if test -z "$NM"; then 37237 ac_ct_NM=$NM 37238 for ac_prog in nm 37239 do 37240 # Extract the first word of "$ac_prog", so it can be a program name with args. 37241 set dummy $ac_prog; ac_word=$2 37242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37243 $as_echo_n "checking for $ac_word... " >&6; } 37244 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37245 $as_echo_n "(cached) " >&6 37246 else 37247 if test -n "$ac_ct_NM"; then 37248 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37249 else 37250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37251 for as_dir in $PATH 37252 do 37253 IFS=$as_save_IFS 37254 test -z "$as_dir" && as_dir=. 37255 for ac_exec_ext in '' $ac_executable_extensions; do 37256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37257 ac_cv_prog_ac_ct_NM="$ac_prog" 37258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37259 break 2 37260 fi 37261 done 37262 done 37263 IFS=$as_save_IFS 37264 37265 fi 37266 fi 37267 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37268 if test -n "$ac_ct_NM"; then 37269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37270 $as_echo "$ac_ct_NM" >&6; } 37271 else 37272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37273 $as_echo "no" >&6; } 37274 fi 37275 37276 37277 test -n "$ac_ct_NM" && break 37278 done 37279 37280 if test "x$ac_ct_NM" = x; then 37281 NM="" 37282 else 37283 case $cross_compiling:$ac_tool_warned in 37284 yes:) 37285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37287 ac_tool_warned=yes ;; 37288 esac 37289 NM=$ac_ct_NM 37290 fi 37291 fi 37292 37293 else 37294 # If it succeeded, then it was overridden by the user. We will use it 37295 # for the tool. 37296 37297 # First remove it from the list of overridden variables, so we can test 37298 # for unknown variables in the end. 37299 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37300 37301 # Check if the provided tool contains a complete path. 37302 tool_specified="$NM" 37303 tool_basename="${tool_specified##*/}" 37304 if test "x$tool_basename" = "x$tool_specified"; then 37305 # A command without a complete path is provided, search $PATH. 37306 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37307 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37308 # Extract the first word of "$tool_basename", so it can be a program name with args. 37309 set dummy $tool_basename; ac_word=$2 37310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37311 $as_echo_n "checking for $ac_word... " >&6; } 37312 if ${ac_cv_path_NM+:} false; then : 37313 $as_echo_n "(cached) " >&6 37314 else 37315 case $NM in 37316 [\\/]* | ?:[\\/]*) 37317 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37318 ;; 37319 *) 37320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37321 for as_dir in $PATH 37322 do 37323 IFS=$as_save_IFS 37324 test -z "$as_dir" && as_dir=. 37325 for ac_exec_ext in '' $ac_executable_extensions; do 37326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37327 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37329 break 2 37330 fi 37331 done 37332 done 37333 IFS=$as_save_IFS 37334 37335 ;; 37336 esac 37337 fi 37338 NM=$ac_cv_path_NM 37339 if test -n "$NM"; then 37340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37341 $as_echo "$NM" >&6; } 37342 else 37343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37344 $as_echo "no" >&6; } 37345 fi 37346 37347 37348 if test "x$NM" = x; then 37349 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37350 fi 37351 else 37352 # Otherwise we believe it is a complete path. Use it as it is. 37353 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37354 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37356 $as_echo_n "checking for NM... " >&6; } 37357 if test ! -x "$tool_specified"; then 37358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37359 $as_echo "not found" >&6; } 37360 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37361 fi 37362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37363 $as_echo "$tool_specified" >&6; } 37364 fi 37365 fi 37366 fi 37367 37368 37369 37370 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37371 37372 # First separate the path from the arguments. This will split at the first 37373 # space. 37374 complete="$NM" 37375 path="${complete%% *}" 37376 tmp="$complete EOL" 37377 arguments="${tmp#* }" 37378 37379 # Input might be given as Windows format, start by converting to 37380 # unix format. 37381 new_path=`$CYGPATH -u "$path"` 37382 37383 # Now try to locate executable using which 37384 new_path=`$WHICH "$new_path" 2> /dev/null` 37385 # bat and cmd files are not always considered executable in cygwin causing which 37386 # to not find them 37387 if test "x$new_path" = x \ 37388 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37389 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37390 new_path=`$CYGPATH -u "$path"` 37391 fi 37392 if test "x$new_path" = x; then 37393 # Oops. Which didn't find the executable. 37394 # The splitting of arguments from the executable at a space might have been incorrect, 37395 # since paths with space are more likely in Windows. Give it another try with the whole 37396 # argument. 37397 path="$complete" 37398 arguments="EOL" 37399 new_path=`$CYGPATH -u "$path"` 37400 new_path=`$WHICH "$new_path" 2> /dev/null` 37401 # bat and cmd files are not always considered executable in cygwin causing which 37402 # to not find them 37403 if test "x$new_path" = x \ 37404 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37405 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37406 new_path=`$CYGPATH -u "$path"` 37407 fi 37408 if test "x$new_path" = x; then 37409 # It's still not found. Now this is an unrecoverable error. 37410 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37411 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37412 has_space=`$ECHO "$complete" | $GREP " "` 37413 if test "x$has_space" != x; then 37414 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37415 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37416 fi 37417 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37418 fi 37419 fi 37420 37421 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37422 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37423 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37424 # "foo.exe" is OK but "foo" is an error. 37425 # 37426 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37427 # It is also a way to make sure we got the proper file name for the real test later on. 37428 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37429 if test "x$test_shortpath" = x; then 37430 # Short path failed, file does not exist as specified. 37431 # Try adding .exe or .cmd 37432 if test -f "${new_path}.exe"; then 37433 input_to_shortpath="${new_path}.exe" 37434 elif test -f "${new_path}.cmd"; then 37435 input_to_shortpath="${new_path}.cmd" 37436 else 37437 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 37438 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 37439 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37440 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37441 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37442 fi 37443 else 37444 input_to_shortpath="$new_path" 37445 fi 37446 37447 # Call helper function which possibly converts this using DOS-style short mode. 37448 # If so, the updated path is stored in $new_path. 37449 new_path="$input_to_shortpath" 37450 37451 input_path="$input_to_shortpath" 37452 # Check if we need to convert this using DOS-style short mode. If the path 37453 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37454 # take no chances and rewrite it. 37455 # Note: m4 eats our [], so we need to use [ and ] instead. 37456 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37457 if test "x$has_forbidden_chars" != x; then 37458 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37459 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37460 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37461 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37462 # Going to short mode and back again did indeed matter. Since short mode is 37463 # case insensitive, let's make it lowercase to improve readability. 37464 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37465 # Now convert it back to Unix-stile (cygpath) 37466 input_path=`$CYGPATH -u "$shortmode_path"` 37467 new_path="$input_path" 37468 fi 37469 fi 37470 37471 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37472 if test "x$test_cygdrive_prefix" = x; then 37473 # As a simple fix, exclude /usr/bin since it's not a real path. 37474 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37475 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37476 # a path prefixed by /cygdrive for fixpath to work. 37477 new_path="$CYGWIN_ROOT_PATH$input_path" 37478 fi 37479 fi 37480 37481 # remove trailing .exe if any 37482 new_path="${new_path/%.exe/}" 37483 37484 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37485 37486 # First separate the path from the arguments. This will split at the first 37487 # space. 37488 complete="$NM" 37489 path="${complete%% *}" 37490 tmp="$complete EOL" 37491 arguments="${tmp#* }" 37492 37493 # Input might be given as Windows format, start by converting to 37494 # unix format. 37495 new_path="$path" 37496 37497 windows_path="$new_path" 37498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37499 unix_path=`$CYGPATH -u "$windows_path"` 37500 new_path="$unix_path" 37501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37502 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37503 new_path="$unix_path" 37504 fi 37505 37506 37507 # Now try to locate executable using which 37508 new_path=`$WHICH "$new_path" 2> /dev/null` 37509 37510 if test "x$new_path" = x; then 37511 # Oops. Which didn't find the executable. 37512 # The splitting of arguments from the executable at a space might have been incorrect, 37513 # since paths with space are more likely in Windows. Give it another try with the whole 37514 # argument. 37515 path="$complete" 37516 arguments="EOL" 37517 new_path="$path" 37518 37519 windows_path="$new_path" 37520 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37521 unix_path=`$CYGPATH -u "$windows_path"` 37522 new_path="$unix_path" 37523 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37524 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37525 new_path="$unix_path" 37526 fi 37527 37528 37529 new_path=`$WHICH "$new_path" 2> /dev/null` 37530 37531 if test "x$new_path" = x; then 37532 # It's still not found. Now this is an unrecoverable error. 37533 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37534 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37535 has_space=`$ECHO "$complete" | $GREP " "` 37536 if test "x$has_space" != x; then 37537 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37538 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37539 fi 37540 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37541 fi 37542 fi 37543 37544 # Now new_path has a complete unix path to the binary 37545 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37546 # Keep paths in /bin as-is, but remove trailing .exe if any 37547 new_path="${new_path/%.exe/}" 37548 # Do not save /bin paths to all_fixpath_prefixes! 37549 else 37550 # Not in mixed or Windows style, start by that. 37551 new_path=`cmd //c echo $new_path` 37552 37553 input_path="$new_path" 37554 # Check if we need to convert this using DOS-style short mode. If the path 37555 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37556 # take no chances and rewrite it. 37557 # Note: m4 eats our [], so we need to use [ and ] instead. 37558 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37559 if test "x$has_forbidden_chars" != x; then 37560 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37561 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37562 fi 37563 37564 # Output is in $new_path 37565 37566 windows_path="$new_path" 37567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37568 unix_path=`$CYGPATH -u "$windows_path"` 37569 new_path="$unix_path" 37570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37571 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37572 new_path="$unix_path" 37573 fi 37574 37575 # remove trailing .exe if any 37576 new_path="${new_path/%.exe/}" 37577 37578 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37579 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37580 fi 37581 37582 else 37583 # We're on a posix platform. Hooray! :) 37584 # First separate the path from the arguments. This will split at the first 37585 # space. 37586 complete="$NM" 37587 path="${complete%% *}" 37588 tmp="$complete EOL" 37589 arguments="${tmp#* }" 37590 37591 # Cannot rely on the command "which" here since it doesn't always work. 37592 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37593 if test -z "$is_absolute_path"; then 37594 # Path to executable is not absolute. Find it. 37595 IFS_save="$IFS" 37596 IFS=: 37597 for p in $PATH; do 37598 if test -f "$p/$path" && test -x "$p/$path"; then 37599 new_path="$p/$path" 37600 break 37601 fi 37602 done 37603 IFS="$IFS_save" 37604 else 37605 # This is an absolute path, we can use it without further modifications. 37606 new_path="$path" 37607 fi 37608 37609 if test "x$new_path" = x; then 37610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37611 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37612 has_space=`$ECHO "$complete" | $GREP " "` 37613 if test "x$has_space" != x; then 37614 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37615 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37616 fi 37617 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37618 fi 37619 fi 37620 37621 # Now join together the path and the arguments once again 37622 if test "x$arguments" != xEOL; then 37623 new_complete="$new_path ${arguments% *}" 37624 else 37625 new_complete="$new_path" 37626 fi 37627 37628 if test "x$complete" != "x$new_complete"; then 37629 NM="$new_complete" 37630 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 37631 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 37632 fi 37633 37634 GNM="$NM" 37635 37636 fi 37637 37638 # objcopy is used for moving debug symbols to separate files when 37639 # full debug symbols are enabled. 37640 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 37641 37642 37643 # Publish this variable in the help. 37644 37645 37646 if test "x$OBJCOPY" = x; then 37647 # The variable is not set by user, try to locate tool using the code snippet 37648 if test -n "$ac_tool_prefix"; then 37649 for ac_prog in gobjcopy objcopy 37650 do 37651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37654 $as_echo_n "checking for $ac_word... " >&6; } 37655 if ${ac_cv_prog_OBJCOPY+:} false; then : 37656 $as_echo_n "(cached) " >&6 37657 else 37658 if test -n "$OBJCOPY"; then 37659 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37660 else 37661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37662 for as_dir in $PATH 37663 do 37664 IFS=$as_save_IFS 37665 test -z "$as_dir" && as_dir=. 37666 for ac_exec_ext in '' $ac_executable_extensions; do 37667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37668 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37670 break 2 37671 fi 37672 done 37673 done 37674 IFS=$as_save_IFS 37675 37676 fi 37677 fi 37678 OBJCOPY=$ac_cv_prog_OBJCOPY 37679 if test -n "$OBJCOPY"; then 37680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37681 $as_echo "$OBJCOPY" >&6; } 37682 else 37683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37684 $as_echo "no" >&6; } 37685 fi 37686 37687 37688 test -n "$OBJCOPY" && break 37689 done 37690 fi 37691 if test -z "$OBJCOPY"; then 37692 ac_ct_OBJCOPY=$OBJCOPY 37693 for ac_prog in gobjcopy objcopy 37694 do 37695 # Extract the first word of "$ac_prog", so it can be a program name with args. 37696 set dummy $ac_prog; ac_word=$2 37697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37698 $as_echo_n "checking for $ac_word... " >&6; } 37699 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37700 $as_echo_n "(cached) " >&6 37701 else 37702 if test -n "$ac_ct_OBJCOPY"; then 37703 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37704 else 37705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37706 for as_dir in $PATH 37707 do 37708 IFS=$as_save_IFS 37709 test -z "$as_dir" && as_dir=. 37710 for ac_exec_ext in '' $ac_executable_extensions; do 37711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37712 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37714 break 2 37715 fi 37716 done 37717 done 37718 IFS=$as_save_IFS 37719 37720 fi 37721 fi 37722 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37723 if test -n "$ac_ct_OBJCOPY"; then 37724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37725 $as_echo "$ac_ct_OBJCOPY" >&6; } 37726 else 37727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37728 $as_echo "no" >&6; } 37729 fi 37730 37731 37732 test -n "$ac_ct_OBJCOPY" && break 37733 done 37734 37735 if test "x$ac_ct_OBJCOPY" = x; then 37736 OBJCOPY="" 37737 else 37738 case $cross_compiling:$ac_tool_warned in 37739 yes:) 37740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37742 ac_tool_warned=yes ;; 37743 esac 37744 OBJCOPY=$ac_ct_OBJCOPY 37745 fi 37746 fi 37747 37748 else 37749 # The variable is set, but is it from the command line or the environment? 37750 37751 # Try to remove the string !OBJCOPY! from our list. 37752 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 37753 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37754 # If it failed, the variable was not from the command line. Ignore it, 37755 # but warn the user (except for BASH, which is always set by the calling BASH). 37756 if test "xOBJCOPY" != xBASH; then 37757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 37758 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 37759 fi 37760 # Try to locate tool using the code snippet 37761 if test -n "$ac_tool_prefix"; then 37762 for ac_prog in gobjcopy objcopy 37763 do 37764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37767 $as_echo_n "checking for $ac_word... " >&6; } 37768 if ${ac_cv_prog_OBJCOPY+:} false; then : 37769 $as_echo_n "(cached) " >&6 37770 else 37771 if test -n "$OBJCOPY"; then 37772 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37773 else 37774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37775 for as_dir in $PATH 37776 do 37777 IFS=$as_save_IFS 37778 test -z "$as_dir" && as_dir=. 37779 for ac_exec_ext in '' $ac_executable_extensions; do 37780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37781 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37783 break 2 37784 fi 37785 done 37786 done 37787 IFS=$as_save_IFS 37788 37789 fi 37790 fi 37791 OBJCOPY=$ac_cv_prog_OBJCOPY 37792 if test -n "$OBJCOPY"; then 37793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37794 $as_echo "$OBJCOPY" >&6; } 37795 else 37796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37797 $as_echo "no" >&6; } 37798 fi 37799 37800 37801 test -n "$OBJCOPY" && break 37802 done 37803 fi 37804 if test -z "$OBJCOPY"; then 37805 ac_ct_OBJCOPY=$OBJCOPY 37806 for ac_prog in gobjcopy objcopy 37807 do 37808 # Extract the first word of "$ac_prog", so it can be a program name with args. 37809 set dummy $ac_prog; ac_word=$2 37810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37811 $as_echo_n "checking for $ac_word... " >&6; } 37812 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37813 $as_echo_n "(cached) " >&6 37814 else 37815 if test -n "$ac_ct_OBJCOPY"; then 37816 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37817 else 37818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37819 for as_dir in $PATH 37820 do 37821 IFS=$as_save_IFS 37822 test -z "$as_dir" && as_dir=. 37823 for ac_exec_ext in '' $ac_executable_extensions; do 37824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37825 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37827 break 2 37828 fi 37829 done 37830 done 37831 IFS=$as_save_IFS 37832 37833 fi 37834 fi 37835 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37836 if test -n "$ac_ct_OBJCOPY"; then 37837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37838 $as_echo "$ac_ct_OBJCOPY" >&6; } 37839 else 37840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37841 $as_echo "no" >&6; } 37842 fi 37843 37844 37845 test -n "$ac_ct_OBJCOPY" && break 37846 done 37847 37848 if test "x$ac_ct_OBJCOPY" = x; then 37849 OBJCOPY="" 37850 else 37851 case $cross_compiling:$ac_tool_warned in 37852 yes:) 37853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37855 ac_tool_warned=yes ;; 37856 esac 37857 OBJCOPY=$ac_ct_OBJCOPY 37858 fi 37859 fi 37860 37861 else 37862 # If it succeeded, then it was overridden by the user. We will use it 37863 # for the tool. 37864 37865 # First remove it from the list of overridden variables, so we can test 37866 # for unknown variables in the end. 37867 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37868 37869 # Check if the provided tool contains a complete path. 37870 tool_specified="$OBJCOPY" 37871 tool_basename="${tool_specified##*/}" 37872 if test "x$tool_basename" = "x$tool_specified"; then 37873 # A command without a complete path is provided, search $PATH. 37874 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 37875 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 37876 # Extract the first word of "$tool_basename", so it can be a program name with args. 37877 set dummy $tool_basename; ac_word=$2 37878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37879 $as_echo_n "checking for $ac_word... " >&6; } 37880 if ${ac_cv_path_OBJCOPY+:} false; then : 37881 $as_echo_n "(cached) " >&6 37882 else 37883 case $OBJCOPY in 37884 [\\/]* | ?:[\\/]*) 37885 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 37886 ;; 37887 *) 37888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37889 for as_dir in $PATH 37890 do 37891 IFS=$as_save_IFS 37892 test -z "$as_dir" && as_dir=. 37893 for ac_exec_ext in '' $ac_executable_extensions; do 37894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37895 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 37896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37897 break 2 37898 fi 37899 done 37900 done 37901 IFS=$as_save_IFS 37902 37903 ;; 37904 esac 37905 fi 37906 OBJCOPY=$ac_cv_path_OBJCOPY 37907 if test -n "$OBJCOPY"; then 37908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37909 $as_echo "$OBJCOPY" >&6; } 37910 else 37911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37912 $as_echo "no" >&6; } 37913 fi 37914 37915 37916 if test "x$OBJCOPY" = x; then 37917 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37918 fi 37919 else 37920 # Otherwise we believe it is a complete path. Use it as it is. 37921 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 37922 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 37923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 37924 $as_echo_n "checking for OBJCOPY... " >&6; } 37925 if test ! -x "$tool_specified"; then 37926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37927 $as_echo "not found" >&6; } 37928 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 37929 fi 37930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37931 $as_echo "$tool_specified" >&6; } 37932 fi 37933 fi 37934 fi 37935 37936 37937 # Only call fixup if objcopy was found. 37938 if test -n "$OBJCOPY"; then 37939 37940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37941 37942 # First separate the path from the arguments. This will split at the first 37943 # space. 37944 complete="$OBJCOPY" 37945 path="${complete%% *}" 37946 tmp="$complete EOL" 37947 arguments="${tmp#* }" 37948 37949 # Input might be given as Windows format, start by converting to 37950 # unix format. 37951 new_path=`$CYGPATH -u "$path"` 37952 37953 # Now try to locate executable using which 37954 new_path=`$WHICH "$new_path" 2> /dev/null` 37955 # bat and cmd files are not always considered executable in cygwin causing which 37956 # to not find them 37957 if test "x$new_path" = x \ 37958 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37959 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37960 new_path=`$CYGPATH -u "$path"` 37961 fi 37962 if test "x$new_path" = x; then 37963 # Oops. Which didn't find the executable. 37964 # The splitting of arguments from the executable at a space might have been incorrect, 37965 # since paths with space are more likely in Windows. Give it another try with the whole 37966 # argument. 37967 path="$complete" 37968 arguments="EOL" 37969 new_path=`$CYGPATH -u "$path"` 37970 new_path=`$WHICH "$new_path" 2> /dev/null` 37971 # bat and cmd files are not always considered executable in cygwin causing which 37972 # to not find them 37973 if test "x$new_path" = x \ 37974 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37975 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37976 new_path=`$CYGPATH -u "$path"` 37977 fi 37978 if test "x$new_path" = x; then 37979 # It's still not found. Now this is an unrecoverable error. 37980 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 37981 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 37982 has_space=`$ECHO "$complete" | $GREP " "` 37983 if test "x$has_space" != x; then 37984 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37985 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37986 fi 37987 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37988 fi 37989 fi 37990 37991 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37992 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37993 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37994 # "foo.exe" is OK but "foo" is an error. 37995 # 37996 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37997 # It is also a way to make sure we got the proper file name for the real test later on. 37998 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37999 if test "x$test_shortpath" = x; then 38000 # Short path failed, file does not exist as specified. 38001 # Try adding .exe or .cmd 38002 if test -f "${new_path}.exe"; then 38003 input_to_shortpath="${new_path}.exe" 38004 elif test -f "${new_path}.cmd"; then 38005 input_to_shortpath="${new_path}.cmd" 38006 else 38007 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 38008 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 38009 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38010 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38011 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38012 fi 38013 else 38014 input_to_shortpath="$new_path" 38015 fi 38016 38017 # Call helper function which possibly converts this using DOS-style short mode. 38018 # If so, the updated path is stored in $new_path. 38019 new_path="$input_to_shortpath" 38020 38021 input_path="$input_to_shortpath" 38022 # Check if we need to convert this using DOS-style short mode. If the path 38023 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38024 # take no chances and rewrite it. 38025 # Note: m4 eats our [], so we need to use [ and ] instead. 38026 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38027 if test "x$has_forbidden_chars" != x; then 38028 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38029 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38030 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38031 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38032 # Going to short mode and back again did indeed matter. Since short mode is 38033 # case insensitive, let's make it lowercase to improve readability. 38034 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38035 # Now convert it back to Unix-stile (cygpath) 38036 input_path=`$CYGPATH -u "$shortmode_path"` 38037 new_path="$input_path" 38038 fi 38039 fi 38040 38041 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38042 if test "x$test_cygdrive_prefix" = x; then 38043 # As a simple fix, exclude /usr/bin since it's not a real path. 38044 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38045 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38046 # a path prefixed by /cygdrive for fixpath to work. 38047 new_path="$CYGWIN_ROOT_PATH$input_path" 38048 fi 38049 fi 38050 38051 # remove trailing .exe if any 38052 new_path="${new_path/%.exe/}" 38053 38054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38055 38056 # First separate the path from the arguments. This will split at the first 38057 # space. 38058 complete="$OBJCOPY" 38059 path="${complete%% *}" 38060 tmp="$complete EOL" 38061 arguments="${tmp#* }" 38062 38063 # Input might be given as Windows format, start by converting to 38064 # unix format. 38065 new_path="$path" 38066 38067 windows_path="$new_path" 38068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38069 unix_path=`$CYGPATH -u "$windows_path"` 38070 new_path="$unix_path" 38071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38072 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38073 new_path="$unix_path" 38074 fi 38075 38076 38077 # Now try to locate executable using which 38078 new_path=`$WHICH "$new_path" 2> /dev/null` 38079 38080 if test "x$new_path" = x; then 38081 # Oops. Which didn't find the executable. 38082 # The splitting of arguments from the executable at a space might have been incorrect, 38083 # since paths with space are more likely in Windows. Give it another try with the whole 38084 # argument. 38085 path="$complete" 38086 arguments="EOL" 38087 new_path="$path" 38088 38089 windows_path="$new_path" 38090 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38091 unix_path=`$CYGPATH -u "$windows_path"` 38092 new_path="$unix_path" 38093 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38094 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38095 new_path="$unix_path" 38096 fi 38097 38098 38099 new_path=`$WHICH "$new_path" 2> /dev/null` 38100 38101 if test "x$new_path" = x; then 38102 # It's still not found. Now this is an unrecoverable error. 38103 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38104 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38105 has_space=`$ECHO "$complete" | $GREP " "` 38106 if test "x$has_space" != x; then 38107 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38108 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38109 fi 38110 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38111 fi 38112 fi 38113 38114 # Now new_path has a complete unix path to the binary 38115 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38116 # Keep paths in /bin as-is, but remove trailing .exe if any 38117 new_path="${new_path/%.exe/}" 38118 # Do not save /bin paths to all_fixpath_prefixes! 38119 else 38120 # Not in mixed or Windows style, start by that. 38121 new_path=`cmd //c echo $new_path` 38122 38123 input_path="$new_path" 38124 # Check if we need to convert this using DOS-style short mode. If the path 38125 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38126 # take no chances and rewrite it. 38127 # Note: m4 eats our [], so we need to use [ and ] instead. 38128 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38129 if test "x$has_forbidden_chars" != x; then 38130 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38131 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38132 fi 38133 38134 # Output is in $new_path 38135 38136 windows_path="$new_path" 38137 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38138 unix_path=`$CYGPATH -u "$windows_path"` 38139 new_path="$unix_path" 38140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38141 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38142 new_path="$unix_path" 38143 fi 38144 38145 # remove trailing .exe if any 38146 new_path="${new_path/%.exe/}" 38147 38148 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38149 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38150 fi 38151 38152 else 38153 # We're on a posix platform. Hooray! :) 38154 # First separate the path from the arguments. This will split at the first 38155 # space. 38156 complete="$OBJCOPY" 38157 path="${complete%% *}" 38158 tmp="$complete EOL" 38159 arguments="${tmp#* }" 38160 38161 # Cannot rely on the command "which" here since it doesn't always work. 38162 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38163 if test -z "$is_absolute_path"; then 38164 # Path to executable is not absolute. Find it. 38165 IFS_save="$IFS" 38166 IFS=: 38167 for p in $PATH; do 38168 if test -f "$p/$path" && test -x "$p/$path"; then 38169 new_path="$p/$path" 38170 break 38171 fi 38172 done 38173 IFS="$IFS_save" 38174 else 38175 # This is an absolute path, we can use it without further modifications. 38176 new_path="$path" 38177 fi 38178 38179 if test "x$new_path" = x; then 38180 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38181 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38182 has_space=`$ECHO "$complete" | $GREP " "` 38183 if test "x$has_space" != x; then 38184 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38185 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38186 fi 38187 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38188 fi 38189 fi 38190 38191 # Now join together the path and the arguments once again 38192 if test "x$arguments" != xEOL; then 38193 new_complete="$new_path ${arguments% *}" 38194 else 38195 new_complete="$new_path" 38196 fi 38197 38198 if test "x$complete" != "x$new_complete"; then 38199 OBJCOPY="$new_complete" 38200 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38201 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38202 fi 38203 38204 fi 38205 fi 38206 38207 38208 38209 # Publish this variable in the help. 38210 38211 38212 if test "x$OBJDUMP" = x; then 38213 # The variable is not set by user, try to locate tool using the code snippet 38214 if test -n "$ac_tool_prefix"; then 38215 for ac_prog in gobjdump objdump 38216 do 38217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38220 $as_echo_n "checking for $ac_word... " >&6; } 38221 if ${ac_cv_prog_OBJDUMP+:} false; then : 38222 $as_echo_n "(cached) " >&6 38223 else 38224 if test -n "$OBJDUMP"; then 38225 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38226 else 38227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38228 for as_dir in $PATH 38229 do 38230 IFS=$as_save_IFS 38231 test -z "$as_dir" && as_dir=. 38232 for ac_exec_ext in '' $ac_executable_extensions; do 38233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38234 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38236 break 2 38237 fi 38238 done 38239 done 38240 IFS=$as_save_IFS 38241 38242 fi 38243 fi 38244 OBJDUMP=$ac_cv_prog_OBJDUMP 38245 if test -n "$OBJDUMP"; then 38246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38247 $as_echo "$OBJDUMP" >&6; } 38248 else 38249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38250 $as_echo "no" >&6; } 38251 fi 38252 38253 38254 test -n "$OBJDUMP" && break 38255 done 38256 fi 38257 if test -z "$OBJDUMP"; then 38258 ac_ct_OBJDUMP=$OBJDUMP 38259 for ac_prog in gobjdump objdump 38260 do 38261 # Extract the first word of "$ac_prog", so it can be a program name with args. 38262 set dummy $ac_prog; ac_word=$2 38263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38264 $as_echo_n "checking for $ac_word... " >&6; } 38265 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38266 $as_echo_n "(cached) " >&6 38267 else 38268 if test -n "$ac_ct_OBJDUMP"; then 38269 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38270 else 38271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38272 for as_dir in $PATH 38273 do 38274 IFS=$as_save_IFS 38275 test -z "$as_dir" && as_dir=. 38276 for ac_exec_ext in '' $ac_executable_extensions; do 38277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38278 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38280 break 2 38281 fi 38282 done 38283 done 38284 IFS=$as_save_IFS 38285 38286 fi 38287 fi 38288 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38289 if test -n "$ac_ct_OBJDUMP"; then 38290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38291 $as_echo "$ac_ct_OBJDUMP" >&6; } 38292 else 38293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38294 $as_echo "no" >&6; } 38295 fi 38296 38297 38298 test -n "$ac_ct_OBJDUMP" && break 38299 done 38300 38301 if test "x$ac_ct_OBJDUMP" = x; then 38302 OBJDUMP="" 38303 else 38304 case $cross_compiling:$ac_tool_warned in 38305 yes:) 38306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38308 ac_tool_warned=yes ;; 38309 esac 38310 OBJDUMP=$ac_ct_OBJDUMP 38311 fi 38312 fi 38313 38314 else 38315 # The variable is set, but is it from the command line or the environment? 38316 38317 # Try to remove the string !OBJDUMP! from our list. 38318 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38319 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38320 # If it failed, the variable was not from the command line. Ignore it, 38321 # but warn the user (except for BASH, which is always set by the calling BASH). 38322 if test "xOBJDUMP" != xBASH; then 38323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38324 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38325 fi 38326 # Try to locate tool using the code snippet 38327 if test -n "$ac_tool_prefix"; then 38328 for ac_prog in gobjdump objdump 38329 do 38330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38333 $as_echo_n "checking for $ac_word... " >&6; } 38334 if ${ac_cv_prog_OBJDUMP+:} false; then : 38335 $as_echo_n "(cached) " >&6 38336 else 38337 if test -n "$OBJDUMP"; then 38338 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38339 else 38340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38341 for as_dir in $PATH 38342 do 38343 IFS=$as_save_IFS 38344 test -z "$as_dir" && as_dir=. 38345 for ac_exec_ext in '' $ac_executable_extensions; do 38346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38347 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38349 break 2 38350 fi 38351 done 38352 done 38353 IFS=$as_save_IFS 38354 38355 fi 38356 fi 38357 OBJDUMP=$ac_cv_prog_OBJDUMP 38358 if test -n "$OBJDUMP"; then 38359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38360 $as_echo "$OBJDUMP" >&6; } 38361 else 38362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38363 $as_echo "no" >&6; } 38364 fi 38365 38366 38367 test -n "$OBJDUMP" && break 38368 done 38369 fi 38370 if test -z "$OBJDUMP"; then 38371 ac_ct_OBJDUMP=$OBJDUMP 38372 for ac_prog in gobjdump objdump 38373 do 38374 # Extract the first word of "$ac_prog", so it can be a program name with args. 38375 set dummy $ac_prog; ac_word=$2 38376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38377 $as_echo_n "checking for $ac_word... " >&6; } 38378 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38379 $as_echo_n "(cached) " >&6 38380 else 38381 if test -n "$ac_ct_OBJDUMP"; then 38382 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38383 else 38384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38385 for as_dir in $PATH 38386 do 38387 IFS=$as_save_IFS 38388 test -z "$as_dir" && as_dir=. 38389 for ac_exec_ext in '' $ac_executable_extensions; do 38390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38391 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38393 break 2 38394 fi 38395 done 38396 done 38397 IFS=$as_save_IFS 38398 38399 fi 38400 fi 38401 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38402 if test -n "$ac_ct_OBJDUMP"; then 38403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38404 $as_echo "$ac_ct_OBJDUMP" >&6; } 38405 else 38406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38407 $as_echo "no" >&6; } 38408 fi 38409 38410 38411 test -n "$ac_ct_OBJDUMP" && break 38412 done 38413 38414 if test "x$ac_ct_OBJDUMP" = x; then 38415 OBJDUMP="" 38416 else 38417 case $cross_compiling:$ac_tool_warned in 38418 yes:) 38419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38421 ac_tool_warned=yes ;; 38422 esac 38423 OBJDUMP=$ac_ct_OBJDUMP 38424 fi 38425 fi 38426 38427 else 38428 # If it succeeded, then it was overridden by the user. We will use it 38429 # for the tool. 38430 38431 # First remove it from the list of overridden variables, so we can test 38432 # for unknown variables in the end. 38433 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38434 38435 # Check if the provided tool contains a complete path. 38436 tool_specified="$OBJDUMP" 38437 tool_basename="${tool_specified##*/}" 38438 if test "x$tool_basename" = "x$tool_specified"; then 38439 # A command without a complete path is provided, search $PATH. 38440 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 38441 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 38442 # Extract the first word of "$tool_basename", so it can be a program name with args. 38443 set dummy $tool_basename; ac_word=$2 38444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38445 $as_echo_n "checking for $ac_word... " >&6; } 38446 if ${ac_cv_path_OBJDUMP+:} false; then : 38447 $as_echo_n "(cached) " >&6 38448 else 38449 case $OBJDUMP in 38450 [\\/]* | ?:[\\/]*) 38451 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 38452 ;; 38453 *) 38454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38455 for as_dir in $PATH 38456 do 38457 IFS=$as_save_IFS 38458 test -z "$as_dir" && as_dir=. 38459 for ac_exec_ext in '' $ac_executable_extensions; do 38460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38461 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 38462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38463 break 2 38464 fi 38465 done 38466 done 38467 IFS=$as_save_IFS 38468 38469 ;; 38470 esac 38471 fi 38472 OBJDUMP=$ac_cv_path_OBJDUMP 38473 if test -n "$OBJDUMP"; then 38474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38475 $as_echo "$OBJDUMP" >&6; } 38476 else 38477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38478 $as_echo "no" >&6; } 38479 fi 38480 38481 38482 if test "x$OBJDUMP" = x; then 38483 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38484 fi 38485 else 38486 # Otherwise we believe it is a complete path. Use it as it is. 38487 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 38488 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 38489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 38490 $as_echo_n "checking for OBJDUMP... " >&6; } 38491 if test ! -x "$tool_specified"; then 38492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38493 $as_echo "not found" >&6; } 38494 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 38495 fi 38496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38497 $as_echo "$tool_specified" >&6; } 38498 fi 38499 fi 38500 fi 38501 38502 38503 if test "x$OBJDUMP" != x; then 38504 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 38505 # bails if argument is missing. 38506 38507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38508 38509 # First separate the path from the arguments. This will split at the first 38510 # space. 38511 complete="$OBJDUMP" 38512 path="${complete%% *}" 38513 tmp="$complete EOL" 38514 arguments="${tmp#* }" 38515 38516 # Input might be given as Windows format, start by converting to 38517 # unix format. 38518 new_path=`$CYGPATH -u "$path"` 38519 38520 # Now try to locate executable using which 38521 new_path=`$WHICH "$new_path" 2> /dev/null` 38522 # bat and cmd files are not always considered executable in cygwin causing which 38523 # to not find them 38524 if test "x$new_path" = x \ 38525 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38526 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38527 new_path=`$CYGPATH -u "$path"` 38528 fi 38529 if test "x$new_path" = x; then 38530 # Oops. Which didn't find the executable. 38531 # The splitting of arguments from the executable at a space might have been incorrect, 38532 # since paths with space are more likely in Windows. Give it another try with the whole 38533 # argument. 38534 path="$complete" 38535 arguments="EOL" 38536 new_path=`$CYGPATH -u "$path"` 38537 new_path=`$WHICH "$new_path" 2> /dev/null` 38538 # bat and cmd files are not always considered executable in cygwin causing which 38539 # to not find them 38540 if test "x$new_path" = x \ 38541 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38542 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38543 new_path=`$CYGPATH -u "$path"` 38544 fi 38545 if test "x$new_path" = x; then 38546 # It's still not found. Now this is an unrecoverable error. 38547 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38548 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38549 has_space=`$ECHO "$complete" | $GREP " "` 38550 if test "x$has_space" != x; then 38551 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38552 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38553 fi 38554 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38555 fi 38556 fi 38557 38558 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38559 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38560 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38561 # "foo.exe" is OK but "foo" is an error. 38562 # 38563 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38564 # It is also a way to make sure we got the proper file name for the real test later on. 38565 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38566 if test "x$test_shortpath" = x; then 38567 # Short path failed, file does not exist as specified. 38568 # Try adding .exe or .cmd 38569 if test -f "${new_path}.exe"; then 38570 input_to_shortpath="${new_path}.exe" 38571 elif test -f "${new_path}.cmd"; then 38572 input_to_shortpath="${new_path}.cmd" 38573 else 38574 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 38575 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 38576 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38577 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38578 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38579 fi 38580 else 38581 input_to_shortpath="$new_path" 38582 fi 38583 38584 # Call helper function which possibly converts this using DOS-style short mode. 38585 # If so, the updated path is stored in $new_path. 38586 new_path="$input_to_shortpath" 38587 38588 input_path="$input_to_shortpath" 38589 # Check if we need to convert this using DOS-style short mode. If the path 38590 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38591 # take no chances and rewrite it. 38592 # Note: m4 eats our [], so we need to use [ and ] instead. 38593 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38594 if test "x$has_forbidden_chars" != x; then 38595 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38596 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38597 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38598 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38599 # Going to short mode and back again did indeed matter. Since short mode is 38600 # case insensitive, let's make it lowercase to improve readability. 38601 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38602 # Now convert it back to Unix-stile (cygpath) 38603 input_path=`$CYGPATH -u "$shortmode_path"` 38604 new_path="$input_path" 38605 fi 38606 fi 38607 38608 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38609 if test "x$test_cygdrive_prefix" = x; then 38610 # As a simple fix, exclude /usr/bin since it's not a real path. 38611 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38612 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38613 # a path prefixed by /cygdrive for fixpath to work. 38614 new_path="$CYGWIN_ROOT_PATH$input_path" 38615 fi 38616 fi 38617 38618 # remove trailing .exe if any 38619 new_path="${new_path/%.exe/}" 38620 38621 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38622 38623 # First separate the path from the arguments. This will split at the first 38624 # space. 38625 complete="$OBJDUMP" 38626 path="${complete%% *}" 38627 tmp="$complete EOL" 38628 arguments="${tmp#* }" 38629 38630 # Input might be given as Windows format, start by converting to 38631 # unix format. 38632 new_path="$path" 38633 38634 windows_path="$new_path" 38635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38636 unix_path=`$CYGPATH -u "$windows_path"` 38637 new_path="$unix_path" 38638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38639 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38640 new_path="$unix_path" 38641 fi 38642 38643 38644 # Now try to locate executable using which 38645 new_path=`$WHICH "$new_path" 2> /dev/null` 38646 38647 if test "x$new_path" = x; then 38648 # Oops. Which didn't find the executable. 38649 # The splitting of arguments from the executable at a space might have been incorrect, 38650 # since paths with space are more likely in Windows. Give it another try with the whole 38651 # argument. 38652 path="$complete" 38653 arguments="EOL" 38654 new_path="$path" 38655 38656 windows_path="$new_path" 38657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38658 unix_path=`$CYGPATH -u "$windows_path"` 38659 new_path="$unix_path" 38660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38661 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38662 new_path="$unix_path" 38663 fi 38664 38665 38666 new_path=`$WHICH "$new_path" 2> /dev/null` 38667 38668 if test "x$new_path" = x; then 38669 # It's still not found. Now this is an unrecoverable error. 38670 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38671 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38672 has_space=`$ECHO "$complete" | $GREP " "` 38673 if test "x$has_space" != x; then 38674 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38675 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38676 fi 38677 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38678 fi 38679 fi 38680 38681 # Now new_path has a complete unix path to the binary 38682 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38683 # Keep paths in /bin as-is, but remove trailing .exe if any 38684 new_path="${new_path/%.exe/}" 38685 # Do not save /bin paths to all_fixpath_prefixes! 38686 else 38687 # Not in mixed or Windows style, start by that. 38688 new_path=`cmd //c echo $new_path` 38689 38690 input_path="$new_path" 38691 # Check if we need to convert this using DOS-style short mode. If the path 38692 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38693 # take no chances and rewrite it. 38694 # Note: m4 eats our [], so we need to use [ and ] instead. 38695 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38696 if test "x$has_forbidden_chars" != x; then 38697 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38698 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38699 fi 38700 38701 # Output is in $new_path 38702 38703 windows_path="$new_path" 38704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38705 unix_path=`$CYGPATH -u "$windows_path"` 38706 new_path="$unix_path" 38707 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38708 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38709 new_path="$unix_path" 38710 fi 38711 38712 # remove trailing .exe if any 38713 new_path="${new_path/%.exe/}" 38714 38715 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38716 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38717 fi 38718 38719 else 38720 # We're on a posix platform. Hooray! :) 38721 # First separate the path from the arguments. This will split at the first 38722 # space. 38723 complete="$OBJDUMP" 38724 path="${complete%% *}" 38725 tmp="$complete EOL" 38726 arguments="${tmp#* }" 38727 38728 # Cannot rely on the command "which" here since it doesn't always work. 38729 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38730 if test -z "$is_absolute_path"; then 38731 # Path to executable is not absolute. Find it. 38732 IFS_save="$IFS" 38733 IFS=: 38734 for p in $PATH; do 38735 if test -f "$p/$path" && test -x "$p/$path"; then 38736 new_path="$p/$path" 38737 break 38738 fi 38739 done 38740 IFS="$IFS_save" 38741 else 38742 # This is an absolute path, we can use it without further modifications. 38743 new_path="$path" 38744 fi 38745 38746 if test "x$new_path" = x; then 38747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38748 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38749 has_space=`$ECHO "$complete" | $GREP " "` 38750 if test "x$has_space" != x; then 38751 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38752 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38753 fi 38754 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38755 fi 38756 fi 38757 38758 # Now join together the path and the arguments once again 38759 if test "x$arguments" != xEOL; then 38760 new_complete="$new_path ${arguments% *}" 38761 else 38762 new_complete="$new_path" 38763 fi 38764 38765 if test "x$complete" != "x$new_complete"; then 38766 OBJDUMP="$new_complete" 38767 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 38768 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 38769 fi 38770 38771 fi 38772 38773 38774 # Restore old path. 38775 PATH="$OLD_PATH" 38776 38777 # Restore the flags to the user specified values. 38778 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 38779 CFLAGS="$ORG_CFLAGS" 38780 CXXFLAGS="$ORG_CXXFLAGS" 38781 OBJCFLAGS="$ORG_OBJCFLAGS" 38782 38783 38784 # Finally do some processing after the detection phase 38785 38786 if test "x$COMPILE_TYPE" = "xcross"; then 38787 # Now we need to find a C/C++ compiler that can build executables for the 38788 # build platform. We can't use the AC_PROG_CC macro, since it can only be 38789 # used once. Also, we need to do this without adding a tools dir to the 38790 # path, otherwise we might pick up cross-compilers which don't use standard 38791 # naming. 38792 38793 # FIXME: we should list the discovered compilers as an exclude pattern! 38794 # If we do that, we can do this detection before POST_DETECTION, and still 38795 # find the build compilers in the tools dir, if needed. 38796 38797 38798 # Publish this variable in the help. 38799 38800 38801 if test "x$BUILD_CC" = x; then 38802 # The variable is not set by user, try to locate tool using the code snippet 38803 for ac_prog in cl cc gcc 38804 do 38805 # Extract the first word of "$ac_prog", so it can be a program name with args. 38806 set dummy $ac_prog; ac_word=$2 38807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38808 $as_echo_n "checking for $ac_word... " >&6; } 38809 if ${ac_cv_path_BUILD_CC+:} false; then : 38810 $as_echo_n "(cached) " >&6 38811 else 38812 case $BUILD_CC in 38813 [\\/]* | ?:[\\/]*) 38814 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38815 ;; 38816 *) 38817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38818 for as_dir in $PATH 38819 do 38820 IFS=$as_save_IFS 38821 test -z "$as_dir" && as_dir=. 38822 for ac_exec_ext in '' $ac_executable_extensions; do 38823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38824 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38826 break 2 38827 fi 38828 done 38829 done 38830 IFS=$as_save_IFS 38831 38832 ;; 38833 esac 38834 fi 38835 BUILD_CC=$ac_cv_path_BUILD_CC 38836 if test -n "$BUILD_CC"; then 38837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38838 $as_echo "$BUILD_CC" >&6; } 38839 else 38840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38841 $as_echo "no" >&6; } 38842 fi 38843 38844 38845 test -n "$BUILD_CC" && break 38846 done 38847 38848 else 38849 # The variable is set, but is it from the command line or the environment? 38850 38851 # Try to remove the string !BUILD_CC! from our list. 38852 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 38853 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38854 # If it failed, the variable was not from the command line. Ignore it, 38855 # but warn the user (except for BASH, which is always set by the calling BASH). 38856 if test "xBUILD_CC" != xBASH; then 38857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 38858 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 38859 fi 38860 # Try to locate tool using the code snippet 38861 for ac_prog in cl cc gcc 38862 do 38863 # Extract the first word of "$ac_prog", so it can be a program name with args. 38864 set dummy $ac_prog; ac_word=$2 38865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38866 $as_echo_n "checking for $ac_word... " >&6; } 38867 if ${ac_cv_path_BUILD_CC+:} false; then : 38868 $as_echo_n "(cached) " >&6 38869 else 38870 case $BUILD_CC in 38871 [\\/]* | ?:[\\/]*) 38872 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38873 ;; 38874 *) 38875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38876 for as_dir in $PATH 38877 do 38878 IFS=$as_save_IFS 38879 test -z "$as_dir" && as_dir=. 38880 for ac_exec_ext in '' $ac_executable_extensions; do 38881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38882 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38884 break 2 38885 fi 38886 done 38887 done 38888 IFS=$as_save_IFS 38889 38890 ;; 38891 esac 38892 fi 38893 BUILD_CC=$ac_cv_path_BUILD_CC 38894 if test -n "$BUILD_CC"; then 38895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38896 $as_echo "$BUILD_CC" >&6; } 38897 else 38898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38899 $as_echo "no" >&6; } 38900 fi 38901 38902 38903 test -n "$BUILD_CC" && break 38904 done 38905 38906 else 38907 # If it succeeded, then it was overridden by the user. We will use it 38908 # for the tool. 38909 38910 # First remove it from the list of overridden variables, so we can test 38911 # for unknown variables in the end. 38912 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38913 38914 # Check if the provided tool contains a complete path. 38915 tool_specified="$BUILD_CC" 38916 tool_basename="${tool_specified##*/}" 38917 if test "x$tool_basename" = "x$tool_specified"; then 38918 # A command without a complete path is provided, search $PATH. 38919 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 38920 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 38921 # Extract the first word of "$tool_basename", so it can be a program name with args. 38922 set dummy $tool_basename; ac_word=$2 38923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38924 $as_echo_n "checking for $ac_word... " >&6; } 38925 if ${ac_cv_path_BUILD_CC+:} false; then : 38926 $as_echo_n "(cached) " >&6 38927 else 38928 case $BUILD_CC in 38929 [\\/]* | ?:[\\/]*) 38930 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38931 ;; 38932 *) 38933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38934 for as_dir in $PATH 38935 do 38936 IFS=$as_save_IFS 38937 test -z "$as_dir" && as_dir=. 38938 for ac_exec_ext in '' $ac_executable_extensions; do 38939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38940 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38942 break 2 38943 fi 38944 done 38945 done 38946 IFS=$as_save_IFS 38947 38948 ;; 38949 esac 38950 fi 38951 BUILD_CC=$ac_cv_path_BUILD_CC 38952 if test -n "$BUILD_CC"; then 38953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38954 $as_echo "$BUILD_CC" >&6; } 38955 else 38956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38957 $as_echo "no" >&6; } 38958 fi 38959 38960 38961 if test "x$BUILD_CC" = x; then 38962 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38963 fi 38964 else 38965 # Otherwise we believe it is a complete path. Use it as it is. 38966 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 38967 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 38968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 38969 $as_echo_n "checking for BUILD_CC... " >&6; } 38970 if test ! -x "$tool_specified"; then 38971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38972 $as_echo "not found" >&6; } 38973 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 38974 fi 38975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38976 $as_echo "$tool_specified" >&6; } 38977 fi 38978 fi 38979 fi 38980 38981 38982 38983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38984 38985 # First separate the path from the arguments. This will split at the first 38986 # space. 38987 complete="$BUILD_CC" 38988 path="${complete%% *}" 38989 tmp="$complete EOL" 38990 arguments="${tmp#* }" 38991 38992 # Input might be given as Windows format, start by converting to 38993 # unix format. 38994 new_path=`$CYGPATH -u "$path"` 38995 38996 # Now try to locate executable using which 38997 new_path=`$WHICH "$new_path" 2> /dev/null` 38998 # bat and cmd files are not always considered executable in cygwin causing which 38999 # to not find them 39000 if test "x$new_path" = x \ 39001 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39002 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39003 new_path=`$CYGPATH -u "$path"` 39004 fi 39005 if test "x$new_path" = x; then 39006 # Oops. Which didn't find the executable. 39007 # The splitting of arguments from the executable at a space might have been incorrect, 39008 # since paths with space are more likely in Windows. Give it another try with the whole 39009 # argument. 39010 path="$complete" 39011 arguments="EOL" 39012 new_path=`$CYGPATH -u "$path"` 39013 new_path=`$WHICH "$new_path" 2> /dev/null` 39014 # bat and cmd files are not always considered executable in cygwin causing which 39015 # to not find them 39016 if test "x$new_path" = x \ 39017 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39018 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39019 new_path=`$CYGPATH -u "$path"` 39020 fi 39021 if test "x$new_path" = x; then 39022 # It's still not found. Now this is an unrecoverable error. 39023 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39024 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39025 has_space=`$ECHO "$complete" | $GREP " "` 39026 if test "x$has_space" != x; then 39027 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39028 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39029 fi 39030 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39031 fi 39032 fi 39033 39034 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39035 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39036 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39037 # "foo.exe" is OK but "foo" is an error. 39038 # 39039 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39040 # It is also a way to make sure we got the proper file name for the real test later on. 39041 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39042 if test "x$test_shortpath" = x; then 39043 # Short path failed, file does not exist as specified. 39044 # Try adding .exe or .cmd 39045 if test -f "${new_path}.exe"; then 39046 input_to_shortpath="${new_path}.exe" 39047 elif test -f "${new_path}.cmd"; then 39048 input_to_shortpath="${new_path}.cmd" 39049 else 39050 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39051 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39052 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39053 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39054 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39055 fi 39056 else 39057 input_to_shortpath="$new_path" 39058 fi 39059 39060 # Call helper function which possibly converts this using DOS-style short mode. 39061 # If so, the updated path is stored in $new_path. 39062 new_path="$input_to_shortpath" 39063 39064 input_path="$input_to_shortpath" 39065 # Check if we need to convert this using DOS-style short mode. If the path 39066 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39067 # take no chances and rewrite it. 39068 # Note: m4 eats our [], so we need to use [ and ] instead. 39069 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39070 if test "x$has_forbidden_chars" != x; then 39071 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39072 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39073 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39074 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39075 # Going to short mode and back again did indeed matter. Since short mode is 39076 # case insensitive, let's make it lowercase to improve readability. 39077 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39078 # Now convert it back to Unix-stile (cygpath) 39079 input_path=`$CYGPATH -u "$shortmode_path"` 39080 new_path="$input_path" 39081 fi 39082 fi 39083 39084 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39085 if test "x$test_cygdrive_prefix" = x; then 39086 # As a simple fix, exclude /usr/bin since it's not a real path. 39087 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39088 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39089 # a path prefixed by /cygdrive for fixpath to work. 39090 new_path="$CYGWIN_ROOT_PATH$input_path" 39091 fi 39092 fi 39093 39094 # remove trailing .exe if any 39095 new_path="${new_path/%.exe/}" 39096 39097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39098 39099 # First separate the path from the arguments. This will split at the first 39100 # space. 39101 complete="$BUILD_CC" 39102 path="${complete%% *}" 39103 tmp="$complete EOL" 39104 arguments="${tmp#* }" 39105 39106 # Input might be given as Windows format, start by converting to 39107 # unix format. 39108 new_path="$path" 39109 39110 windows_path="$new_path" 39111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39112 unix_path=`$CYGPATH -u "$windows_path"` 39113 new_path="$unix_path" 39114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39115 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39116 new_path="$unix_path" 39117 fi 39118 39119 39120 # Now try to locate executable using which 39121 new_path=`$WHICH "$new_path" 2> /dev/null` 39122 39123 if test "x$new_path" = x; then 39124 # Oops. Which didn't find the executable. 39125 # The splitting of arguments from the executable at a space might have been incorrect, 39126 # since paths with space are more likely in Windows. Give it another try with the whole 39127 # argument. 39128 path="$complete" 39129 arguments="EOL" 39130 new_path="$path" 39131 39132 windows_path="$new_path" 39133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39134 unix_path=`$CYGPATH -u "$windows_path"` 39135 new_path="$unix_path" 39136 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39137 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39138 new_path="$unix_path" 39139 fi 39140 39141 39142 new_path=`$WHICH "$new_path" 2> /dev/null` 39143 39144 if test "x$new_path" = x; then 39145 # It's still not found. Now this is an unrecoverable error. 39146 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39147 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39148 has_space=`$ECHO "$complete" | $GREP " "` 39149 if test "x$has_space" != x; then 39150 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39151 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39152 fi 39153 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39154 fi 39155 fi 39156 39157 # Now new_path has a complete unix path to the binary 39158 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39159 # Keep paths in /bin as-is, but remove trailing .exe if any 39160 new_path="${new_path/%.exe/}" 39161 # Do not save /bin paths to all_fixpath_prefixes! 39162 else 39163 # Not in mixed or Windows style, start by that. 39164 new_path=`cmd //c echo $new_path` 39165 39166 input_path="$new_path" 39167 # Check if we need to convert this using DOS-style short mode. If the path 39168 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39169 # take no chances and rewrite it. 39170 # Note: m4 eats our [], so we need to use [ and ] instead. 39171 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39172 if test "x$has_forbidden_chars" != x; then 39173 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39174 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39175 fi 39176 39177 # Output is in $new_path 39178 39179 windows_path="$new_path" 39180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39181 unix_path=`$CYGPATH -u "$windows_path"` 39182 new_path="$unix_path" 39183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39184 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39185 new_path="$unix_path" 39186 fi 39187 39188 # remove trailing .exe if any 39189 new_path="${new_path/%.exe/}" 39190 39191 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39192 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39193 fi 39194 39195 else 39196 # We're on a posix platform. Hooray! :) 39197 # First separate the path from the arguments. This will split at the first 39198 # space. 39199 complete="$BUILD_CC" 39200 path="${complete%% *}" 39201 tmp="$complete EOL" 39202 arguments="${tmp#* }" 39203 39204 # Cannot rely on the command "which" here since it doesn't always work. 39205 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39206 if test -z "$is_absolute_path"; then 39207 # Path to executable is not absolute. Find it. 39208 IFS_save="$IFS" 39209 IFS=: 39210 for p in $PATH; do 39211 if test -f "$p/$path" && test -x "$p/$path"; then 39212 new_path="$p/$path" 39213 break 39214 fi 39215 done 39216 IFS="$IFS_save" 39217 else 39218 # This is an absolute path, we can use it without further modifications. 39219 new_path="$path" 39220 fi 39221 39222 if test "x$new_path" = x; then 39223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39224 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39225 has_space=`$ECHO "$complete" | $GREP " "` 39226 if test "x$has_space" != x; then 39227 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39228 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39229 fi 39230 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39231 fi 39232 fi 39233 39234 # Now join together the path and the arguments once again 39235 if test "x$arguments" != xEOL; then 39236 new_complete="$new_path ${arguments% *}" 39237 else 39238 new_complete="$new_path" 39239 fi 39240 39241 if test "x$complete" != "x$new_complete"; then 39242 BUILD_CC="$new_complete" 39243 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39244 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39245 fi 39246 39247 39248 39249 # Publish this variable in the help. 39250 39251 39252 if test "x$BUILD_CXX" = x; then 39253 # The variable is not set by user, try to locate tool using the code snippet 39254 for ac_prog in cl CC g++ 39255 do 39256 # Extract the first word of "$ac_prog", so it can be a program name with args. 39257 set dummy $ac_prog; ac_word=$2 39258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39259 $as_echo_n "checking for $ac_word... " >&6; } 39260 if ${ac_cv_path_BUILD_CXX+:} false; then : 39261 $as_echo_n "(cached) " >&6 39262 else 39263 case $BUILD_CXX in 39264 [\\/]* | ?:[\\/]*) 39265 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39266 ;; 39267 *) 39268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39269 for as_dir in $PATH 39270 do 39271 IFS=$as_save_IFS 39272 test -z "$as_dir" && as_dir=. 39273 for ac_exec_ext in '' $ac_executable_extensions; do 39274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39275 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39277 break 2 39278 fi 39279 done 39280 done 39281 IFS=$as_save_IFS 39282 39283 ;; 39284 esac 39285 fi 39286 BUILD_CXX=$ac_cv_path_BUILD_CXX 39287 if test -n "$BUILD_CXX"; then 39288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39289 $as_echo "$BUILD_CXX" >&6; } 39290 else 39291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39292 $as_echo "no" >&6; } 39293 fi 39294 39295 39296 test -n "$BUILD_CXX" && break 39297 done 39298 39299 else 39300 # The variable is set, but is it from the command line or the environment? 39301 39302 # Try to remove the string !BUILD_CXX! from our list. 39303 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39304 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39305 # If it failed, the variable was not from the command line. Ignore it, 39306 # but warn the user (except for BASH, which is always set by the calling BASH). 39307 if test "xBUILD_CXX" != xBASH; then 39308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39309 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39310 fi 39311 # Try to locate tool using the code snippet 39312 for ac_prog in cl CC g++ 39313 do 39314 # Extract the first word of "$ac_prog", so it can be a program name with args. 39315 set dummy $ac_prog; ac_word=$2 39316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39317 $as_echo_n "checking for $ac_word... " >&6; } 39318 if ${ac_cv_path_BUILD_CXX+:} false; then : 39319 $as_echo_n "(cached) " >&6 39320 else 39321 case $BUILD_CXX in 39322 [\\/]* | ?:[\\/]*) 39323 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39324 ;; 39325 *) 39326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39327 for as_dir in $PATH 39328 do 39329 IFS=$as_save_IFS 39330 test -z "$as_dir" && as_dir=. 39331 for ac_exec_ext in '' $ac_executable_extensions; do 39332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39333 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39335 break 2 39336 fi 39337 done 39338 done 39339 IFS=$as_save_IFS 39340 39341 ;; 39342 esac 39343 fi 39344 BUILD_CXX=$ac_cv_path_BUILD_CXX 39345 if test -n "$BUILD_CXX"; then 39346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39347 $as_echo "$BUILD_CXX" >&6; } 39348 else 39349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39350 $as_echo "no" >&6; } 39351 fi 39352 39353 39354 test -n "$BUILD_CXX" && break 39355 done 39356 39357 else 39358 # If it succeeded, then it was overridden by the user. We will use it 39359 # for the tool. 39360 39361 # First remove it from the list of overridden variables, so we can test 39362 # for unknown variables in the end. 39363 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39364 39365 # Check if the provided tool contains a complete path. 39366 tool_specified="$BUILD_CXX" 39367 tool_basename="${tool_specified##*/}" 39368 if test "x$tool_basename" = "x$tool_specified"; then 39369 # A command without a complete path is provided, search $PATH. 39370 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 39371 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 39372 # Extract the first word of "$tool_basename", so it can be a program name with args. 39373 set dummy $tool_basename; ac_word=$2 39374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39375 $as_echo_n "checking for $ac_word... " >&6; } 39376 if ${ac_cv_path_BUILD_CXX+:} false; then : 39377 $as_echo_n "(cached) " >&6 39378 else 39379 case $BUILD_CXX in 39380 [\\/]* | ?:[\\/]*) 39381 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39382 ;; 39383 *) 39384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39385 for as_dir in $PATH 39386 do 39387 IFS=$as_save_IFS 39388 test -z "$as_dir" && as_dir=. 39389 for ac_exec_ext in '' $ac_executable_extensions; do 39390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39391 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39393 break 2 39394 fi 39395 done 39396 done 39397 IFS=$as_save_IFS 39398 39399 ;; 39400 esac 39401 fi 39402 BUILD_CXX=$ac_cv_path_BUILD_CXX 39403 if test -n "$BUILD_CXX"; then 39404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39405 $as_echo "$BUILD_CXX" >&6; } 39406 else 39407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39408 $as_echo "no" >&6; } 39409 fi 39410 39411 39412 if test "x$BUILD_CXX" = x; then 39413 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39414 fi 39415 else 39416 # Otherwise we believe it is a complete path. Use it as it is. 39417 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 39418 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 39419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 39420 $as_echo_n "checking for BUILD_CXX... " >&6; } 39421 if test ! -x "$tool_specified"; then 39422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39423 $as_echo "not found" >&6; } 39424 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 39425 fi 39426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39427 $as_echo "$tool_specified" >&6; } 39428 fi 39429 fi 39430 fi 39431 39432 39433 39434 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39435 39436 # First separate the path from the arguments. This will split at the first 39437 # space. 39438 complete="$BUILD_CXX" 39439 path="${complete%% *}" 39440 tmp="$complete EOL" 39441 arguments="${tmp#* }" 39442 39443 # Input might be given as Windows format, start by converting to 39444 # unix format. 39445 new_path=`$CYGPATH -u "$path"` 39446 39447 # Now try to locate executable using which 39448 new_path=`$WHICH "$new_path" 2> /dev/null` 39449 # bat and cmd files are not always considered executable in cygwin causing which 39450 # to not find them 39451 if test "x$new_path" = x \ 39452 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39453 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39454 new_path=`$CYGPATH -u "$path"` 39455 fi 39456 if test "x$new_path" = x; then 39457 # Oops. Which didn't find the executable. 39458 # The splitting of arguments from the executable at a space might have been incorrect, 39459 # since paths with space are more likely in Windows. Give it another try with the whole 39460 # argument. 39461 path="$complete" 39462 arguments="EOL" 39463 new_path=`$CYGPATH -u "$path"` 39464 new_path=`$WHICH "$new_path" 2> /dev/null` 39465 # bat and cmd files are not always considered executable in cygwin causing which 39466 # to not find them 39467 if test "x$new_path" = x \ 39468 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39469 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39470 new_path=`$CYGPATH -u "$path"` 39471 fi 39472 if test "x$new_path" = x; then 39473 # It's still not found. Now this is an unrecoverable error. 39474 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39475 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39476 has_space=`$ECHO "$complete" | $GREP " "` 39477 if test "x$has_space" != x; then 39478 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39479 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39480 fi 39481 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39482 fi 39483 fi 39484 39485 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39486 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39487 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39488 # "foo.exe" is OK but "foo" is an error. 39489 # 39490 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39491 # It is also a way to make sure we got the proper file name for the real test later on. 39492 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39493 if test "x$test_shortpath" = x; then 39494 # Short path failed, file does not exist as specified. 39495 # Try adding .exe or .cmd 39496 if test -f "${new_path}.exe"; then 39497 input_to_shortpath="${new_path}.exe" 39498 elif test -f "${new_path}.cmd"; then 39499 input_to_shortpath="${new_path}.cmd" 39500 else 39501 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 39502 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 39503 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39504 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39505 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39506 fi 39507 else 39508 input_to_shortpath="$new_path" 39509 fi 39510 39511 # Call helper function which possibly converts this using DOS-style short mode. 39512 # If so, the updated path is stored in $new_path. 39513 new_path="$input_to_shortpath" 39514 39515 input_path="$input_to_shortpath" 39516 # Check if we need to convert this using DOS-style short mode. If the path 39517 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39518 # take no chances and rewrite it. 39519 # Note: m4 eats our [], so we need to use [ and ] instead. 39520 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39521 if test "x$has_forbidden_chars" != x; then 39522 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39523 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39524 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39525 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39526 # Going to short mode and back again did indeed matter. Since short mode is 39527 # case insensitive, let's make it lowercase to improve readability. 39528 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39529 # Now convert it back to Unix-stile (cygpath) 39530 input_path=`$CYGPATH -u "$shortmode_path"` 39531 new_path="$input_path" 39532 fi 39533 fi 39534 39535 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39536 if test "x$test_cygdrive_prefix" = x; then 39537 # As a simple fix, exclude /usr/bin since it's not a real path. 39538 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39539 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39540 # a path prefixed by /cygdrive for fixpath to work. 39541 new_path="$CYGWIN_ROOT_PATH$input_path" 39542 fi 39543 fi 39544 39545 # remove trailing .exe if any 39546 new_path="${new_path/%.exe/}" 39547 39548 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39549 39550 # First separate the path from the arguments. This will split at the first 39551 # space. 39552 complete="$BUILD_CXX" 39553 path="${complete%% *}" 39554 tmp="$complete EOL" 39555 arguments="${tmp#* }" 39556 39557 # Input might be given as Windows format, start by converting to 39558 # unix format. 39559 new_path="$path" 39560 39561 windows_path="$new_path" 39562 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39563 unix_path=`$CYGPATH -u "$windows_path"` 39564 new_path="$unix_path" 39565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39566 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39567 new_path="$unix_path" 39568 fi 39569 39570 39571 # Now try to locate executable using which 39572 new_path=`$WHICH "$new_path" 2> /dev/null` 39573 39574 if test "x$new_path" = x; then 39575 # Oops. Which didn't find the executable. 39576 # The splitting of arguments from the executable at a space might have been incorrect, 39577 # since paths with space are more likely in Windows. Give it another try with the whole 39578 # argument. 39579 path="$complete" 39580 arguments="EOL" 39581 new_path="$path" 39582 39583 windows_path="$new_path" 39584 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39585 unix_path=`$CYGPATH -u "$windows_path"` 39586 new_path="$unix_path" 39587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39588 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39589 new_path="$unix_path" 39590 fi 39591 39592 39593 new_path=`$WHICH "$new_path" 2> /dev/null` 39594 39595 if test "x$new_path" = x; then 39596 # It's still not found. Now this is an unrecoverable error. 39597 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39598 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39599 has_space=`$ECHO "$complete" | $GREP " "` 39600 if test "x$has_space" != x; then 39601 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39602 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39603 fi 39604 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39605 fi 39606 fi 39607 39608 # Now new_path has a complete unix path to the binary 39609 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39610 # Keep paths in /bin as-is, but remove trailing .exe if any 39611 new_path="${new_path/%.exe/}" 39612 # Do not save /bin paths to all_fixpath_prefixes! 39613 else 39614 # Not in mixed or Windows style, start by that. 39615 new_path=`cmd //c echo $new_path` 39616 39617 input_path="$new_path" 39618 # Check if we need to convert this using DOS-style short mode. If the path 39619 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39620 # take no chances and rewrite it. 39621 # Note: m4 eats our [], so we need to use [ and ] instead. 39622 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39623 if test "x$has_forbidden_chars" != x; then 39624 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39625 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39626 fi 39627 39628 # Output is in $new_path 39629 39630 windows_path="$new_path" 39631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39632 unix_path=`$CYGPATH -u "$windows_path"` 39633 new_path="$unix_path" 39634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39635 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39636 new_path="$unix_path" 39637 fi 39638 39639 # remove trailing .exe if any 39640 new_path="${new_path/%.exe/}" 39641 39642 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39643 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39644 fi 39645 39646 else 39647 # We're on a posix platform. Hooray! :) 39648 # First separate the path from the arguments. This will split at the first 39649 # space. 39650 complete="$BUILD_CXX" 39651 path="${complete%% *}" 39652 tmp="$complete EOL" 39653 arguments="${tmp#* }" 39654 39655 # Cannot rely on the command "which" here since it doesn't always work. 39656 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39657 if test -z "$is_absolute_path"; then 39658 # Path to executable is not absolute. Find it. 39659 IFS_save="$IFS" 39660 IFS=: 39661 for p in $PATH; do 39662 if test -f "$p/$path" && test -x "$p/$path"; then 39663 new_path="$p/$path" 39664 break 39665 fi 39666 done 39667 IFS="$IFS_save" 39668 else 39669 # This is an absolute path, we can use it without further modifications. 39670 new_path="$path" 39671 fi 39672 39673 if test "x$new_path" = x; then 39674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39675 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39676 has_space=`$ECHO "$complete" | $GREP " "` 39677 if test "x$has_space" != x; then 39678 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39679 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39680 fi 39681 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39682 fi 39683 fi 39684 39685 # Now join together the path and the arguments once again 39686 if test "x$arguments" != xEOL; then 39687 new_complete="$new_path ${arguments% *}" 39688 else 39689 new_complete="$new_path" 39690 fi 39691 39692 if test "x$complete" != "x$new_complete"; then 39693 BUILD_CXX="$new_complete" 39694 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 39695 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 39696 fi 39697 39698 39699 39700 # Publish this variable in the help. 39701 39702 39703 if test "x$BUILD_LD" = x; then 39704 # The variable is not set by user, try to locate tool using the code snippet 39705 for ac_prog in ld 39706 do 39707 # Extract the first word of "$ac_prog", so it can be a program name with args. 39708 set dummy $ac_prog; ac_word=$2 39709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39710 $as_echo_n "checking for $ac_word... " >&6; } 39711 if ${ac_cv_path_BUILD_LD+:} false; then : 39712 $as_echo_n "(cached) " >&6 39713 else 39714 case $BUILD_LD in 39715 [\\/]* | ?:[\\/]*) 39716 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39717 ;; 39718 *) 39719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39720 for as_dir in $PATH 39721 do 39722 IFS=$as_save_IFS 39723 test -z "$as_dir" && as_dir=. 39724 for ac_exec_ext in '' $ac_executable_extensions; do 39725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39726 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39728 break 2 39729 fi 39730 done 39731 done 39732 IFS=$as_save_IFS 39733 39734 ;; 39735 esac 39736 fi 39737 BUILD_LD=$ac_cv_path_BUILD_LD 39738 if test -n "$BUILD_LD"; then 39739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39740 $as_echo "$BUILD_LD" >&6; } 39741 else 39742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39743 $as_echo "no" >&6; } 39744 fi 39745 39746 39747 test -n "$BUILD_LD" && break 39748 done 39749 39750 else 39751 # The variable is set, but is it from the command line or the environment? 39752 39753 # Try to remove the string !BUILD_LD! from our list. 39754 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 39755 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39756 # If it failed, the variable was not from the command line. Ignore it, 39757 # but warn the user (except for BASH, which is always set by the calling BASH). 39758 if test "xBUILD_LD" != xBASH; then 39759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 39760 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 39761 fi 39762 # Try to locate tool using the code snippet 39763 for ac_prog in ld 39764 do 39765 # Extract the first word of "$ac_prog", so it can be a program name with args. 39766 set dummy $ac_prog; ac_word=$2 39767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39768 $as_echo_n "checking for $ac_word... " >&6; } 39769 if ${ac_cv_path_BUILD_LD+:} false; then : 39770 $as_echo_n "(cached) " >&6 39771 else 39772 case $BUILD_LD in 39773 [\\/]* | ?:[\\/]*) 39774 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39775 ;; 39776 *) 39777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39778 for as_dir in $PATH 39779 do 39780 IFS=$as_save_IFS 39781 test -z "$as_dir" && as_dir=. 39782 for ac_exec_ext in '' $ac_executable_extensions; do 39783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39784 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39786 break 2 39787 fi 39788 done 39789 done 39790 IFS=$as_save_IFS 39791 39792 ;; 39793 esac 39794 fi 39795 BUILD_LD=$ac_cv_path_BUILD_LD 39796 if test -n "$BUILD_LD"; then 39797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39798 $as_echo "$BUILD_LD" >&6; } 39799 else 39800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39801 $as_echo "no" >&6; } 39802 fi 39803 39804 39805 test -n "$BUILD_LD" && break 39806 done 39807 39808 else 39809 # If it succeeded, then it was overridden by the user. We will use it 39810 # for the tool. 39811 39812 # First remove it from the list of overridden variables, so we can test 39813 # for unknown variables in the end. 39814 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39815 39816 # Check if the provided tool contains a complete path. 39817 tool_specified="$BUILD_LD" 39818 tool_basename="${tool_specified##*/}" 39819 if test "x$tool_basename" = "x$tool_specified"; then 39820 # A command without a complete path is provided, search $PATH. 39821 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 39822 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 39823 # Extract the first word of "$tool_basename", so it can be a program name with args. 39824 set dummy $tool_basename; ac_word=$2 39825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39826 $as_echo_n "checking for $ac_word... " >&6; } 39827 if ${ac_cv_path_BUILD_LD+:} false; then : 39828 $as_echo_n "(cached) " >&6 39829 else 39830 case $BUILD_LD in 39831 [\\/]* | ?:[\\/]*) 39832 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39833 ;; 39834 *) 39835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39836 for as_dir in $PATH 39837 do 39838 IFS=$as_save_IFS 39839 test -z "$as_dir" && as_dir=. 39840 for ac_exec_ext in '' $ac_executable_extensions; do 39841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39842 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39844 break 2 39845 fi 39846 done 39847 done 39848 IFS=$as_save_IFS 39849 39850 ;; 39851 esac 39852 fi 39853 BUILD_LD=$ac_cv_path_BUILD_LD 39854 if test -n "$BUILD_LD"; then 39855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39856 $as_echo "$BUILD_LD" >&6; } 39857 else 39858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39859 $as_echo "no" >&6; } 39860 fi 39861 39862 39863 if test "x$BUILD_LD" = x; then 39864 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39865 fi 39866 else 39867 # Otherwise we believe it is a complete path. Use it as it is. 39868 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 39869 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 39870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 39871 $as_echo_n "checking for BUILD_LD... " >&6; } 39872 if test ! -x "$tool_specified"; then 39873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39874 $as_echo "not found" >&6; } 39875 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 39876 fi 39877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39878 $as_echo "$tool_specified" >&6; } 39879 fi 39880 fi 39881 fi 39882 39883 39884 39885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39886 39887 # First separate the path from the arguments. This will split at the first 39888 # space. 39889 complete="$BUILD_LD" 39890 path="${complete%% *}" 39891 tmp="$complete EOL" 39892 arguments="${tmp#* }" 39893 39894 # Input might be given as Windows format, start by converting to 39895 # unix format. 39896 new_path=`$CYGPATH -u "$path"` 39897 39898 # Now try to locate executable using which 39899 new_path=`$WHICH "$new_path" 2> /dev/null` 39900 # bat and cmd files are not always considered executable in cygwin causing which 39901 # to not find them 39902 if test "x$new_path" = x \ 39903 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39904 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39905 new_path=`$CYGPATH -u "$path"` 39906 fi 39907 if test "x$new_path" = x; then 39908 # Oops. Which didn't find the executable. 39909 # The splitting of arguments from the executable at a space might have been incorrect, 39910 # since paths with space are more likely in Windows. Give it another try with the whole 39911 # argument. 39912 path="$complete" 39913 arguments="EOL" 39914 new_path=`$CYGPATH -u "$path"` 39915 new_path=`$WHICH "$new_path" 2> /dev/null` 39916 # bat and cmd files are not always considered executable in cygwin causing which 39917 # to not find them 39918 if test "x$new_path" = x \ 39919 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39920 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39921 new_path=`$CYGPATH -u "$path"` 39922 fi 39923 if test "x$new_path" = x; then 39924 # It's still not found. Now this is an unrecoverable error. 39925 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 39926 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 39927 has_space=`$ECHO "$complete" | $GREP " "` 39928 if test "x$has_space" != x; then 39929 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39930 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39931 fi 39932 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 39933 fi 39934 fi 39935 39936 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39937 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39938 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39939 # "foo.exe" is OK but "foo" is an error. 39940 # 39941 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39942 # It is also a way to make sure we got the proper file name for the real test later on. 39943 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39944 if test "x$test_shortpath" = x; then 39945 # Short path failed, file does not exist as specified. 39946 # Try adding .exe or .cmd 39947 if test -f "${new_path}.exe"; then 39948 input_to_shortpath="${new_path}.exe" 39949 elif test -f "${new_path}.cmd"; then 39950 input_to_shortpath="${new_path}.cmd" 39951 else 39952 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 39953 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 39954 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39955 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39956 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 39957 fi 39958 else 39959 input_to_shortpath="$new_path" 39960 fi 39961 39962 # Call helper function which possibly converts this using DOS-style short mode. 39963 # If so, the updated path is stored in $new_path. 39964 new_path="$input_to_shortpath" 39965 39966 input_path="$input_to_shortpath" 39967 # Check if we need to convert this using DOS-style short mode. If the path 39968 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39969 # take no chances and rewrite it. 39970 # Note: m4 eats our [], so we need to use [ and ] instead. 39971 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39972 if test "x$has_forbidden_chars" != x; then 39973 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39974 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39975 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39976 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39977 # Going to short mode and back again did indeed matter. Since short mode is 39978 # case insensitive, let's make it lowercase to improve readability. 39979 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39980 # Now convert it back to Unix-stile (cygpath) 39981 input_path=`$CYGPATH -u "$shortmode_path"` 39982 new_path="$input_path" 39983 fi 39984 fi 39985 39986 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39987 if test "x$test_cygdrive_prefix" = x; then 39988 # As a simple fix, exclude /usr/bin since it's not a real path. 39989 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39990 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39991 # a path prefixed by /cygdrive for fixpath to work. 39992 new_path="$CYGWIN_ROOT_PATH$input_path" 39993 fi 39994 fi 39995 39996 # remove trailing .exe if any 39997 new_path="${new_path/%.exe/}" 39998 39999 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40000 40001 # First separate the path from the arguments. This will split at the first 40002 # space. 40003 complete="$BUILD_LD" 40004 path="${complete%% *}" 40005 tmp="$complete EOL" 40006 arguments="${tmp#* }" 40007 40008 # Input might be given as Windows format, start by converting to 40009 # unix format. 40010 new_path="$path" 40011 40012 windows_path="$new_path" 40013 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40014 unix_path=`$CYGPATH -u "$windows_path"` 40015 new_path="$unix_path" 40016 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40017 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40018 new_path="$unix_path" 40019 fi 40020 40021 40022 # Now try to locate executable using which 40023 new_path=`$WHICH "$new_path" 2> /dev/null` 40024 40025 if test "x$new_path" = x; then 40026 # Oops. Which didn't find the executable. 40027 # The splitting of arguments from the executable at a space might have been incorrect, 40028 # since paths with space are more likely in Windows. Give it another try with the whole 40029 # argument. 40030 path="$complete" 40031 arguments="EOL" 40032 new_path="$path" 40033 40034 windows_path="$new_path" 40035 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40036 unix_path=`$CYGPATH -u "$windows_path"` 40037 new_path="$unix_path" 40038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40039 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40040 new_path="$unix_path" 40041 fi 40042 40043 40044 new_path=`$WHICH "$new_path" 2> /dev/null` 40045 40046 if test "x$new_path" = x; then 40047 # It's still not found. Now this is an unrecoverable error. 40048 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40049 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40050 has_space=`$ECHO "$complete" | $GREP " "` 40051 if test "x$has_space" != x; then 40052 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40053 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40054 fi 40055 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40056 fi 40057 fi 40058 40059 # Now new_path has a complete unix path to the binary 40060 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40061 # Keep paths in /bin as-is, but remove trailing .exe if any 40062 new_path="${new_path/%.exe/}" 40063 # Do not save /bin paths to all_fixpath_prefixes! 40064 else 40065 # Not in mixed or Windows style, start by that. 40066 new_path=`cmd //c echo $new_path` 40067 40068 input_path="$new_path" 40069 # Check if we need to convert this using DOS-style short mode. If the path 40070 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40071 # take no chances and rewrite it. 40072 # Note: m4 eats our [], so we need to use [ and ] instead. 40073 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40074 if test "x$has_forbidden_chars" != x; then 40075 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40076 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40077 fi 40078 40079 # Output is in $new_path 40080 40081 windows_path="$new_path" 40082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40083 unix_path=`$CYGPATH -u "$windows_path"` 40084 new_path="$unix_path" 40085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40087 new_path="$unix_path" 40088 fi 40089 40090 # remove trailing .exe if any 40091 new_path="${new_path/%.exe/}" 40092 40093 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40094 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40095 fi 40096 40097 else 40098 # We're on a posix platform. Hooray! :) 40099 # First separate the path from the arguments. This will split at the first 40100 # space. 40101 complete="$BUILD_LD" 40102 path="${complete%% *}" 40103 tmp="$complete EOL" 40104 arguments="${tmp#* }" 40105 40106 # Cannot rely on the command "which" here since it doesn't always work. 40107 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40108 if test -z "$is_absolute_path"; then 40109 # Path to executable is not absolute. Find it. 40110 IFS_save="$IFS" 40111 IFS=: 40112 for p in $PATH; do 40113 if test -f "$p/$path" && test -x "$p/$path"; then 40114 new_path="$p/$path" 40115 break 40116 fi 40117 done 40118 IFS="$IFS_save" 40119 else 40120 # This is an absolute path, we can use it without further modifications. 40121 new_path="$path" 40122 fi 40123 40124 if test "x$new_path" = x; then 40125 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40126 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40127 has_space=`$ECHO "$complete" | $GREP " "` 40128 if test "x$has_space" != x; then 40129 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40130 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40131 fi 40132 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40133 fi 40134 fi 40135 40136 # Now join together the path and the arguments once again 40137 if test "x$arguments" != xEOL; then 40138 new_complete="$new_path ${arguments% *}" 40139 else 40140 new_complete="$new_path" 40141 fi 40142 40143 if test "x$complete" != "x$new_complete"; then 40144 BUILD_LD="$new_complete" 40145 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40146 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40147 fi 40148 40149 else 40150 # If we are not cross compiling, use the normal target compilers for 40151 # building the build platform executables. 40152 BUILD_CC="$CC" 40153 BUILD_CXX="$CXX" 40154 BUILD_LD="$LD" 40155 fi 40156 40157 40158 40159 40160 40161 40162 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40163 # For hotspot, we need these in Windows mixed path, 40164 # so rewrite them all. Need added .exe suffix. 40165 HOTSPOT_CXX="$CXX.exe" 40166 HOTSPOT_LD="$LD.exe" 40167 HOTSPOT_MT="$MT.exe" 40168 HOTSPOT_RC="$RC.exe" 40169 40170 unix_path="$HOTSPOT_CXX" 40171 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40172 windows_path=`$CYGPATH -m "$unix_path"` 40173 HOTSPOT_CXX="$windows_path" 40174 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40175 windows_path=`cmd //c echo $unix_path` 40176 HOTSPOT_CXX="$windows_path" 40177 fi 40178 40179 40180 unix_path="$HOTSPOT_LD" 40181 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40182 windows_path=`$CYGPATH -m "$unix_path"` 40183 HOTSPOT_LD="$windows_path" 40184 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40185 windows_path=`cmd //c echo $unix_path` 40186 HOTSPOT_LD="$windows_path" 40187 fi 40188 40189 40190 unix_path="$HOTSPOT_MT" 40191 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40192 windows_path=`$CYGPATH -m "$unix_path"` 40193 HOTSPOT_MT="$windows_path" 40194 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40195 windows_path=`cmd //c echo $unix_path` 40196 HOTSPOT_MT="$windows_path" 40197 fi 40198 40199 40200 unix_path="$HOTSPOT_RC" 40201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40202 windows_path=`$CYGPATH -m "$unix_path"` 40203 HOTSPOT_RC="$windows_path" 40204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40205 windows_path=`cmd //c echo $unix_path` 40206 HOTSPOT_RC="$windows_path" 40207 fi 40208 40209 40210 40211 else 40212 HOTSPOT_CXX="$CXX" 40213 HOTSPOT_LD="$LD" 40214 fi 40215 40216 40217 40218 if test "x$TOOLCHAIN_TYPE" = xclang; then 40219 USE_CLANG=true 40220 fi 40221 40222 40223 # LDEXE is the linker to use, when creating executables. Not really used. 40224 # FIXME: These should just be removed! 40225 LDEXE="$LD" 40226 LDEXECXX="$LDCXX" 40227 40228 40229 40230 40231 # The package path is used only on macosx? 40232 # FIXME: clean this up, and/or move it elsewhere. 40233 PACKAGE_PATH=/opt/local 40234 40235 40236 # Check for extra potential brokenness. 40237 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40238 # On Windows, double-check that we got the right compiler. 40239 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40240 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40241 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40242 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 40243 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 40244 fi 40245 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40246 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40247 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40248 fi 40249 fi 40250 fi 40251 40252 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40253 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40254 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40255 # This is later checked when setting flags. 40256 fi 40257 40258 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 40259 # in executable.' 40260 USING_BROKEN_SUSE_LD=no 40261 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 40262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 40263 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 40264 echo "SUNWprivate_1.1 { local: *; };" > version-script.map 40265 echo "int main() { }" > main.c 40266 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 40267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40268 $as_echo "no" >&6; } 40269 USING_BROKEN_SUSE_LD=no 40270 else 40271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40272 $as_echo "yes" >&6; } 40273 USING_BROKEN_SUSE_LD=yes 40274 fi 40275 rm -rf version-script.map main.c a.out 40276 fi 40277 40278 40279 40280 # Setup the JTReg Regression Test Harness. 40281 40282 40283 # Check whether --with-jtreg was given. 40284 if test "${with_jtreg+set}" = set; then : 40285 withval=$with_jtreg; 40286 else 40287 with_jtreg=no 40288 fi 40289 40290 40291 if test "x$with_jtreg" = xno; then 40292 # jtreg disabled 40293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40294 $as_echo_n "checking for jtreg... " >&6; } 40295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40296 $as_echo "no" >&6; } 40297 else 40298 if test "x$with_jtreg" != xyes; then 40299 # with path specified. 40300 JT_HOME="$with_jtreg" 40301 fi 40302 40303 if test "x$JT_HOME" != x; then 40304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40305 $as_echo_n "checking for jtreg... " >&6; } 40306 40307 # use JT_HOME enviroment var. 40308 40309 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40310 40311 # Input might be given as Windows format, start by converting to 40312 # unix format. 40313 path="$JT_HOME" 40314 new_path=`$CYGPATH -u "$path"` 40315 40316 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40317 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40318 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40319 # "foo.exe" is OK but "foo" is an error. 40320 # 40321 # This test is therefore slightly more accurate than "test -f" to check for file precense. 40322 # It is also a way to make sure we got the proper file name for the real test later on. 40323 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40324 if test "x$test_shortpath" = x; then 40325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40326 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40327 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 40328 fi 40329 40330 # Call helper function which possibly converts this using DOS-style short mode. 40331 # If so, the updated path is stored in $new_path. 40332 40333 input_path="$new_path" 40334 # Check if we need to convert this using DOS-style short mode. If the path 40335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40336 # take no chances and rewrite it. 40337 # Note: m4 eats our [], so we need to use [ and ] instead. 40338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40339 if test "x$has_forbidden_chars" != x; then 40340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40341 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40342 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40343 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40344 # Going to short mode and back again did indeed matter. Since short mode is 40345 # case insensitive, let's make it lowercase to improve readability. 40346 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40347 # Now convert it back to Unix-stile (cygpath) 40348 input_path=`$CYGPATH -u "$shortmode_path"` 40349 new_path="$input_path" 40350 fi 40351 fi 40352 40353 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40354 if test "x$test_cygdrive_prefix" = x; then 40355 # As a simple fix, exclude /usr/bin since it's not a real path. 40356 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 40357 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40358 # a path prefixed by /cygdrive for fixpath to work. 40359 new_path="$CYGWIN_ROOT_PATH$input_path" 40360 fi 40361 fi 40362 40363 40364 if test "x$path" != "x$new_path"; then 40365 JT_HOME="$new_path" 40366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40367 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40368 fi 40369 40370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40371 40372 path="$JT_HOME" 40373 has_colon=`$ECHO $path | $GREP ^.:` 40374 new_path="$path" 40375 if test "x$has_colon" = x; then 40376 # Not in mixed or Windows style, start by that. 40377 new_path=`cmd //c echo $path` 40378 fi 40379 40380 40381 input_path="$new_path" 40382 # Check if we need to convert this using DOS-style short mode. If the path 40383 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40384 # take no chances and rewrite it. 40385 # Note: m4 eats our [], so we need to use [ and ] instead. 40386 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40387 if test "x$has_forbidden_chars" != x; then 40388 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40389 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40390 fi 40391 40392 40393 windows_path="$new_path" 40394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40395 unix_path=`$CYGPATH -u "$windows_path"` 40396 new_path="$unix_path" 40397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40399 new_path="$unix_path" 40400 fi 40401 40402 if test "x$path" != "x$new_path"; then 40403 JT_HOME="$new_path" 40404 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40405 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40406 fi 40407 40408 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40409 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40410 40411 else 40412 # We're on a posix platform. Hooray! :) 40413 path="$JT_HOME" 40414 has_space=`$ECHO "$path" | $GREP " "` 40415 if test "x$has_space" != x; then 40416 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40417 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40418 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 40419 fi 40420 40421 # Use eval to expand a potential ~ 40422 eval path="$path" 40423 if test ! -f "$path" && test ! -d "$path"; then 40424 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 40425 fi 40426 40427 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 40428 fi 40429 40430 40431 # jtreg win32 script works for everybody 40432 JTREGEXE="$JT_HOME/win32/bin/jtreg" 40433 40434 if test ! -f "$JTREGEXE"; then 40435 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 40436 fi 40437 40438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40439 $as_echo "$JTREGEXE" >&6; } 40440 else 40441 # try to find jtreg on path 40442 40443 40444 40445 # Publish this variable in the help. 40446 40447 40448 if test "x$JTREGEXE" = x; then 40449 # The variable is not set by user, try to locate tool using the code snippet 40450 for ac_prog in jtreg 40451 do 40452 # Extract the first word of "$ac_prog", so it can be a program name with args. 40453 set dummy $ac_prog; ac_word=$2 40454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40455 $as_echo_n "checking for $ac_word... " >&6; } 40456 if ${ac_cv_path_JTREGEXE+:} false; then : 40457 $as_echo_n "(cached) " >&6 40458 else 40459 case $JTREGEXE in 40460 [\\/]* | ?:[\\/]*) 40461 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40462 ;; 40463 *) 40464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40465 for as_dir in $PATH 40466 do 40467 IFS=$as_save_IFS 40468 test -z "$as_dir" && as_dir=. 40469 for ac_exec_ext in '' $ac_executable_extensions; do 40470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40471 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40473 break 2 40474 fi 40475 done 40476 done 40477 IFS=$as_save_IFS 40478 40479 ;; 40480 esac 40481 fi 40482 JTREGEXE=$ac_cv_path_JTREGEXE 40483 if test -n "$JTREGEXE"; then 40484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40485 $as_echo "$JTREGEXE" >&6; } 40486 else 40487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40488 $as_echo "no" >&6; } 40489 fi 40490 40491 40492 test -n "$JTREGEXE" && break 40493 done 40494 40495 else 40496 # The variable is set, but is it from the command line or the environment? 40497 40498 # Try to remove the string !JTREGEXE! from our list. 40499 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 40500 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40501 # If it failed, the variable was not from the command line. Ignore it, 40502 # but warn the user (except for BASH, which is always set by the calling BASH). 40503 if test "xJTREGEXE" != xBASH; then 40504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 40505 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 40506 fi 40507 # Try to locate tool using the code snippet 40508 for ac_prog in jtreg 40509 do 40510 # Extract the first word of "$ac_prog", so it can be a program name with args. 40511 set dummy $ac_prog; ac_word=$2 40512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40513 $as_echo_n "checking for $ac_word... " >&6; } 40514 if ${ac_cv_path_JTREGEXE+:} false; then : 40515 $as_echo_n "(cached) " >&6 40516 else 40517 case $JTREGEXE in 40518 [\\/]* | ?:[\\/]*) 40519 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40520 ;; 40521 *) 40522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40523 for as_dir in $PATH 40524 do 40525 IFS=$as_save_IFS 40526 test -z "$as_dir" && as_dir=. 40527 for ac_exec_ext in '' $ac_executable_extensions; do 40528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40529 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40531 break 2 40532 fi 40533 done 40534 done 40535 IFS=$as_save_IFS 40536 40537 ;; 40538 esac 40539 fi 40540 JTREGEXE=$ac_cv_path_JTREGEXE 40541 if test -n "$JTREGEXE"; then 40542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40543 $as_echo "$JTREGEXE" >&6; } 40544 else 40545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40546 $as_echo "no" >&6; } 40547 fi 40548 40549 40550 test -n "$JTREGEXE" && break 40551 done 40552 40553 else 40554 # If it succeeded, then it was overridden by the user. We will use it 40555 # for the tool. 40556 40557 # First remove it from the list of overridden variables, so we can test 40558 # for unknown variables in the end. 40559 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40560 40561 # Check if the provided tool contains a complete path. 40562 tool_specified="$JTREGEXE" 40563 tool_basename="${tool_specified##*/}" 40564 if test "x$tool_basename" = "x$tool_specified"; then 40565 # A command without a complete path is provided, search $PATH. 40566 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 40567 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 40568 # Extract the first word of "$tool_basename", so it can be a program name with args. 40569 set dummy $tool_basename; ac_word=$2 40570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40571 $as_echo_n "checking for $ac_word... " >&6; } 40572 if ${ac_cv_path_JTREGEXE+:} false; then : 40573 $as_echo_n "(cached) " >&6 40574 else 40575 case $JTREGEXE in 40576 [\\/]* | ?:[\\/]*) 40577 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40578 ;; 40579 *) 40580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40581 for as_dir in $PATH 40582 do 40583 IFS=$as_save_IFS 40584 test -z "$as_dir" && as_dir=. 40585 for ac_exec_ext in '' $ac_executable_extensions; do 40586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40587 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40589 break 2 40590 fi 40591 done 40592 done 40593 IFS=$as_save_IFS 40594 40595 ;; 40596 esac 40597 fi 40598 JTREGEXE=$ac_cv_path_JTREGEXE 40599 if test -n "$JTREGEXE"; then 40600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40601 $as_echo "$JTREGEXE" >&6; } 40602 else 40603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40604 $as_echo "no" >&6; } 40605 fi 40606 40607 40608 if test "x$JTREGEXE" = x; then 40609 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40610 fi 40611 else 40612 # Otherwise we believe it is a complete path. Use it as it is. 40613 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 40614 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 40615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 40616 $as_echo_n "checking for JTREGEXE... " >&6; } 40617 if test ! -x "$tool_specified"; then 40618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40619 $as_echo "not found" >&6; } 40620 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 40621 fi 40622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40623 $as_echo "$tool_specified" >&6; } 40624 fi 40625 fi 40626 fi 40627 40628 40629 40630 if test "x$JTREGEXE" = x; then 40631 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 40632 fi 40633 40634 40635 JT_HOME="`$DIRNAME $JTREGEXE`" 40636 fi 40637 fi 40638 40639 40640 40641 40642 40643 40644 # Option used to tell the compiler whether to create 32- or 64-bit executables 40645 if test "x$TOOLCHAIN_TYPE" = xxlc; then 40646 COMPILER_TARGET_BITS_FLAG="-q" 40647 else 40648 COMPILER_TARGET_BITS_FLAG="-m" 40649 fi 40650 40651 40652 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 40653 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 40654 ARFLAGS="-r" 40655 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40656 ARFLAGS="-X64" 40657 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 40658 # lib.exe is used as AR to create static libraries. 40659 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 40660 else 40661 ARFLAGS="" 40662 fi 40663 40664 40665 ## Setup strip. 40666 # FIXME: should this really be per platform, or should it be per toolchain type? 40667 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 40668 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 40669 if test "x$OPENJDK_TARGET_OS" = xlinux; then 40670 STRIPFLAGS="-g" 40671 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 40672 STRIPFLAGS="-x" 40673 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 40674 STRIPFLAGS="-S" 40675 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40676 STRIPFLAGS="-X32_64" 40677 fi 40678 40679 if test "x$OPENJDK_TARGET_OS" != xwindows; then 40680 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 40681 fi 40682 40683 40684 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40685 # FIXME: break out into MCSFLAGS 40686 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 40687 fi 40688 40689 40690 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40691 CC_OUT_OPTION=-Fo 40692 EXE_OUT_OPTION=-out: 40693 LD_OUT_OPTION=-out: 40694 AR_OUT_OPTION=-out: 40695 else 40696 # The option used to specify the target .o,.a or .so file. 40697 # When compiling, how to specify the to be created object file. 40698 CC_OUT_OPTION='-o$(SPACE)' 40699 # When linking, how to specify the to be created executable. 40700 EXE_OUT_OPTION='-o$(SPACE)' 40701 # When linking, how to specify the to be created dynamically linkable library. 40702 LD_OUT_OPTION='-o$(SPACE)' 40703 # When archiving, how to specify the to be create static archive for object files. 40704 AR_OUT_OPTION='rcs$(SPACE)' 40705 fi 40706 40707 40708 40709 40710 40711 # On Windows, we need to set RC flags. 40712 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40713 RC_FLAGS="-nologo -l 0x409 -r" 40714 if test "x$VARIANT" = xOPT; then 40715 RC_FLAGS="$RC_FLAGS -d NDEBUG" 40716 fi 40717 40718 # The version variables used to create RC_FLAGS may be overridden 40719 # in a custom configure script, or possibly the command line. 40720 # Let those variables be expanded at make time in spec.gmk. 40721 # The \$ are escaped to the shell, and the $(...) variables 40722 # are evaluated by make. 40723 RC_FLAGS="$RC_FLAGS \ 40724 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 40725 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 40726 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 40727 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 40728 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 40729 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 40730 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 40731 fi 40732 40733 40734 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40735 # FIXME: likely bug, should be CCXXFLAGS_JDK? or one for C or CXX. 40736 CCXXFLAGS="$CCXXFLAGS -nologo" 40737 fi 40738 40739 40740 # FIXME: Currently we must test this after toolchain but before flags. Fix! 40741 40742 # Now we can test some aspects on the target using configure macros. 40743 40744 40745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 40746 $as_echo_n "checking for ANSI C header files... " >&6; } 40747 if ${ac_cv_header_stdc+:} false; then : 40748 $as_echo_n "(cached) " >&6 40749 else 40750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40751 /* end confdefs.h. */ 40752 #include <stdlib.h> 40753 #include <stdarg.h> 40754 #include <string.h> 40755 #include <float.h> 40756 40757 int 40758 main () 40759 { 40760 40761 ; 40762 return 0; 40763 } 40764 _ACEOF 40765 if ac_fn_cxx_try_compile "$LINENO"; then : 40766 ac_cv_header_stdc=yes 40767 else 40768 ac_cv_header_stdc=no 40769 fi 40770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40771 40772 if test $ac_cv_header_stdc = yes; then 40773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 40774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40775 /* end confdefs.h. */ 40776 #include <string.h> 40777 40778 _ACEOF 40779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40780 $EGREP "memchr" >/dev/null 2>&1; then : 40781 40782 else 40783 ac_cv_header_stdc=no 40784 fi 40785 rm -f conftest* 40786 40787 fi 40788 40789 if test $ac_cv_header_stdc = yes; then 40790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 40791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40792 /* end confdefs.h. */ 40793 #include <stdlib.h> 40794 40795 _ACEOF 40796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40797 $EGREP "free" >/dev/null 2>&1; then : 40798 40799 else 40800 ac_cv_header_stdc=no 40801 fi 40802 rm -f conftest* 40803 40804 fi 40805 40806 if test $ac_cv_header_stdc = yes; then 40807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 40808 if test "$cross_compiling" = yes; then : 40809 : 40810 else 40811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40812 /* end confdefs.h. */ 40813 #include <ctype.h> 40814 #include <stdlib.h> 40815 #if ((' ' & 0x0FF) == 0x020) 40816 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 40817 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 40818 #else 40819 # define ISLOWER(c) \ 40820 (('a' <= (c) && (c) <= 'i') \ 40821 || ('j' <= (c) && (c) <= 'r') \ 40822 || ('s' <= (c) && (c) <= 'z')) 40823 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 40824 #endif 40825 40826 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 40827 int 40828 main () 40829 { 40830 int i; 40831 for (i = 0; i < 256; i++) 40832 if (XOR (islower (i), ISLOWER (i)) 40833 || toupper (i) != TOUPPER (i)) 40834 return 2; 40835 return 0; 40836 } 40837 _ACEOF 40838 if ac_fn_cxx_try_run "$LINENO"; then : 40839 40840 else 40841 ac_cv_header_stdc=no 40842 fi 40843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40844 conftest.$ac_objext conftest.beam conftest.$ac_ext 40845 fi 40846 40847 fi 40848 fi 40849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 40850 $as_echo "$ac_cv_header_stdc" >&6; } 40851 if test $ac_cv_header_stdc = yes; then 40852 40853 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 40854 40855 fi 40856 40857 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 40858 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 40859 inttypes.h stdint.h unistd.h 40860 do : 40861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 40862 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 40863 " 40864 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 40865 cat >>confdefs.h <<_ACEOF 40866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 40867 _ACEOF 40868 40869 fi 40870 40871 done 40872 40873 40874 40875 ############################################################################### 40876 # 40877 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 40878 # (The JVM can use 32 or 64 bit Java pointers but that decision 40879 # is made at runtime.) 40880 # 40881 40882 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 40883 # Always specify -m flag on Solaris 40884 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 40885 40886 # When we add flags to the "official" CFLAGS etc, we need to 40887 # keep track of these additions in ADDED_CFLAGS etc. These 40888 # will later be checked to make sure only controlled additions 40889 # have been made to CFLAGS etc. 40890 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40891 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40892 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40893 40894 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40895 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40896 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40897 40898 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40899 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40900 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40901 40902 elif test "x$COMPILE_TYPE" = xreduced; then 40903 if test "x$OPENJDK_TARGET_OS" != xwindows; then 40904 # Specify -m if running reduced on other Posix platforms 40905 40906 # When we add flags to the "official" CFLAGS etc, we need to 40907 # keep track of these additions in ADDED_CFLAGS etc. These 40908 # will later be checked to make sure only controlled additions 40909 # have been made to CFLAGS etc. 40910 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40911 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40912 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40913 40914 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40915 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40916 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40917 40918 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40919 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40920 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40921 40922 fi 40923 fi 40924 40925 # Make compilation sanity check 40926 for ac_header in stdio.h 40927 do : 40928 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 40929 if test "x$ac_cv_header_stdio_h" = xyes; then : 40930 cat >>confdefs.h <<_ACEOF 40931 #define HAVE_STDIO_H 1 40932 _ACEOF 40933 40934 else 40935 40936 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 40937 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 40938 if test "x$COMPILE_TYPE" = xreduced; then 40939 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 40940 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 40941 elif test "x$COMPILE_TYPE" = xcross; then 40942 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 40943 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 40944 fi 40945 as_fn_error $? "Cannot continue." "$LINENO" 5 40946 40947 fi 40948 40949 done 40950 40951 40952 # The cast to long int works around a bug in the HP C Compiler 40953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 40954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 40955 # This bug is HP SR number 8606223364. 40956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 40957 $as_echo_n "checking size of int *... " >&6; } 40958 if ${ac_cv_sizeof_int_p+:} false; then : 40959 $as_echo_n "(cached) " >&6 40960 else 40961 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 40962 40963 else 40964 if test "$ac_cv_type_int_p" = yes; then 40965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 40967 as_fn_error 77 "cannot compute sizeof (int *) 40968 See \`config.log' for more details" "$LINENO" 5; } 40969 else 40970 ac_cv_sizeof_int_p=0 40971 fi 40972 fi 40973 40974 fi 40975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 40976 $as_echo "$ac_cv_sizeof_int_p" >&6; } 40977 40978 40979 40980 cat >>confdefs.h <<_ACEOF 40981 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 40982 _ACEOF 40983 40984 40985 40986 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 40987 if test "x$ac_cv_sizeof_int_p" = x; then 40988 # The test failed, lets stick to the assumed value. 40989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&5 40990 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 40991 else 40992 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 40993 40994 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 40995 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 40996 # Let's try to implicitely set the compilers target architecture and retry the test 40997 { $as_echo "$as_me:${as_lineno-$LINENO}: The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)." >&5 40998 $as_echo "$as_me: The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)." >&6;} 40999 { $as_echo "$as_me:${as_lineno-$LINENO}: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 41000 $as_echo "$as_me: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 41001 41002 # When we add flags to the "official" CFLAGS etc, we need to 41003 # keep track of these additions in ADDED_CFLAGS etc. These 41004 # will later be checked to make sure only controlled additions 41005 # have been made to CFLAGS etc. 41006 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41007 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41008 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41009 41010 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41011 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41012 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41013 41014 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41015 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41016 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41017 41018 41019 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41020 unset ac_cv_sizeof_int_p 41021 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41022 cat >>confdefs.h <<_ACEOF 41023 #undef SIZEOF_INT_P 41024 _ACEOF 41025 41026 # The cast to long int works around a bug in the HP C Compiler 41027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41029 # This bug is HP SR number 8606223364. 41030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41031 $as_echo_n "checking size of int *... " >&6; } 41032 if ${ac_cv_sizeof_int_p+:} false; then : 41033 $as_echo_n "(cached) " >&6 41034 else 41035 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41036 41037 else 41038 if test "$ac_cv_type_int_p" = yes; then 41039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41041 as_fn_error 77 "cannot compute sizeof (int *) 41042 See \`config.log' for more details" "$LINENO" 5; } 41043 else 41044 ac_cv_sizeof_int_p=0 41045 fi 41046 fi 41047 41048 fi 41049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41050 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41051 41052 41053 41054 cat >>confdefs.h <<_ACEOF 41055 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41056 _ACEOF 41057 41058 41059 41060 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41061 41062 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41063 as_fn_error $? "The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5 41064 fi 41065 fi 41066 fi 41067 41068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 41069 $as_echo_n "checking for target address size... " >&6; } 41070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 41071 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 41072 41073 41074 ############################################################################### 41075 # 41076 # Is the target little of big endian? 41077 # 41078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 41079 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 41080 if ${ac_cv_c_bigendian+:} false; then : 41081 $as_echo_n "(cached) " >&6 41082 else 41083 ac_cv_c_bigendian=unknown 41084 # See if we're dealing with a universal compiler. 41085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41086 /* end confdefs.h. */ 41087 #ifndef __APPLE_CC__ 41088 not a universal capable compiler 41089 #endif 41090 typedef int dummy; 41091 41092 _ACEOF 41093 if ac_fn_cxx_try_compile "$LINENO"; then : 41094 41095 # Check for potential -arch flags. It is not universal unless 41096 # there are at least two -arch flags with different values. 41097 ac_arch= 41098 ac_prev= 41099 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 41100 if test -n "$ac_prev"; then 41101 case $ac_word in 41102 i?86 | x86_64 | ppc | ppc64) 41103 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 41104 ac_arch=$ac_word 41105 else 41106 ac_cv_c_bigendian=universal 41107 break 41108 fi 41109 ;; 41110 esac 41111 ac_prev= 41112 elif test "x$ac_word" = "x-arch"; then 41113 ac_prev=arch 41114 fi 41115 done 41116 fi 41117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41118 if test $ac_cv_c_bigendian = unknown; then 41119 # See if sys/param.h defines the BYTE_ORDER macro. 41120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41121 /* end confdefs.h. */ 41122 #include <sys/types.h> 41123 #include <sys/param.h> 41124 41125 int 41126 main () 41127 { 41128 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 41129 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 41130 && LITTLE_ENDIAN) 41131 bogus endian macros 41132 #endif 41133 41134 ; 41135 return 0; 41136 } 41137 _ACEOF 41138 if ac_fn_cxx_try_compile "$LINENO"; then : 41139 # It does; now see whether it defined to BIG_ENDIAN or not. 41140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41141 /* end confdefs.h. */ 41142 #include <sys/types.h> 41143 #include <sys/param.h> 41144 41145 int 41146 main () 41147 { 41148 #if BYTE_ORDER != BIG_ENDIAN 41149 not big endian 41150 #endif 41151 41152 ; 41153 return 0; 41154 } 41155 _ACEOF 41156 if ac_fn_cxx_try_compile "$LINENO"; then : 41157 ac_cv_c_bigendian=yes 41158 else 41159 ac_cv_c_bigendian=no 41160 fi 41161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41162 fi 41163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41164 fi 41165 if test $ac_cv_c_bigendian = unknown; then 41166 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 41167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41168 /* end confdefs.h. */ 41169 #include <limits.h> 41170 41171 int 41172 main () 41173 { 41174 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 41175 bogus endian macros 41176 #endif 41177 41178 ; 41179 return 0; 41180 } 41181 _ACEOF 41182 if ac_fn_cxx_try_compile "$LINENO"; then : 41183 # It does; now see whether it defined to _BIG_ENDIAN or not. 41184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41185 /* end confdefs.h. */ 41186 #include <limits.h> 41187 41188 int 41189 main () 41190 { 41191 #ifndef _BIG_ENDIAN 41192 not big endian 41193 #endif 41194 41195 ; 41196 return 0; 41197 } 41198 _ACEOF 41199 if ac_fn_cxx_try_compile "$LINENO"; then : 41200 ac_cv_c_bigendian=yes 41201 else 41202 ac_cv_c_bigendian=no 41203 fi 41204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41205 fi 41206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41207 fi 41208 if test $ac_cv_c_bigendian = unknown; then 41209 # Compile a test program. 41210 if test "$cross_compiling" = yes; then : 41211 # Try to guess by grepping values from an object file. 41212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41213 /* end confdefs.h. */ 41214 short int ascii_mm[] = 41215 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 41216 short int ascii_ii[] = 41217 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 41218 int use_ascii (int i) { 41219 return ascii_mm[i] + ascii_ii[i]; 41220 } 41221 short int ebcdic_ii[] = 41222 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 41223 short int ebcdic_mm[] = 41224 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 41225 int use_ebcdic (int i) { 41226 return ebcdic_mm[i] + ebcdic_ii[i]; 41227 } 41228 extern int foo; 41229 41230 int 41231 main () 41232 { 41233 return use_ascii (foo) == use_ebcdic (foo); 41234 ; 41235 return 0; 41236 } 41237 _ACEOF 41238 if ac_fn_cxx_try_compile "$LINENO"; then : 41239 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 41240 ac_cv_c_bigendian=yes 41241 fi 41242 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 41243 if test "$ac_cv_c_bigendian" = unknown; then 41244 ac_cv_c_bigendian=no 41245 else 41246 # finding both strings is unlikely to happen, but who knows? 41247 ac_cv_c_bigendian=unknown 41248 fi 41249 fi 41250 fi 41251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41252 else 41253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41254 /* end confdefs.h. */ 41255 $ac_includes_default 41256 int 41257 main () 41258 { 41259 41260 /* Are we little or big endian? From Harbison&Steele. */ 41261 union 41262 { 41263 long int l; 41264 char c[sizeof (long int)]; 41265 } u; 41266 u.l = 1; 41267 return u.c[sizeof (long int) - 1] == 1; 41268 41269 ; 41270 return 0; 41271 } 41272 _ACEOF 41273 if ac_fn_cxx_try_run "$LINENO"; then : 41274 ac_cv_c_bigendian=no 41275 else 41276 ac_cv_c_bigendian=yes 41277 fi 41278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41279 conftest.$ac_objext conftest.beam conftest.$ac_ext 41280 fi 41281 41282 fi 41283 fi 41284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 41285 $as_echo "$ac_cv_c_bigendian" >&6; } 41286 case $ac_cv_c_bigendian in #( 41287 yes) 41288 ENDIAN="big";; #( 41289 no) 41290 ENDIAN="little" ;; #( 41291 universal) 41292 ENDIAN="universal_endianness" 41293 ;; #( 41294 *) 41295 ENDIAN="unknown" ;; 41296 esac 41297 41298 41299 if test "x$ENDIAN" = xuniversal_endianness; then 41300 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 41301 fi 41302 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 41303 as_fn_error $? "The tested endian in the target ($ENDIAN) differs from the endian expected to be found in the target ($OPENJDK_TARGET_CPU_ENDIAN)" "$LINENO" 5 41304 fi 41305 41306 41307 # Configure flags for the tools 41308 41309 ############################################################################### 41310 # 41311 # How to compile shared libraries. 41312 # 41313 41314 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41315 PICFLAG="-fPIC" 41316 C_FLAG_REORDER='' 41317 CXX_FLAG_REORDER='' 41318 41319 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41320 # Linking is different on MacOSX 41321 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41322 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41323 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41324 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41325 SET_SHARED_LIBRARY_MAPFILE='' 41326 else 41327 # Default works for linux, might work on other platforms as well. 41328 SHARED_LIBRARY_FLAGS='-shared' 41329 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41330 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 41331 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41332 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41333 fi 41334 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41335 PICFLAG='' 41336 C_FLAG_REORDER='' 41337 CXX_FLAG_REORDER='' 41338 41339 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41340 # Linking is different on MacOSX 41341 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41342 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41343 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41344 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41345 SET_SHARED_LIBRARY_MAPFILE='' 41346 else 41347 # Default works for linux, might work on other platforms as well. 41348 SHARED_LIBRARY_FLAGS='-shared' 41349 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41350 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 41351 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41352 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41353 fi 41354 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41355 PICFLAG="-KPIC" 41356 C_FLAG_REORDER='-xF' 41357 CXX_FLAG_REORDER='-xF' 41358 SHARED_LIBRARY_FLAGS="-G" 41359 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 41360 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41361 SET_SHARED_LIBRARY_NAME='' 41362 SET_SHARED_LIBRARY_MAPFILE='-M$1' 41363 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41364 PICFLAG="-qpic=large" 41365 C_FLAG_REORDER='' 41366 CXX_FLAG_REORDER='' 41367 SHARED_LIBRARY_FLAGS="-qmkshrobj" 41368 SET_EXECUTABLE_ORIGIN="" 41369 SET_SHARED_LIBRARY_ORIGIN='' 41370 SET_SHARED_LIBRARY_NAME='' 41371 SET_SHARED_LIBRARY_MAPFILE='' 41372 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41373 PICFLAG="" 41374 C_FLAG_REORDER='' 41375 CXX_FLAG_REORDER='' 41376 SHARED_LIBRARY_FLAGS="-LD" 41377 SET_EXECUTABLE_ORIGIN='' 41378 SET_SHARED_LIBRARY_ORIGIN='' 41379 SET_SHARED_LIBRARY_NAME='' 41380 SET_SHARED_LIBRARY_MAPFILE='' 41381 fi 41382 41383 41384 41385 41386 41387 41388 41389 41390 41391 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41392 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 41393 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 41394 CFLAGS_JDKLIB_EXTRA='-xstrconst' 41395 fi 41396 # The (cross) compiler is now configured, we can now test capabilities 41397 # of the target platform. 41398 41399 41400 41401 ############################################################################### 41402 # 41403 # Setup the opt flags for different compilers 41404 # and different operating systems. 41405 # 41406 41407 # FIXME: this was indirectly the old default, but just inherited. 41408 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41409 # C_FLAG_DEPS="-MMD -MF" 41410 # fi 41411 41412 # Generate make dependency files 41413 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41414 C_FLAG_DEPS="-MMD -MF" 41415 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41416 C_FLAG_DEPS="-MMD -MF" 41417 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41418 C_FLAG_DEPS="-xMMD -xMF" 41419 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41420 C_FLAG_DEPS="-qmakedep=gcc -MF" 41421 fi 41422 CXX_FLAG_DEPS="$C_FLAG_DEPS" 41423 41424 41425 41426 # Debug symbols 41427 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41428 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 41429 CFLAGS_DEBUG_SYMBOLS="-g1" 41430 CXXFLAGS_DEBUG_SYMBOLS="-g1" 41431 else 41432 CFLAGS_DEBUG_SYMBOLS="-g" 41433 CXXFLAGS_DEBUG_SYMBOLS="-g" 41434 fi 41435 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41436 CFLAGS_DEBUG_SYMBOLS="-g" 41437 CXXFLAGS_DEBUG_SYMBOLS="-g" 41438 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41439 CFLAGS_DEBUG_SYMBOLS="-g -xs" 41440 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 41441 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41442 CFLAGS_DEBUG_SYMBOLS="-g" 41443 CXXFLAGS_DEBUG_SYMBOLS="-g" 41444 fi 41445 41446 41447 41448 # Optimization levels 41449 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41450 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 41451 41452 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 41453 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 41454 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 41455 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 41456 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 41457 C_O_FLAG_NONE="-xregs=no%frameptr" 41458 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 41459 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 41460 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 41461 CXX_O_FLAG_NONE="-xregs=no%frameptr" 41462 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 41463 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 41464 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 41465 fi 41466 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41467 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 41468 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41469 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41470 C_O_FLAG_NONE="" 41471 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 41472 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41473 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41474 CXX_O_FLAG_NONE="" 41475 fi 41476 else 41477 # The remaining toolchains share opt flags between CC and CXX; 41478 # setup for C and duplicate afterwards. 41479 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41480 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41481 # On MacOSX we optimize for size, something 41482 # we should do for all platforms? 41483 C_O_FLAG_HIGHEST="-Os" 41484 C_O_FLAG_HI="-Os" 41485 C_O_FLAG_NORM="-Os" 41486 C_O_FLAG_NONE="" 41487 else 41488 C_O_FLAG_HIGHEST="-O3" 41489 C_O_FLAG_HI="-O3" 41490 C_O_FLAG_NORM="-O2" 41491 C_O_FLAG_NONE="-O0" 41492 fi 41493 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41494 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41495 # On MacOSX we optimize for size, something 41496 # we should do for all platforms? 41497 C_O_FLAG_HIGHEST="-Os" 41498 C_O_FLAG_HI="-Os" 41499 C_O_FLAG_NORM="-Os" 41500 C_O_FLAG_NONE="" 41501 else 41502 C_O_FLAG_HIGHEST="-O3" 41503 C_O_FLAG_HI="-O3" 41504 C_O_FLAG_NORM="-O2" 41505 C_O_FLAG_NONE="-O0" 41506 fi 41507 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41508 C_O_FLAG_HIGHEST="-O3" 41509 C_O_FLAG_HI="-O3 -qstrict" 41510 C_O_FLAG_NORM="-O2" 41511 C_O_FLAG_NONE="" 41512 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41513 C_O_FLAG_HIGHEST="-O2" 41514 C_O_FLAG_HI="-O1" 41515 C_O_FLAG_NORM="-O1" 41516 C_O_FLAG_NONE="-Od" 41517 fi 41518 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 41519 CXX_O_FLAG_HI="$C_O_FLAG_HI" 41520 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 41521 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 41522 fi 41523 41524 41525 41526 41527 41528 41529 41530 41531 41532 41533 41534 # Special extras... 41535 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41536 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41537 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41538 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41539 fi 41540 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41541 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 41542 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41543 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41544 fi 41545 41546 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 41547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 41548 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 41549 fi 41550 41551 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 41552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 41553 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 41554 fi 41555 41556 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 41557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 41558 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 41559 fi 41560 41561 41562 # Check whether --with-extra-cflags was given. 41563 if test "${with_extra_cflags+set}" = set; then : 41564 withval=$with_extra_cflags; 41565 fi 41566 41567 41568 41569 # Check whether --with-extra-cxxflags was given. 41570 if test "${with_extra_cxxflags+set}" = set; then : 41571 withval=$with_extra_cxxflags; 41572 fi 41573 41574 41575 41576 # Check whether --with-extra-ldflags was given. 41577 if test "${with_extra_ldflags+set}" = set; then : 41578 withval=$with_extra_ldflags; 41579 fi 41580 41581 41582 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 41583 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 41584 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 41585 41586 # Hotspot needs these set in their legacy form 41587 LEGACY_EXTRA_CFLAGS=$with_extra_cflags 41588 LEGACY_EXTRA_CXXFLAGS=$with_extra_cxxflags 41589 LEGACY_EXTRA_LDFLAGS=$with_extra_ldflags 41590 41591 41592 41593 41594 41595 ############################################################################### 41596 # 41597 # Now setup the CFLAGS and LDFLAGS for the JDK build. 41598 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 41599 # 41600 41601 # Setup compiler/platform specific flags to CFLAGS_JDK, 41602 # CXXFLAGS_JDK and CCXXFLAGS_JDK (common to C and CXX?) 41603 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41604 # these options are used for both C and C++ compiles 41605 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 41606 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 41607 case $OPENJDK_TARGET_CPU_ARCH in 41608 arm ) 41609 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 41610 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41611 ;; 41612 ppc ) 41613 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing 41614 ;; 41615 * ) 41616 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer" 41617 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41618 ;; 41619 esac 41620 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41621 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 41622 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 41623 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 41624 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 41625 fi 41626 41627 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 41628 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 41629 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41630 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 41631 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 41632 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41633 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 41634 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 41635 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 41636 -DWIN32 -DIAL" 41637 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 41638 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" 41639 else 41640 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" 41641 fi 41642 fi 41643 41644 ############################################################################### 41645 41646 # Adjust flags according to debug level. 41647 case $DEBUG_LEVEL in 41648 fastdebug ) 41649 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 41650 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 41651 C_O_FLAG_HI="$C_O_FLAG_NORM" 41652 C_O_FLAG_NORM="$C_O_FLAG_NORM" 41653 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 41654 CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM" 41655 JAVAC_FLAGS="$JAVAC_FLAGS -g" 41656 ;; 41657 slowdebug ) 41658 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 41659 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 41660 C_O_FLAG_HI="$C_O_FLAG_NONE" 41661 C_O_FLAG_NORM="$C_O_FLAG_NONE" 41662 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE" 41663 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" 41664 JAVAC_FLAGS="$JAVAC_FLAGS -g" 41665 ;; 41666 esac 41667 41668 # Setup LP64 41669 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 41670 41671 # Set some common defines. These works for all compilers, but assume 41672 # -D is universally accepted. 41673 41674 # Setup endianness 41675 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 41676 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 41677 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 41678 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 41679 # Note: -Dmacro is the same as #define macro 1 41680 # -Dmacro= is the same as #define macro 41681 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41682 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 41683 else 41684 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 41685 fi 41686 else 41687 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 41688 fi 41689 41690 # Setup target OS define. Use OS target name but in upper case. 41691 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 41692 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 41693 41694 # Setup target CPU 41695 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 41696 41697 # Setup debug/release defines 41698 if test "x$DEBUG_LEVEL" = xrelease; then 41699 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 41700 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41701 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED" 41702 fi 41703 else 41704 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 41705 fi 41706 41707 # Setup release name 41708 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 41709 41710 41711 # Set some additional per-OS defines. 41712 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41713 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 41714 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41715 # FIXME: PPC64 should not be here. 41716 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DPPC64" 41717 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 41718 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 41719 fi 41720 41721 # Additional macosx handling 41722 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41723 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41724 # FIXME: This needs to be exported in spec.gmk due to closed legacy code. 41725 # FIXME: clean this up, and/or move it elsewhere. 41726 41727 # Setting these parameters makes it an error to link to macosx APIs that are 41728 # newer than the given OS version and makes the linked binaries compatible 41729 # even if built on a newer version of the OS. 41730 # The expected format is X.Y.Z 41731 MACOSX_VERSION_MIN=10.7.0 41732 41733 41734 # The macro takes the version with no dots, ex: 1070 41735 # Let the flags variables get resolved in make for easier override on make 41736 # command line. 41737 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 41738 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 41739 fi 41740 fi 41741 41742 # Setup some hard coded includes 41743 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 41744 -I${JDK_OUTPUTDIR}/include \ 41745 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ 41746 -I${JDK_TOPDIR}/src/share/javavm/export \ 41747 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \ 41748 -I${JDK_TOPDIR}/src/share/native/common \ 41749 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" 41750 41751 # The shared libraries are compiled using the picflag. 41752 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 41753 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 41754 41755 # Executable flags 41756 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" 41757 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" 41758 41759 41760 41761 41762 41763 41764 # Setup LDFLAGS et al. 41765 # 41766 # Now this is odd. The JDK native libraries have to link against libjvm.so 41767 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 41768 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 41769 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 41770 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 41771 # libraries will link to whatever is in memory. Yuck. 41772 # 41773 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 41774 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41775 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 41776 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 41777 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 41778 fi 41779 # TODO: make -debug optional "--disable-full-debug-symbols" 41780 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 41781 LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib" 41782 LDFLAGS_JDKLIB_SUFFIX="" 41783 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 41784 LDFLAGS_STACK_SIZE=1048576 41785 else 41786 LDFLAGS_STACK_SIZE=327680 41787 fi 41788 LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE" 41789 else 41790 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41791 # If this is a --hash-style=gnu system, use --hash-style=both, why? 41792 # We have previously set HAS_GNU_HASH if this is the case 41793 if test -n "$HAS_GNU_HASH"; then 41794 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " 41795 fi 41796 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41797 # And since we now know that the linker is gnu, then add -z defs, to forbid 41798 # undefined symbols in object files. 41799 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 41800 if test "x$DEBUG_LEVEL" = "xrelease"; then 41801 # When building release libraries, tell the linker optimize them. 41802 # Should this be supplied to the OSS linker as well? 41803 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 41804 fi 41805 fi 41806 fi 41807 41808 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41809 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 41810 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 41811 fi 41812 41813 LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \ 41814 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 41815 41816 # On some platforms (mac) the linker warns about non existing -L dirs. 41817 # Add server first if available. Linking aginst client does not always produce the same results. 41818 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 41819 # Default to server for other variants. 41820 if test "x$JVM_VARIANT_SERVER" = xtrue; then 41821 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 41822 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 41823 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 41824 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 41825 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 41826 else 41827 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 41828 fi 41829 41830 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 41831 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41832 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 41833 fi 41834 41835 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 41836 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41837 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 41838 fi 41839 fi 41840 41841 41842 41843 41844 41845 41846 41847 41848 # Some Zero and Shark settings. 41849 # ZERO_ARCHFLAG tells the compiler which mode to build for 41850 case "${OPENJDK_TARGET_CPU}" in 41851 s390) 41852 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 41853 ;; 41854 *) 41855 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41856 esac 41857 41858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 41859 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 41860 supports=yes 41861 41862 saved_cflags="$CFLAGS" 41863 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 41864 ac_ext=c 41865 ac_cpp='$CPP $CPPFLAGS' 41866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41868 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41869 41870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41871 /* end confdefs.h. */ 41872 int i; 41873 _ACEOF 41874 if ac_fn_c_try_compile "$LINENO"; then : 41875 41876 else 41877 supports=no 41878 fi 41879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41880 ac_ext=cpp 41881 ac_cpp='$CXXCPP $CPPFLAGS' 41882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41885 41886 CFLAGS="$saved_cflags" 41887 41888 saved_cxxflags="$CXXFLAGS" 41889 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 41890 ac_ext=cpp 41891 ac_cpp='$CXXCPP $CPPFLAGS' 41892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41895 41896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41897 /* end confdefs.h. */ 41898 int i; 41899 _ACEOF 41900 if ac_fn_cxx_try_compile "$LINENO"; then : 41901 41902 else 41903 supports=no 41904 fi 41905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41906 ac_ext=cpp 41907 ac_cpp='$CXXCPP $CPPFLAGS' 41908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41911 41912 CXXFLAGS="$saved_cxxflags" 41913 41914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41915 $as_echo "$supports" >&6; } 41916 if test "x$supports" = "xyes" ; then 41917 : 41918 else 41919 ZERO_ARCHFLAG="" 41920 fi 41921 41922 41923 41924 # Check that the compiler supports -mX (or -qX on AIX) flags 41925 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 41926 41927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 41928 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 41929 supports=yes 41930 41931 saved_cflags="$CFLAGS" 41932 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41933 ac_ext=c 41934 ac_cpp='$CPP $CPPFLAGS' 41935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41937 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41938 41939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41940 /* end confdefs.h. */ 41941 int i; 41942 _ACEOF 41943 if ac_fn_c_try_compile "$LINENO"; then : 41944 41945 else 41946 supports=no 41947 fi 41948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41949 ac_ext=cpp 41950 ac_cpp='$CXXCPP $CPPFLAGS' 41951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41954 41955 CFLAGS="$saved_cflags" 41956 41957 saved_cxxflags="$CXXFLAGS" 41958 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41959 ac_ext=cpp 41960 ac_cpp='$CXXCPP $CPPFLAGS' 41961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41964 41965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41966 /* end confdefs.h. */ 41967 int i; 41968 _ACEOF 41969 if ac_fn_cxx_try_compile "$LINENO"; then : 41970 41971 else 41972 supports=no 41973 fi 41974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41975 ac_ext=cpp 41976 ac_cpp='$CXXCPP $CPPFLAGS' 41977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41980 41981 CXXFLAGS="$saved_cxxflags" 41982 41983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41984 $as_echo "$supports" >&6; } 41985 if test "x$supports" = "xyes" ; then 41986 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 41987 else 41988 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 41989 fi 41990 41991 41992 41993 case "${TOOLCHAIN_TYPE}" in 41994 microsoft) 41995 CFLAGS_WARNINGS_ARE_ERRORS="/WX" 41996 ;; 41997 solstudio) 41998 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 41999 ;; 42000 gcc) 42001 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 42002 ;; 42003 clang) 42004 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 42005 ;; 42006 esac 42007 42008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: warnings are errors: $CFLAGS_WARNINGS_ARE_ERRORS" >&5 42009 $as_echo "warnings are errors: $CFLAGS_WARNINGS_ARE_ERRORS" >&6; } 42010 42011 42012 # Setup debug symbols (need objcopy from the toolchain for that) 42013 42014 # 42015 # ENABLE_DEBUG_SYMBOLS 42016 # This must be done after the toolchain is setup, since we're looking at objcopy. 42017 # 42018 # Check whether --enable-debug-symbols was given. 42019 if test "${enable_debug_symbols+set}" = set; then : 42020 enableval=$enable_debug_symbols; 42021 fi 42022 42023 42024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 42025 $as_echo_n "checking if we should generate debug symbols... " >&6; } 42026 42027 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 42028 # explicit enabling of enable-debug-symbols and can't find objcopy 42029 # this is an error 42030 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 42031 fi 42032 42033 if test "x$enable_debug_symbols" = "xyes"; then 42034 ENABLE_DEBUG_SYMBOLS=true 42035 elif test "x$enable_debug_symbols" = "xno"; then 42036 ENABLE_DEBUG_SYMBOLS=false 42037 else 42038 # Default is on if objcopy is found 42039 if test "x$OBJCOPY" != x; then 42040 ENABLE_DEBUG_SYMBOLS=true 42041 # MacOS X and Windows don't use objcopy but default is on for those OSes 42042 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 42043 ENABLE_DEBUG_SYMBOLS=true 42044 else 42045 ENABLE_DEBUG_SYMBOLS=false 42046 fi 42047 fi 42048 42049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 42050 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 42051 42052 # 42053 # ZIP_DEBUGINFO_FILES 42054 # 42055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 42056 $as_echo_n "checking if we should zip debug-info files... " >&6; } 42057 # Check whether --enable-zip-debug-info was given. 42058 if test "${enable_zip_debug_info+set}" = set; then : 42059 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 42060 else 42061 enable_zip_debug_info="yes" 42062 fi 42063 42064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 42065 $as_echo "${enable_zip_debug_info}" >&6; } 42066 42067 if test "x${enable_zip_debug_info}" = "xno"; then 42068 ZIP_DEBUGINFO_FILES=false 42069 else 42070 ZIP_DEBUGINFO_FILES=true 42071 fi 42072 42073 42074 42075 42076 42077 ############################################################################### 42078 # 42079 # Check dependencies for external and internal libraries. 42080 # 42081 ############################################################################### 42082 42083 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 42084 42085 # When using cygwin or msys, we need a wrapper binary that renames 42086 # /cygdrive/c/ arguments into c:/ arguments and peeks into 42087 # @files and rewrites these too! This wrapper binary is 42088 # called fixpath. 42089 FIXPATH= 42090 if test "x$OPENJDK_BUILD_OS" = xwindows; then 42091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 42092 $as_echo_n "checking if fixpath can be created... " >&6; } 42093 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 42094 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 42095 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 42096 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 42097 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 42098 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 42099 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 42100 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 42101 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 42102 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 42103 42104 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 42105 # @ was chosen as separator to minimize risk of other tools messing around with it 42106 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 42107 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 42108 42109 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 42110 fi 42111 rm -f $OUTPUT_ROOT/fixpath* 42112 cd $OUTPUT_ROOT 42113 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 42114 cd $CURDIR 42115 42116 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 42117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42118 $as_echo "no" >&6; } 42119 cat $OUTPUT_ROOT/fixpath1.log 42120 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 42121 fi 42122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42123 $as_echo "yes" >&6; } 42124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 42125 $as_echo_n "checking if fixpath.exe works... " >&6; } 42126 cd $OUTPUT_ROOT 42127 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 42128 cd $CURDIR 42129 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 42130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42131 $as_echo "no" >&6; } 42132 cat $OUTPUT_ROOT/fixpath2.log 42133 as_fn_error $? "fixpath did not work!" "$LINENO" 5 42134 fi 42135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42136 $as_echo "yes" >&6; } 42137 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 42138 fi 42139 42140 42141 42142 42143 42144 42145 ############################################################################### 42146 # 42147 # OS specific settings that we never will need to probe. 42148 # 42149 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 42151 $as_echo_n "checking what is not needed on Linux?... " >&6; } 42152 PULSE_NOT_NEEDED=yes 42153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 42154 $as_echo "pulse" >&6; } 42155 fi 42156 42157 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 42159 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 42160 ALSA_NOT_NEEDED=yes 42161 PULSE_NOT_NEEDED=yes 42162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42163 $as_echo "alsa pulse" >&6; } 42164 fi 42165 42166 if test "x$OPENJDK_TARGET_OS" = xaix; then 42167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 42168 $as_echo_n "checking what is not needed on AIX?... " >&6; } 42169 ALSA_NOT_NEEDED=yes 42170 PULSE_NOT_NEEDED=yes 42171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42172 $as_echo "alsa pulse" >&6; } 42173 fi 42174 42175 42176 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 42178 $as_echo_n "checking what is not needed on Windows?... " >&6; } 42179 CUPS_NOT_NEEDED=yes 42180 ALSA_NOT_NEEDED=yes 42181 PULSE_NOT_NEEDED=yes 42182 X11_NOT_NEEDED=yes 42183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 42184 $as_echo "alsa cups pulse x11" >&6; } 42185 fi 42186 42187 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 42189 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 42190 ALSA_NOT_NEEDED=yes 42191 PULSE_NOT_NEEDED=yes 42192 X11_NOT_NEEDED=yes 42193 # If the java runtime framework is disabled, then we need X11. 42194 # This will be adjusted below. 42195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 42196 $as_echo "alsa pulse x11" >&6; } 42197 fi 42198 42199 if test "x$OPENJDK_TARGET_OS" = xbsd; then 42200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 42201 $as_echo_n "checking what is not needed on bsd?... " >&6; } 42202 ALSA_NOT_NEEDED=yes 42203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 42204 $as_echo "alsa" >&6; } 42205 fi 42206 42207 if test "x$OPENJDK" = "xfalse"; then 42208 FREETYPE_NOT_NEEDED=yes 42209 fi 42210 42211 if test "x$SUPPORT_HEADFUL" = xno; then 42212 X11_NOT_NEEDED=yes 42213 fi 42214 42215 ############################################################################### 42216 # 42217 # Check for MacOSX support for OpenJDK. 42218 # 42219 42220 42221 # Check whether --enable-macosx-runtime-support was given. 42222 if test "${enable_macosx_runtime_support+set}" = set; then : 42223 enableval=$enable_macosx_runtime_support; 42224 fi 42225 42226 if test "x$enable_macosx_runtime_support" != x; then 42227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5 42228 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;} 42229 fi 42230 42231 42232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Java Framework" >&5 42233 $as_echo_n "checking for Mac OS X Java Framework... " >&6; } 42234 if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then 42235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /System/Library/Frameworks/JavaVM.framework" >&5 42236 $as_echo "/System/Library/Frameworks/JavaVM.framework" >&6; } 42237 else 42238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42239 $as_echo "no" >&6; } 42240 fi 42241 42242 42243 42244 ############################################################################### 42245 # 42246 # Check for X Windows 42247 # 42248 42249 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 42250 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 42251 # --x-libraries for the sysroot, if that seems to be correct. 42252 if test "x$SYS_ROOT" != "x/"; then 42253 if test "x$x_includes" = xNONE; then 42254 if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then 42255 x_includes="$SYS_ROOT/usr/X11R6/include" 42256 elif test -f "$SYS_ROOT/usr/include/X11/Xlib.h"; then 42257 x_includes="$SYS_ROOT/usr/include" 42258 fi 42259 fi 42260 if test "x$x_libraries" = xNONE; then 42261 if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then 42262 x_libraries="$SYS_ROOT/usr/X11R6/lib" 42263 elif test "$SYS_ROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 42264 x_libraries="$SYS_ROOT/usr/lib64" 42265 elif test -f "$SYS_ROOT/usr/lib/libX11.so"; then 42266 x_libraries="$SYS_ROOT/usr/lib" 42267 fi 42268 fi 42269 fi 42270 42271 # Now let autoconf do it's magic 42272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 42273 $as_echo_n "checking for X... " >&6; } 42274 42275 42276 # Check whether --with-x was given. 42277 if test "${with_x+set}" = set; then : 42278 withval=$with_x; 42279 fi 42280 42281 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 42282 if test "x$with_x" = xno; then 42283 # The user explicitly disabled X. 42284 have_x=disabled 42285 else 42286 case $x_includes,$x_libraries in #( 42287 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 42288 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 42289 $as_echo_n "(cached) " >&6 42290 else 42291 # One or both of the vars are not set, and there is no cached value. 42292 ac_x_includes=no ac_x_libraries=no 42293 rm -f -r conftest.dir 42294 if mkdir conftest.dir; then 42295 cd conftest.dir 42296 cat >Imakefile <<'_ACEOF' 42297 incroot: 42298 @echo incroot='${INCROOT}' 42299 usrlibdir: 42300 @echo usrlibdir='${USRLIBDIR}' 42301 libdir: 42302 @echo libdir='${LIBDIR}' 42303 _ACEOF 42304 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 42305 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 42306 for ac_var in incroot usrlibdir libdir; do 42307 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 42308 done 42309 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 42310 for ac_extension in a so sl dylib la dll; do 42311 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 42312 test -f "$ac_im_libdir/libX11.$ac_extension"; then 42313 ac_im_usrlibdir=$ac_im_libdir; break 42314 fi 42315 done 42316 # Screen out bogus values from the imake configuration. They are 42317 # bogus both because they are the default anyway, and because 42318 # using them would break gcc on systems where it needs fixed includes. 42319 case $ac_im_incroot in 42320 /usr/include) ac_x_includes= ;; 42321 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 42322 esac 42323 case $ac_im_usrlibdir in 42324 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 42325 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 42326 esac 42327 fi 42328 cd .. 42329 rm -f -r conftest.dir 42330 fi 42331 42332 # Standard set of common directories for X headers. 42333 # Check X11 before X11Rn because it is often a symlink to the current release. 42334 ac_x_header_dirs=' 42335 /usr/X11/include 42336 /usr/X11R7/include 42337 /usr/X11R6/include 42338 /usr/X11R5/include 42339 /usr/X11R4/include 42340 42341 /usr/include/X11 42342 /usr/include/X11R7 42343 /usr/include/X11R6 42344 /usr/include/X11R5 42345 /usr/include/X11R4 42346 42347 /usr/local/X11/include 42348 /usr/local/X11R7/include 42349 /usr/local/X11R6/include 42350 /usr/local/X11R5/include 42351 /usr/local/X11R4/include 42352 42353 /usr/local/include/X11 42354 /usr/local/include/X11R7 42355 /usr/local/include/X11R6 42356 /usr/local/include/X11R5 42357 /usr/local/include/X11R4 42358 42359 /usr/X386/include 42360 /usr/x386/include 42361 /usr/XFree86/include/X11 42362 42363 /usr/include 42364 /usr/local/include 42365 /usr/unsupported/include 42366 /usr/athena/include 42367 /usr/local/x11r5/include 42368 /usr/lpp/Xamples/include 42369 42370 /usr/openwin/include 42371 /usr/openwin/share/include' 42372 42373 if test "$ac_x_includes" = no; then 42374 # Guess where to find include files, by looking for Xlib.h. 42375 # First, try using that file with no special directory specified. 42376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42377 /* end confdefs.h. */ 42378 #include <X11/Xlib.h> 42379 _ACEOF 42380 if ac_fn_cxx_try_cpp "$LINENO"; then : 42381 # We can compile using X headers with no special include directory. 42382 ac_x_includes= 42383 else 42384 for ac_dir in $ac_x_header_dirs; do 42385 if test -r "$ac_dir/X11/Xlib.h"; then 42386 ac_x_includes=$ac_dir 42387 break 42388 fi 42389 done 42390 fi 42391 rm -f conftest.err conftest.i conftest.$ac_ext 42392 fi # $ac_x_includes = no 42393 42394 if test "$ac_x_libraries" = no; then 42395 # Check for the libraries. 42396 # See if we find them without any special options. 42397 # Don't add to $LIBS permanently. 42398 ac_save_LIBS=$LIBS 42399 LIBS="-lX11 $LIBS" 42400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42401 /* end confdefs.h. */ 42402 #include <X11/Xlib.h> 42403 int 42404 main () 42405 { 42406 XrmInitialize () 42407 ; 42408 return 0; 42409 } 42410 _ACEOF 42411 if ac_fn_cxx_try_link "$LINENO"; then : 42412 LIBS=$ac_save_LIBS 42413 # We can link X programs with no special library path. 42414 ac_x_libraries= 42415 else 42416 LIBS=$ac_save_LIBS 42417 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 42418 do 42419 # Don't even attempt the hair of trying to link an X program! 42420 for ac_extension in a so sl dylib la dll; do 42421 if test -r "$ac_dir/libX11.$ac_extension"; then 42422 ac_x_libraries=$ac_dir 42423 break 2 42424 fi 42425 done 42426 done 42427 fi 42428 rm -f core conftest.err conftest.$ac_objext \ 42429 conftest$ac_exeext conftest.$ac_ext 42430 fi # $ac_x_libraries = no 42431 42432 case $ac_x_includes,$ac_x_libraries in #( 42433 no,* | *,no | *\'*) 42434 # Didn't find X, or a directory has "'" in its name. 42435 ac_cv_have_x="have_x=no";; #( 42436 *) 42437 # Record where we found X for the cache. 42438 ac_cv_have_x="have_x=yes\ 42439 ac_x_includes='$ac_x_includes'\ 42440 ac_x_libraries='$ac_x_libraries'" 42441 esac 42442 fi 42443 ;; #( 42444 *) have_x=yes;; 42445 esac 42446 eval "$ac_cv_have_x" 42447 fi # $with_x != no 42448 42449 if test "$have_x" != yes; then 42450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 42451 $as_echo "$have_x" >&6; } 42452 no_x=yes 42453 else 42454 # If each of the values was on the command line, it overrides each guess. 42455 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 42456 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 42457 # Update the cache value to reflect the command line values. 42458 ac_cv_have_x="have_x=yes\ 42459 ac_x_includes='$x_includes'\ 42460 ac_x_libraries='$x_libraries'" 42461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 42462 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 42463 fi 42464 42465 if test "$no_x" = yes; then 42466 # Not all programs may use this symbol, but it does not hurt to define it. 42467 42468 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 42469 42470 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 42471 else 42472 if test -n "$x_includes"; then 42473 X_CFLAGS="$X_CFLAGS -I$x_includes" 42474 fi 42475 42476 # It would also be nice to do this for all -L options, not just this one. 42477 if test -n "$x_libraries"; then 42478 X_LIBS="$X_LIBS -L$x_libraries" 42479 # For Solaris; some versions of Sun CC require a space after -R and 42480 # others require no space. Words are not sufficient . . . . 42481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 42482 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 42483 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 42484 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 42485 ac_cxx_werror_flag=yes 42486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42487 /* end confdefs.h. */ 42488 42489 int 42490 main () 42491 { 42492 42493 ; 42494 return 0; 42495 } 42496 _ACEOF 42497 if ac_fn_cxx_try_link "$LINENO"; then : 42498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42499 $as_echo "no" >&6; } 42500 X_LIBS="$X_LIBS -R$x_libraries" 42501 else 42502 LIBS="$ac_xsave_LIBS -R $x_libraries" 42503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42504 /* end confdefs.h. */ 42505 42506 int 42507 main () 42508 { 42509 42510 ; 42511 return 0; 42512 } 42513 _ACEOF 42514 if ac_fn_cxx_try_link "$LINENO"; then : 42515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42516 $as_echo "yes" >&6; } 42517 X_LIBS="$X_LIBS -R $x_libraries" 42518 else 42519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 42520 $as_echo "neither works" >&6; } 42521 fi 42522 rm -f core conftest.err conftest.$ac_objext \ 42523 conftest$ac_exeext conftest.$ac_ext 42524 fi 42525 rm -f core conftest.err conftest.$ac_objext \ 42526 conftest$ac_exeext conftest.$ac_ext 42527 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 42528 LIBS=$ac_xsave_LIBS 42529 fi 42530 42531 # Check for system-dependent libraries X programs must link with. 42532 # Do this before checking for the system-independent R6 libraries 42533 # (-lICE), since we may need -lsocket or whatever for X linking. 42534 42535 if test "$ISC" = yes; then 42536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 42537 else 42538 # Martyn Johnson says this is needed for Ultrix, if the X 42539 # libraries were built with DECnet support. And Karl Berry says 42540 # the Alpha needs dnet_stub (dnet does not exist). 42541 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 42542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42543 /* end confdefs.h. */ 42544 42545 /* Override any GCC internal prototype to avoid an error. 42546 Use char because int might match the return type of a GCC 42547 builtin and then its argument prototype would still apply. */ 42548 #ifdef __cplusplus 42549 extern "C" 42550 #endif 42551 char XOpenDisplay (); 42552 int 42553 main () 42554 { 42555 return XOpenDisplay (); 42556 ; 42557 return 0; 42558 } 42559 _ACEOF 42560 if ac_fn_cxx_try_link "$LINENO"; then : 42561 42562 else 42563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 42564 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 42565 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 42566 $as_echo_n "(cached) " >&6 42567 else 42568 ac_check_lib_save_LIBS=$LIBS 42569 LIBS="-ldnet $LIBS" 42570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42571 /* end confdefs.h. */ 42572 42573 /* Override any GCC internal prototype to avoid an error. 42574 Use char because int might match the return type of a GCC 42575 builtin and then its argument prototype would still apply. */ 42576 #ifdef __cplusplus 42577 extern "C" 42578 #endif 42579 char dnet_ntoa (); 42580 int 42581 main () 42582 { 42583 return dnet_ntoa (); 42584 ; 42585 return 0; 42586 } 42587 _ACEOF 42588 if ac_fn_cxx_try_link "$LINENO"; then : 42589 ac_cv_lib_dnet_dnet_ntoa=yes 42590 else 42591 ac_cv_lib_dnet_dnet_ntoa=no 42592 fi 42593 rm -f core conftest.err conftest.$ac_objext \ 42594 conftest$ac_exeext conftest.$ac_ext 42595 LIBS=$ac_check_lib_save_LIBS 42596 fi 42597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 42598 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 42599 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 42600 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 42601 fi 42602 42603 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 42604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 42605 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 42606 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 42607 $as_echo_n "(cached) " >&6 42608 else 42609 ac_check_lib_save_LIBS=$LIBS 42610 LIBS="-ldnet_stub $LIBS" 42611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42612 /* end confdefs.h. */ 42613 42614 /* Override any GCC internal prototype to avoid an error. 42615 Use char because int might match the return type of a GCC 42616 builtin and then its argument prototype would still apply. */ 42617 #ifdef __cplusplus 42618 extern "C" 42619 #endif 42620 char dnet_ntoa (); 42621 int 42622 main () 42623 { 42624 return dnet_ntoa (); 42625 ; 42626 return 0; 42627 } 42628 _ACEOF 42629 if ac_fn_cxx_try_link "$LINENO"; then : 42630 ac_cv_lib_dnet_stub_dnet_ntoa=yes 42631 else 42632 ac_cv_lib_dnet_stub_dnet_ntoa=no 42633 fi 42634 rm -f core conftest.err conftest.$ac_objext \ 42635 conftest$ac_exeext conftest.$ac_ext 42636 LIBS=$ac_check_lib_save_LIBS 42637 fi 42638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 42639 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 42640 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 42641 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 42642 fi 42643 42644 fi 42645 fi 42646 rm -f core conftest.err conftest.$ac_objext \ 42647 conftest$ac_exeext conftest.$ac_ext 42648 LIBS="$ac_xsave_LIBS" 42649 42650 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 42651 # to get the SysV transport functions. 42652 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 42653 # needs -lnsl. 42654 # The nsl library prevents programs from opening the X display 42655 # on Irix 5.2, according to T.E. Dickey. 42656 # The functions gethostbyname, getservbyname, and inet_addr are 42657 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 42658 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 42659 if test "x$ac_cv_func_gethostbyname" = xyes; then : 42660 42661 fi 42662 42663 if test $ac_cv_func_gethostbyname = no; then 42664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 42665 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 42666 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 42667 $as_echo_n "(cached) " >&6 42668 else 42669 ac_check_lib_save_LIBS=$LIBS 42670 LIBS="-lnsl $LIBS" 42671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42672 /* end confdefs.h. */ 42673 42674 /* Override any GCC internal prototype to avoid an error. 42675 Use char because int might match the return type of a GCC 42676 builtin and then its argument prototype would still apply. */ 42677 #ifdef __cplusplus 42678 extern "C" 42679 #endif 42680 char gethostbyname (); 42681 int 42682 main () 42683 { 42684 return gethostbyname (); 42685 ; 42686 return 0; 42687 } 42688 _ACEOF 42689 if ac_fn_cxx_try_link "$LINENO"; then : 42690 ac_cv_lib_nsl_gethostbyname=yes 42691 else 42692 ac_cv_lib_nsl_gethostbyname=no 42693 fi 42694 rm -f core conftest.err conftest.$ac_objext \ 42695 conftest$ac_exeext conftest.$ac_ext 42696 LIBS=$ac_check_lib_save_LIBS 42697 fi 42698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 42699 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 42700 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 42701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 42702 fi 42703 42704 if test $ac_cv_lib_nsl_gethostbyname = no; then 42705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 42706 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 42707 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 42708 $as_echo_n "(cached) " >&6 42709 else 42710 ac_check_lib_save_LIBS=$LIBS 42711 LIBS="-lbsd $LIBS" 42712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42713 /* end confdefs.h. */ 42714 42715 /* Override any GCC internal prototype to avoid an error. 42716 Use char because int might match the return type of a GCC 42717 builtin and then its argument prototype would still apply. */ 42718 #ifdef __cplusplus 42719 extern "C" 42720 #endif 42721 char gethostbyname (); 42722 int 42723 main () 42724 { 42725 return gethostbyname (); 42726 ; 42727 return 0; 42728 } 42729 _ACEOF 42730 if ac_fn_cxx_try_link "$LINENO"; then : 42731 ac_cv_lib_bsd_gethostbyname=yes 42732 else 42733 ac_cv_lib_bsd_gethostbyname=no 42734 fi 42735 rm -f core conftest.err conftest.$ac_objext \ 42736 conftest$ac_exeext conftest.$ac_ext 42737 LIBS=$ac_check_lib_save_LIBS 42738 fi 42739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 42740 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 42741 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 42742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 42743 fi 42744 42745 fi 42746 fi 42747 42748 # lieder@skyler.mavd.honeywell.com says without -lsocket, 42749 # socket/setsockopt and other routines are undefined under SCO ODT 42750 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 42751 # on later versions), says Simon Leinen: it contains gethostby* 42752 # variants that don't use the name server (or something). -lsocket 42753 # must be given before -lnsl if both are needed. We assume that 42754 # if connect needs -lnsl, so does gethostbyname. 42755 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 42756 if test "x$ac_cv_func_connect" = xyes; then : 42757 42758 fi 42759 42760 if test $ac_cv_func_connect = no; then 42761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 42762 $as_echo_n "checking for connect in -lsocket... " >&6; } 42763 if ${ac_cv_lib_socket_connect+:} false; then : 42764 $as_echo_n "(cached) " >&6 42765 else 42766 ac_check_lib_save_LIBS=$LIBS 42767 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 42768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42769 /* end confdefs.h. */ 42770 42771 /* Override any GCC internal prototype to avoid an error. 42772 Use char because int might match the return type of a GCC 42773 builtin and then its argument prototype would still apply. */ 42774 #ifdef __cplusplus 42775 extern "C" 42776 #endif 42777 char connect (); 42778 int 42779 main () 42780 { 42781 return connect (); 42782 ; 42783 return 0; 42784 } 42785 _ACEOF 42786 if ac_fn_cxx_try_link "$LINENO"; then : 42787 ac_cv_lib_socket_connect=yes 42788 else 42789 ac_cv_lib_socket_connect=no 42790 fi 42791 rm -f core conftest.err conftest.$ac_objext \ 42792 conftest$ac_exeext conftest.$ac_ext 42793 LIBS=$ac_check_lib_save_LIBS 42794 fi 42795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 42796 $as_echo "$ac_cv_lib_socket_connect" >&6; } 42797 if test "x$ac_cv_lib_socket_connect" = xyes; then : 42798 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 42799 fi 42800 42801 fi 42802 42803 # Guillermo Gomez says -lposix is necessary on A/UX. 42804 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 42805 if test "x$ac_cv_func_remove" = xyes; then : 42806 42807 fi 42808 42809 if test $ac_cv_func_remove = no; then 42810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 42811 $as_echo_n "checking for remove in -lposix... " >&6; } 42812 if ${ac_cv_lib_posix_remove+:} false; then : 42813 $as_echo_n "(cached) " >&6 42814 else 42815 ac_check_lib_save_LIBS=$LIBS 42816 LIBS="-lposix $LIBS" 42817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42818 /* end confdefs.h. */ 42819 42820 /* Override any GCC internal prototype to avoid an error. 42821 Use char because int might match the return type of a GCC 42822 builtin and then its argument prototype would still apply. */ 42823 #ifdef __cplusplus 42824 extern "C" 42825 #endif 42826 char remove (); 42827 int 42828 main () 42829 { 42830 return remove (); 42831 ; 42832 return 0; 42833 } 42834 _ACEOF 42835 if ac_fn_cxx_try_link "$LINENO"; then : 42836 ac_cv_lib_posix_remove=yes 42837 else 42838 ac_cv_lib_posix_remove=no 42839 fi 42840 rm -f core conftest.err conftest.$ac_objext \ 42841 conftest$ac_exeext conftest.$ac_ext 42842 LIBS=$ac_check_lib_save_LIBS 42843 fi 42844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 42845 $as_echo "$ac_cv_lib_posix_remove" >&6; } 42846 if test "x$ac_cv_lib_posix_remove" = xyes; then : 42847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 42848 fi 42849 42850 fi 42851 42852 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 42853 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 42854 if test "x$ac_cv_func_shmat" = xyes; then : 42855 42856 fi 42857 42858 if test $ac_cv_func_shmat = no; then 42859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 42860 $as_echo_n "checking for shmat in -lipc... " >&6; } 42861 if ${ac_cv_lib_ipc_shmat+:} false; then : 42862 $as_echo_n "(cached) " >&6 42863 else 42864 ac_check_lib_save_LIBS=$LIBS 42865 LIBS="-lipc $LIBS" 42866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42867 /* end confdefs.h. */ 42868 42869 /* Override any GCC internal prototype to avoid an error. 42870 Use char because int might match the return type of a GCC 42871 builtin and then its argument prototype would still apply. */ 42872 #ifdef __cplusplus 42873 extern "C" 42874 #endif 42875 char shmat (); 42876 int 42877 main () 42878 { 42879 return shmat (); 42880 ; 42881 return 0; 42882 } 42883 _ACEOF 42884 if ac_fn_cxx_try_link "$LINENO"; then : 42885 ac_cv_lib_ipc_shmat=yes 42886 else 42887 ac_cv_lib_ipc_shmat=no 42888 fi 42889 rm -f core conftest.err conftest.$ac_objext \ 42890 conftest$ac_exeext conftest.$ac_ext 42891 LIBS=$ac_check_lib_save_LIBS 42892 fi 42893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 42894 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 42895 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 42896 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 42897 fi 42898 42899 fi 42900 fi 42901 42902 # Check for libraries that X11R6 Xt/Xaw programs need. 42903 ac_save_LDFLAGS=$LDFLAGS 42904 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 42905 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 42906 # check for ICE first), but we must link in the order -lSM -lICE or 42907 # we get undefined symbols. So assume we have SM if we have ICE. 42908 # These have to be linked with before -lX11, unlike the other 42909 # libraries we check for below, so use a different variable. 42910 # John Interrante, Karl Berry 42911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 42912 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 42913 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 42914 $as_echo_n "(cached) " >&6 42915 else 42916 ac_check_lib_save_LIBS=$LIBS 42917 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 42918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42919 /* end confdefs.h. */ 42920 42921 /* Override any GCC internal prototype to avoid an error. 42922 Use char because int might match the return type of a GCC 42923 builtin and then its argument prototype would still apply. */ 42924 #ifdef __cplusplus 42925 extern "C" 42926 #endif 42927 char IceConnectionNumber (); 42928 int 42929 main () 42930 { 42931 return IceConnectionNumber (); 42932 ; 42933 return 0; 42934 } 42935 _ACEOF 42936 if ac_fn_cxx_try_link "$LINENO"; then : 42937 ac_cv_lib_ICE_IceConnectionNumber=yes 42938 else 42939 ac_cv_lib_ICE_IceConnectionNumber=no 42940 fi 42941 rm -f core conftest.err conftest.$ac_objext \ 42942 conftest$ac_exeext conftest.$ac_ext 42943 LIBS=$ac_check_lib_save_LIBS 42944 fi 42945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 42946 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 42947 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 42948 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 42949 fi 42950 42951 LDFLAGS=$ac_save_LDFLAGS 42952 42953 fi 42954 42955 42956 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 42957 # this doesn't make sense so we remove it. 42958 if test "x$COMPILE_TYPE" = xcross; then 42959 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 42960 fi 42961 42962 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 42963 42964 # Print a helpful message on how to acquire the necessary build dependency. 42965 # x11 is the help tag: freetype, cups, pulse, alsa etc 42966 MISSING_DEPENDENCY=x11 42967 42968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42969 cygwin_help $MISSING_DEPENDENCY 42970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42971 msys_help $MISSING_DEPENDENCY 42972 else 42973 PKGHANDLER_COMMAND= 42974 42975 case $PKGHANDLER in 42976 apt-get) 42977 apt_help $MISSING_DEPENDENCY ;; 42978 yum) 42979 yum_help $MISSING_DEPENDENCY ;; 42980 port) 42981 port_help $MISSING_DEPENDENCY ;; 42982 pkgutil) 42983 pkgutil_help $MISSING_DEPENDENCY ;; 42984 pkgadd) 42985 pkgadd_help $MISSING_DEPENDENCY ;; 42986 esac 42987 42988 if test "x$PKGHANDLER_COMMAND" != x; then 42989 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 42990 fi 42991 fi 42992 42993 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 42994 fi 42995 42996 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42997 OPENWIN_HOME="/usr/openwin" 42998 fi 42999 43000 43001 43002 # 43003 # Weird Sol10 something check...TODO change to try compile 43004 # 43005 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then 43006 if test "`uname -r`" = "5.10"; then 43007 if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then 43008 X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS" 43009 fi 43010 fi 43011 fi 43012 43013 ac_ext=c 43014 ac_cpp='$CPP $CPPFLAGS' 43015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43017 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43018 43019 OLD_CFLAGS="$CFLAGS" 43020 CFLAGS="$CFLAGS $X_CFLAGS" 43021 43022 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 43023 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 43024 do : 43025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43026 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 43027 # include <X11/Xlib.h> 43028 # include <X11/Xutil.h> 43029 43030 43031 " 43032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43033 cat >>confdefs.h <<_ACEOF 43034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43035 _ACEOF 43036 X11_A_OK=yes 43037 else 43038 X11_A_OK=no; break 43039 fi 43040 43041 done 43042 43043 43044 CFLAGS="$OLD_CFLAGS" 43045 ac_ext=cpp 43046 ac_cpp='$CXXCPP $CPPFLAGS' 43047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43050 43051 43052 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 43053 43054 # Print a helpful message on how to acquire the necessary build dependency. 43055 # x11 is the help tag: freetype, cups, pulse, alsa etc 43056 MISSING_DEPENDENCY=x11 43057 43058 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43059 cygwin_help $MISSING_DEPENDENCY 43060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43061 msys_help $MISSING_DEPENDENCY 43062 else 43063 PKGHANDLER_COMMAND= 43064 43065 case $PKGHANDLER in 43066 apt-get) 43067 apt_help $MISSING_DEPENDENCY ;; 43068 yum) 43069 yum_help $MISSING_DEPENDENCY ;; 43070 port) 43071 port_help $MISSING_DEPENDENCY ;; 43072 pkgutil) 43073 pkgutil_help $MISSING_DEPENDENCY ;; 43074 pkgadd) 43075 pkgadd_help $MISSING_DEPENDENCY ;; 43076 esac 43077 43078 if test "x$PKGHANDLER_COMMAND" != x; then 43079 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43080 fi 43081 fi 43082 43083 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 43084 fi 43085 43086 43087 43088 43089 43090 43091 ############################################################################### 43092 # 43093 # The common unix printing system cups is used to print from java. 43094 # 43095 43096 # Check whether --with-cups was given. 43097 if test "${with_cups+set}" = set; then : 43098 withval=$with_cups; 43099 fi 43100 43101 43102 # Check whether --with-cups-include was given. 43103 if test "${with_cups_include+set}" = set; then : 43104 withval=$with_cups_include; 43105 fi 43106 43107 43108 if test "x$CUPS_NOT_NEEDED" = xyes; then 43109 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 43110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 43111 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 43112 fi 43113 CUPS_CFLAGS= 43114 else 43115 CUPS_FOUND=no 43116 43117 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 43118 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 43119 fi 43120 43121 if test "x${with_cups}" != x; then 43122 CUPS_CFLAGS="-I${with_cups}/include" 43123 CUPS_FOUND=yes 43124 fi 43125 if test "x${with_cups_include}" != x; then 43126 CUPS_CFLAGS="-I${with_cups_include}" 43127 CUPS_FOUND=yes 43128 fi 43129 if test "x$CUPS_FOUND" = xno; then 43130 43131 43132 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 43133 # Source the builddeps file again, to make sure it uses the latest variables! 43134 . $builddepsfile 43135 # Look for a target and build machine specific resource! 43136 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 43137 if test "x$resource" = x; then 43138 # Ok, lets instead look for a target specific resource 43139 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 43140 fi 43141 if test "x$resource" = x; then 43142 # Ok, lets instead look for a build specific resource 43143 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 43144 fi 43145 if test "x$resource" = x; then 43146 # Ok, lets instead look for a generic resource 43147 # (The cups comes from M4 and not the shell, thus no need for eval here.) 43148 resource=${builddep_cups} 43149 fi 43150 if test "x$resource" != x; then 43151 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 43152 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 43153 # If the resource in the builddeps.conf file is an existing directory, 43154 # for example /java/linux/cups 43155 if test -d ${resource}; then 43156 depdir=${resource} 43157 else 43158 43159 # cups is for example mymodule 43160 # $resource is for example libs/general/libmymod_1_2_3.zip 43161 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 43162 # $with_builddeps_dir is for example /localhome/builddeps 43163 # depdir is the name of the variable into which we store the depdir, eg MYMOD 43164 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 43165 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 43166 filename=`basename $resource` 43167 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 43168 filebase=${filename%%.*} 43169 extension=${filename#*.} 43170 installdir=$with_builddeps_dir/$filebase 43171 if test ! -f $installdir/$filename.unpacked; then 43172 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 43173 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 43174 if test ! -d $installdir; then 43175 mkdir -p $installdir 43176 fi 43177 if test ! -d $installdir; then 43178 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 43179 fi 43180 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 43181 touch $tmpfile 43182 if test ! -f $tmpfile; then 43183 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 43184 fi 43185 43186 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 43187 # $tmpfile is the local file name for the downloaded file. 43188 VALID_TOOL=no 43189 if test "x$BDEPS_FTP" = xwget; then 43190 VALID_TOOL=yes 43191 wget -O $tmpfile $with_builddeps_server/$resource 43192 fi 43193 if test "x$BDEPS_FTP" = xlftp; then 43194 VALID_TOOL=yes 43195 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 43196 fi 43197 if test "x$BDEPS_FTP" = xftp; then 43198 VALID_TOOL=yes 43199 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 43200 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 43201 FTPUSERPWD=${FTPSERVER%%@*} 43202 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 43203 FTPUSER=${userpwd%%:*} 43204 FTPPWD=${userpwd#*@} 43205 FTPSERVER=${FTPSERVER#*@} 43206 else 43207 FTPUSER=ftp 43208 FTPPWD=ftp 43209 fi 43210 # the "pass" command does not work on some 43211 # ftp clients (read ftp.exe) but if it works, 43212 # passive mode is better! 43213 ( \ 43214 echo "user $FTPUSER $FTPPWD" ; \ 43215 echo "pass" ; \ 43216 echo "bin" ; \ 43217 echo "get $FTPPATH $tmpfile" ; \ 43218 ) | ftp -in $FTPSERVER 43219 fi 43220 if test "x$VALID_TOOL" != xyes; then 43221 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 43222 fi 43223 43224 mv $tmpfile $installdir/$filename 43225 if test ! -s $installdir/$filename; then 43226 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 43227 fi 43228 case "$extension" in 43229 zip) echo "Unzipping $installdir/$filename..." 43230 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 43231 ;; 43232 tar.gz) echo "Untaring $installdir/$filename..." 43233 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43234 ;; 43235 tgz) echo "Untaring $installdir/$filename..." 43236 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43237 ;; 43238 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 43239 ;; 43240 esac 43241 fi 43242 if test -f $installdir/$filename.unpacked; then 43243 depdir=$installdir 43244 fi 43245 43246 fi 43247 # Source the builddeps file again, because in the previous command, the depdir 43248 # was updated to point at the current build dependency install directory. 43249 . $builddepsfile 43250 # Now extract variables from the builddeps.conf files. 43251 theroot=${builddep_cups_ROOT} 43252 thecflags=${builddep_cups_CFLAGS} 43253 thelibs=${builddep_cups_LIBS} 43254 if test "x$depdir" = x; then 43255 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 43256 fi 43257 CUPS=$depdir 43258 if test "x$theroot" != x; then 43259 CUPS="$theroot" 43260 fi 43261 if test "x$thecflags" != x; then 43262 CUPS_CFLAGS="$thecflags" 43263 fi 43264 if test "x$thelibs" != x; then 43265 CUPS_LIBS="$thelibs" 43266 fi 43267 CUPS_FOUND=yes 43268 43269 fi 43270 43271 fi 43272 43273 fi 43274 if test "x$CUPS_FOUND" = xno; then 43275 # Are the cups headers installed in the default /usr/include location? 43276 for ac_header in cups/cups.h cups/ppd.h 43277 do : 43278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43279 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 43280 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43281 cat >>confdefs.h <<_ACEOF 43282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43283 _ACEOF 43284 43285 CUPS_FOUND=yes 43286 CUPS_CFLAGS= 43287 DEFAULT_CUPS=yes 43288 43289 43290 fi 43291 43292 done 43293 43294 fi 43295 if test "x$CUPS_FOUND" = xno; then 43296 # Getting nervous now? Lets poke around for standard Solaris third-party 43297 # package installation locations. 43298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 43299 $as_echo_n "checking for cups headers... " >&6; } 43300 if test -s /opt/sfw/cups/include/cups/cups.h; then 43301 # An SFW package seems to be installed! 43302 CUPS_FOUND=yes 43303 CUPS_CFLAGS="-I/opt/sfw/cups/include" 43304 elif test -s /opt/csw/include/cups/cups.h; then 43305 # A CSW package seems to be installed! 43306 CUPS_FOUND=yes 43307 CUPS_CFLAGS="-I/opt/csw/include" 43308 fi 43309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 43310 $as_echo "$CUPS_FOUND" >&6; } 43311 fi 43312 if test "x$CUPS_FOUND" = xno; then 43313 43314 # Print a helpful message on how to acquire the necessary build dependency. 43315 # cups is the help tag: freetype, cups, pulse, alsa etc 43316 MISSING_DEPENDENCY=cups 43317 43318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43319 cygwin_help $MISSING_DEPENDENCY 43320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43321 msys_help $MISSING_DEPENDENCY 43322 else 43323 PKGHANDLER_COMMAND= 43324 43325 case $PKGHANDLER in 43326 apt-get) 43327 apt_help $MISSING_DEPENDENCY ;; 43328 yum) 43329 yum_help $MISSING_DEPENDENCY ;; 43330 port) 43331 port_help $MISSING_DEPENDENCY ;; 43332 pkgutil) 43333 pkgutil_help $MISSING_DEPENDENCY ;; 43334 pkgadd) 43335 pkgadd_help $MISSING_DEPENDENCY ;; 43336 esac 43337 43338 if test "x$PKGHANDLER_COMMAND" != x; then 43339 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43340 fi 43341 fi 43342 43343 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 43344 fi 43345 fi 43346 43347 43348 43349 43350 43351 43352 ############################################################################### 43353 # 43354 # The ubiquitous freetype library is used to render fonts. 43355 # 43356 43357 # Check whether --with-freetype was given. 43358 if test "${with_freetype+set}" = set; then : 43359 withval=$with_freetype; 43360 fi 43361 43362 43363 # Check whether --with-freetype-include was given. 43364 if test "${with_freetype_include+set}" = set; then : 43365 withval=$with_freetype_include; 43366 fi 43367 43368 43369 # Check whether --with-freetype-lib was given. 43370 if test "${with_freetype_lib+set}" = set; then : 43371 withval=$with_freetype_lib; 43372 fi 43373 43374 # Check whether --enable-freetype-bundling was given. 43375 if test "${enable_freetype_bundling+set}" = set; then : 43376 enableval=$enable_freetype_bundling; 43377 fi 43378 43379 43380 FREETYPE_CFLAGS= 43381 FREETYPE_LIBS= 43382 FREETYPE_BUNDLE_LIB_PATH= 43383 43384 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 43385 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 43386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 43387 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 43388 fi 43389 if test "x$enable_freetype_bundling" != x; then 43390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 43391 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 43392 fi 43393 else 43394 # freetype is needed to build; go get it! 43395 43396 BUNDLE_FREETYPE="$enable_freetype_bundling" 43397 43398 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 43399 # User has specified settings 43400 43401 if test "x$BUNDLE_FREETYPE" = x; then 43402 # If not specified, default is to bundle freetype 43403 BUNDLE_FREETYPE=yes 43404 fi 43405 43406 if test "x$with_freetype" != x; then 43407 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 43408 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 43409 fi 43410 43411 # Allow --with-freetype-lib and --with-freetype-include to override 43412 if test "x$with_freetype_include" != x; then 43413 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 43414 fi 43415 if test "x$with_freetype_lib" != x; then 43416 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 43417 fi 43418 43419 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 43420 # Okay, we got it. Check that it works. 43421 43422 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43423 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43424 METHOD="--with-freetype" 43425 43426 # First check if the files exists. 43427 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 43428 # We found an arbitrary include file. That's a good sign. 43429 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 43430 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 43431 FOUND_FREETYPE=yes 43432 43433 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 43434 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 43435 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 43436 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 43437 FOUND_FREETYPE=no 43438 else 43439 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43440 # On Windows, we will need both .lib and .dll file. 43441 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 43442 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 43443 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 43444 FOUND_FREETYPE=no 43445 fi 43446 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 43447 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 43448 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 43449 fi 43450 fi 43451 fi 43452 43453 if test "x$FOUND_FREETYPE" = xyes; then 43454 43455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43456 43457 # Input might be given as Windows format, start by converting to 43458 # unix format. 43459 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43460 new_path=`$CYGPATH -u "$path"` 43461 43462 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43463 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43464 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43465 # "foo.exe" is OK but "foo" is an error. 43466 # 43467 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43468 # It is also a way to make sure we got the proper file name for the real test later on. 43469 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43470 if test "x$test_shortpath" = x; then 43471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43472 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43473 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 43474 fi 43475 43476 # Call helper function which possibly converts this using DOS-style short mode. 43477 # If so, the updated path is stored in $new_path. 43478 43479 input_path="$new_path" 43480 # Check if we need to convert this using DOS-style short mode. If the path 43481 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43482 # take no chances and rewrite it. 43483 # Note: m4 eats our [], so we need to use [ and ] instead. 43484 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43485 if test "x$has_forbidden_chars" != x; then 43486 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43487 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43488 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43489 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43490 # Going to short mode and back again did indeed matter. Since short mode is 43491 # case insensitive, let's make it lowercase to improve readability. 43492 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43493 # Now convert it back to Unix-stile (cygpath) 43494 input_path=`$CYGPATH -u "$shortmode_path"` 43495 new_path="$input_path" 43496 fi 43497 fi 43498 43499 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43500 if test "x$test_cygdrive_prefix" = x; then 43501 # As a simple fix, exclude /usr/bin since it's not a real path. 43502 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43503 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43504 # a path prefixed by /cygdrive for fixpath to work. 43505 new_path="$CYGWIN_ROOT_PATH$input_path" 43506 fi 43507 fi 43508 43509 43510 if test "x$path" != "x$new_path"; then 43511 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43512 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43513 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43514 fi 43515 43516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43517 43518 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43519 has_colon=`$ECHO $path | $GREP ^.:` 43520 new_path="$path" 43521 if test "x$has_colon" = x; then 43522 # Not in mixed or Windows style, start by that. 43523 new_path=`cmd //c echo $path` 43524 fi 43525 43526 43527 input_path="$new_path" 43528 # Check if we need to convert this using DOS-style short mode. If the path 43529 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43530 # take no chances and rewrite it. 43531 # Note: m4 eats our [], so we need to use [ and ] instead. 43532 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43533 if test "x$has_forbidden_chars" != x; then 43534 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43535 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43536 fi 43537 43538 43539 windows_path="$new_path" 43540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43541 unix_path=`$CYGPATH -u "$windows_path"` 43542 new_path="$unix_path" 43543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43544 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43545 new_path="$unix_path" 43546 fi 43547 43548 if test "x$path" != "x$new_path"; then 43549 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43550 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43551 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43552 fi 43553 43554 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43555 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43556 43557 else 43558 # We're on a posix platform. Hooray! :) 43559 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43560 has_space=`$ECHO "$path" | $GREP " "` 43561 if test "x$has_space" != x; then 43562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43563 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43564 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43565 fi 43566 43567 # Use eval to expand a potential ~ 43568 eval path="$path" 43569 if test ! -f "$path" && test ! -d "$path"; then 43570 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43571 fi 43572 43573 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 43574 fi 43575 43576 43577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43578 43579 # Input might be given as Windows format, start by converting to 43580 # unix format. 43581 path="$POTENTIAL_FREETYPE_LIB_PATH" 43582 new_path=`$CYGPATH -u "$path"` 43583 43584 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43585 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43586 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43587 # "foo.exe" is OK but "foo" is an error. 43588 # 43589 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43590 # It is also a way to make sure we got the proper file name for the real test later on. 43591 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43592 if test "x$test_shortpath" = x; then 43593 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43594 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43595 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 43596 fi 43597 43598 # Call helper function which possibly converts this using DOS-style short mode. 43599 # If so, the updated path is stored in $new_path. 43600 43601 input_path="$new_path" 43602 # Check if we need to convert this using DOS-style short mode. If the path 43603 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43604 # take no chances and rewrite it. 43605 # Note: m4 eats our [], so we need to use [ and ] instead. 43606 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43607 if test "x$has_forbidden_chars" != x; then 43608 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43609 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43610 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43611 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43612 # Going to short mode and back again did indeed matter. Since short mode is 43613 # case insensitive, let's make it lowercase to improve readability. 43614 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43615 # Now convert it back to Unix-stile (cygpath) 43616 input_path=`$CYGPATH -u "$shortmode_path"` 43617 new_path="$input_path" 43618 fi 43619 fi 43620 43621 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43622 if test "x$test_cygdrive_prefix" = x; then 43623 # As a simple fix, exclude /usr/bin since it's not a real path. 43624 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43625 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43626 # a path prefixed by /cygdrive for fixpath to work. 43627 new_path="$CYGWIN_ROOT_PATH$input_path" 43628 fi 43629 fi 43630 43631 43632 if test "x$path" != "x$new_path"; then 43633 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43634 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43635 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43636 fi 43637 43638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43639 43640 path="$POTENTIAL_FREETYPE_LIB_PATH" 43641 has_colon=`$ECHO $path | $GREP ^.:` 43642 new_path="$path" 43643 if test "x$has_colon" = x; then 43644 # Not in mixed or Windows style, start by that. 43645 new_path=`cmd //c echo $path` 43646 fi 43647 43648 43649 input_path="$new_path" 43650 # Check if we need to convert this using DOS-style short mode. If the path 43651 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43652 # take no chances and rewrite it. 43653 # Note: m4 eats our [], so we need to use [ and ] instead. 43654 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43655 if test "x$has_forbidden_chars" != x; then 43656 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43657 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43658 fi 43659 43660 43661 windows_path="$new_path" 43662 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43663 unix_path=`$CYGPATH -u "$windows_path"` 43664 new_path="$unix_path" 43665 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43666 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43667 new_path="$unix_path" 43668 fi 43669 43670 if test "x$path" != "x$new_path"; then 43671 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43672 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43673 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43674 fi 43675 43676 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43677 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43678 43679 else 43680 # We're on a posix platform. Hooray! :) 43681 path="$POTENTIAL_FREETYPE_LIB_PATH" 43682 has_space=`$ECHO "$path" | $GREP " "` 43683 if test "x$has_space" != x; then 43684 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43685 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43686 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43687 fi 43688 43689 # Use eval to expand a potential ~ 43690 eval path="$path" 43691 if test ! -f "$path" && test ! -d "$path"; then 43692 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43693 fi 43694 43695 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 43696 fi 43697 43698 43699 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 43701 $as_echo_n "checking for freetype includes... " >&6; } 43702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 43703 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 43704 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 43706 $as_echo_n "checking for freetype libraries... " >&6; } 43707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 43708 $as_echo "$FREETYPE_LIB_PATH" >&6; } 43709 fi 43710 43711 if test "x$FOUND_FREETYPE" != xyes; then 43712 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 43713 fi 43714 else 43715 # User specified only one of lib or include. This is an error. 43716 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 43717 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 43718 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 43719 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 43720 else 43721 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 43722 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 43723 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 43724 fi 43725 fi 43726 else 43727 # User did not specify settings, but we need freetype. Try to locate it. 43728 43729 if test "x$BUNDLE_FREETYPE" = x; then 43730 # If not specified, default is to bundle freetype only on windows 43731 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43732 BUNDLE_FREETYPE=yes 43733 else 43734 BUNDLE_FREETYPE=no 43735 fi 43736 fi 43737 43738 if test "x$FOUND_FREETYPE" != xyes; then 43739 # Check builddeps 43740 43741 43742 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 43743 # Source the builddeps file again, to make sure it uses the latest variables! 43744 . $builddepsfile 43745 # Look for a target and build machine specific resource! 43746 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 43747 if test "x$resource" = x; then 43748 # Ok, lets instead look for a target specific resource 43749 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 43750 fi 43751 if test "x$resource" = x; then 43752 # Ok, lets instead look for a build specific resource 43753 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 43754 fi 43755 if test "x$resource" = x; then 43756 # Ok, lets instead look for a generic resource 43757 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 43758 resource=${builddep_freetype2} 43759 fi 43760 if test "x$resource" != x; then 43761 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 43762 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 43763 # If the resource in the builddeps.conf file is an existing directory, 43764 # for example /java/linux/cups 43765 if test -d ${resource}; then 43766 depdir=${resource} 43767 else 43768 43769 # freetype2 is for example mymodule 43770 # $resource is for example libs/general/libmymod_1_2_3.zip 43771 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 43772 # $with_builddeps_dir is for example /localhome/builddeps 43773 # depdir is the name of the variable into which we store the depdir, eg MYMOD 43774 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 43775 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 43776 filename=`basename $resource` 43777 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 43778 filebase=${filename%%.*} 43779 extension=${filename#*.} 43780 installdir=$with_builddeps_dir/$filebase 43781 if test ! -f $installdir/$filename.unpacked; then 43782 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 43783 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 43784 if test ! -d $installdir; then 43785 mkdir -p $installdir 43786 fi 43787 if test ! -d $installdir; then 43788 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 43789 fi 43790 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 43791 touch $tmpfile 43792 if test ! -f $tmpfile; then 43793 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 43794 fi 43795 43796 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 43797 # $tmpfile is the local file name for the downloaded file. 43798 VALID_TOOL=no 43799 if test "x$BDEPS_FTP" = xwget; then 43800 VALID_TOOL=yes 43801 wget -O $tmpfile $with_builddeps_server/$resource 43802 fi 43803 if test "x$BDEPS_FTP" = xlftp; then 43804 VALID_TOOL=yes 43805 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 43806 fi 43807 if test "x$BDEPS_FTP" = xftp; then 43808 VALID_TOOL=yes 43809 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 43810 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 43811 FTPUSERPWD=${FTPSERVER%%@*} 43812 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 43813 FTPUSER=${userpwd%%:*} 43814 FTPPWD=${userpwd#*@} 43815 FTPSERVER=${FTPSERVER#*@} 43816 else 43817 FTPUSER=ftp 43818 FTPPWD=ftp 43819 fi 43820 # the "pass" command does not work on some 43821 # ftp clients (read ftp.exe) but if it works, 43822 # passive mode is better! 43823 ( \ 43824 echo "user $FTPUSER $FTPPWD" ; \ 43825 echo "pass" ; \ 43826 echo "bin" ; \ 43827 echo "get $FTPPATH $tmpfile" ; \ 43828 ) | ftp -in $FTPSERVER 43829 fi 43830 if test "x$VALID_TOOL" != xyes; then 43831 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 43832 fi 43833 43834 mv $tmpfile $installdir/$filename 43835 if test ! -s $installdir/$filename; then 43836 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 43837 fi 43838 case "$extension" in 43839 zip) echo "Unzipping $installdir/$filename..." 43840 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 43841 ;; 43842 tar.gz) echo "Untaring $installdir/$filename..." 43843 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43844 ;; 43845 tgz) echo "Untaring $installdir/$filename..." 43846 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43847 ;; 43848 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 43849 ;; 43850 esac 43851 fi 43852 if test -f $installdir/$filename.unpacked; then 43853 depdir=$installdir 43854 fi 43855 43856 fi 43857 # Source the builddeps file again, because in the previous command, the depdir 43858 # was updated to point at the current build dependency install directory. 43859 . $builddepsfile 43860 # Now extract variables from the builddeps.conf files. 43861 theroot=${builddep_freetype2_ROOT} 43862 thecflags=${builddep_freetype2_CFLAGS} 43863 thelibs=${builddep_freetype2_LIBS} 43864 if test "x$depdir" = x; then 43865 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 43866 fi 43867 FREETYPE=$depdir 43868 if test "x$theroot" != x; then 43869 FREETYPE="$theroot" 43870 fi 43871 if test "x$thecflags" != x; then 43872 FREETYPE_CFLAGS="$thecflags" 43873 fi 43874 if test "x$thelibs" != x; then 43875 FREETYPE_LIBS="$thelibs" 43876 fi 43877 FOUND_FREETYPE=yes 43878 else FOUND_FREETYPE=no 43879 43880 fi 43881 else FOUND_FREETYPE=no 43882 43883 fi 43884 43885 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 43886 if test "x$FOUND_FREETYPE" = xyes; then 43887 if test "x$BUNDLE_FREETYPE" = xyes; then 43888 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 43889 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 43890 FOUND_FREETYPE=no 43891 else 43892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 43893 $as_echo_n "checking for freetype... " >&6; } 43894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 43895 $as_echo "yes (using builddeps)" >&6; } 43896 fi 43897 fi 43898 fi 43899 43900 if test "x$FOUND_FREETYPE" != xyes; then 43901 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 43902 if test "x$PKG_CONFIG" != x; then 43903 43904 pkg_failed=no 43905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 43906 $as_echo_n "checking for FREETYPE... " >&6; } 43907 43908 if test -n "$FREETYPE_CFLAGS"; then 43909 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 43910 elif test -n "$PKG_CONFIG"; then 43911 if test -n "$PKG_CONFIG" && \ 43912 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 43913 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 43914 ac_status=$? 43915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 43916 test $ac_status = 0; }; then 43917 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 43918 else 43919 pkg_failed=yes 43920 fi 43921 else 43922 pkg_failed=untried 43923 fi 43924 if test -n "$FREETYPE_LIBS"; then 43925 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 43926 elif test -n "$PKG_CONFIG"; then 43927 if test -n "$PKG_CONFIG" && \ 43928 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 43929 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 43930 ac_status=$? 43931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 43932 test $ac_status = 0; }; then 43933 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 43934 else 43935 pkg_failed=yes 43936 fi 43937 else 43938 pkg_failed=untried 43939 fi 43940 43941 43942 43943 if test $pkg_failed = yes; then 43944 43945 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 43946 _pkg_short_errors_supported=yes 43947 else 43948 _pkg_short_errors_supported=no 43949 fi 43950 if test $_pkg_short_errors_supported = yes; then 43951 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 43952 else 43953 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 43954 fi 43955 # Put the nasty error message in config.log where it belongs 43956 echo "$FREETYPE_PKG_ERRORS" >&5 43957 43958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43959 $as_echo "no" >&6; } 43960 FOUND_FREETYPE=no 43961 elif test $pkg_failed = untried; then 43962 FOUND_FREETYPE=no 43963 else 43964 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 43965 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 43966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43967 $as_echo "yes" >&6; } 43968 FOUND_FREETYPE=yes 43969 fi 43970 if test "x$FOUND_FREETYPE" = xyes; then 43971 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 43972 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 43973 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 43974 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 43975 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 43976 fi 43977 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 43978 if test "x$BUNDLE_FREETYPE" = xyes; then 43979 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 43980 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 43981 FOUND_FREETYPE=no 43982 else 43983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 43984 $as_echo_n "checking for freetype... " >&6; } 43985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 43986 $as_echo "yes (using pkg-config)" >&6; } 43987 fi 43988 fi 43989 fi 43990 fi 43991 43992 if test "x$FOUND_FREETYPE" != xyes; then 43993 # Check in well-known locations 43994 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43995 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 43996 43997 windows_path="$FREETYPE_BASE_DIR" 43998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43999 unix_path=`$CYGPATH -u "$windows_path"` 44000 FREETYPE_BASE_DIR="$unix_path" 44001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44002 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44003 FREETYPE_BASE_DIR="$unix_path" 44004 fi 44005 44006 44007 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44008 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44009 METHOD="well-known location" 44010 44011 # First check if the files exists. 44012 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44013 # We found an arbitrary include file. That's a good sign. 44014 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44015 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44016 FOUND_FREETYPE=yes 44017 44018 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44019 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44020 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44021 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44022 FOUND_FREETYPE=no 44023 else 44024 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44025 # On Windows, we will need both .lib and .dll file. 44026 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44027 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44028 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44029 FOUND_FREETYPE=no 44030 fi 44031 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44032 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44033 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44034 fi 44035 fi 44036 fi 44037 44038 if test "x$FOUND_FREETYPE" = xyes; then 44039 44040 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44041 44042 # Input might be given as Windows format, start by converting to 44043 # unix format. 44044 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44045 new_path=`$CYGPATH -u "$path"` 44046 44047 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44048 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44049 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44050 # "foo.exe" is OK but "foo" is an error. 44051 # 44052 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44053 # It is also a way to make sure we got the proper file name for the real test later on. 44054 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44055 if test "x$test_shortpath" = x; then 44056 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44057 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44058 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44059 fi 44060 44061 # Call helper function which possibly converts this using DOS-style short mode. 44062 # If so, the updated path is stored in $new_path. 44063 44064 input_path="$new_path" 44065 # Check if we need to convert this using DOS-style short mode. If the path 44066 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44067 # take no chances and rewrite it. 44068 # Note: m4 eats our [], so we need to use [ and ] instead. 44069 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44070 if test "x$has_forbidden_chars" != x; then 44071 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44072 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44073 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44074 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44075 # Going to short mode and back again did indeed matter. Since short mode is 44076 # case insensitive, let's make it lowercase to improve readability. 44077 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44078 # Now convert it back to Unix-stile (cygpath) 44079 input_path=`$CYGPATH -u "$shortmode_path"` 44080 new_path="$input_path" 44081 fi 44082 fi 44083 44084 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44085 if test "x$test_cygdrive_prefix" = x; then 44086 # As a simple fix, exclude /usr/bin since it's not a real path. 44087 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44088 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44089 # a path prefixed by /cygdrive for fixpath to work. 44090 new_path="$CYGWIN_ROOT_PATH$input_path" 44091 fi 44092 fi 44093 44094 44095 if test "x$path" != "x$new_path"; then 44096 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44097 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44098 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44099 fi 44100 44101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44102 44103 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44104 has_colon=`$ECHO $path | $GREP ^.:` 44105 new_path="$path" 44106 if test "x$has_colon" = x; then 44107 # Not in mixed or Windows style, start by that. 44108 new_path=`cmd //c echo $path` 44109 fi 44110 44111 44112 input_path="$new_path" 44113 # Check if we need to convert this using DOS-style short mode. If the path 44114 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44115 # take no chances and rewrite it. 44116 # Note: m4 eats our [], so we need to use [ and ] instead. 44117 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44118 if test "x$has_forbidden_chars" != x; then 44119 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44120 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44121 fi 44122 44123 44124 windows_path="$new_path" 44125 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44126 unix_path=`$CYGPATH -u "$windows_path"` 44127 new_path="$unix_path" 44128 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44129 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44130 new_path="$unix_path" 44131 fi 44132 44133 if test "x$path" != "x$new_path"; then 44134 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44135 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44136 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44137 fi 44138 44139 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44140 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44141 44142 else 44143 # We're on a posix platform. Hooray! :) 44144 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44145 has_space=`$ECHO "$path" | $GREP " "` 44146 if test "x$has_space" != x; then 44147 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44148 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44149 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44150 fi 44151 44152 # Use eval to expand a potential ~ 44153 eval path="$path" 44154 if test ! -f "$path" && test ! -d "$path"; then 44155 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44156 fi 44157 44158 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44159 fi 44160 44161 44162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44163 44164 # Input might be given as Windows format, start by converting to 44165 # unix format. 44166 path="$POTENTIAL_FREETYPE_LIB_PATH" 44167 new_path=`$CYGPATH -u "$path"` 44168 44169 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44170 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44171 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44172 # "foo.exe" is OK but "foo" is an error. 44173 # 44174 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44175 # It is also a way to make sure we got the proper file name for the real test later on. 44176 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44177 if test "x$test_shortpath" = x; then 44178 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44179 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44180 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44181 fi 44182 44183 # Call helper function which possibly converts this using DOS-style short mode. 44184 # If so, the updated path is stored in $new_path. 44185 44186 input_path="$new_path" 44187 # Check if we need to convert this using DOS-style short mode. If the path 44188 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44189 # take no chances and rewrite it. 44190 # Note: m4 eats our [], so we need to use [ and ] instead. 44191 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44192 if test "x$has_forbidden_chars" != x; then 44193 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44194 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44195 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44196 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44197 # Going to short mode and back again did indeed matter. Since short mode is 44198 # case insensitive, let's make it lowercase to improve readability. 44199 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44200 # Now convert it back to Unix-stile (cygpath) 44201 input_path=`$CYGPATH -u "$shortmode_path"` 44202 new_path="$input_path" 44203 fi 44204 fi 44205 44206 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44207 if test "x$test_cygdrive_prefix" = x; then 44208 # As a simple fix, exclude /usr/bin since it's not a real path. 44209 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44210 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44211 # a path prefixed by /cygdrive for fixpath to work. 44212 new_path="$CYGWIN_ROOT_PATH$input_path" 44213 fi 44214 fi 44215 44216 44217 if test "x$path" != "x$new_path"; then 44218 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44219 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44220 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44221 fi 44222 44223 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44224 44225 path="$POTENTIAL_FREETYPE_LIB_PATH" 44226 has_colon=`$ECHO $path | $GREP ^.:` 44227 new_path="$path" 44228 if test "x$has_colon" = x; then 44229 # Not in mixed or Windows style, start by that. 44230 new_path=`cmd //c echo $path` 44231 fi 44232 44233 44234 input_path="$new_path" 44235 # Check if we need to convert this using DOS-style short mode. If the path 44236 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44237 # take no chances and rewrite it. 44238 # Note: m4 eats our [], so we need to use [ and ] instead. 44239 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44240 if test "x$has_forbidden_chars" != x; then 44241 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44242 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44243 fi 44244 44245 44246 windows_path="$new_path" 44247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44248 unix_path=`$CYGPATH -u "$windows_path"` 44249 new_path="$unix_path" 44250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44251 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44252 new_path="$unix_path" 44253 fi 44254 44255 if test "x$path" != "x$new_path"; then 44256 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44257 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44258 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44259 fi 44260 44261 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44262 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44263 44264 else 44265 # We're on a posix platform. Hooray! :) 44266 path="$POTENTIAL_FREETYPE_LIB_PATH" 44267 has_space=`$ECHO "$path" | $GREP " "` 44268 if test "x$has_space" != x; then 44269 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44270 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44271 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44272 fi 44273 44274 # Use eval to expand a potential ~ 44275 eval path="$path" 44276 if test ! -f "$path" && test ! -d "$path"; then 44277 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44278 fi 44279 44280 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44281 fi 44282 44283 44284 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44286 $as_echo_n "checking for freetype includes... " >&6; } 44287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44288 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44289 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44291 $as_echo_n "checking for freetype libraries... " >&6; } 44292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44293 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44294 fi 44295 44296 if test "x$FOUND_FREETYPE" != xyes; then 44297 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 44298 44299 windows_path="$FREETYPE_BASE_DIR" 44300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44301 unix_path=`$CYGPATH -u "$windows_path"` 44302 FREETYPE_BASE_DIR="$unix_path" 44303 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44304 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44305 FREETYPE_BASE_DIR="$unix_path" 44306 fi 44307 44308 44309 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44310 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44311 METHOD="well-known location" 44312 44313 # First check if the files exists. 44314 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44315 # We found an arbitrary include file. That's a good sign. 44316 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44317 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44318 FOUND_FREETYPE=yes 44319 44320 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44321 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44322 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44323 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44324 FOUND_FREETYPE=no 44325 else 44326 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44327 # On Windows, we will need both .lib and .dll file. 44328 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44329 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44330 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44331 FOUND_FREETYPE=no 44332 fi 44333 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44334 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44335 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44336 fi 44337 fi 44338 fi 44339 44340 if test "x$FOUND_FREETYPE" = xyes; then 44341 44342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44343 44344 # Input might be given as Windows format, start by converting to 44345 # unix format. 44346 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44347 new_path=`$CYGPATH -u "$path"` 44348 44349 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44350 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44351 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44352 # "foo.exe" is OK but "foo" is an error. 44353 # 44354 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44355 # It is also a way to make sure we got the proper file name for the real test later on. 44356 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44357 if test "x$test_shortpath" = x; then 44358 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44359 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44360 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44361 fi 44362 44363 # Call helper function which possibly converts this using DOS-style short mode. 44364 # If so, the updated path is stored in $new_path. 44365 44366 input_path="$new_path" 44367 # Check if we need to convert this using DOS-style short mode. If the path 44368 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44369 # take no chances and rewrite it. 44370 # Note: m4 eats our [], so we need to use [ and ] instead. 44371 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44372 if test "x$has_forbidden_chars" != x; then 44373 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44374 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44375 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44376 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44377 # Going to short mode and back again did indeed matter. Since short mode is 44378 # case insensitive, let's make it lowercase to improve readability. 44379 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44380 # Now convert it back to Unix-stile (cygpath) 44381 input_path=`$CYGPATH -u "$shortmode_path"` 44382 new_path="$input_path" 44383 fi 44384 fi 44385 44386 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44387 if test "x$test_cygdrive_prefix" = x; then 44388 # As a simple fix, exclude /usr/bin since it's not a real path. 44389 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44390 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44391 # a path prefixed by /cygdrive for fixpath to work. 44392 new_path="$CYGWIN_ROOT_PATH$input_path" 44393 fi 44394 fi 44395 44396 44397 if test "x$path" != "x$new_path"; then 44398 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44399 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44400 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44401 fi 44402 44403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44404 44405 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44406 has_colon=`$ECHO $path | $GREP ^.:` 44407 new_path="$path" 44408 if test "x$has_colon" = x; then 44409 # Not in mixed or Windows style, start by that. 44410 new_path=`cmd //c echo $path` 44411 fi 44412 44413 44414 input_path="$new_path" 44415 # Check if we need to convert this using DOS-style short mode. If the path 44416 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44417 # take no chances and rewrite it. 44418 # Note: m4 eats our [], so we need to use [ and ] instead. 44419 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44420 if test "x$has_forbidden_chars" != x; then 44421 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44422 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44423 fi 44424 44425 44426 windows_path="$new_path" 44427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44428 unix_path=`$CYGPATH -u "$windows_path"` 44429 new_path="$unix_path" 44430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44431 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44432 new_path="$unix_path" 44433 fi 44434 44435 if test "x$path" != "x$new_path"; then 44436 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44437 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44438 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44439 fi 44440 44441 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44442 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44443 44444 else 44445 # We're on a posix platform. Hooray! :) 44446 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44447 has_space=`$ECHO "$path" | $GREP " "` 44448 if test "x$has_space" != x; then 44449 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44450 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44451 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44452 fi 44453 44454 # Use eval to expand a potential ~ 44455 eval path="$path" 44456 if test ! -f "$path" && test ! -d "$path"; then 44457 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44458 fi 44459 44460 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44461 fi 44462 44463 44464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44465 44466 # Input might be given as Windows format, start by converting to 44467 # unix format. 44468 path="$POTENTIAL_FREETYPE_LIB_PATH" 44469 new_path=`$CYGPATH -u "$path"` 44470 44471 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44472 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44473 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44474 # "foo.exe" is OK but "foo" is an error. 44475 # 44476 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44477 # It is also a way to make sure we got the proper file name for the real test later on. 44478 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44479 if test "x$test_shortpath" = x; then 44480 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44481 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44482 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44483 fi 44484 44485 # Call helper function which possibly converts this using DOS-style short mode. 44486 # If so, the updated path is stored in $new_path. 44487 44488 input_path="$new_path" 44489 # Check if we need to convert this using DOS-style short mode. If the path 44490 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44491 # take no chances and rewrite it. 44492 # Note: m4 eats our [], so we need to use [ and ] instead. 44493 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44494 if test "x$has_forbidden_chars" != x; then 44495 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44496 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44497 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44498 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44499 # Going to short mode and back again did indeed matter. Since short mode is 44500 # case insensitive, let's make it lowercase to improve readability. 44501 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44502 # Now convert it back to Unix-stile (cygpath) 44503 input_path=`$CYGPATH -u "$shortmode_path"` 44504 new_path="$input_path" 44505 fi 44506 fi 44507 44508 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44509 if test "x$test_cygdrive_prefix" = x; then 44510 # As a simple fix, exclude /usr/bin since it's not a real path. 44511 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44512 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44513 # a path prefixed by /cygdrive for fixpath to work. 44514 new_path="$CYGWIN_ROOT_PATH$input_path" 44515 fi 44516 fi 44517 44518 44519 if test "x$path" != "x$new_path"; then 44520 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44521 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44522 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44523 fi 44524 44525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44526 44527 path="$POTENTIAL_FREETYPE_LIB_PATH" 44528 has_colon=`$ECHO $path | $GREP ^.:` 44529 new_path="$path" 44530 if test "x$has_colon" = x; then 44531 # Not in mixed or Windows style, start by that. 44532 new_path=`cmd //c echo $path` 44533 fi 44534 44535 44536 input_path="$new_path" 44537 # Check if we need to convert this using DOS-style short mode. If the path 44538 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44539 # take no chances and rewrite it. 44540 # Note: m4 eats our [], so we need to use [ and ] instead. 44541 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44542 if test "x$has_forbidden_chars" != x; then 44543 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44544 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44545 fi 44546 44547 44548 windows_path="$new_path" 44549 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44550 unix_path=`$CYGPATH -u "$windows_path"` 44551 new_path="$unix_path" 44552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44553 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44554 new_path="$unix_path" 44555 fi 44556 44557 if test "x$path" != "x$new_path"; then 44558 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44559 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44560 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44561 fi 44562 44563 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44564 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44565 44566 else 44567 # We're on a posix platform. Hooray! :) 44568 path="$POTENTIAL_FREETYPE_LIB_PATH" 44569 has_space=`$ECHO "$path" | $GREP " "` 44570 if test "x$has_space" != x; then 44571 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44572 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44573 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44574 fi 44575 44576 # Use eval to expand a potential ~ 44577 eval path="$path" 44578 if test ! -f "$path" && test ! -d "$path"; then 44579 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44580 fi 44581 44582 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44583 fi 44584 44585 44586 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44588 $as_echo_n "checking for freetype includes... " >&6; } 44589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44590 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44591 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44593 $as_echo_n "checking for freetype libraries... " >&6; } 44594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44595 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44596 fi 44597 44598 fi 44599 else 44600 if test "x$SYS_ROOT" = "x/"; then 44601 FREETYPE_ROOT= 44602 else 44603 FREETYPE_ROOT="$SYS_ROOT" 44604 fi 44605 FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr" 44606 44607 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44608 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44609 METHOD="well-known location" 44610 44611 # First check if the files exists. 44612 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44613 # We found an arbitrary include file. That's a good sign. 44614 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44615 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44616 FOUND_FREETYPE=yes 44617 44618 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44619 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44620 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44621 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44622 FOUND_FREETYPE=no 44623 else 44624 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44625 # On Windows, we will need both .lib and .dll file. 44626 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44627 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44628 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44629 FOUND_FREETYPE=no 44630 fi 44631 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44632 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44633 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44634 fi 44635 fi 44636 fi 44637 44638 if test "x$FOUND_FREETYPE" = xyes; then 44639 44640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44641 44642 # Input might be given as Windows format, start by converting to 44643 # unix format. 44644 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44645 new_path=`$CYGPATH -u "$path"` 44646 44647 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44648 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44649 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44650 # "foo.exe" is OK but "foo" is an error. 44651 # 44652 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44653 # It is also a way to make sure we got the proper file name for the real test later on. 44654 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44655 if test "x$test_shortpath" = x; then 44656 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44657 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44658 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44659 fi 44660 44661 # Call helper function which possibly converts this using DOS-style short mode. 44662 # If so, the updated path is stored in $new_path. 44663 44664 input_path="$new_path" 44665 # Check if we need to convert this using DOS-style short mode. If the path 44666 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44667 # take no chances and rewrite it. 44668 # Note: m4 eats our [], so we need to use [ and ] instead. 44669 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44670 if test "x$has_forbidden_chars" != x; then 44671 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44672 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44673 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44674 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44675 # Going to short mode and back again did indeed matter. Since short mode is 44676 # case insensitive, let's make it lowercase to improve readability. 44677 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44678 # Now convert it back to Unix-stile (cygpath) 44679 input_path=`$CYGPATH -u "$shortmode_path"` 44680 new_path="$input_path" 44681 fi 44682 fi 44683 44684 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44685 if test "x$test_cygdrive_prefix" = x; then 44686 # As a simple fix, exclude /usr/bin since it's not a real path. 44687 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44688 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44689 # a path prefixed by /cygdrive for fixpath to work. 44690 new_path="$CYGWIN_ROOT_PATH$input_path" 44691 fi 44692 fi 44693 44694 44695 if test "x$path" != "x$new_path"; then 44696 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44697 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44698 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44699 fi 44700 44701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44702 44703 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44704 has_colon=`$ECHO $path | $GREP ^.:` 44705 new_path="$path" 44706 if test "x$has_colon" = x; then 44707 # Not in mixed or Windows style, start by that. 44708 new_path=`cmd //c echo $path` 44709 fi 44710 44711 44712 input_path="$new_path" 44713 # Check if we need to convert this using DOS-style short mode. If the path 44714 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44715 # take no chances and rewrite it. 44716 # Note: m4 eats our [], so we need to use [ and ] instead. 44717 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44718 if test "x$has_forbidden_chars" != x; then 44719 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44720 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44721 fi 44722 44723 44724 windows_path="$new_path" 44725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44726 unix_path=`$CYGPATH -u "$windows_path"` 44727 new_path="$unix_path" 44728 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44729 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44730 new_path="$unix_path" 44731 fi 44732 44733 if test "x$path" != "x$new_path"; then 44734 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44735 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44736 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44737 fi 44738 44739 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44740 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44741 44742 else 44743 # We're on a posix platform. Hooray! :) 44744 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44745 has_space=`$ECHO "$path" | $GREP " "` 44746 if test "x$has_space" != x; then 44747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44748 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44749 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44750 fi 44751 44752 # Use eval to expand a potential ~ 44753 eval path="$path" 44754 if test ! -f "$path" && test ! -d "$path"; then 44755 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44756 fi 44757 44758 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44759 fi 44760 44761 44762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44763 44764 # Input might be given as Windows format, start by converting to 44765 # unix format. 44766 path="$POTENTIAL_FREETYPE_LIB_PATH" 44767 new_path=`$CYGPATH -u "$path"` 44768 44769 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44770 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44771 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44772 # "foo.exe" is OK but "foo" is an error. 44773 # 44774 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44775 # It is also a way to make sure we got the proper file name for the real test later on. 44776 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44777 if test "x$test_shortpath" = x; then 44778 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44779 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44780 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44781 fi 44782 44783 # Call helper function which possibly converts this using DOS-style short mode. 44784 # If so, the updated path is stored in $new_path. 44785 44786 input_path="$new_path" 44787 # Check if we need to convert this using DOS-style short mode. If the path 44788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44789 # take no chances and rewrite it. 44790 # Note: m4 eats our [], so we need to use [ and ] instead. 44791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44792 if test "x$has_forbidden_chars" != x; then 44793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44794 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44795 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44796 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44797 # Going to short mode and back again did indeed matter. Since short mode is 44798 # case insensitive, let's make it lowercase to improve readability. 44799 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44800 # Now convert it back to Unix-stile (cygpath) 44801 input_path=`$CYGPATH -u "$shortmode_path"` 44802 new_path="$input_path" 44803 fi 44804 fi 44805 44806 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44807 if test "x$test_cygdrive_prefix" = x; then 44808 # As a simple fix, exclude /usr/bin since it's not a real path. 44809 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44810 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44811 # a path prefixed by /cygdrive for fixpath to work. 44812 new_path="$CYGWIN_ROOT_PATH$input_path" 44813 fi 44814 fi 44815 44816 44817 if test "x$path" != "x$new_path"; then 44818 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44819 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44820 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44821 fi 44822 44823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44824 44825 path="$POTENTIAL_FREETYPE_LIB_PATH" 44826 has_colon=`$ECHO $path | $GREP ^.:` 44827 new_path="$path" 44828 if test "x$has_colon" = x; then 44829 # Not in mixed or Windows style, start by that. 44830 new_path=`cmd //c echo $path` 44831 fi 44832 44833 44834 input_path="$new_path" 44835 # Check if we need to convert this using DOS-style short mode. If the path 44836 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44837 # take no chances and rewrite it. 44838 # Note: m4 eats our [], so we need to use [ and ] instead. 44839 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44840 if test "x$has_forbidden_chars" != x; then 44841 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44842 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44843 fi 44844 44845 44846 windows_path="$new_path" 44847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44848 unix_path=`$CYGPATH -u "$windows_path"` 44849 new_path="$unix_path" 44850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44851 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44852 new_path="$unix_path" 44853 fi 44854 44855 if test "x$path" != "x$new_path"; then 44856 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44857 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44858 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44859 fi 44860 44861 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44862 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44863 44864 else 44865 # We're on a posix platform. Hooray! :) 44866 path="$POTENTIAL_FREETYPE_LIB_PATH" 44867 has_space=`$ECHO "$path" | $GREP " "` 44868 if test "x$has_space" != x; then 44869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44870 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44871 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44872 fi 44873 44874 # Use eval to expand a potential ~ 44875 eval path="$path" 44876 if test ! -f "$path" && test ! -d "$path"; then 44877 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44878 fi 44879 44880 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44881 fi 44882 44883 44884 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44886 $as_echo_n "checking for freetype includes... " >&6; } 44887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44888 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44889 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44891 $as_echo_n "checking for freetype libraries... " >&6; } 44892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44893 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44894 fi 44895 44896 44897 if test "x$FOUND_FREETYPE" != xyes; then 44898 FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr/X11" 44899 44900 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44901 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44902 METHOD="well-known location" 44903 44904 # First check if the files exists. 44905 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44906 # We found an arbitrary include file. That's a good sign. 44907 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44908 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44909 FOUND_FREETYPE=yes 44910 44911 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44912 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44913 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44914 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44915 FOUND_FREETYPE=no 44916 else 44917 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44918 # On Windows, we will need both .lib and .dll file. 44919 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44920 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44921 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44922 FOUND_FREETYPE=no 44923 fi 44924 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44925 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44926 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44927 fi 44928 fi 44929 fi 44930 44931 if test "x$FOUND_FREETYPE" = xyes; then 44932 44933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44934 44935 # Input might be given as Windows format, start by converting to 44936 # unix format. 44937 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44938 new_path=`$CYGPATH -u "$path"` 44939 44940 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44941 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44942 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44943 # "foo.exe" is OK but "foo" is an error. 44944 # 44945 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44946 # It is also a way to make sure we got the proper file name for the real test later on. 44947 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44948 if test "x$test_shortpath" = x; then 44949 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44950 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44951 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44952 fi 44953 44954 # Call helper function which possibly converts this using DOS-style short mode. 44955 # If so, the updated path is stored in $new_path. 44956 44957 input_path="$new_path" 44958 # Check if we need to convert this using DOS-style short mode. If the path 44959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44960 # take no chances and rewrite it. 44961 # Note: m4 eats our [], so we need to use [ and ] instead. 44962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44963 if test "x$has_forbidden_chars" != x; then 44964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44965 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44966 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44967 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44968 # Going to short mode and back again did indeed matter. Since short mode is 44969 # case insensitive, let's make it lowercase to improve readability. 44970 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44971 # Now convert it back to Unix-stile (cygpath) 44972 input_path=`$CYGPATH -u "$shortmode_path"` 44973 new_path="$input_path" 44974 fi 44975 fi 44976 44977 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44978 if test "x$test_cygdrive_prefix" = x; then 44979 # As a simple fix, exclude /usr/bin since it's not a real path. 44980 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44981 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44982 # a path prefixed by /cygdrive for fixpath to work. 44983 new_path="$CYGWIN_ROOT_PATH$input_path" 44984 fi 44985 fi 44986 44987 44988 if test "x$path" != "x$new_path"; then 44989 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44990 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44991 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44992 fi 44993 44994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44995 44996 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44997 has_colon=`$ECHO $path | $GREP ^.:` 44998 new_path="$path" 44999 if test "x$has_colon" = x; then 45000 # Not in mixed or Windows style, start by that. 45001 new_path=`cmd //c echo $path` 45002 fi 45003 45004 45005 input_path="$new_path" 45006 # Check if we need to convert this using DOS-style short mode. If the path 45007 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45008 # take no chances and rewrite it. 45009 # Note: m4 eats our [], so we need to use [ and ] instead. 45010 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45011 if test "x$has_forbidden_chars" != x; then 45012 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45013 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45014 fi 45015 45016 45017 windows_path="$new_path" 45018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45019 unix_path=`$CYGPATH -u "$windows_path"` 45020 new_path="$unix_path" 45021 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45022 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45023 new_path="$unix_path" 45024 fi 45025 45026 if test "x$path" != "x$new_path"; then 45027 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45028 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45029 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45030 fi 45031 45032 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45033 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45034 45035 else 45036 # We're on a posix platform. Hooray! :) 45037 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45038 has_space=`$ECHO "$path" | $GREP " "` 45039 if test "x$has_space" != x; then 45040 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45041 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45042 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45043 fi 45044 45045 # Use eval to expand a potential ~ 45046 eval path="$path" 45047 if test ! -f "$path" && test ! -d "$path"; then 45048 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45049 fi 45050 45051 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45052 fi 45053 45054 45055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45056 45057 # Input might be given as Windows format, start by converting to 45058 # unix format. 45059 path="$POTENTIAL_FREETYPE_LIB_PATH" 45060 new_path=`$CYGPATH -u "$path"` 45061 45062 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45063 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45064 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45065 # "foo.exe" is OK but "foo" is an error. 45066 # 45067 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45068 # It is also a way to make sure we got the proper file name for the real test later on. 45069 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45070 if test "x$test_shortpath" = x; then 45071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45072 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45073 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45074 fi 45075 45076 # Call helper function which possibly converts this using DOS-style short mode. 45077 # If so, the updated path is stored in $new_path. 45078 45079 input_path="$new_path" 45080 # Check if we need to convert this using DOS-style short mode. If the path 45081 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45082 # take no chances and rewrite it. 45083 # Note: m4 eats our [], so we need to use [ and ] instead. 45084 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45085 if test "x$has_forbidden_chars" != x; then 45086 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45087 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45088 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45089 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45090 # Going to short mode and back again did indeed matter. Since short mode is 45091 # case insensitive, let's make it lowercase to improve readability. 45092 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45093 # Now convert it back to Unix-stile (cygpath) 45094 input_path=`$CYGPATH -u "$shortmode_path"` 45095 new_path="$input_path" 45096 fi 45097 fi 45098 45099 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45100 if test "x$test_cygdrive_prefix" = x; then 45101 # As a simple fix, exclude /usr/bin since it's not a real path. 45102 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45103 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45104 # a path prefixed by /cygdrive for fixpath to work. 45105 new_path="$CYGWIN_ROOT_PATH$input_path" 45106 fi 45107 fi 45108 45109 45110 if test "x$path" != "x$new_path"; then 45111 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45112 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45113 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45114 fi 45115 45116 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45117 45118 path="$POTENTIAL_FREETYPE_LIB_PATH" 45119 has_colon=`$ECHO $path | $GREP ^.:` 45120 new_path="$path" 45121 if test "x$has_colon" = x; then 45122 # Not in mixed or Windows style, start by that. 45123 new_path=`cmd //c echo $path` 45124 fi 45125 45126 45127 input_path="$new_path" 45128 # Check if we need to convert this using DOS-style short mode. If the path 45129 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45130 # take no chances and rewrite it. 45131 # Note: m4 eats our [], so we need to use [ and ] instead. 45132 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45133 if test "x$has_forbidden_chars" != x; then 45134 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45135 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45136 fi 45137 45138 45139 windows_path="$new_path" 45140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45141 unix_path=`$CYGPATH -u "$windows_path"` 45142 new_path="$unix_path" 45143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45144 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45145 new_path="$unix_path" 45146 fi 45147 45148 if test "x$path" != "x$new_path"; then 45149 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45150 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45151 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45152 fi 45153 45154 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45155 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45156 45157 else 45158 # We're on a posix platform. Hooray! :) 45159 path="$POTENTIAL_FREETYPE_LIB_PATH" 45160 has_space=`$ECHO "$path" | $GREP " "` 45161 if test "x$has_space" != x; then 45162 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45163 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45164 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45165 fi 45166 45167 # Use eval to expand a potential ~ 45168 eval path="$path" 45169 if test ! -f "$path" && test ! -d "$path"; then 45170 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45171 fi 45172 45173 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45174 fi 45175 45176 45177 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45179 $as_echo_n "checking for freetype includes... " >&6; } 45180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45181 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45182 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45184 $as_echo_n "checking for freetype libraries... " >&6; } 45185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45186 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45187 fi 45188 45189 fi 45190 45191 if test "x$FOUND_FREETYPE" != xyes; then 45192 FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr" 45193 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 45194 45195 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45196 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 45197 METHOD="well-known location" 45198 45199 # First check if the files exists. 45200 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45201 # We found an arbitrary include file. That's a good sign. 45202 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45203 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45204 FOUND_FREETYPE=yes 45205 45206 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45207 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45208 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45209 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45210 FOUND_FREETYPE=no 45211 else 45212 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45213 # On Windows, we will need both .lib and .dll file. 45214 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45215 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45216 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45217 FOUND_FREETYPE=no 45218 fi 45219 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45220 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45221 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45222 fi 45223 fi 45224 fi 45225 45226 if test "x$FOUND_FREETYPE" = xyes; then 45227 45228 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45229 45230 # Input might be given as Windows format, start by converting to 45231 # unix format. 45232 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45233 new_path=`$CYGPATH -u "$path"` 45234 45235 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45236 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45237 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45238 # "foo.exe" is OK but "foo" is an error. 45239 # 45240 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45241 # It is also a way to make sure we got the proper file name for the real test later on. 45242 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45243 if test "x$test_shortpath" = x; then 45244 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45245 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45246 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45247 fi 45248 45249 # Call helper function which possibly converts this using DOS-style short mode. 45250 # If so, the updated path is stored in $new_path. 45251 45252 input_path="$new_path" 45253 # Check if we need to convert this using DOS-style short mode. If the path 45254 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45255 # take no chances and rewrite it. 45256 # Note: m4 eats our [], so we need to use [ and ] instead. 45257 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45258 if test "x$has_forbidden_chars" != x; then 45259 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45260 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45261 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45262 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45263 # Going to short mode and back again did indeed matter. Since short mode is 45264 # case insensitive, let's make it lowercase to improve readability. 45265 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45266 # Now convert it back to Unix-stile (cygpath) 45267 input_path=`$CYGPATH -u "$shortmode_path"` 45268 new_path="$input_path" 45269 fi 45270 fi 45271 45272 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45273 if test "x$test_cygdrive_prefix" = x; then 45274 # As a simple fix, exclude /usr/bin since it's not a real path. 45275 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45276 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45277 # a path prefixed by /cygdrive for fixpath to work. 45278 new_path="$CYGWIN_ROOT_PATH$input_path" 45279 fi 45280 fi 45281 45282 45283 if test "x$path" != "x$new_path"; then 45284 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45285 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45286 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45287 fi 45288 45289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45290 45291 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45292 has_colon=`$ECHO $path | $GREP ^.:` 45293 new_path="$path" 45294 if test "x$has_colon" = x; then 45295 # Not in mixed or Windows style, start by that. 45296 new_path=`cmd //c echo $path` 45297 fi 45298 45299 45300 input_path="$new_path" 45301 # Check if we need to convert this using DOS-style short mode. If the path 45302 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45303 # take no chances and rewrite it. 45304 # Note: m4 eats our [], so we need to use [ and ] instead. 45305 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45306 if test "x$has_forbidden_chars" != x; then 45307 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45308 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45309 fi 45310 45311 45312 windows_path="$new_path" 45313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45314 unix_path=`$CYGPATH -u "$windows_path"` 45315 new_path="$unix_path" 45316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45317 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45318 new_path="$unix_path" 45319 fi 45320 45321 if test "x$path" != "x$new_path"; then 45322 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45323 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45324 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45325 fi 45326 45327 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45328 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45329 45330 else 45331 # We're on a posix platform. Hooray! :) 45332 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45333 has_space=`$ECHO "$path" | $GREP " "` 45334 if test "x$has_space" != x; then 45335 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45336 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45337 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45338 fi 45339 45340 # Use eval to expand a potential ~ 45341 eval path="$path" 45342 if test ! -f "$path" && test ! -d "$path"; then 45343 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45344 fi 45345 45346 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45347 fi 45348 45349 45350 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45351 45352 # Input might be given as Windows format, start by converting to 45353 # unix format. 45354 path="$POTENTIAL_FREETYPE_LIB_PATH" 45355 new_path=`$CYGPATH -u "$path"` 45356 45357 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45358 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45359 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45360 # "foo.exe" is OK but "foo" is an error. 45361 # 45362 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45363 # It is also a way to make sure we got the proper file name for the real test later on. 45364 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45365 if test "x$test_shortpath" = x; then 45366 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45367 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45368 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45369 fi 45370 45371 # Call helper function which possibly converts this using DOS-style short mode. 45372 # If so, the updated path is stored in $new_path. 45373 45374 input_path="$new_path" 45375 # Check if we need to convert this using DOS-style short mode. If the path 45376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45377 # take no chances and rewrite it. 45378 # Note: m4 eats our [], so we need to use [ and ] instead. 45379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45380 if test "x$has_forbidden_chars" != x; then 45381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45382 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45383 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45384 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45385 # Going to short mode and back again did indeed matter. Since short mode is 45386 # case insensitive, let's make it lowercase to improve readability. 45387 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45388 # Now convert it back to Unix-stile (cygpath) 45389 input_path=`$CYGPATH -u "$shortmode_path"` 45390 new_path="$input_path" 45391 fi 45392 fi 45393 45394 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45395 if test "x$test_cygdrive_prefix" = x; then 45396 # As a simple fix, exclude /usr/bin since it's not a real path. 45397 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45398 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45399 # a path prefixed by /cygdrive for fixpath to work. 45400 new_path="$CYGWIN_ROOT_PATH$input_path" 45401 fi 45402 fi 45403 45404 45405 if test "x$path" != "x$new_path"; then 45406 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45407 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45408 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45409 fi 45410 45411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45412 45413 path="$POTENTIAL_FREETYPE_LIB_PATH" 45414 has_colon=`$ECHO $path | $GREP ^.:` 45415 new_path="$path" 45416 if test "x$has_colon" = x; then 45417 # Not in mixed or Windows style, start by that. 45418 new_path=`cmd //c echo $path` 45419 fi 45420 45421 45422 input_path="$new_path" 45423 # Check if we need to convert this using DOS-style short mode. If the path 45424 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45425 # take no chances and rewrite it. 45426 # Note: m4 eats our [], so we need to use [ and ] instead. 45427 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45428 if test "x$has_forbidden_chars" != x; then 45429 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45430 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45431 fi 45432 45433 45434 windows_path="$new_path" 45435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45436 unix_path=`$CYGPATH -u "$windows_path"` 45437 new_path="$unix_path" 45438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45439 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45440 new_path="$unix_path" 45441 fi 45442 45443 if test "x$path" != "x$new_path"; then 45444 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45445 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45446 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45447 fi 45448 45449 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45450 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45451 45452 else 45453 # We're on a posix platform. Hooray! :) 45454 path="$POTENTIAL_FREETYPE_LIB_PATH" 45455 has_space=`$ECHO "$path" | $GREP " "` 45456 if test "x$has_space" != x; then 45457 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45458 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45459 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45460 fi 45461 45462 # Use eval to expand a potential ~ 45463 eval path="$path" 45464 if test ! -f "$path" && test ! -d "$path"; then 45465 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45466 fi 45467 45468 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45469 fi 45470 45471 45472 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45474 $as_echo_n "checking for freetype includes... " >&6; } 45475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45476 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45477 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45479 $as_echo_n "checking for freetype libraries... " >&6; } 45480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45481 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45482 fi 45483 45484 else 45485 45486 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45487 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 45488 METHOD="well-known location" 45489 45490 # First check if the files exists. 45491 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45492 # We found an arbitrary include file. That's a good sign. 45493 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45494 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45495 FOUND_FREETYPE=yes 45496 45497 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45498 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45499 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45500 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45501 FOUND_FREETYPE=no 45502 else 45503 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45504 # On Windows, we will need both .lib and .dll file. 45505 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45506 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45507 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45508 FOUND_FREETYPE=no 45509 fi 45510 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45511 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45512 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45513 fi 45514 fi 45515 fi 45516 45517 if test "x$FOUND_FREETYPE" = xyes; then 45518 45519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45520 45521 # Input might be given as Windows format, start by converting to 45522 # unix format. 45523 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45524 new_path=`$CYGPATH -u "$path"` 45525 45526 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45527 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45528 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45529 # "foo.exe" is OK but "foo" is an error. 45530 # 45531 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45532 # It is also a way to make sure we got the proper file name for the real test later on. 45533 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45534 if test "x$test_shortpath" = x; then 45535 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45536 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45537 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45538 fi 45539 45540 # Call helper function which possibly converts this using DOS-style short mode. 45541 # If so, the updated path is stored in $new_path. 45542 45543 input_path="$new_path" 45544 # Check if we need to convert this using DOS-style short mode. If the path 45545 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45546 # take no chances and rewrite it. 45547 # Note: m4 eats our [], so we need to use [ and ] instead. 45548 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45549 if test "x$has_forbidden_chars" != x; then 45550 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45551 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45552 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45553 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45554 # Going to short mode and back again did indeed matter. Since short mode is 45555 # case insensitive, let's make it lowercase to improve readability. 45556 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45557 # Now convert it back to Unix-stile (cygpath) 45558 input_path=`$CYGPATH -u "$shortmode_path"` 45559 new_path="$input_path" 45560 fi 45561 fi 45562 45563 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45564 if test "x$test_cygdrive_prefix" = x; then 45565 # As a simple fix, exclude /usr/bin since it's not a real path. 45566 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45567 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45568 # a path prefixed by /cygdrive for fixpath to work. 45569 new_path="$CYGWIN_ROOT_PATH$input_path" 45570 fi 45571 fi 45572 45573 45574 if test "x$path" != "x$new_path"; then 45575 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45576 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45577 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45578 fi 45579 45580 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45581 45582 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45583 has_colon=`$ECHO $path | $GREP ^.:` 45584 new_path="$path" 45585 if test "x$has_colon" = x; then 45586 # Not in mixed or Windows style, start by that. 45587 new_path=`cmd //c echo $path` 45588 fi 45589 45590 45591 input_path="$new_path" 45592 # Check if we need to convert this using DOS-style short mode. If the path 45593 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45594 # take no chances and rewrite it. 45595 # Note: m4 eats our [], so we need to use [ and ] instead. 45596 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45597 if test "x$has_forbidden_chars" != x; then 45598 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45599 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45600 fi 45601 45602 45603 windows_path="$new_path" 45604 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45605 unix_path=`$CYGPATH -u "$windows_path"` 45606 new_path="$unix_path" 45607 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45608 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45609 new_path="$unix_path" 45610 fi 45611 45612 if test "x$path" != "x$new_path"; then 45613 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45615 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45616 fi 45617 45618 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45619 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45620 45621 else 45622 # We're on a posix platform. Hooray! :) 45623 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45624 has_space=`$ECHO "$path" | $GREP " "` 45625 if test "x$has_space" != x; then 45626 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45627 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45628 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45629 fi 45630 45631 # Use eval to expand a potential ~ 45632 eval path="$path" 45633 if test ! -f "$path" && test ! -d "$path"; then 45634 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45635 fi 45636 45637 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45638 fi 45639 45640 45641 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45642 45643 # Input might be given as Windows format, start by converting to 45644 # unix format. 45645 path="$POTENTIAL_FREETYPE_LIB_PATH" 45646 new_path=`$CYGPATH -u "$path"` 45647 45648 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45649 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45650 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45651 # "foo.exe" is OK but "foo" is an error. 45652 # 45653 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45654 # It is also a way to make sure we got the proper file name for the real test later on. 45655 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45656 if test "x$test_shortpath" = x; then 45657 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45658 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45659 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45660 fi 45661 45662 # Call helper function which possibly converts this using DOS-style short mode. 45663 # If so, the updated path is stored in $new_path. 45664 45665 input_path="$new_path" 45666 # Check if we need to convert this using DOS-style short mode. If the path 45667 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45668 # take no chances and rewrite it. 45669 # Note: m4 eats our [], so we need to use [ and ] instead. 45670 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45671 if test "x$has_forbidden_chars" != x; then 45672 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45673 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45674 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45675 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45676 # Going to short mode and back again did indeed matter. Since short mode is 45677 # case insensitive, let's make it lowercase to improve readability. 45678 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45679 # Now convert it back to Unix-stile (cygpath) 45680 input_path=`$CYGPATH -u "$shortmode_path"` 45681 new_path="$input_path" 45682 fi 45683 fi 45684 45685 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45686 if test "x$test_cygdrive_prefix" = x; then 45687 # As a simple fix, exclude /usr/bin since it's not a real path. 45688 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45689 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45690 # a path prefixed by /cygdrive for fixpath to work. 45691 new_path="$CYGWIN_ROOT_PATH$input_path" 45692 fi 45693 fi 45694 45695 45696 if test "x$path" != "x$new_path"; then 45697 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45698 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45699 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45700 fi 45701 45702 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45703 45704 path="$POTENTIAL_FREETYPE_LIB_PATH" 45705 has_colon=`$ECHO $path | $GREP ^.:` 45706 new_path="$path" 45707 if test "x$has_colon" = x; then 45708 # Not in mixed or Windows style, start by that. 45709 new_path=`cmd //c echo $path` 45710 fi 45711 45712 45713 input_path="$new_path" 45714 # Check if we need to convert this using DOS-style short mode. If the path 45715 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45716 # take no chances and rewrite it. 45717 # Note: m4 eats our [], so we need to use [ and ] instead. 45718 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45719 if test "x$has_forbidden_chars" != x; then 45720 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45721 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45722 fi 45723 45724 45725 windows_path="$new_path" 45726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45727 unix_path=`$CYGPATH -u "$windows_path"` 45728 new_path="$unix_path" 45729 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45730 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45731 new_path="$unix_path" 45732 fi 45733 45734 if test "x$path" != "x$new_path"; then 45735 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45736 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45737 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45738 fi 45739 45740 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45741 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45742 45743 else 45744 # We're on a posix platform. Hooray! :) 45745 path="$POTENTIAL_FREETYPE_LIB_PATH" 45746 has_space=`$ECHO "$path" | $GREP " "` 45747 if test "x$has_space" != x; then 45748 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45749 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45750 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45751 fi 45752 45753 # Use eval to expand a potential ~ 45754 eval path="$path" 45755 if test ! -f "$path" && test ! -d "$path"; then 45756 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45757 fi 45758 45759 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45760 fi 45761 45762 45763 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45765 $as_echo_n "checking for freetype includes... " >&6; } 45766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45767 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45768 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45770 $as_echo_n "checking for freetype libraries... " >&6; } 45771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45772 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45773 fi 45774 45775 if test "x$FOUND_FREETYPE" != xyes; then 45776 45777 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45778 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 45779 METHOD="well-known location" 45780 45781 # First check if the files exists. 45782 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45783 # We found an arbitrary include file. That's a good sign. 45784 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45785 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45786 FOUND_FREETYPE=yes 45787 45788 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45789 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45790 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45791 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45792 FOUND_FREETYPE=no 45793 else 45794 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45795 # On Windows, we will need both .lib and .dll file. 45796 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45797 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45798 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45799 FOUND_FREETYPE=no 45800 fi 45801 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45802 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45803 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45804 fi 45805 fi 45806 fi 45807 45808 if test "x$FOUND_FREETYPE" = xyes; then 45809 45810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45811 45812 # Input might be given as Windows format, start by converting to 45813 # unix format. 45814 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45815 new_path=`$CYGPATH -u "$path"` 45816 45817 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45818 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45819 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45820 # "foo.exe" is OK but "foo" is an error. 45821 # 45822 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45823 # It is also a way to make sure we got the proper file name for the real test later on. 45824 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45825 if test "x$test_shortpath" = x; then 45826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45827 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45828 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45829 fi 45830 45831 # Call helper function which possibly converts this using DOS-style short mode. 45832 # If so, the updated path is stored in $new_path. 45833 45834 input_path="$new_path" 45835 # Check if we need to convert this using DOS-style short mode. If the path 45836 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45837 # take no chances and rewrite it. 45838 # Note: m4 eats our [], so we need to use [ and ] instead. 45839 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45840 if test "x$has_forbidden_chars" != x; then 45841 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45842 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45843 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45844 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45845 # Going to short mode and back again did indeed matter. Since short mode is 45846 # case insensitive, let's make it lowercase to improve readability. 45847 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45848 # Now convert it back to Unix-stile (cygpath) 45849 input_path=`$CYGPATH -u "$shortmode_path"` 45850 new_path="$input_path" 45851 fi 45852 fi 45853 45854 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45855 if test "x$test_cygdrive_prefix" = x; then 45856 # As a simple fix, exclude /usr/bin since it's not a real path. 45857 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45858 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45859 # a path prefixed by /cygdrive for fixpath to work. 45860 new_path="$CYGWIN_ROOT_PATH$input_path" 45861 fi 45862 fi 45863 45864 45865 if test "x$path" != "x$new_path"; then 45866 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45867 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45868 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45869 fi 45870 45871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45872 45873 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45874 has_colon=`$ECHO $path | $GREP ^.:` 45875 new_path="$path" 45876 if test "x$has_colon" = x; then 45877 # Not in mixed or Windows style, start by that. 45878 new_path=`cmd //c echo $path` 45879 fi 45880 45881 45882 input_path="$new_path" 45883 # Check if we need to convert this using DOS-style short mode. If the path 45884 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45885 # take no chances and rewrite it. 45886 # Note: m4 eats our [], so we need to use [ and ] instead. 45887 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45888 if test "x$has_forbidden_chars" != x; then 45889 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45890 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45891 fi 45892 45893 45894 windows_path="$new_path" 45895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45896 unix_path=`$CYGPATH -u "$windows_path"` 45897 new_path="$unix_path" 45898 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45899 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45900 new_path="$unix_path" 45901 fi 45902 45903 if test "x$path" != "x$new_path"; then 45904 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45905 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45906 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45907 fi 45908 45909 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45910 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45911 45912 else 45913 # We're on a posix platform. Hooray! :) 45914 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45915 has_space=`$ECHO "$path" | $GREP " "` 45916 if test "x$has_space" != x; then 45917 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45918 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45919 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45920 fi 45921 45922 # Use eval to expand a potential ~ 45923 eval path="$path" 45924 if test ! -f "$path" && test ! -d "$path"; then 45925 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45926 fi 45927 45928 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45929 fi 45930 45931 45932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45933 45934 # Input might be given as Windows format, start by converting to 45935 # unix format. 45936 path="$POTENTIAL_FREETYPE_LIB_PATH" 45937 new_path=`$CYGPATH -u "$path"` 45938 45939 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45940 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45941 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45942 # "foo.exe" is OK but "foo" is an error. 45943 # 45944 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45945 # It is also a way to make sure we got the proper file name for the real test later on. 45946 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45947 if test "x$test_shortpath" = x; then 45948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45949 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45950 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45951 fi 45952 45953 # Call helper function which possibly converts this using DOS-style short mode. 45954 # If so, the updated path is stored in $new_path. 45955 45956 input_path="$new_path" 45957 # Check if we need to convert this using DOS-style short mode. If the path 45958 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45959 # take no chances and rewrite it. 45960 # Note: m4 eats our [], so we need to use [ and ] instead. 45961 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45962 if test "x$has_forbidden_chars" != x; then 45963 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45964 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45965 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45966 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45967 # Going to short mode and back again did indeed matter. Since short mode is 45968 # case insensitive, let's make it lowercase to improve readability. 45969 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45970 # Now convert it back to Unix-stile (cygpath) 45971 input_path=`$CYGPATH -u "$shortmode_path"` 45972 new_path="$input_path" 45973 fi 45974 fi 45975 45976 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45977 if test "x$test_cygdrive_prefix" = x; then 45978 # As a simple fix, exclude /usr/bin since it's not a real path. 45979 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45980 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45981 # a path prefixed by /cygdrive for fixpath to work. 45982 new_path="$CYGWIN_ROOT_PATH$input_path" 45983 fi 45984 fi 45985 45986 45987 if test "x$path" != "x$new_path"; then 45988 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45989 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45990 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45991 fi 45992 45993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45994 45995 path="$POTENTIAL_FREETYPE_LIB_PATH" 45996 has_colon=`$ECHO $path | $GREP ^.:` 45997 new_path="$path" 45998 if test "x$has_colon" = x; then 45999 # Not in mixed or Windows style, start by that. 46000 new_path=`cmd //c echo $path` 46001 fi 46002 46003 46004 input_path="$new_path" 46005 # Check if we need to convert this using DOS-style short mode. If the path 46006 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46007 # take no chances and rewrite it. 46008 # Note: m4 eats our [], so we need to use [ and ] instead. 46009 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46010 if test "x$has_forbidden_chars" != x; then 46011 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46012 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46013 fi 46014 46015 46016 windows_path="$new_path" 46017 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46018 unix_path=`$CYGPATH -u "$windows_path"` 46019 new_path="$unix_path" 46020 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46021 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46022 new_path="$unix_path" 46023 fi 46024 46025 if test "x$path" != "x$new_path"; then 46026 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46027 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46028 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46029 fi 46030 46031 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46032 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46033 46034 else 46035 # We're on a posix platform. Hooray! :) 46036 path="$POTENTIAL_FREETYPE_LIB_PATH" 46037 has_space=`$ECHO "$path" | $GREP " "` 46038 if test "x$has_space" != x; then 46039 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46040 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46041 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46042 fi 46043 46044 # Use eval to expand a potential ~ 46045 eval path="$path" 46046 if test ! -f "$path" && test ! -d "$path"; then 46047 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46048 fi 46049 46050 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46051 fi 46052 46053 46054 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46056 $as_echo_n "checking for freetype includes... " >&6; } 46057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46058 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46059 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46061 $as_echo_n "checking for freetype libraries... " >&6; } 46062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46063 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46064 fi 46065 46066 fi 46067 fi 46068 fi 46069 fi 46070 fi # end check in well-known locations 46071 46072 if test "x$FOUND_FREETYPE" != xyes; then 46073 46074 # Print a helpful message on how to acquire the necessary build dependency. 46075 # freetype is the help tag: freetype, cups, pulse, alsa etc 46076 MISSING_DEPENDENCY=freetype 46077 46078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46079 cygwin_help $MISSING_DEPENDENCY 46080 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46081 msys_help $MISSING_DEPENDENCY 46082 else 46083 PKGHANDLER_COMMAND= 46084 46085 case $PKGHANDLER in 46086 apt-get) 46087 apt_help $MISSING_DEPENDENCY ;; 46088 yum) 46089 yum_help $MISSING_DEPENDENCY ;; 46090 port) 46091 port_help $MISSING_DEPENDENCY ;; 46092 pkgutil) 46093 pkgutil_help $MISSING_DEPENDENCY ;; 46094 pkgadd) 46095 pkgadd_help $MISSING_DEPENDENCY ;; 46096 esac 46097 46098 if test "x$PKGHANDLER_COMMAND" != x; then 46099 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 46100 fi 46101 fi 46102 46103 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 46104 fi 46105 fi # end user specified settings 46106 46107 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 46108 if test "x$FREETYPE_CFLAGS" = x; then 46109 46110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46111 46112 # Input might be given as Windows format, start by converting to 46113 # unix format. 46114 path="$FREETYPE_INCLUDE_PATH" 46115 new_path=`$CYGPATH -u "$path"` 46116 46117 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46118 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46119 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46120 # "foo.exe" is OK but "foo" is an error. 46121 # 46122 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46123 # It is also a way to make sure we got the proper file name for the real test later on. 46124 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46125 if test "x$test_shortpath" = x; then 46126 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46127 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46128 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 46129 fi 46130 46131 # Call helper function which possibly converts this using DOS-style short mode. 46132 # If so, the updated path is stored in $new_path. 46133 46134 input_path="$new_path" 46135 # Check if we need to convert this using DOS-style short mode. If the path 46136 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46137 # take no chances and rewrite it. 46138 # Note: m4 eats our [], so we need to use [ and ] instead. 46139 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46140 if test "x$has_forbidden_chars" != x; then 46141 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46142 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46143 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46144 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46145 # Going to short mode and back again did indeed matter. Since short mode is 46146 # case insensitive, let's make it lowercase to improve readability. 46147 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46148 # Now convert it back to Unix-stile (cygpath) 46149 input_path=`$CYGPATH -u "$shortmode_path"` 46150 new_path="$input_path" 46151 fi 46152 fi 46153 46154 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46155 if test "x$test_cygdrive_prefix" = x; then 46156 # As a simple fix, exclude /usr/bin since it's not a real path. 46157 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46158 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46159 # a path prefixed by /cygdrive for fixpath to work. 46160 new_path="$CYGWIN_ROOT_PATH$input_path" 46161 fi 46162 fi 46163 46164 46165 if test "x$path" != "x$new_path"; then 46166 FREETYPE_INCLUDE_PATH="$new_path" 46167 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46168 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46169 fi 46170 46171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46172 46173 path="$FREETYPE_INCLUDE_PATH" 46174 has_colon=`$ECHO $path | $GREP ^.:` 46175 new_path="$path" 46176 if test "x$has_colon" = x; then 46177 # Not in mixed or Windows style, start by that. 46178 new_path=`cmd //c echo $path` 46179 fi 46180 46181 46182 input_path="$new_path" 46183 # Check if we need to convert this using DOS-style short mode. If the path 46184 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46185 # take no chances and rewrite it. 46186 # Note: m4 eats our [], so we need to use [ and ] instead. 46187 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46188 if test "x$has_forbidden_chars" != x; then 46189 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46190 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46191 fi 46192 46193 46194 windows_path="$new_path" 46195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46196 unix_path=`$CYGPATH -u "$windows_path"` 46197 new_path="$unix_path" 46198 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46199 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46200 new_path="$unix_path" 46201 fi 46202 46203 if test "x$path" != "x$new_path"; then 46204 FREETYPE_INCLUDE_PATH="$new_path" 46205 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46206 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46207 fi 46208 46209 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46210 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46211 46212 else 46213 # We're on a posix platform. Hooray! :) 46214 path="$FREETYPE_INCLUDE_PATH" 46215 has_space=`$ECHO "$path" | $GREP " "` 46216 if test "x$has_space" != x; then 46217 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46218 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46219 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46220 fi 46221 46222 # Use eval to expand a potential ~ 46223 eval path="$path" 46224 if test ! -f "$path" && test ! -d "$path"; then 46225 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46226 fi 46227 46228 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46229 fi 46230 46231 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 46232 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 46233 else 46234 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 46235 fi 46236 fi 46237 46238 if test "x$FREETYPE_LIBS" = x; then 46239 46240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46241 46242 # Input might be given as Windows format, start by converting to 46243 # unix format. 46244 path="$FREETYPE_LIB_PATH" 46245 new_path=`$CYGPATH -u "$path"` 46246 46247 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46248 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46249 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46250 # "foo.exe" is OK but "foo" is an error. 46251 # 46252 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46253 # It is also a way to make sure we got the proper file name for the real test later on. 46254 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46255 if test "x$test_shortpath" = x; then 46256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46257 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46258 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 46259 fi 46260 46261 # Call helper function which possibly converts this using DOS-style short mode. 46262 # If so, the updated path is stored in $new_path. 46263 46264 input_path="$new_path" 46265 # Check if we need to convert this using DOS-style short mode. If the path 46266 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46267 # take no chances and rewrite it. 46268 # Note: m4 eats our [], so we need to use [ and ] instead. 46269 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46270 if test "x$has_forbidden_chars" != x; then 46271 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46272 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46273 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46274 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46275 # Going to short mode and back again did indeed matter. Since short mode is 46276 # case insensitive, let's make it lowercase to improve readability. 46277 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46278 # Now convert it back to Unix-stile (cygpath) 46279 input_path=`$CYGPATH -u "$shortmode_path"` 46280 new_path="$input_path" 46281 fi 46282 fi 46283 46284 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46285 if test "x$test_cygdrive_prefix" = x; then 46286 # As a simple fix, exclude /usr/bin since it's not a real path. 46287 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46288 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46289 # a path prefixed by /cygdrive for fixpath to work. 46290 new_path="$CYGWIN_ROOT_PATH$input_path" 46291 fi 46292 fi 46293 46294 46295 if test "x$path" != "x$new_path"; then 46296 FREETYPE_LIB_PATH="$new_path" 46297 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 46298 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46299 fi 46300 46301 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46302 46303 path="$FREETYPE_LIB_PATH" 46304 has_colon=`$ECHO $path | $GREP ^.:` 46305 new_path="$path" 46306 if test "x$has_colon" = x; then 46307 # Not in mixed or Windows style, start by that. 46308 new_path=`cmd //c echo $path` 46309 fi 46310 46311 46312 input_path="$new_path" 46313 # Check if we need to convert this using DOS-style short mode. If the path 46314 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46315 # take no chances and rewrite it. 46316 # Note: m4 eats our [], so we need to use [ and ] instead. 46317 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46318 if test "x$has_forbidden_chars" != x; then 46319 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46320 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46321 fi 46322 46323 46324 windows_path="$new_path" 46325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46326 unix_path=`$CYGPATH -u "$windows_path"` 46327 new_path="$unix_path" 46328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46330 new_path="$unix_path" 46331 fi 46332 46333 if test "x$path" != "x$new_path"; then 46334 FREETYPE_LIB_PATH="$new_path" 46335 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 46336 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46337 fi 46338 46339 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46340 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46341 46342 else 46343 # We're on a posix platform. Hooray! :) 46344 path="$FREETYPE_LIB_PATH" 46345 has_space=`$ECHO "$path" | $GREP " "` 46346 if test "x$has_space" != x; then 46347 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46348 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46349 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46350 fi 46351 46352 # Use eval to expand a potential ~ 46353 eval path="$path" 46354 if test ! -f "$path" && test ! -d "$path"; then 46355 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46356 fi 46357 46358 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46359 fi 46360 46361 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46362 FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib" 46363 else 46364 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype" 46365 fi 46366 fi 46367 46368 # Try to compile it 46369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 46370 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 46371 ac_ext=cpp 46372 ac_cpp='$CXXCPP $CPPFLAGS' 46373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46376 46377 PREV_CXXCFLAGS="$CXXFLAGS" 46378 PREV_LIBS="$LIBS" 46379 PREV_CXX="$CXX" 46380 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 46381 LIBS="$LIBS $FREETYPE_LIBS" 46382 CXX="$FIXPATH $CXX" 46383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46384 /* end confdefs.h. */ 46385 46386 #include<ft2build.h> 46387 #include FT_FREETYPE_H 46388 int main () { 46389 FT_Init_FreeType(NULL); 46390 return 0; 46391 } 46392 46393 _ACEOF 46394 if ac_fn_cxx_try_link "$LINENO"; then : 46395 46396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46397 $as_echo "yes" >&6; } 46398 46399 else 46400 46401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46402 $as_echo "no" >&6; } 46403 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 46404 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 46405 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 46406 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 46407 46408 46409 # Print a helpful message on how to acquire the necessary build dependency. 46410 # freetype is the help tag: freetype, cups, pulse, alsa etc 46411 MISSING_DEPENDENCY=freetype 46412 46413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46414 cygwin_help $MISSING_DEPENDENCY 46415 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46416 msys_help $MISSING_DEPENDENCY 46417 else 46418 PKGHANDLER_COMMAND= 46419 46420 case $PKGHANDLER in 46421 apt-get) 46422 apt_help $MISSING_DEPENDENCY ;; 46423 yum) 46424 yum_help $MISSING_DEPENDENCY ;; 46425 port) 46426 port_help $MISSING_DEPENDENCY ;; 46427 pkgutil) 46428 pkgutil_help $MISSING_DEPENDENCY ;; 46429 pkgadd) 46430 pkgadd_help $MISSING_DEPENDENCY ;; 46431 esac 46432 46433 if test "x$PKGHANDLER_COMMAND" != x; then 46434 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 46435 fi 46436 fi 46437 46438 46439 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 46440 46441 46442 fi 46443 rm -f core conftest.err conftest.$ac_objext \ 46444 conftest$ac_exeext conftest.$ac_ext 46445 CXXCFLAGS="$PREV_CXXFLAGS" 46446 LIBS="$PREV_LIBS" 46447 CXX="$PREV_CXX" 46448 ac_ext=cpp 46449 ac_cpp='$CXXCPP $CPPFLAGS' 46450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46453 46454 46455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 46456 $as_echo_n "checking if we should bundle freetype... " >&6; } 46457 if test "x$BUNDLE_FREETYPE" = xyes; then 46458 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 46459 fi 46460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 46461 $as_echo "$BUNDLE_FREETYPE" >&6; } 46462 46463 fi # end freetype needed 46464 46465 46466 46467 46468 46469 46470 46471 ############################################################################### 46472 # 46473 # Check for alsa headers and libraries. Used on Linux/GNU systems. 46474 # 46475 46476 # Check whether --with-alsa was given. 46477 if test "${with_alsa+set}" = set; then : 46478 withval=$with_alsa; 46479 fi 46480 46481 46482 # Check whether --with-alsa-include was given. 46483 if test "${with_alsa_include+set}" = set; then : 46484 withval=$with_alsa_include; 46485 fi 46486 46487 46488 # Check whether --with-alsa-lib was given. 46489 if test "${with_alsa_lib+set}" = set; then : 46490 withval=$with_alsa_lib; 46491 fi 46492 46493 46494 if test "x$ALSA_NOT_NEEDED" = xyes; then 46495 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 46496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 46497 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 46498 fi 46499 ALSA_CFLAGS= 46500 ALSA_LIBS= 46501 else 46502 ALSA_FOUND=no 46503 46504 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 46505 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 46506 fi 46507 46508 if test "x${with_alsa}" != x; then 46509 ALSA_LIBS="-L${with_alsa}/lib -lasound" 46510 ALSA_CFLAGS="-I${with_alsa}/include" 46511 ALSA_FOUND=yes 46512 fi 46513 if test "x${with_alsa_include}" != x; then 46514 ALSA_CFLAGS="-I${with_alsa_include}" 46515 ALSA_FOUND=yes 46516 fi 46517 if test "x${with_alsa_lib}" != x; then 46518 ALSA_LIBS="-L${with_alsa_lib} -lasound" 46519 ALSA_FOUND=yes 46520 fi 46521 if test "x$ALSA_FOUND" = xno; then 46522 46523 46524 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 46525 # Source the builddeps file again, to make sure it uses the latest variables! 46526 . $builddepsfile 46527 # Look for a target and build machine specific resource! 46528 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 46529 if test "x$resource" = x; then 46530 # Ok, lets instead look for a target specific resource 46531 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 46532 fi 46533 if test "x$resource" = x; then 46534 # Ok, lets instead look for a build specific resource 46535 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 46536 fi 46537 if test "x$resource" = x; then 46538 # Ok, lets instead look for a generic resource 46539 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 46540 resource=${builddep_alsa} 46541 fi 46542 if test "x$resource" != x; then 46543 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 46544 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 46545 # If the resource in the builddeps.conf file is an existing directory, 46546 # for example /java/linux/cups 46547 if test -d ${resource}; then 46548 depdir=${resource} 46549 else 46550 46551 # alsa is for example mymodule 46552 # $resource is for example libs/general/libmymod_1_2_3.zip 46553 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 46554 # $with_builddeps_dir is for example /localhome/builddeps 46555 # depdir is the name of the variable into which we store the depdir, eg MYMOD 46556 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 46557 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 46558 filename=`basename $resource` 46559 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 46560 filebase=${filename%%.*} 46561 extension=${filename#*.} 46562 installdir=$with_builddeps_dir/$filebase 46563 if test ! -f $installdir/$filename.unpacked; then 46564 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 46565 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 46566 if test ! -d $installdir; then 46567 mkdir -p $installdir 46568 fi 46569 if test ! -d $installdir; then 46570 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 46571 fi 46572 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 46573 touch $tmpfile 46574 if test ! -f $tmpfile; then 46575 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 46576 fi 46577 46578 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 46579 # $tmpfile is the local file name for the downloaded file. 46580 VALID_TOOL=no 46581 if test "x$BDEPS_FTP" = xwget; then 46582 VALID_TOOL=yes 46583 wget -O $tmpfile $with_builddeps_server/$resource 46584 fi 46585 if test "x$BDEPS_FTP" = xlftp; then 46586 VALID_TOOL=yes 46587 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 46588 fi 46589 if test "x$BDEPS_FTP" = xftp; then 46590 VALID_TOOL=yes 46591 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 46592 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 46593 FTPUSERPWD=${FTPSERVER%%@*} 46594 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 46595 FTPUSER=${userpwd%%:*} 46596 FTPPWD=${userpwd#*@} 46597 FTPSERVER=${FTPSERVER#*@} 46598 else 46599 FTPUSER=ftp 46600 FTPPWD=ftp 46601 fi 46602 # the "pass" command does not work on some 46603 # ftp clients (read ftp.exe) but if it works, 46604 # passive mode is better! 46605 ( \ 46606 echo "user $FTPUSER $FTPPWD" ; \ 46607 echo "pass" ; \ 46608 echo "bin" ; \ 46609 echo "get $FTPPATH $tmpfile" ; \ 46610 ) | ftp -in $FTPSERVER 46611 fi 46612 if test "x$VALID_TOOL" != xyes; then 46613 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 46614 fi 46615 46616 mv $tmpfile $installdir/$filename 46617 if test ! -s $installdir/$filename; then 46618 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 46619 fi 46620 case "$extension" in 46621 zip) echo "Unzipping $installdir/$filename..." 46622 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 46623 ;; 46624 tar.gz) echo "Untaring $installdir/$filename..." 46625 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 46626 ;; 46627 tgz) echo "Untaring $installdir/$filename..." 46628 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 46629 ;; 46630 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 46631 ;; 46632 esac 46633 fi 46634 if test -f $installdir/$filename.unpacked; then 46635 depdir=$installdir 46636 fi 46637 46638 fi 46639 # Source the builddeps file again, because in the previous command, the depdir 46640 # was updated to point at the current build dependency install directory. 46641 . $builddepsfile 46642 # Now extract variables from the builddeps.conf files. 46643 theroot=${builddep_alsa_ROOT} 46644 thecflags=${builddep_alsa_CFLAGS} 46645 thelibs=${builddep_alsa_LIBS} 46646 if test "x$depdir" = x; then 46647 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 46648 fi 46649 ALSA=$depdir 46650 if test "x$theroot" != x; then 46651 ALSA="$theroot" 46652 fi 46653 if test "x$thecflags" != x; then 46654 ALSA_CFLAGS="$thecflags" 46655 fi 46656 if test "x$thelibs" != x; then 46657 ALSA_LIBS="$thelibs" 46658 fi 46659 ALSA_FOUND=yes 46660 else ALSA_FOUND=no 46661 46662 fi 46663 else ALSA_FOUND=no 46664 46665 fi 46666 46667 fi 46668 if test "x$ALSA_FOUND" = xno; then 46669 46670 pkg_failed=no 46671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 46672 $as_echo_n "checking for ALSA... " >&6; } 46673 46674 if test -n "$ALSA_CFLAGS"; then 46675 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 46676 elif test -n "$PKG_CONFIG"; then 46677 if test -n "$PKG_CONFIG" && \ 46678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 46679 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 46680 ac_status=$? 46681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46682 test $ac_status = 0; }; then 46683 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 46684 else 46685 pkg_failed=yes 46686 fi 46687 else 46688 pkg_failed=untried 46689 fi 46690 if test -n "$ALSA_LIBS"; then 46691 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 46692 elif test -n "$PKG_CONFIG"; then 46693 if test -n "$PKG_CONFIG" && \ 46694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 46695 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 46696 ac_status=$? 46697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46698 test $ac_status = 0; }; then 46699 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 46700 else 46701 pkg_failed=yes 46702 fi 46703 else 46704 pkg_failed=untried 46705 fi 46706 46707 46708 46709 if test $pkg_failed = yes; then 46710 46711 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 46712 _pkg_short_errors_supported=yes 46713 else 46714 _pkg_short_errors_supported=no 46715 fi 46716 if test $_pkg_short_errors_supported = yes; then 46717 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 46718 else 46719 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 46720 fi 46721 # Put the nasty error message in config.log where it belongs 46722 echo "$ALSA_PKG_ERRORS" >&5 46723 46724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46725 $as_echo "no" >&6; } 46726 ALSA_FOUND=no 46727 elif test $pkg_failed = untried; then 46728 ALSA_FOUND=no 46729 else 46730 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 46731 ALSA_LIBS=$pkg_cv_ALSA_LIBS 46732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46733 $as_echo "yes" >&6; } 46734 ALSA_FOUND=yes 46735 fi 46736 fi 46737 if test "x$ALSA_FOUND" = xno; then 46738 for ac_header in alsa/asoundlib.h 46739 do : 46740 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 46741 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 46742 cat >>confdefs.h <<_ACEOF 46743 #define HAVE_ALSA_ASOUNDLIB_H 1 46744 _ACEOF 46745 46746 ALSA_FOUND=yes 46747 ALSA_CFLAGS=-Iignoreme 46748 ALSA_LIBS=-lasound 46749 DEFAULT_ALSA=yes 46750 46751 else 46752 ALSA_FOUND=no 46753 fi 46754 46755 done 46756 46757 fi 46758 if test "x$ALSA_FOUND" = xno; then 46759 46760 # Print a helpful message on how to acquire the necessary build dependency. 46761 # alsa is the help tag: freetype, cups, pulse, alsa etc 46762 MISSING_DEPENDENCY=alsa 46763 46764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46765 cygwin_help $MISSING_DEPENDENCY 46766 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46767 msys_help $MISSING_DEPENDENCY 46768 else 46769 PKGHANDLER_COMMAND= 46770 46771 case $PKGHANDLER in 46772 apt-get) 46773 apt_help $MISSING_DEPENDENCY ;; 46774 yum) 46775 yum_help $MISSING_DEPENDENCY ;; 46776 port) 46777 port_help $MISSING_DEPENDENCY ;; 46778 pkgutil) 46779 pkgutil_help $MISSING_DEPENDENCY ;; 46780 pkgadd) 46781 pkgadd_help $MISSING_DEPENDENCY ;; 46782 esac 46783 46784 if test "x$PKGHANDLER_COMMAND" != x; then 46785 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 46786 fi 46787 fi 46788 46789 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 46790 fi 46791 fi 46792 46793 46794 46795 46796 46797 46798 ############################################################################### 46799 # 46800 # Check for the jpeg library 46801 # 46802 46803 USE_EXTERNAL_LIBJPEG=true 46804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5 46805 $as_echo_n "checking for main in -ljpeg... " >&6; } 46806 if ${ac_cv_lib_jpeg_main+:} false; then : 46807 $as_echo_n "(cached) " >&6 46808 else 46809 ac_check_lib_save_LIBS=$LIBS 46810 LIBS="-ljpeg $LIBS" 46811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46812 /* end confdefs.h. */ 46813 46814 46815 int 46816 main () 46817 { 46818 return main (); 46819 ; 46820 return 0; 46821 } 46822 _ACEOF 46823 if ac_fn_cxx_try_link "$LINENO"; then : 46824 ac_cv_lib_jpeg_main=yes 46825 else 46826 ac_cv_lib_jpeg_main=no 46827 fi 46828 rm -f core conftest.err conftest.$ac_objext \ 46829 conftest$ac_exeext conftest.$ac_ext 46830 LIBS=$ac_check_lib_save_LIBS 46831 fi 46832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 46833 $as_echo "$ac_cv_lib_jpeg_main" >&6; } 46834 if test "x$ac_cv_lib_jpeg_main" = xyes; then : 46835 cat >>confdefs.h <<_ACEOF 46836 #define HAVE_LIBJPEG 1 46837 _ACEOF 46838 46839 LIBS="-ljpeg $LIBS" 46840 46841 else 46842 USE_EXTERNAL_LIBJPEG=false 46843 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5 46844 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;} 46845 46846 fi 46847 46848 46849 46850 ############################################################################### 46851 # 46852 # Check for the gif library 46853 # 46854 46855 46856 # Check whether --with-giflib was given. 46857 if test "${with_giflib+set}" = set; then : 46858 withval=$with_giflib; 46859 fi 46860 46861 46862 46863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 46864 $as_echo_n "checking for which giflib to use... " >&6; } 46865 46866 # default is bundled 46867 DEFAULT_GIFLIB=bundled 46868 46869 # 46870 # if user didn't specify, use DEFAULT_GIFLIB 46871 # 46872 if test "x${with_giflib}" = "x"; then 46873 with_giflib=${DEFAULT_GIFLIB} 46874 fi 46875 46876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 46877 $as_echo "${with_giflib}" >&6; } 46878 46879 if test "x${with_giflib}" = "xbundled"; then 46880 USE_EXTERNAL_LIBGIF=false 46881 elif test "x${with_giflib}" = "xsystem"; then 46882 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 46883 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 46884 46885 else 46886 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 46887 fi 46888 46889 46890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 46891 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 46892 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 46893 $as_echo_n "(cached) " >&6 46894 else 46895 ac_check_lib_save_LIBS=$LIBS 46896 LIBS="-lgif $LIBS" 46897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46898 /* end confdefs.h. */ 46899 46900 /* Override any GCC internal prototype to avoid an error. 46901 Use char because int might match the return type of a GCC 46902 builtin and then its argument prototype would still apply. */ 46903 #ifdef __cplusplus 46904 extern "C" 46905 #endif 46906 char DGifGetCode (); 46907 int 46908 main () 46909 { 46910 return DGifGetCode (); 46911 ; 46912 return 0; 46913 } 46914 _ACEOF 46915 if ac_fn_cxx_try_link "$LINENO"; then : 46916 ac_cv_lib_gif_DGifGetCode=yes 46917 else 46918 ac_cv_lib_gif_DGifGetCode=no 46919 fi 46920 rm -f core conftest.err conftest.$ac_objext \ 46921 conftest$ac_exeext conftest.$ac_ext 46922 LIBS=$ac_check_lib_save_LIBS 46923 fi 46924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 46925 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 46926 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 46927 cat >>confdefs.h <<_ACEOF 46928 #define HAVE_LIBGIF 1 46929 _ACEOF 46930 46931 LIBS="-lgif $LIBS" 46932 46933 else 46934 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 46935 fi 46936 46937 46938 USE_EXTERNAL_LIBGIF=true 46939 else 46940 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 46941 fi 46942 46943 46944 ############################################################################### 46945 # 46946 # Check for the png library 46947 # 46948 46949 46950 # Check whether --with-libpng was given. 46951 if test "${with_libpng+set}" = set; then : 46952 withval=$with_libpng; 46953 fi 46954 46955 46956 46957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 46958 $as_echo_n "checking for which libpng to use... " >&6; } 46959 46960 # default is bundled 46961 DEFAULT_LIBPNG=bundled 46962 46963 # 46964 # if user didn't specify, use DEFAULT_LIBPNG 46965 # 46966 if test "x${with_libpng}" = "x"; then 46967 with_libpng=${DEFAULT_LIBPNG} 46968 fi 46969 46970 if test "x${with_libpng}" = "xbundled"; then 46971 USE_EXTERNAL_LIBPNG=false 46972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 46973 $as_echo "bundled" >&6; } 46974 elif test "x${with_libpng}" = "xsystem"; then 46975 46976 pkg_failed=no 46977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 46978 $as_echo_n "checking for PNG... " >&6; } 46979 46980 if test -n "$PNG_CFLAGS"; then 46981 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 46982 elif test -n "$PKG_CONFIG"; then 46983 if test -n "$PKG_CONFIG" && \ 46984 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 46985 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 46986 ac_status=$? 46987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46988 test $ac_status = 0; }; then 46989 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 46990 else 46991 pkg_failed=yes 46992 fi 46993 else 46994 pkg_failed=untried 46995 fi 46996 if test -n "$PNG_LIBS"; then 46997 pkg_cv_PNG_LIBS="$PNG_LIBS" 46998 elif test -n "$PKG_CONFIG"; then 46999 if test -n "$PKG_CONFIG" && \ 47000 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 47001 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 47002 ac_status=$? 47003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47004 test $ac_status = 0; }; then 47005 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 47006 else 47007 pkg_failed=yes 47008 fi 47009 else 47010 pkg_failed=untried 47011 fi 47012 47013 47014 47015 if test $pkg_failed = yes; then 47016 47017 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 47018 _pkg_short_errors_supported=yes 47019 else 47020 _pkg_short_errors_supported=no 47021 fi 47022 if test $_pkg_short_errors_supported = yes; then 47023 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 47024 else 47025 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 47026 fi 47027 # Put the nasty error message in config.log where it belongs 47028 echo "$PNG_PKG_ERRORS" >&5 47029 47030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47031 $as_echo "no" >&6; } 47032 LIBPNG_FOUND=no 47033 elif test $pkg_failed = untried; then 47034 LIBPNG_FOUND=no 47035 else 47036 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 47037 PNG_LIBS=$pkg_cv_PNG_LIBS 47038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47039 $as_echo "yes" >&6; } 47040 LIBPNG_FOUND=yes 47041 fi 47042 if test "x${LIBPNG_FOUND}" = "xyes"; then 47043 USE_EXTERNAL_LIBPNG=true 47044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 47045 $as_echo "system" >&6; } 47046 else 47047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 47048 $as_echo "system not found" >&6; } 47049 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 47050 fi 47051 else 47052 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 47053 fi 47054 47055 47056 ############################################################################### 47057 # 47058 # Check for the zlib library 47059 # 47060 47061 47062 # Check whether --with-zlib was given. 47063 if test "${with_zlib+set}" = set; then : 47064 withval=$with_zlib; 47065 fi 47066 47067 47068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 47069 $as_echo_n "checking for compress in -lz... " >&6; } 47070 if ${ac_cv_lib_z_compress+:} false; then : 47071 $as_echo_n "(cached) " >&6 47072 else 47073 ac_check_lib_save_LIBS=$LIBS 47074 LIBS="-lz $LIBS" 47075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47076 /* end confdefs.h. */ 47077 47078 /* Override any GCC internal prototype to avoid an error. 47079 Use char because int might match the return type of a GCC 47080 builtin and then its argument prototype would still apply. */ 47081 #ifdef __cplusplus 47082 extern "C" 47083 #endif 47084 char compress (); 47085 int 47086 main () 47087 { 47088 return compress (); 47089 ; 47090 return 0; 47091 } 47092 _ACEOF 47093 if ac_fn_cxx_try_link "$LINENO"; then : 47094 ac_cv_lib_z_compress=yes 47095 else 47096 ac_cv_lib_z_compress=no 47097 fi 47098 rm -f core conftest.err conftest.$ac_objext \ 47099 conftest$ac_exeext conftest.$ac_ext 47100 LIBS=$ac_check_lib_save_LIBS 47101 fi 47102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 47103 $as_echo "$ac_cv_lib_z_compress" >&6; } 47104 if test "x$ac_cv_lib_z_compress" = xyes; then : 47105 ZLIB_FOUND=yes 47106 else 47107 ZLIB_FOUND=no 47108 fi 47109 47110 47111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 47112 $as_echo_n "checking for which zlib to use... " >&6; } 47113 47114 DEFAULT_ZLIB=bundled 47115 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 47116 # 47117 # On macosx default is system...on others default is 47118 # 47119 DEFAULT_ZLIB=system 47120 fi 47121 47122 if test "x${ZLIB_FOUND}" != "xyes"; then 47123 # 47124 # If we don't find any system...set default to bundled 47125 # 47126 DEFAULT_ZLIB=bundled 47127 fi 47128 47129 # 47130 # If user didn't specify, use DEFAULT_ZLIB 47131 # 47132 if test "x${with_zlib}" = "x"; then 47133 with_zlib=${DEFAULT_ZLIB} 47134 fi 47135 47136 if test "x${with_zlib}" = "xbundled"; then 47137 USE_EXTERNAL_LIBZ=false 47138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 47139 $as_echo "bundled" >&6; } 47140 elif test "x${with_zlib}" = "xsystem"; then 47141 if test "x${ZLIB_FOUND}" = "xyes"; then 47142 USE_EXTERNAL_LIBZ=true 47143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 47144 $as_echo "system" >&6; } 47145 else 47146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 47147 $as_echo "system not found" >&6; } 47148 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 47149 fi 47150 else 47151 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 47152 fi 47153 47154 47155 47156 ############################################################################### 47157 LIBZIP_CAN_USE_MMAP=true 47158 47159 47160 47161 ############################################################################### 47162 # 47163 # Check if altzone exists in time.h 47164 # 47165 47166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47167 /* end confdefs.h. */ 47168 #include <time.h> 47169 int 47170 main () 47171 { 47172 return (int)altzone; 47173 ; 47174 return 0; 47175 } 47176 _ACEOF 47177 if ac_fn_cxx_try_link "$LINENO"; then : 47178 has_altzone=yes 47179 else 47180 has_altzone=no 47181 fi 47182 rm -f core conftest.err conftest.$ac_objext \ 47183 conftest$ac_exeext conftest.$ac_ext 47184 if test "x$has_altzone" = xyes; then 47185 47186 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 47187 47188 fi 47189 47190 ############################################################################### 47191 # 47192 # Check the maths library 47193 # 47194 47195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 47196 $as_echo_n "checking for cos in -lm... " >&6; } 47197 if ${ac_cv_lib_m_cos+:} false; then : 47198 $as_echo_n "(cached) " >&6 47199 else 47200 ac_check_lib_save_LIBS=$LIBS 47201 LIBS="-lm $LIBS" 47202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47203 /* end confdefs.h. */ 47204 47205 /* Override any GCC internal prototype to avoid an error. 47206 Use char because int might match the return type of a GCC 47207 builtin and then its argument prototype would still apply. */ 47208 #ifdef __cplusplus 47209 extern "C" 47210 #endif 47211 char cos (); 47212 int 47213 main () 47214 { 47215 return cos (); 47216 ; 47217 return 0; 47218 } 47219 _ACEOF 47220 if ac_fn_cxx_try_link "$LINENO"; then : 47221 ac_cv_lib_m_cos=yes 47222 else 47223 ac_cv_lib_m_cos=no 47224 fi 47225 rm -f core conftest.err conftest.$ac_objext \ 47226 conftest$ac_exeext conftest.$ac_ext 47227 LIBS=$ac_check_lib_save_LIBS 47228 fi 47229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 47230 $as_echo "$ac_cv_lib_m_cos" >&6; } 47231 if test "x$ac_cv_lib_m_cos" = xyes; then : 47232 cat >>confdefs.h <<_ACEOF 47233 #define HAVE_LIBM 1 47234 _ACEOF 47235 47236 LIBS="-lm $LIBS" 47237 47238 else 47239 47240 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 47241 $as_echo "$as_me: Maths library was not found" >&6;} 47242 47243 47244 fi 47245 47246 47247 47248 ############################################################################### 47249 # 47250 # Check for libdl.so 47251 47252 save_LIBS="$LIBS" 47253 LIBS="" 47254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 47255 $as_echo_n "checking for dlopen in -ldl... " >&6; } 47256 if ${ac_cv_lib_dl_dlopen+:} false; then : 47257 $as_echo_n "(cached) " >&6 47258 else 47259 ac_check_lib_save_LIBS=$LIBS 47260 LIBS="-ldl $LIBS" 47261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47262 /* end confdefs.h. */ 47263 47264 /* Override any GCC internal prototype to avoid an error. 47265 Use char because int might match the return type of a GCC 47266 builtin and then its argument prototype would still apply. */ 47267 #ifdef __cplusplus 47268 extern "C" 47269 #endif 47270 char dlopen (); 47271 int 47272 main () 47273 { 47274 return dlopen (); 47275 ; 47276 return 0; 47277 } 47278 _ACEOF 47279 if ac_fn_cxx_try_link "$LINENO"; then : 47280 ac_cv_lib_dl_dlopen=yes 47281 else 47282 ac_cv_lib_dl_dlopen=no 47283 fi 47284 rm -f core conftest.err conftest.$ac_objext \ 47285 conftest$ac_exeext conftest.$ac_ext 47286 LIBS=$ac_check_lib_save_LIBS 47287 fi 47288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 47289 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 47290 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 47291 cat >>confdefs.h <<_ACEOF 47292 #define HAVE_LIBDL 1 47293 _ACEOF 47294 47295 LIBS="-ldl $LIBS" 47296 47297 fi 47298 47299 LIBDL="$LIBS" 47300 47301 LIBS="$save_LIBS" 47302 47303 47304 ############################################################################### 47305 # 47306 # statically link libstdc++ before C++ ABI is stablized on Linux unless 47307 # dynamic build is configured on command line. 47308 # 47309 47310 # Check whether --with-stdc++lib was given. 47311 if test "${with_stdc__lib+set}" = set; then : 47312 withval=$with_stdc__lib; 47313 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 47314 && test "x$with_stdc__lib" != xdefault; then 47315 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 47316 fi 47317 47318 else 47319 with_stdc__lib=default 47320 47321 fi 47322 47323 47324 if test "x$OPENJDK_TARGET_OS" = xlinux; then 47325 # Test if -lstdc++ works. 47326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 47327 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 47328 ac_ext=cpp 47329 ac_cpp='$CXXCPP $CPPFLAGS' 47330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47333 47334 OLD_CXXFLAGS="$CXXFLAGS" 47335 CXXFLAGS="$CXXFLAGS -lstdc++" 47336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47337 /* end confdefs.h. */ 47338 47339 int 47340 main () 47341 { 47342 return 0; 47343 ; 47344 return 0; 47345 } 47346 _ACEOF 47347 if ac_fn_cxx_try_link "$LINENO"; then : 47348 has_dynamic_libstdcxx=yes 47349 else 47350 has_dynamic_libstdcxx=no 47351 fi 47352 rm -f core conftest.err conftest.$ac_objext \ 47353 conftest$ac_exeext conftest.$ac_ext 47354 CXXFLAGS="$OLD_CXXFLAGS" 47355 ac_ext=cpp 47356 ac_cpp='$CXXCPP $CPPFLAGS' 47357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47360 47361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 47362 $as_echo "$has_dynamic_libstdcxx" >&6; } 47363 47364 # Test if stdc++ can be linked statically. 47365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 47366 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 47367 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 47368 ac_ext=cpp 47369 ac_cpp='$CXXCPP $CPPFLAGS' 47370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47373 47374 OLD_LIBS="$LIBS" 47375 OLD_CXX="$CXX" 47376 LIBS="$STATIC_STDCXX_FLAGS" 47377 CXX="$CC" 47378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47379 /* end confdefs.h. */ 47380 47381 int 47382 main () 47383 { 47384 return 0; 47385 ; 47386 return 0; 47387 } 47388 _ACEOF 47389 if ac_fn_cxx_try_link "$LINENO"; then : 47390 has_static_libstdcxx=yes 47391 else 47392 has_static_libstdcxx=no 47393 fi 47394 rm -f core conftest.err conftest.$ac_objext \ 47395 conftest$ac_exeext conftest.$ac_ext 47396 LIBS="$OLD_LIBS" 47397 CXX="$OLD_CXX" 47398 ac_ext=cpp 47399 ac_cpp='$CXXCPP $CPPFLAGS' 47400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47403 47404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 47405 $as_echo "$has_static_libstdcxx" >&6; } 47406 47407 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 47408 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 47409 fi 47410 47411 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 47412 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 47413 fi 47414 47415 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 47416 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 47417 fi 47418 47419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 47420 $as_echo_n "checking how to link with libstdc++... " >&6; } 47421 # If dynamic was requested, it's available since it would fail above otherwise. 47422 # If dynamic wasn't requested, go with static unless it isn't available. 47423 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47424 LIBCXX="$LIBCXX -lstdc++" 47425 LDCXX="$CXX" 47426 STATIC_CXX_SETTING="STATIC_CXX=false" 47427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 47428 $as_echo "dynamic" >&6; } 47429 else 47430 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 47431 LDCXX="$CC" 47432 STATIC_CXX_SETTING="STATIC_CXX=true" 47433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 47434 $as_echo "static" >&6; } 47435 fi 47436 fi 47437 47438 47439 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47440 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 47441 47442 pkg_failed=no 47443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 47444 $as_echo_n "checking for LIBFFI... " >&6; } 47445 47446 if test -n "$LIBFFI_CFLAGS"; then 47447 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 47448 elif test -n "$PKG_CONFIG"; then 47449 if test -n "$PKG_CONFIG" && \ 47450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 47451 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 47452 ac_status=$? 47453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47454 test $ac_status = 0; }; then 47455 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 47456 else 47457 pkg_failed=yes 47458 fi 47459 else 47460 pkg_failed=untried 47461 fi 47462 if test -n "$LIBFFI_LIBS"; then 47463 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 47464 elif test -n "$PKG_CONFIG"; then 47465 if test -n "$PKG_CONFIG" && \ 47466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 47467 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 47468 ac_status=$? 47469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47470 test $ac_status = 0; }; then 47471 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 47472 else 47473 pkg_failed=yes 47474 fi 47475 else 47476 pkg_failed=untried 47477 fi 47478 47479 47480 47481 if test $pkg_failed = yes; then 47482 47483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 47484 _pkg_short_errors_supported=yes 47485 else 47486 _pkg_short_errors_supported=no 47487 fi 47488 if test $_pkg_short_errors_supported = yes; then 47489 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 47490 else 47491 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 47492 fi 47493 # Put the nasty error message in config.log where it belongs 47494 echo "$LIBFFI_PKG_ERRORS" >&5 47495 47496 as_fn_error $? "Package requirements (libffi) were not met: 47497 47498 $LIBFFI_PKG_ERRORS 47499 47500 Consider adjusting the PKG_CONFIG_PATH environment variable if you 47501 installed software in a non-standard prefix. 47502 47503 Alternatively, you may set the environment variables LIBFFI_CFLAGS 47504 and LIBFFI_LIBS to avoid the need to call pkg-config. 47505 See the pkg-config man page for more details. 47506 " "$LINENO" 5 47507 elif test $pkg_failed = untried; then 47508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 47509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 47510 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 47511 is in your PATH or set the PKG_CONFIG environment variable to the full 47512 path to pkg-config. 47513 47514 Alternatively, you may set the environment variables LIBFFI_CFLAGS 47515 and LIBFFI_LIBS to avoid the need to call pkg-config. 47516 See the pkg-config man page for more details. 47517 47518 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 47519 See \`config.log' for more details" "$LINENO" 5; } 47520 else 47521 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 47522 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 47523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47524 $as_echo "yes" >&6; } 47525 : 47526 fi 47527 47528 fi 47529 47530 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47531 # Extract the first word of "llvm-config", so it can be a program name with args. 47532 set dummy llvm-config; ac_word=$2 47533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47534 $as_echo_n "checking for $ac_word... " >&6; } 47535 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 47536 $as_echo_n "(cached) " >&6 47537 else 47538 if test -n "$LLVM_CONFIG"; then 47539 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 47540 else 47541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47542 for as_dir in $PATH 47543 do 47544 IFS=$as_save_IFS 47545 test -z "$as_dir" && as_dir=. 47546 for ac_exec_ext in '' $ac_executable_extensions; do 47547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47548 ac_cv_prog_LLVM_CONFIG="llvm-config" 47549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47550 break 2 47551 fi 47552 done 47553 done 47554 IFS=$as_save_IFS 47555 47556 fi 47557 fi 47558 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 47559 if test -n "$LLVM_CONFIG"; then 47560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 47561 $as_echo "$LLVM_CONFIG" >&6; } 47562 else 47563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47564 $as_echo "no" >&6; } 47565 fi 47566 47567 47568 47569 if test "x$LLVM_CONFIG" != xllvm-config; then 47570 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 47571 fi 47572 47573 llvm_components="jit mcjit engine nativecodegen native" 47574 unset LLVM_CFLAGS 47575 for flag in $("$LLVM_CONFIG" --cxxflags); do 47576 if echo "${flag}" | grep -q '^-[ID]'; then 47577 if test "${flag}" != "-D_DEBUG" ; then 47578 if test "${LLVM_CFLAGS}" != "" ; then 47579 LLVM_CFLAGS="${LLVM_CFLAGS} " 47580 fi 47581 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 47582 fi 47583 fi 47584 done 47585 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 47586 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 47587 47588 unset LLVM_LDFLAGS 47589 for flag in $("${LLVM_CONFIG}" --ldflags); do 47590 if echo "${flag}" | grep -q '^-L'; then 47591 if test "${LLVM_LDFLAGS}" != ""; then 47592 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 47593 fi 47594 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 47595 fi 47596 done 47597 47598 unset LLVM_LIBS 47599 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 47600 if echo "${flag}" | grep -q '^-l'; then 47601 if test "${LLVM_LIBS}" != ""; then 47602 LLVM_LIBS="${LLVM_LIBS} " 47603 fi 47604 LLVM_LIBS="${LLVM_LIBS}${flag}" 47605 fi 47606 done 47607 47608 47609 47610 47611 fi 47612 47613 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 47614 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 47615 LIBCXX="/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 47616 fi 47617 47618 # TODO better (platform agnostic) test 47619 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 47620 LIBCXX="-lstdc++" 47621 fi 47622 47623 47624 47625 47626 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 47627 47628 47629 # Check whether --with-msvcr-dll was given. 47630 if test "${with_msvcr_dll+set}" = set; then : 47631 withval=$with_msvcr_dll; 47632 fi 47633 47634 47635 if test "x$with_msvcr_dll" != x; then 47636 # If given explicitely by user, do not probe. If not present, fail directly. 47637 47638 POSSIBLE_MSVCR_DLL="$with_msvcr_dll" 47639 METHOD="--with-msvcr-dll" 47640 if test -e "$POSSIBLE_MSVCR_DLL"; then 47641 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 47642 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 47643 47644 # Need to check if the found msvcr is correct architecture 47645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 47646 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 47647 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 47648 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47649 CORRECT_MSVCR_ARCH=386 47650 else 47651 CORRECT_MSVCR_ARCH=x86-64 47652 fi 47653 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 47654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 47655 $as_echo "ok" >&6; } 47656 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47658 $as_echo_n "checking for msvcr100.dll... " >&6; } 47659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 47660 $as_echo "$MSVCR_DLL" >&6; } 47661 else 47662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 47663 $as_echo "incorrect, ignoring" >&6; } 47664 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 47665 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 47666 fi 47667 fi 47668 47669 if test "x$MSVCR_DLL" = x; then 47670 as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5 47671 fi 47672 fi 47673 47674 if test "x$MSVCR_DLL" = x; then 47675 # Probe: Using well-known location from Visual Studio 10.0 47676 if test "x$VCINSTALLDIR" != x; then 47677 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 47678 47679 windows_path="$CYGWIN_VC_INSTALL_DIR" 47680 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47681 unix_path=`$CYGPATH -u "$windows_path"` 47682 CYGWIN_VC_INSTALL_DIR="$unix_path" 47683 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47684 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47685 CYGWIN_VC_INSTALL_DIR="$unix_path" 47686 fi 47687 47688 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 47689 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll" 47690 else 47691 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll" 47692 fi 47693 47694 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47695 METHOD="well-known location in VCINSTALLDIR" 47696 if test -e "$POSSIBLE_MSVCR_DLL"; then 47697 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 47698 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 47699 47700 # Need to check if the found msvcr is correct architecture 47701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 47702 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 47703 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 47704 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47705 CORRECT_MSVCR_ARCH=386 47706 else 47707 CORRECT_MSVCR_ARCH=x86-64 47708 fi 47709 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 47710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 47711 $as_echo "ok" >&6; } 47712 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47714 $as_echo_n "checking for msvcr100.dll... " >&6; } 47715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 47716 $as_echo "$MSVCR_DLL" >&6; } 47717 else 47718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 47719 $as_echo "incorrect, ignoring" >&6; } 47720 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 47721 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 47722 fi 47723 fi 47724 47725 fi 47726 fi 47727 47728 if test "x$MSVCR_DLL" = x; then 47729 # Probe: Check in the Boot JDK directory. 47730 POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll" 47731 47732 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47733 METHOD="well-known location in Boot JDK" 47734 if test -e "$POSSIBLE_MSVCR_DLL"; then 47735 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 47736 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 47737 47738 # Need to check if the found msvcr is correct architecture 47739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 47740 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 47741 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 47742 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47743 CORRECT_MSVCR_ARCH=386 47744 else 47745 CORRECT_MSVCR_ARCH=x86-64 47746 fi 47747 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 47748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 47749 $as_echo "ok" >&6; } 47750 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47752 $as_echo_n "checking for msvcr100.dll... " >&6; } 47753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 47754 $as_echo "$MSVCR_DLL" >&6; } 47755 else 47756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 47757 $as_echo "incorrect, ignoring" >&6; } 47758 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 47759 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 47760 fi 47761 fi 47762 47763 fi 47764 47765 if test "x$MSVCR_DLL" = x; then 47766 # Probe: Look in the Windows system32 directory 47767 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 47768 47769 windows_path="$CYGWIN_SYSTEMROOT" 47770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47771 unix_path=`$CYGPATH -u "$windows_path"` 47772 CYGWIN_SYSTEMROOT="$unix_path" 47773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47774 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47775 CYGWIN_SYSTEMROOT="$unix_path" 47776 fi 47777 47778 POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll" 47779 47780 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47781 METHOD="well-known location in SYSTEMROOT" 47782 if test -e "$POSSIBLE_MSVCR_DLL"; then 47783 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 47784 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 47785 47786 # Need to check if the found msvcr is correct architecture 47787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 47788 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 47789 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 47790 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47791 CORRECT_MSVCR_ARCH=386 47792 else 47793 CORRECT_MSVCR_ARCH=x86-64 47794 fi 47795 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 47796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 47797 $as_echo "ok" >&6; } 47798 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47800 $as_echo_n "checking for msvcr100.dll... " >&6; } 47801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 47802 $as_echo "$MSVCR_DLL" >&6; } 47803 else 47804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 47805 $as_echo "incorrect, ignoring" >&6; } 47806 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 47807 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 47808 fi 47809 fi 47810 47811 fi 47812 47813 if test "x$MSVCR_DLL" = x; then 47814 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 47815 if test "x$VS100COMNTOOLS" != x; then 47816 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 47817 47818 windows_path="$CYGWIN_VS_TOOLS_DIR" 47819 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47820 unix_path=`$CYGPATH -u "$windows_path"` 47821 CYGWIN_VS_TOOLS_DIR="$unix_path" 47822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47823 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47824 CYGWIN_VS_TOOLS_DIR="$unix_path" 47825 fi 47826 47827 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 47828 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1` 47829 else 47830 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1` 47831 fi 47832 47833 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47834 METHOD="search of VS100COMNTOOLS" 47835 if test -e "$POSSIBLE_MSVCR_DLL"; then 47836 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 47837 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 47838 47839 # Need to check if the found msvcr is correct architecture 47840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 47841 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 47842 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 47843 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47844 CORRECT_MSVCR_ARCH=386 47845 else 47846 CORRECT_MSVCR_ARCH=x86-64 47847 fi 47848 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 47849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 47850 $as_echo "ok" >&6; } 47851 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47853 $as_echo_n "checking for msvcr100.dll... " >&6; } 47854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 47855 $as_echo "$MSVCR_DLL" >&6; } 47856 else 47857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 47858 $as_echo "incorrect, ignoring" >&6; } 47859 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 47860 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 47861 fi 47862 fi 47863 47864 fi 47865 fi 47866 47867 if test "x$MSVCR_DLL" = x; then 47868 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 47869 # (This was the original behaviour; kept since it might turn up something) 47870 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 47871 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 47872 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1` 47873 else 47874 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 47875 if test "x$POSSIBLE_MSVCR_DLL" = x; then 47876 # We're grasping at straws now... 47877 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1` 47878 fi 47879 fi 47880 47881 47882 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47883 METHOD="search of VCINSTALLDIR" 47884 if test -e "$POSSIBLE_MSVCR_DLL"; then 47885 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 47886 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 47887 47888 # Need to check if the found msvcr is correct architecture 47889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 47890 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 47891 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 47892 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47893 CORRECT_MSVCR_ARCH=386 47894 else 47895 CORRECT_MSVCR_ARCH=x86-64 47896 fi 47897 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 47898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 47899 $as_echo "ok" >&6; } 47900 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47902 $as_echo_n "checking for msvcr100.dll... " >&6; } 47903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 47904 $as_echo "$MSVCR_DLL" >&6; } 47905 else 47906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 47907 $as_echo "incorrect, ignoring" >&6; } 47908 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 47909 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 47910 fi 47911 fi 47912 47913 fi 47914 fi 47915 47916 if test "x$MSVCR_DLL" = x; then 47917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47918 $as_echo_n "checking for msvcr100.dll... " >&6; } 47919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47920 $as_echo "no" >&6; } 47921 as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5 47922 fi 47923 47924 47925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47926 47927 # Input might be given as Windows format, start by converting to 47928 # unix format. 47929 path="$MSVCR_DLL" 47930 new_path=`$CYGPATH -u "$path"` 47931 47932 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47933 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47934 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47935 # "foo.exe" is OK but "foo" is an error. 47936 # 47937 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47938 # It is also a way to make sure we got the proper file name for the real test later on. 47939 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47940 if test "x$test_shortpath" = x; then 47941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 47942 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 47943 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 47944 fi 47945 47946 # Call helper function which possibly converts this using DOS-style short mode. 47947 # If so, the updated path is stored in $new_path. 47948 47949 input_path="$new_path" 47950 # Check if we need to convert this using DOS-style short mode. If the path 47951 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47952 # take no chances and rewrite it. 47953 # Note: m4 eats our [], so we need to use [ and ] instead. 47954 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47955 if test "x$has_forbidden_chars" != x; then 47956 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47957 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47958 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47959 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47960 # Going to short mode and back again did indeed matter. Since short mode is 47961 # case insensitive, let's make it lowercase to improve readability. 47962 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47963 # Now convert it back to Unix-stile (cygpath) 47964 input_path=`$CYGPATH -u "$shortmode_path"` 47965 new_path="$input_path" 47966 fi 47967 fi 47968 47969 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47970 if test "x$test_cygdrive_prefix" = x; then 47971 # As a simple fix, exclude /usr/bin since it's not a real path. 47972 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47973 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47974 # a path prefixed by /cygdrive for fixpath to work. 47975 new_path="$CYGWIN_ROOT_PATH$input_path" 47976 fi 47977 fi 47978 47979 47980 if test "x$path" != "x$new_path"; then 47981 MSVCR_DLL="$new_path" 47982 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 47983 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 47984 fi 47985 47986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47987 47988 path="$MSVCR_DLL" 47989 has_colon=`$ECHO $path | $GREP ^.:` 47990 new_path="$path" 47991 if test "x$has_colon" = x; then 47992 # Not in mixed or Windows style, start by that. 47993 new_path=`cmd //c echo $path` 47994 fi 47995 47996 47997 input_path="$new_path" 47998 # Check if we need to convert this using DOS-style short mode. If the path 47999 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48000 # take no chances and rewrite it. 48001 # Note: m4 eats our [], so we need to use [ and ] instead. 48002 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48003 if test "x$has_forbidden_chars" != x; then 48004 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48005 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48006 fi 48007 48008 48009 windows_path="$new_path" 48010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48011 unix_path=`$CYGPATH -u "$windows_path"` 48012 new_path="$unix_path" 48013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48014 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48015 new_path="$unix_path" 48016 fi 48017 48018 if test "x$path" != "x$new_path"; then 48019 MSVCR_DLL="$new_path" 48020 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 48021 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 48022 fi 48023 48024 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48025 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48026 48027 else 48028 # We're on a posix platform. Hooray! :) 48029 path="$MSVCR_DLL" 48030 has_space=`$ECHO "$path" | $GREP " "` 48031 if test "x$has_space" != x; then 48032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 48033 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 48034 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48035 fi 48036 48037 # Use eval to expand a potential ~ 48038 eval path="$path" 48039 if test ! -f "$path" && test ! -d "$path"; then 48040 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48041 fi 48042 48043 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 48044 fi 48045 48046 48047 48048 48049 # Check whether --with-dxsdk was given. 48050 if test "${with_dxsdk+set}" = set; then : 48051 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 48052 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 48053 fi 48054 48055 48056 48057 48058 # Check whether --with-dxsdk-lib was given. 48059 if test "${with_dxsdk_lib+set}" = set; then : 48060 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 48061 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 48062 fi 48063 48064 48065 48066 48067 # Check whether --with-dxsdk-include was given. 48068 if test "${with_dxsdk_include+set}" = set; then : 48069 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 48070 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 48071 fi 48072 48073 48074 fi 48075 48076 48077 48078 ############################################################################### 48079 # 48080 # We need to do some final tweaking, when everything else is done. 48081 # 48082 ############################################################################### 48083 48084 48085 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 48086 48087 48088 # The name of the Service Agent jar. 48089 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 48090 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 48091 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 48092 fi 48093 48094 48095 48096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 48097 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 48098 48099 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then 48100 ENABLE_INTREE_EC=yes 48101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48102 $as_echo "yes" >&6; } 48103 else 48104 ENABLE_INTREE_EC=no 48105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48106 $as_echo "no" >&6; } 48107 fi 48108 48109 48110 48111 48112 ############################################################################### 48113 # 48114 # Configure parts of the build that only affect the build performance, 48115 # not the result. 48116 # 48117 ############################################################################### 48118 48119 48120 # How many cores do we have on this build system? 48121 48122 # Check whether --with-num-cores was given. 48123 if test "${with_num_cores+set}" = set; then : 48124 withval=$with_num_cores; 48125 fi 48126 48127 if test "x$with_num_cores" = x; then 48128 # The number of cores were not specified, try to probe them. 48129 48130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 48131 $as_echo_n "checking for number of cores... " >&6; } 48132 NUM_CORES=1 48133 FOUND_CORES=no 48134 48135 if test -f /proc/cpuinfo; then 48136 # Looks like a Linux (or cygwin) system 48137 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 48138 FOUND_CORES=yes 48139 elif test -x /usr/sbin/psrinfo; then 48140 # Looks like a Solaris system 48141 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 48142 FOUND_CORES=yes 48143 elif test -x /usr/sbin/system_profiler; then 48144 # Looks like a MacOSX system 48145 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 48146 FOUND_CORES=yes 48147 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 48148 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 48149 FOUND_CORES=yes 48150 elif test -n "$NUMBER_OF_PROCESSORS"; then 48151 # On windows, look in the env 48152 NUM_CORES=$NUMBER_OF_PROCESSORS 48153 FOUND_CORES=yes 48154 fi 48155 48156 if test "x$FOUND_CORES" = xyes; then 48157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 48158 $as_echo "$NUM_CORES" >&6; } 48159 else 48160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 48161 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 48162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 48163 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 48164 fi 48165 48166 else 48167 NUM_CORES=$with_num_cores 48168 fi 48169 48170 48171 48172 # How much memory do we have on this build system? 48173 48174 # Check whether --with-memory-size was given. 48175 if test "${with_memory_size+set}" = set; then : 48176 withval=$with_memory_size; 48177 fi 48178 48179 if test "x$with_memory_size" = x; then 48180 # The memory size was not specified, try to probe it. 48181 48182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 48183 $as_echo_n "checking for memory size... " >&6; } 48184 # Default to 1024 MB 48185 MEMORY_SIZE=1024 48186 FOUND_MEM=no 48187 48188 if test -f /proc/meminfo; then 48189 # Looks like a Linux (or cygwin) system 48190 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 48191 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 48192 FOUND_MEM=yes 48193 elif test -x /usr/sbin/prtconf; then 48194 # Looks like a Solaris or AIX system 48195 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 48196 FOUND_MEM=yes 48197 elif test -x /usr/sbin/system_profiler; then 48198 # Looks like a MacOSX system 48199 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 48200 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 48201 FOUND_MEM=yes 48202 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 48203 # Windows, but without cygwin 48204 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 48205 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 48206 FOUND_MEM=yes 48207 fi 48208 48209 if test "x$FOUND_MEM" = xyes; then 48210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 48211 $as_echo "$MEMORY_SIZE MB" >&6; } 48212 else 48213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5 48214 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } 48215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 48216 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 48217 fi 48218 48219 else 48220 MEMORY_SIZE=$with_memory_size 48221 fi 48222 48223 48224 48225 # Provide a decent default number of parallel jobs for make depending on 48226 # number of cores, amount of memory and machine architecture. 48227 48228 # Check whether --with-jobs was given. 48229 if test "${with_jobs+set}" = set; then : 48230 withval=$with_jobs; 48231 fi 48232 48233 if test "x$with_jobs" = x; then 48234 # Number of jobs was not specified, calculate. 48235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 48236 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 48237 # Approximate memory in GB, rounding up a bit. 48238 memory_gb=`expr $MEMORY_SIZE / 1100` 48239 # Pick the lowest of memory in gb and number of cores. 48240 if test "$memory_gb" -lt "$NUM_CORES"; then 48241 JOBS="$memory_gb" 48242 else 48243 JOBS="$NUM_CORES" 48244 # On bigger machines, leave some room for other processes to run 48245 if test "$JOBS" -gt "4"; then 48246 JOBS=`expr $JOBS '*' 90 / 100` 48247 fi 48248 fi 48249 # Cap number of jobs to 16 48250 if test "$JOBS" -gt "16"; then 48251 JOBS=16 48252 fi 48253 if test "$JOBS" -eq "0"; then 48254 JOBS=1 48255 fi 48256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 48257 $as_echo "$JOBS" >&6; } 48258 else 48259 JOBS=$with_jobs 48260 fi 48261 48262 48263 48264 # Setup smart javac (after cores and memory have been setup) 48265 48266 48267 # Check whether --with-sjavac-server-java was given. 48268 if test "${with_sjavac_server_java+set}" = set; then : 48269 withval=$with_sjavac_server_java; 48270 fi 48271 48272 48273 if test "x$with_sjavac_server_java" != x; then 48274 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 48275 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 48276 if test "x$FOUND_VERSION" = x; then 48277 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 48278 fi 48279 else 48280 SJAVAC_SERVER_JAVA="" 48281 # Hotspot specific options. 48282 48283 $ECHO "Check if jvm arg is ok: -verbosegc" >&5 48284 $ECHO "Command: $JAVA -verbosegc -version" >&5 48285 OUTPUT=`$JAVA -verbosegc -version 2>&1` 48286 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48287 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48288 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48289 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc" 48290 JVM_ARG_OK=true 48291 else 48292 $ECHO "Arg failed:" >&5 48293 $ECHO "$OUTPUT" >&5 48294 JVM_ARG_OK=false 48295 fi 48296 48297 # JRockit specific options. 48298 48299 $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5 48300 $ECHO "Command: $JAVA -Xverbose:gc -version" >&5 48301 OUTPUT=`$JAVA -Xverbose:gc -version 2>&1` 48302 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48303 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48304 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48305 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc" 48306 JVM_ARG_OK=true 48307 else 48308 $ECHO "Arg failed:" >&5 48309 $ECHO "$OUTPUT" >&5 48310 JVM_ARG_OK=false 48311 fi 48312 48313 SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA" 48314 fi 48315 48316 48317 if test "$MEMORY_SIZE" -gt "2500"; then 48318 48319 $ECHO "Check if jvm arg is ok: -d64" >&5 48320 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 48321 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 48322 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48323 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48324 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48325 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 48326 JVM_ARG_OK=true 48327 else 48328 $ECHO "Arg failed:" >&5 48329 $ECHO "$OUTPUT" >&5 48330 JVM_ARG_OK=false 48331 fi 48332 48333 if test "$JVM_ARG_OK" = true; then 48334 JVM_64BIT=true 48335 JVM_ARG_OK=false 48336 fi 48337 fi 48338 48339 if test "$JVM_64BIT" = true; then 48340 if test "$MEMORY_SIZE" -gt "17000"; then 48341 48342 $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5 48343 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5 48344 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1` 48345 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48346 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48347 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48348 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G" 48349 JVM_ARG_OK=true 48350 else 48351 $ECHO "Arg failed:" >&5 48352 $ECHO "$OUTPUT" >&5 48353 JVM_ARG_OK=false 48354 fi 48355 48356 fi 48357 if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then 48358 48359 $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5 48360 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5 48361 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1` 48362 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48363 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48364 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48365 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G" 48366 JVM_ARG_OK=true 48367 else 48368 $ECHO "Arg failed:" >&5 48369 $ECHO "$OUTPUT" >&5 48370 JVM_ARG_OK=false 48371 fi 48372 48373 fi 48374 if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then 48375 48376 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5 48377 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5 48378 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1` 48379 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48380 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48381 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48382 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G" 48383 JVM_ARG_OK=true 48384 else 48385 $ECHO "Arg failed:" >&5 48386 $ECHO "$OUTPUT" >&5 48387 JVM_ARG_OK=false 48388 fi 48389 48390 fi 48391 if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then 48392 48393 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5 48394 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5 48395 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1` 48396 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48397 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48398 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48399 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M" 48400 JVM_ARG_OK=true 48401 else 48402 $ECHO "Arg failed:" >&5 48403 $ECHO "$OUTPUT" >&5 48404 JVM_ARG_OK=false 48405 fi 48406 48407 fi 48408 fi 48409 if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then 48410 48411 $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5 48412 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5 48413 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1` 48414 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48415 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48416 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48417 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M" 48418 JVM_ARG_OK=true 48419 else 48420 $ECHO "Arg failed:" >&5 48421 $ECHO "$OUTPUT" >&5 48422 JVM_ARG_OK=false 48423 fi 48424 48425 fi 48426 if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then 48427 48428 $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5 48429 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5 48430 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1` 48431 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48432 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48433 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48434 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M" 48435 JVM_ARG_OK=true 48436 else 48437 $ECHO "Arg failed:" >&5 48438 $ECHO "$OUTPUT" >&5 48439 JVM_ARG_OK=false 48440 fi 48441 48442 fi 48443 if test "$JVM_ARG_OK" = false; then 48444 48445 $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5 48446 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5 48447 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1` 48448 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48449 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48450 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48451 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M" 48452 JVM_ARG_OK=true 48453 else 48454 $ECHO "Arg failed:" >&5 48455 $ECHO "$OUTPUT" >&5 48456 JVM_ARG_OK=false 48457 fi 48458 48459 fi 48460 48461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 48462 $as_echo_n "checking whether to use sjavac... " >&6; } 48463 # Check whether --enable-sjavac was given. 48464 if test "${enable_sjavac+set}" = set; then : 48465 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 48466 else 48467 ENABLE_SJAVAC='no' 48468 fi 48469 48470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 48471 $as_echo "$ENABLE_SJAVAC" >&6; } 48472 48473 48474 if test "x$ENABLE_SJAVAC" = xyes; then 48475 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 48476 else 48477 SJAVAC_SERVER_DIR= 48478 fi 48479 48480 48481 48482 # Can the C/C++ compiler use precompiled headers? 48483 48484 48485 ############################################################################### 48486 # 48487 # Can the C/C++ compiler use precompiled headers? 48488 # 48489 # Check whether --enable-precompiled-headers was given. 48490 if test "${enable_precompiled_headers+set}" = set; then : 48491 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 48492 else 48493 ENABLE_PRECOMPH=yes 48494 fi 48495 48496 48497 USE_PRECOMPILED_HEADER=1 48498 if test "x$ENABLE_PRECOMPH" = xno; then 48499 USE_PRECOMPILED_HEADER=0 48500 fi 48501 48502 if test "x$ENABLE_PRECOMPH" = xyes; then 48503 # Check that the compiler actually supports precomp headers. 48504 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 48506 $as_echo_n "checking that precompiled headers work... " >&6; } 48507 echo "int alfa();" > conftest.h 48508 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 48509 if test ! -f conftest.hpp.gch; then 48510 USE_PRECOMPILED_HEADER=0 48511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48512 $as_echo "no" >&6; } 48513 else 48514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48515 $as_echo "yes" >&6; } 48516 fi 48517 rm -f conftest.h conftest.hpp.gch 48518 fi 48519 fi 48520 48521 48522 48523 48524 # Setup use of ccache, if available 48525 48526 # Check whether --enable-ccache was given. 48527 if test "${enable_ccache+set}" = set; then : 48528 enableval=$enable_ccache; 48529 fi 48530 48531 48532 CCACHE= 48533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 48534 $as_echo_n "checking is ccache enabled... " >&6; } 48535 ENABLE_CCACHE=$enable_ccache 48536 if test "x$enable_ccache" = xyes; then 48537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48538 $as_echo "yes" >&6; } 48539 OLD_PATH="$PATH" 48540 if test "x$TOOLS_DIR" != x; then 48541 PATH=$TOOLS_DIR:$PATH 48542 fi 48543 48544 48545 48546 # Publish this variable in the help. 48547 48548 48549 if test "x$CCACHE" = x; then 48550 # The variable is not set by user, try to locate tool using the code snippet 48551 for ac_prog in ccache 48552 do 48553 # Extract the first word of "$ac_prog", so it can be a program name with args. 48554 set dummy $ac_prog; ac_word=$2 48555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48556 $as_echo_n "checking for $ac_word... " >&6; } 48557 if ${ac_cv_path_CCACHE+:} false; then : 48558 $as_echo_n "(cached) " >&6 48559 else 48560 case $CCACHE in 48561 [\\/]* | ?:[\\/]*) 48562 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 48563 ;; 48564 *) 48565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48566 for as_dir in $PATH 48567 do 48568 IFS=$as_save_IFS 48569 test -z "$as_dir" && as_dir=. 48570 for ac_exec_ext in '' $ac_executable_extensions; do 48571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48572 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 48573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48574 break 2 48575 fi 48576 done 48577 done 48578 IFS=$as_save_IFS 48579 48580 ;; 48581 esac 48582 fi 48583 CCACHE=$ac_cv_path_CCACHE 48584 if test -n "$CCACHE"; then 48585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 48586 $as_echo "$CCACHE" >&6; } 48587 else 48588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48589 $as_echo "no" >&6; } 48590 fi 48591 48592 48593 test -n "$CCACHE" && break 48594 done 48595 48596 else 48597 # The variable is set, but is it from the command line or the environment? 48598 48599 # Try to remove the string !CCACHE! from our list. 48600 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 48601 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48602 # If it failed, the variable was not from the command line. Ignore it, 48603 # but warn the user (except for BASH, which is always set by the calling BASH). 48604 if test "xCCACHE" != xBASH; then 48605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 48606 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 48607 fi 48608 # Try to locate tool using the code snippet 48609 for ac_prog in ccache 48610 do 48611 # Extract the first word of "$ac_prog", so it can be a program name with args. 48612 set dummy $ac_prog; ac_word=$2 48613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48614 $as_echo_n "checking for $ac_word... " >&6; } 48615 if ${ac_cv_path_CCACHE+:} false; then : 48616 $as_echo_n "(cached) " >&6 48617 else 48618 case $CCACHE in 48619 [\\/]* | ?:[\\/]*) 48620 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 48621 ;; 48622 *) 48623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48624 for as_dir in $PATH 48625 do 48626 IFS=$as_save_IFS 48627 test -z "$as_dir" && as_dir=. 48628 for ac_exec_ext in '' $ac_executable_extensions; do 48629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48630 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 48631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48632 break 2 48633 fi 48634 done 48635 done 48636 IFS=$as_save_IFS 48637 48638 ;; 48639 esac 48640 fi 48641 CCACHE=$ac_cv_path_CCACHE 48642 if test -n "$CCACHE"; then 48643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 48644 $as_echo "$CCACHE" >&6; } 48645 else 48646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48647 $as_echo "no" >&6; } 48648 fi 48649 48650 48651 test -n "$CCACHE" && break 48652 done 48653 48654 else 48655 # If it succeeded, then it was overridden by the user. We will use it 48656 # for the tool. 48657 48658 # First remove it from the list of overridden variables, so we can test 48659 # for unknown variables in the end. 48660 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48661 48662 # Check if the provided tool contains a complete path. 48663 tool_specified="$CCACHE" 48664 tool_basename="${tool_specified##*/}" 48665 if test "x$tool_basename" = "x$tool_specified"; then 48666 # A command without a complete path is provided, search $PATH. 48667 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 48668 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 48669 # Extract the first word of "$tool_basename", so it can be a program name with args. 48670 set dummy $tool_basename; ac_word=$2 48671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48672 $as_echo_n "checking for $ac_word... " >&6; } 48673 if ${ac_cv_path_CCACHE+:} false; then : 48674 $as_echo_n "(cached) " >&6 48675 else 48676 case $CCACHE in 48677 [\\/]* | ?:[\\/]*) 48678 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 48679 ;; 48680 *) 48681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48682 for as_dir in $PATH 48683 do 48684 IFS=$as_save_IFS 48685 test -z "$as_dir" && as_dir=. 48686 for ac_exec_ext in '' $ac_executable_extensions; do 48687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48688 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 48689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48690 break 2 48691 fi 48692 done 48693 done 48694 IFS=$as_save_IFS 48695 48696 ;; 48697 esac 48698 fi 48699 CCACHE=$ac_cv_path_CCACHE 48700 if test -n "$CCACHE"; then 48701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 48702 $as_echo "$CCACHE" >&6; } 48703 else 48704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48705 $as_echo "no" >&6; } 48706 fi 48707 48708 48709 if test "x$CCACHE" = x; then 48710 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48711 fi 48712 else 48713 # Otherwise we believe it is a complete path. Use it as it is. 48714 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 48715 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 48716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 48717 $as_echo_n "checking for CCACHE... " >&6; } 48718 if test ! -x "$tool_specified"; then 48719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48720 $as_echo "not found" >&6; } 48721 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 48722 fi 48723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48724 $as_echo "$tool_specified" >&6; } 48725 fi 48726 fi 48727 fi 48728 48729 48730 48731 if test "x$CCACHE" = x; then 48732 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 48733 fi 48734 48735 48736 CCACHE_STATUS="enabled" 48737 PATH="$OLD_PATH" 48738 elif test "x$enable_ccache" = xno; then 48739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 48740 $as_echo "no, explicitly disabled" >&6; } 48741 elif test "x$enable_ccache" = x; then 48742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48743 $as_echo "no" >&6; } 48744 else 48745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 48746 $as_echo "unknown" >&6; } 48747 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 48748 fi 48749 48750 48751 48752 # Check whether --with-ccache-dir was given. 48753 if test "${with_ccache_dir+set}" = set; then : 48754 withval=$with_ccache_dir; 48755 fi 48756 48757 48758 if test "x$with_ccache_dir" != x; then 48759 # When using a non home ccache directory, assume the use is to share ccache files 48760 # with other users. Thus change the umask. 48761 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 48762 if test "x$CCACHE" = x; then 48763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 48764 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 48765 fi 48766 fi 48767 48768 if test "x$CCACHE" != x; then 48769 48770 if test "x$CCACHE" != x; then 48771 # Only use ccache if it is 3.1.4 or later, which supports 48772 # precompiled headers. 48773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 48774 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 48775 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 48776 if test "x$HAS_GOOD_CCACHE" = x; then 48777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 48778 $as_echo "no, disabling ccache" >&6; } 48779 CCACHE= 48780 CCACHE_STATUS="disabled" 48781 else 48782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48783 $as_echo "yes" >&6; } 48784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 48785 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 48786 PUSHED_FLAGS="$CXXFLAGS" 48787 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 48788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48789 /* end confdefs.h. */ 48790 48791 int 48792 main () 48793 { 48794 48795 ; 48796 return 0; 48797 } 48798 _ACEOF 48799 if ac_fn_cxx_try_compile "$LINENO"; then : 48800 CC_KNOWS_CCACHE_TRICK=yes 48801 else 48802 CC_KNOWS_CCACHE_TRICK=no 48803 fi 48804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48805 CXXFLAGS="$PUSHED_FLAGS" 48806 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 48807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48808 $as_echo "yes" >&6; } 48809 else 48810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 48811 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 48812 CCACHE= 48813 CCACHE_STATUS="disabled" 48814 fi 48815 fi 48816 fi 48817 48818 if test "x$CCACHE" != x; then 48819 CCACHE_SLOPPINESS=time_macros 48820 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 48821 CCACHE_FLAGS=-fpch-preprocess 48822 48823 if test "x$SET_CCACHE_DIR" != x; then 48824 mkdir -p $CCACHE_DIR > /dev/null 2>&1 48825 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 48826 fi 48827 fi 48828 48829 fi 48830 48831 48832 ############################################################################### 48833 # 48834 # And now the finish... 48835 # 48836 ############################################################################### 48837 48838 # Check for some common pitfalls 48839 48840 if test x"$OPENJDK_BUILD_OS" = xwindows; then 48841 file_to_test="$SRC_ROOT/LICENSE" 48842 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 48843 as_fn_error $? "Bad file permissions on src files. This is usually caused by cloning the repositories with a non cygwin hg in a directory not created in cygwin." "$LINENO" 5 48844 fi 48845 fi 48846 48847 48848 # Did user specify any unknown variables? 48849 48850 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 48851 # Replace the separating ! with spaces before presenting for end user. 48852 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 48853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 48854 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 48855 fi 48856 48857 48858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 48859 $as_echo_n "checking if build directory is on local disk... " >&6; } 48860 48861 # df -l lists only local disks; if the given directory is not found then 48862 # a non-zero exit code is given 48863 if test "x$DF" = x; then 48864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48865 # msys does not have df; use Windows "net use" instead. 48866 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 48867 if test "x$IS_NETWORK_DISK" = x; then 48868 OUTPUT_DIR_IS_LOCAL="yes" 48869 else 48870 OUTPUT_DIR_IS_LOCAL="no" 48871 fi 48872 else 48873 # No df here, say it's local 48874 OUTPUT_DIR_IS_LOCAL="yes" 48875 fi 48876 else 48877 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 48878 OUTPUT_DIR_IS_LOCAL="yes" 48879 else 48880 OUTPUT_DIR_IS_LOCAL="no" 48881 fi 48882 fi 48883 48884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 48885 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 48886 48887 48888 48889 # Check if the user has any old-style ALT_ variables set. 48890 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 48891 48892 # Before generating output files, test if they exist. If they do, this is a reconfigure. 48893 # Since we can't properly handle the dependencies for this, warn the user about the situation 48894 if test -e $OUTPUT_ROOT/spec.gmk; then 48895 IS_RECONFIGURE=yes 48896 else 48897 IS_RECONFIGURE=no 48898 fi 48899 48900 48901 # At the end, call the custom hook. (Dummy macro if no custom sources available) 48902 48903 48904 # We're messing a bit with internal autoconf variables to put the config.status 48905 # in the output directory instead of the current directory. 48906 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 48907 48908 # Create the actual output files. Now the main work of configure is done. 48909 cat >confcache <<\_ACEOF 48910 # This file is a shell script that caches the results of configure 48911 # tests run on this system so they can be shared between configure 48912 # scripts and configure runs, see configure's option --config-cache. 48913 # It is not useful on other systems. If it contains results you don't 48914 # want to keep, you may remove or edit it. 48915 # 48916 # config.status only pays attention to the cache file if you give it 48917 # the --recheck option to rerun configure. 48918 # 48919 # `ac_cv_env_foo' variables (set or unset) will be overridden when 48920 # loading this file, other *unset* `ac_cv_foo' will be assigned the 48921 # following values. 48922 48923 _ACEOF 48924 48925 # The following way of writing the cache mishandles newlines in values, 48926 # but we know of no workaround that is simple, portable, and efficient. 48927 # So, we kill variables containing newlines. 48928 # Ultrix sh set writes to stderr and can't be redirected directly, 48929 # and sets the high bit in the cache file unless we assign to the vars. 48930 ( 48931 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 48932 eval ac_val=\$$ac_var 48933 case $ac_val in #( 48934 *${as_nl}*) 48935 case $ac_var in #( 48936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 48937 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 48938 esac 48939 case $ac_var in #( 48940 _ | IFS | as_nl) ;; #( 48941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 48942 *) { eval $ac_var=; unset $ac_var;} ;; 48943 esac ;; 48944 esac 48945 done 48946 48947 (set) 2>&1 | 48948 case $as_nl`(ac_space=' '; set) 2>&1` in #( 48949 *${as_nl}ac_space=\ *) 48950 # `set' does not quote correctly, so add quotes: double-quote 48951 # substitution turns \\\\ into \\, and sed turns \\ into \. 48952 sed -n \ 48953 "s/'/'\\\\''/g; 48954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 48955 ;; #( 48956 *) 48957 # `set' quotes correctly as required by POSIX, so do not add quotes. 48958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 48959 ;; 48960 esac | 48961 sort 48962 ) | 48963 sed ' 48964 /^ac_cv_env_/b end 48965 t clear 48966 :clear 48967 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 48968 t end 48969 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 48970 :end' >>confcache 48971 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 48972 if test -w "$cache_file"; then 48973 if test "x$cache_file" != "x/dev/null"; then 48974 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 48975 $as_echo "$as_me: updating cache $cache_file" >&6;} 48976 if test ! -f "$cache_file" || test -h "$cache_file"; then 48977 cat confcache >"$cache_file" 48978 else 48979 case $cache_file in #( 48980 */* | ?:*) 48981 mv -f confcache "$cache_file"$$ && 48982 mv -f "$cache_file"$$ "$cache_file" ;; #( 48983 *) 48984 mv -f confcache "$cache_file" ;; 48985 esac 48986 fi 48987 fi 48988 else 48989 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 48990 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 48991 fi 48992 fi 48993 rm -f confcache 48994 48995 test "x$prefix" = xNONE && prefix=$ac_default_prefix 48996 # Let make expand exec_prefix. 48997 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 48998 48999 DEFS=-DHAVE_CONFIG_H 49000 49001 ac_libobjs= 49002 ac_ltlibobjs= 49003 U= 49004 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 49005 # 1. Remove the extension, and $U if already installed. 49006 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 49007 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 49008 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 49009 # will be set to the directory where LIBOBJS objects are built. 49010 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 49011 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 49012 done 49013 LIBOBJS=$ac_libobjs 49014 49015 LTLIBOBJS=$ac_ltlibobjs 49016 49017 49018 49019 : "${CONFIG_STATUS=./config.status}" 49020 ac_write_fail=0 49021 ac_clean_files_save=$ac_clean_files 49022 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 49023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 49024 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 49025 as_write_fail=0 49026 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 49027 #! $SHELL 49028 # Generated by $as_me. 49029 # Run this file to recreate the current configuration. 49030 # Compiler output produced by configure, useful for debugging 49031 # configure, is in config.log if it exists. 49032 49033 debug=false 49034 ac_cs_recheck=false 49035 ac_cs_silent=false 49036 49037 SHELL=\${CONFIG_SHELL-$SHELL} 49038 export SHELL 49039 _ASEOF 49040 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 49041 ## -------------------- ## 49042 ## M4sh Initialization. ## 49043 ## -------------------- ## 49044 49045 # Be more Bourne compatible 49046 DUALCASE=1; export DUALCASE # for MKS sh 49047 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 49048 emulate sh 49049 NULLCMD=: 49050 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 49051 # is contrary to our usage. Disable this feature. 49052 alias -g '${1+"$@"}'='"$@"' 49053 setopt NO_GLOB_SUBST 49054 else 49055 case `(set -o) 2>/dev/null` in #( 49056 *posix*) : 49057 set -o posix ;; #( 49058 *) : 49059 ;; 49060 esac 49061 fi 49062 49063 49064 as_nl=' 49065 ' 49066 export as_nl 49067 # Printing a long string crashes Solaris 7 /usr/bin/printf. 49068 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 49069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 49070 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49071 # Prefer a ksh shell builtin over an external printf program on Solaris, 49072 # but without wasting forks for bash or zsh. 49073 if test -z "$BASH_VERSION$ZSH_VERSION" \ 49074 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49075 as_echo='print -r --' 49076 as_echo_n='print -rn --' 49077 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 49078 as_echo='printf %s\n' 49079 as_echo_n='printf %s' 49080 else 49081 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 49082 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 49083 as_echo_n='/usr/ucb/echo -n' 49084 else 49085 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 49086 as_echo_n_body='eval 49087 arg=$1; 49088 case $arg in #( 49089 *"$as_nl"*) 49090 expr "X$arg" : "X\\(.*\\)$as_nl"; 49091 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 49092 esac; 49093 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 49094 ' 49095 export as_echo_n_body 49096 as_echo_n='sh -c $as_echo_n_body as_echo' 49097 fi 49098 export as_echo_body 49099 as_echo='sh -c $as_echo_body as_echo' 49100 fi 49101 49102 # The user is always right. 49103 if test "${PATH_SEPARATOR+set}" != set; then 49104 PATH_SEPARATOR=: 49105 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 49106 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 49107 PATH_SEPARATOR=';' 49108 } 49109 fi 49110 49111 49112 # IFS 49113 # We need space, tab and new line, in precisely that order. Quoting is 49114 # there to prevent editors from complaining about space-tab. 49115 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 49116 # splitting by setting IFS to empty value.) 49117 IFS=" "" $as_nl" 49118 49119 # Find who we are. Look in the path if we contain no directory separator. 49120 as_myself= 49121 case $0 in #(( 49122 *[\\/]* ) as_myself=$0 ;; 49123 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49124 for as_dir in $PATH 49125 do 49126 IFS=$as_save_IFS 49127 test -z "$as_dir" && as_dir=. 49128 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 49129 done 49130 IFS=$as_save_IFS 49131 49132 ;; 49133 esac 49134 # We did not find ourselves, most probably we were run as `sh COMMAND' 49135 # in which case we are not to be found in the path. 49136 if test "x$as_myself" = x; then 49137 as_myself=$0 49138 fi 49139 if test ! -f "$as_myself"; then 49140 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 49141 exit 1 49142 fi 49143 49144 # Unset variables that we do not need and which cause bugs (e.g. in 49145 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 49146 # suppresses any "Segmentation fault" message there. '((' could 49147 # trigger a bug in pdksh 5.2.14. 49148 for as_var in BASH_ENV ENV MAIL MAILPATH 49149 do eval test x\${$as_var+set} = xset \ 49150 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 49151 done 49152 PS1='$ ' 49153 PS2='> ' 49154 PS4='+ ' 49155 49156 # NLS nuisances. 49157 LC_ALL=C 49158 export LC_ALL 49159 LANGUAGE=C 49160 export LANGUAGE 49161 49162 # CDPATH. 49163 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 49164 49165 49166 # as_fn_error STATUS ERROR [LINENO LOG_FD] 49167 # ---------------------------------------- 49168 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 49169 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 49170 # script with STATUS, using 1 if that was 0. 49171 as_fn_error () 49172 { 49173 as_status=$1; test $as_status -eq 0 && as_status=1 49174 if test "$4"; then 49175 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 49176 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 49177 fi 49178 $as_echo "$as_me: error: $2" >&2 49179 as_fn_exit $as_status 49180 } # as_fn_error 49181 49182 49183 # as_fn_set_status STATUS 49184 # ----------------------- 49185 # Set $? to STATUS, without forking. 49186 as_fn_set_status () 49187 { 49188 return $1 49189 } # as_fn_set_status 49190 49191 # as_fn_exit STATUS 49192 # ----------------- 49193 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 49194 as_fn_exit () 49195 { 49196 set +e 49197 as_fn_set_status $1 49198 exit $1 49199 } # as_fn_exit 49200 49201 # as_fn_unset VAR 49202 # --------------- 49203 # Portably unset VAR. 49204 as_fn_unset () 49205 { 49206 { eval $1=; unset $1;} 49207 } 49208 as_unset=as_fn_unset 49209 # as_fn_append VAR VALUE 49210 # ---------------------- 49211 # Append the text in VALUE to the end of the definition contained in VAR. Take 49212 # advantage of any shell optimizations that allow amortized linear growth over 49213 # repeated appends, instead of the typical quadratic growth present in naive 49214 # implementations. 49215 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 49216 eval 'as_fn_append () 49217 { 49218 eval $1+=\$2 49219 }' 49220 else 49221 as_fn_append () 49222 { 49223 eval $1=\$$1\$2 49224 } 49225 fi # as_fn_append 49226 49227 # as_fn_arith ARG... 49228 # ------------------ 49229 # Perform arithmetic evaluation on the ARGs, and store the result in the 49230 # global $as_val. Take advantage of shells that can avoid forks. The arguments 49231 # must be portable across $(()) and expr. 49232 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 49233 eval 'as_fn_arith () 49234 { 49235 as_val=$(( $* )) 49236 }' 49237 else 49238 as_fn_arith () 49239 { 49240 as_val=`expr "$@" || test $? -eq 1` 49241 } 49242 fi # as_fn_arith 49243 49244 49245 if expr a : '\(a\)' >/dev/null 2>&1 && 49246 test "X`expr 00001 : '.*\(...\)'`" = X001; then 49247 as_expr=expr 49248 else 49249 as_expr=false 49250 fi 49251 49252 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 49253 as_basename=basename 49254 else 49255 as_basename=false 49256 fi 49257 49258 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 49259 as_dirname=dirname 49260 else 49261 as_dirname=false 49262 fi 49263 49264 as_me=`$as_basename -- "$0" || 49265 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 49266 X"$0" : 'X\(//\)$' \| \ 49267 X"$0" : 'X\(/\)' \| . 2>/dev/null || 49268 $as_echo X/"$0" | 49269 sed '/^.*\/\([^/][^/]*\)\/*$/{ 49270 s//\1/ 49271 q 49272 } 49273 /^X\/\(\/\/\)$/{ 49274 s//\1/ 49275 q 49276 } 49277 /^X\/\(\/\).*/{ 49278 s//\1/ 49279 q 49280 } 49281 s/.*/./; q'` 49282 49283 # Avoid depending upon Character Ranges. 49284 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 49285 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 49286 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 49287 as_cr_digits='0123456789' 49288 as_cr_alnum=$as_cr_Letters$as_cr_digits 49289 49290 ECHO_C= ECHO_N= ECHO_T= 49291 case `echo -n x` in #((((( 49292 -n*) 49293 case `echo 'xy\c'` in 49294 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 49295 xy) ECHO_C='\c';; 49296 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 49297 ECHO_T=' ';; 49298 esac;; 49299 *) 49300 ECHO_N='-n';; 49301 esac 49302 49303 rm -f conf$$ conf$$.exe conf$$.file 49304 if test -d conf$$.dir; then 49305 rm -f conf$$.dir/conf$$.file 49306 else 49307 rm -f conf$$.dir 49308 mkdir conf$$.dir 2>/dev/null 49309 fi 49310 if (echo >conf$$.file) 2>/dev/null; then 49311 if ln -s conf$$.file conf$$ 2>/dev/null; then 49312 as_ln_s='ln -s' 49313 # ... but there are two gotchas: 49314 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 49315 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 49316 # In both cases, we have to default to `cp -pR'. 49317 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 49318 as_ln_s='cp -pR' 49319 elif ln conf$$.file conf$$ 2>/dev/null; then 49320 as_ln_s=ln 49321 else 49322 as_ln_s='cp -pR' 49323 fi 49324 else 49325 as_ln_s='cp -pR' 49326 fi 49327 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 49328 rmdir conf$$.dir 2>/dev/null 49329 49330 49331 # as_fn_mkdir_p 49332 # ------------- 49333 # Create "$as_dir" as a directory, including parents if necessary. 49334 as_fn_mkdir_p () 49335 { 49336 49337 case $as_dir in #( 49338 -*) as_dir=./$as_dir;; 49339 esac 49340 test -d "$as_dir" || eval $as_mkdir_p || { 49341 as_dirs= 49342 while :; do 49343 case $as_dir in #( 49344 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 49345 *) as_qdir=$as_dir;; 49346 esac 49347 as_dirs="'$as_qdir' $as_dirs" 49348 as_dir=`$as_dirname -- "$as_dir" || 49349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 49350 X"$as_dir" : 'X\(//\)[^/]' \| \ 49351 X"$as_dir" : 'X\(//\)$' \| \ 49352 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 49353 $as_echo X"$as_dir" | 49354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 49355 s//\1/ 49356 q 49357 } 49358 /^X\(\/\/\)[^/].*/{ 49359 s//\1/ 49360 q 49361 } 49362 /^X\(\/\/\)$/{ 49363 s//\1/ 49364 q 49365 } 49366 /^X\(\/\).*/{ 49367 s//\1/ 49368 q 49369 } 49370 s/.*/./; q'` 49371 test -d "$as_dir" && break 49372 done 49373 test -z "$as_dirs" || eval "mkdir $as_dirs" 49374 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 49375 49376 49377 } # as_fn_mkdir_p 49378 if mkdir -p . 2>/dev/null; then 49379 as_mkdir_p='mkdir -p "$as_dir"' 49380 else 49381 test -d ./-p && rmdir ./-p 49382 as_mkdir_p=false 49383 fi 49384 49385 49386 # as_fn_executable_p FILE 49387 # ----------------------- 49388 # Test if FILE is an executable regular file. 49389 as_fn_executable_p () 49390 { 49391 test -f "$1" && test -x "$1" 49392 } # as_fn_executable_p 49393 as_test_x='test -x' 49394 as_executable_p=as_fn_executable_p 49395 49396 # Sed expression to map a string onto a valid CPP name. 49397 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 49398 49399 # Sed expression to map a string onto a valid variable name. 49400 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 49401 49402 49403 exec 6>&1 49404 ## ----------------------------------- ## 49405 ## Main body of $CONFIG_STATUS script. ## 49406 ## ----------------------------------- ## 49407 _ASEOF 49408 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 49409 49410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49411 # Save the log message, to keep $0 and so on meaningful, and to 49412 # report actual input values of CONFIG_FILES etc. instead of their 49413 # values after options handling. 49414 ac_log=" 49415 This file was extended by OpenJDK $as_me jdk9, which was 49416 generated by GNU Autoconf 2.69. Invocation command line was 49417 49418 CONFIG_FILES = $CONFIG_FILES 49419 CONFIG_HEADERS = $CONFIG_HEADERS 49420 CONFIG_LINKS = $CONFIG_LINKS 49421 CONFIG_COMMANDS = $CONFIG_COMMANDS 49422 $ $0 $@ 49423 49424 on `(hostname || uname -n) 2>/dev/null | sed 1q` 49425 " 49426 49427 _ACEOF 49428 49429 case $ac_config_files in *" 49430 "*) set x $ac_config_files; shift; ac_config_files=$*;; 49431 esac 49432 49433 case $ac_config_headers in *" 49434 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 49435 esac 49436 49437 49438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49439 # Files that config.status was made for. 49440 config_files="$ac_config_files" 49441 config_headers="$ac_config_headers" 49442 49443 _ACEOF 49444 49445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49446 ac_cs_usage="\ 49447 \`$as_me' instantiates files and other configuration actions 49448 from templates according to the current configuration. Unless the files 49449 and actions are specified as TAGs, all are instantiated by default. 49450 49451 Usage: $0 [OPTION]... [TAG]... 49452 49453 -h, --help print this help, then exit 49454 -V, --version print version number and configuration settings, then exit 49455 --config print configuration, then exit 49456 -q, --quiet, --silent 49457 do not print progress messages 49458 -d, --debug don't remove temporary files 49459 --recheck update $as_me by reconfiguring in the same conditions 49460 --file=FILE[:TEMPLATE] 49461 instantiate the configuration file FILE 49462 --header=FILE[:TEMPLATE] 49463 instantiate the configuration header FILE 49464 49465 Configuration files: 49466 $config_files 49467 49468 Configuration headers: 49469 $config_headers 49470 49471 Report bugs to <build-dev@openjdk.java.net>. 49472 OpenJDK home page: <http://openjdk.java.net>." 49473 49474 _ACEOF 49475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49476 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 49477 ac_cs_version="\\ 49478 OpenJDK config.status jdk9 49479 configured by $0, generated by GNU Autoconf 2.69, 49480 with options \\"\$ac_cs_config\\" 49481 49482 Copyright (C) 2012 Free Software Foundation, Inc. 49483 This config.status script is free software; the Free Software Foundation 49484 gives unlimited permission to copy, distribute and modify it." 49485 49486 ac_pwd='$ac_pwd' 49487 srcdir='$srcdir' 49488 AWK='$AWK' 49489 test -n "\$AWK" || AWK=awk 49490 _ACEOF 49491 49492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49493 # The default lists apply if the user does not specify any file. 49494 ac_need_defaults=: 49495 while test $# != 0 49496 do 49497 case $1 in 49498 --*=?*) 49499 ac_option=`expr "X$1" : 'X\([^=]*\)='` 49500 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 49501 ac_shift=: 49502 ;; 49503 --*=) 49504 ac_option=`expr "X$1" : 'X\([^=]*\)='` 49505 ac_optarg= 49506 ac_shift=: 49507 ;; 49508 *) 49509 ac_option=$1 49510 ac_optarg=$2 49511 ac_shift=shift 49512 ;; 49513 esac 49514 49515 case $ac_option in 49516 # Handling of the options. 49517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 49518 ac_cs_recheck=: ;; 49519 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 49520 $as_echo "$ac_cs_version"; exit ;; 49521 --config | --confi | --conf | --con | --co | --c ) 49522 $as_echo "$ac_cs_config"; exit ;; 49523 --debug | --debu | --deb | --de | --d | -d ) 49524 debug=: ;; 49525 --file | --fil | --fi | --f ) 49526 $ac_shift 49527 case $ac_optarg in 49528 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 49529 '') as_fn_error $? "missing file argument" ;; 49530 esac 49531 as_fn_append CONFIG_FILES " '$ac_optarg'" 49532 ac_need_defaults=false;; 49533 --header | --heade | --head | --hea ) 49534 $ac_shift 49535 case $ac_optarg in 49536 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 49537 esac 49538 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 49539 ac_need_defaults=false;; 49540 --he | --h) 49541 # Conflict between --help and --header 49542 as_fn_error $? "ambiguous option: \`$1' 49543 Try \`$0 --help' for more information.";; 49544 --help | --hel | -h ) 49545 $as_echo "$ac_cs_usage"; exit ;; 49546 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 49547 | -silent | --silent | --silen | --sile | --sil | --si | --s) 49548 ac_cs_silent=: ;; 49549 49550 # This is an error. 49551 -*) as_fn_error $? "unrecognized option: \`$1' 49552 Try \`$0 --help' for more information." ;; 49553 49554 *) as_fn_append ac_config_targets " $1" 49555 ac_need_defaults=false ;; 49556 49557 esac 49558 shift 49559 done 49560 49561 ac_configure_extra_args= 49562 49563 if $ac_cs_silent; then 49564 exec 6>/dev/null 49565 ac_configure_extra_args="$ac_configure_extra_args --silent" 49566 fi 49567 49568 _ACEOF 49569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49570 if \$ac_cs_recheck; then 49571 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 49572 shift 49573 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 49574 CONFIG_SHELL='$SHELL' 49575 export CONFIG_SHELL 49576 exec "\$@" 49577 fi 49578 49579 _ACEOF 49580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49581 exec 5>>config.log 49582 { 49583 echo 49584 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 49585 ## Running $as_me. ## 49586 _ASBOX 49587 $as_echo "$ac_log" 49588 } >&5 49589 49590 _ACEOF 49591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49592 _ACEOF 49593 49594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49595 49596 # Handling of arguments. 49597 for ac_config_target in $ac_config_targets 49598 do 49599 case $ac_config_target in 49600 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 49601 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 49602 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 49603 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 49604 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 49605 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 49606 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 49607 49608 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 49609 esac 49610 done 49611 49612 49613 # If the user did not use the arguments to specify the items to instantiate, 49614 # then the envvar interface is used. Set only those that are not. 49615 # We use the long form for the default assignment because of an extremely 49616 # bizarre bug on SunOS 4.1.3. 49617 if $ac_need_defaults; then 49618 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 49619 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 49620 fi 49621 49622 # Have a temporary directory for convenience. Make it in the build tree 49623 # simply because there is no reason against having it here, and in addition, 49624 # creating and moving files from /tmp can sometimes cause problems. 49625 # Hook for its removal unless debugging. 49626 # Note that there is a small window in which the directory will not be cleaned: 49627 # after its creation but before its name has been assigned to `$tmp'. 49628 $debug || 49629 { 49630 tmp= ac_tmp= 49631 trap 'exit_status=$? 49632 : "${ac_tmp:=$tmp}" 49633 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 49634 ' 0 49635 trap 'as_fn_exit 1' 1 2 13 15 49636 } 49637 # Create a (secure) tmp directory for tmp files. 49638 49639 { 49640 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 49641 test -d "$tmp" 49642 } || 49643 { 49644 tmp=./conf$$-$RANDOM 49645 (umask 077 && mkdir "$tmp") 49646 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 49647 ac_tmp=$tmp 49648 49649 # Set up the scripts for CONFIG_FILES section. 49650 # No need to generate them if there are no CONFIG_FILES. 49651 # This happens for instance with `./config.status config.h'. 49652 if test -n "$CONFIG_FILES"; then 49653 49654 49655 ac_cr=`echo X | tr X '\015'` 49656 # On cygwin, bash can eat \r inside `` if the user requested igncr. 49657 # But we know of no other shell where ac_cr would be empty at this 49658 # point, so we can use a bashism as a fallback. 49659 if test "x$ac_cr" = x; then 49660 eval ac_cr=\$\'\\r\' 49661 fi 49662 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 49663 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 49664 ac_cs_awk_cr='\\r' 49665 else 49666 ac_cs_awk_cr=$ac_cr 49667 fi 49668 49669 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 49670 _ACEOF 49671 49672 49673 { 49674 echo "cat >conf$$subs.awk <<_ACEOF" && 49675 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 49676 echo "_ACEOF" 49677 } >conf$$subs.sh || 49678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 49679 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 49680 ac_delim='%!_!# ' 49681 for ac_last_try in false false false false false :; do 49682 . ./conf$$subs.sh || 49683 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 49684 49685 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 49686 if test $ac_delim_n = $ac_delim_num; then 49687 break 49688 elif $ac_last_try; then 49689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 49690 else 49691 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 49692 fi 49693 done 49694 rm -f conf$$subs.sh 49695 49696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49697 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 49698 _ACEOF 49699 sed -n ' 49700 h 49701 s/^/S["/; s/!.*/"]=/ 49702 p 49703 g 49704 s/^[^!]*!// 49705 :repl 49706 t repl 49707 s/'"$ac_delim"'$// 49708 t delim 49709 :nl 49710 h 49711 s/\(.\{148\}\)..*/\1/ 49712 t more1 49713 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 49714 p 49715 n 49716 b repl 49717 :more1 49718 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 49719 p 49720 g 49721 s/.\{148\}// 49722 t nl 49723 :delim 49724 h 49725 s/\(.\{148\}\)..*/\1/ 49726 t more2 49727 s/["\\]/\\&/g; s/^/"/; s/$/"/ 49728 p 49729 b 49730 :more2 49731 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 49732 p 49733 g 49734 s/.\{148\}// 49735 t delim 49736 ' <conf$$subs.awk | sed ' 49737 /^[^""]/{ 49738 N 49739 s/\n// 49740 } 49741 ' >>$CONFIG_STATUS || ac_write_fail=1 49742 rm -f conf$$subs.awk 49743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49744 _ACAWK 49745 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 49746 for (key in S) S_is_set[key] = 1 49747 FS = "" 49748 49749 } 49750 { 49751 line = $ 0 49752 nfields = split(line, field, "@") 49753 substed = 0 49754 len = length(field[1]) 49755 for (i = 2; i < nfields; i++) { 49756 key = field[i] 49757 keylen = length(key) 49758 if (S_is_set[key]) { 49759 value = S[key] 49760 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 49761 len += length(value) + length(field[++i]) 49762 substed = 1 49763 } else 49764 len += 1 + keylen 49765 } 49766 49767 print line 49768 } 49769 49770 _ACAWK 49771 _ACEOF 49772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49773 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 49774 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 49775 else 49776 cat 49777 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 49778 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 49779 _ACEOF 49780 49781 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 49782 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 49783 # trailing colons and then remove the whole line if VPATH becomes empty 49784 # (actually we leave an empty line to preserve line numbers). 49785 if test "x$srcdir" = x.; then 49786 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 49787 h 49788 s/// 49789 s/^/:/ 49790 s/[ ]*$/:/ 49791 s/:\$(srcdir):/:/g 49792 s/:\${srcdir}:/:/g 49793 s/:@srcdir@:/:/g 49794 s/^:*// 49795 s/:*$// 49796 x 49797 s/\(=[ ]*\).*/\1/ 49798 G 49799 s/\n// 49800 s/^[^=]*=[ ]*$// 49801 }' 49802 fi 49803 49804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49805 fi # test -n "$CONFIG_FILES" 49806 49807 # Set up the scripts for CONFIG_HEADERS section. 49808 # No need to generate them if there are no CONFIG_HEADERS. 49809 # This happens for instance with `./config.status Makefile'. 49810 if test -n "$CONFIG_HEADERS"; then 49811 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 49812 BEGIN { 49813 _ACEOF 49814 49815 # Transform confdefs.h into an awk script `defines.awk', embedded as 49816 # here-document in config.status, that substitutes the proper values into 49817 # config.h.in to produce config.h. 49818 49819 # Create a delimiter string that does not exist in confdefs.h, to ease 49820 # handling of long lines. 49821 ac_delim='%!_!# ' 49822 for ac_last_try in false false :; do 49823 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 49824 if test -z "$ac_tt"; then 49825 break 49826 elif $ac_last_try; then 49827 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 49828 else 49829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 49830 fi 49831 done 49832 49833 # For the awk script, D is an array of macro values keyed by name, 49834 # likewise P contains macro parameters if any. Preserve backslash 49835 # newline sequences. 49836 49837 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 49838 sed -n ' 49839 s/.\{148\}/&'"$ac_delim"'/g 49840 t rset 49841 :rset 49842 s/^[ ]*#[ ]*define[ ][ ]*/ / 49843 t def 49844 d 49845 :def 49846 s/\\$// 49847 t bsnl 49848 s/["\\]/\\&/g 49849 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 49850 D["\1"]=" \3"/p 49851 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 49852 d 49853 :bsnl 49854 s/["\\]/\\&/g 49855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 49856 D["\1"]=" \3\\\\\\n"\\/p 49857 t cont 49858 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 49859 t cont 49860 d 49861 :cont 49862 n 49863 s/.\{148\}/&'"$ac_delim"'/g 49864 t clear 49865 :clear 49866 s/\\$// 49867 t bsnlc 49868 s/["\\]/\\&/g; s/^/"/; s/$/"/p 49869 d 49870 :bsnlc 49871 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 49872 b cont 49873 ' <confdefs.h | sed ' 49874 s/'"$ac_delim"'/"\\\ 49875 "/g' >>$CONFIG_STATUS || ac_write_fail=1 49876 49877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49878 for (key in D) D_is_set[key] = 1 49879 FS = "" 49880 } 49881 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 49882 line = \$ 0 49883 split(line, arg, " ") 49884 if (arg[1] == "#") { 49885 defundef = arg[2] 49886 mac1 = arg[3] 49887 } else { 49888 defundef = substr(arg[1], 2) 49889 mac1 = arg[2] 49890 } 49891 split(mac1, mac2, "(") #) 49892 macro = mac2[1] 49893 prefix = substr(line, 1, index(line, defundef) - 1) 49894 if (D_is_set[macro]) { 49895 # Preserve the white space surrounding the "#". 49896 print prefix "define", macro P[macro] D[macro] 49897 next 49898 } else { 49899 # Replace #undef with comments. This is necessary, for example, 49900 # in the case of _POSIX_SOURCE, which is predefined and required 49901 # on some systems where configure will not decide to define it. 49902 if (defundef == "undef") { 49903 print "/*", prefix defundef, macro, "*/" 49904 next 49905 } 49906 } 49907 } 49908 { print } 49909 _ACAWK 49910 _ACEOF 49911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49912 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 49913 fi # test -n "$CONFIG_HEADERS" 49914 49915 49916 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 49917 shift 49918 for ac_tag 49919 do 49920 case $ac_tag in 49921 :[FHLC]) ac_mode=$ac_tag; continue;; 49922 esac 49923 case $ac_mode$ac_tag in 49924 :[FHL]*:*);; 49925 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 49926 :[FH]-) ac_tag=-:-;; 49927 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 49928 esac 49929 ac_save_IFS=$IFS 49930 IFS=: 49931 set x $ac_tag 49932 IFS=$ac_save_IFS 49933 shift 49934 ac_file=$1 49935 shift 49936 49937 case $ac_mode in 49938 :L) ac_source=$1;; 49939 :[FH]) 49940 ac_file_inputs= 49941 for ac_f 49942 do 49943 case $ac_f in 49944 -) ac_f="$ac_tmp/stdin";; 49945 *) # Look for the file first in the build tree, then in the source tree 49946 # (if the path is not absolute). The absolute path cannot be DOS-style, 49947 # because $ac_f cannot contain `:'. 49948 test -f "$ac_f" || 49949 case $ac_f in 49950 [\\/$]*) false;; 49951 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 49952 esac || 49953 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 49954 esac 49955 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 49956 as_fn_append ac_file_inputs " '$ac_f'" 49957 done 49958 49959 # Let's still pretend it is `configure' which instantiates (i.e., don't 49960 # use $as_me), people would be surprised to read: 49961 # /* config.h. Generated by config.status. */ 49962 configure_input='Generated from '` 49963 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 49964 `' by configure.' 49965 if test x"$ac_file" != x-; then 49966 configure_input="$ac_file. $configure_input" 49967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 49968 $as_echo "$as_me: creating $ac_file" >&6;} 49969 fi 49970 # Neutralize special characters interpreted by sed in replacement strings. 49971 case $configure_input in #( 49972 *\&* | *\|* | *\\* ) 49973 ac_sed_conf_input=`$as_echo "$configure_input" | 49974 sed 's/[\\\\&|]/\\\\&/g'`;; #( 49975 *) ac_sed_conf_input=$configure_input;; 49976 esac 49977 49978 case $ac_tag in 49979 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 49980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 49981 esac 49982 ;; 49983 esac 49984 49985 ac_dir=`$as_dirname -- "$ac_file" || 49986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 49987 X"$ac_file" : 'X\(//\)[^/]' \| \ 49988 X"$ac_file" : 'X\(//\)$' \| \ 49989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 49990 $as_echo X"$ac_file" | 49991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 49992 s//\1/ 49993 q 49994 } 49995 /^X\(\/\/\)[^/].*/{ 49996 s//\1/ 49997 q 49998 } 49999 /^X\(\/\/\)$/{ 50000 s//\1/ 50001 q 50002 } 50003 /^X\(\/\).*/{ 50004 s//\1/ 50005 q 50006 } 50007 s/.*/./; q'` 50008 as_dir="$ac_dir"; as_fn_mkdir_p 50009 ac_builddir=. 50010 50011 case "$ac_dir" in 50012 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 50013 *) 50014 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 50015 # A ".." for each directory in $ac_dir_suffix. 50016 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 50017 case $ac_top_builddir_sub in 50018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 50019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 50020 esac ;; 50021 esac 50022 ac_abs_top_builddir=$ac_pwd 50023 ac_abs_builddir=$ac_pwd$ac_dir_suffix 50024 # for backward compatibility: 50025 ac_top_builddir=$ac_top_build_prefix 50026 50027 case $srcdir in 50028 .) # We are building in place. 50029 ac_srcdir=. 50030 ac_top_srcdir=$ac_top_builddir_sub 50031 ac_abs_top_srcdir=$ac_pwd ;; 50032 [\\/]* | ?:[\\/]* ) # Absolute name. 50033 ac_srcdir=$srcdir$ac_dir_suffix; 50034 ac_top_srcdir=$srcdir 50035 ac_abs_top_srcdir=$srcdir ;; 50036 *) # Relative name. 50037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 50038 ac_top_srcdir=$ac_top_build_prefix$srcdir 50039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 50040 esac 50041 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 50042 50043 50044 case $ac_mode in 50045 :F) 50046 # 50047 # CONFIG_FILE 50048 # 50049 50050 _ACEOF 50051 50052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 50053 # If the template does not know about datarootdir, expand it. 50054 # FIXME: This hack should be removed a few years after 2.60. 50055 ac_datarootdir_hack=; ac_datarootdir_seen= 50056 ac_sed_dataroot=' 50057 /datarootdir/ { 50058 p 50059 q 50060 } 50061 /@datadir@/p 50062 /@docdir@/p 50063 /@infodir@/p 50064 /@localedir@/p 50065 /@mandir@/p' 50066 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 50067 *datarootdir*) ac_datarootdir_seen=yes;; 50068 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 50069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 50070 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 50071 _ACEOF 50072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 50073 ac_datarootdir_hack=' 50074 s&@datadir@&$datadir&g 50075 s&@docdir@&$docdir&g 50076 s&@infodir@&$infodir&g 50077 s&@localedir@&$localedir&g 50078 s&@mandir@&$mandir&g 50079 s&\\\${datarootdir}&$datarootdir&g' ;; 50080 esac 50081 _ACEOF 50082 50083 # Neutralize VPATH when `$srcdir' = `.'. 50084 # Shell code in configure.ac might set extrasub. 50085 # FIXME: do we really want to maintain this feature? 50086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 50087 ac_sed_extra="$ac_vpsub 50088 $extrasub 50089 _ACEOF 50090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 50091 :t 50092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 50093 s|@configure_input@|$ac_sed_conf_input|;t t 50094 s&@top_builddir@&$ac_top_builddir_sub&;t t 50095 s&@top_build_prefix@&$ac_top_build_prefix&;t t 50096 s&@srcdir@&$ac_srcdir&;t t 50097 s&@abs_srcdir@&$ac_abs_srcdir&;t t 50098 s&@top_srcdir@&$ac_top_srcdir&;t t 50099 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 50100 s&@builddir@&$ac_builddir&;t t 50101 s&@abs_builddir@&$ac_abs_builddir&;t t 50102 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 50103 $ac_datarootdir_hack 50104 " 50105 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 50106 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 50107 50108 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 50109 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 50110 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 50111 "$ac_tmp/out"`; test -z "$ac_out"; } && 50112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 50113 which seems to be undefined. Please make sure it is defined" >&5 50114 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 50115 which seems to be undefined. Please make sure it is defined" >&2;} 50116 50117 rm -f "$ac_tmp/stdin" 50118 case $ac_file in 50119 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 50120 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 50121 esac \ 50122 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 50123 ;; 50124 :H) 50125 # 50126 # CONFIG_HEADER 50127 # 50128 if test x"$ac_file" != x-; then 50129 { 50130 $as_echo "/* $configure_input */" \ 50131 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 50132 } >"$ac_tmp/config.h" \ 50133 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 50134 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 50135 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 50136 $as_echo "$as_me: $ac_file is unchanged" >&6;} 50137 else 50138 rm -f "$ac_file" 50139 mv "$ac_tmp/config.h" "$ac_file" \ 50140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 50141 fi 50142 else 50143 $as_echo "/* $configure_input */" \ 50144 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 50145 || as_fn_error $? "could not create -" "$LINENO" 5 50146 fi 50147 ;; 50148 50149 50150 esac 50151 50152 done # for ac_tag 50153 50154 50155 as_fn_exit 0 50156 _ACEOF 50157 ac_clean_files=$ac_clean_files_save 50158 50159 test $ac_write_fail = 0 || 50160 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 50161 50162 50163 # configure is writing to config.log, and then calls config.status. 50164 # config.status does its own redirection, appending to config.log. 50165 # Unfortunately, on DOS this fails, as config.log is still kept open 50166 # by configure, so config.status won't be able to write to it; its 50167 # output is simply discarded. So we exec the FD to /dev/null, 50168 # effectively closing config.log, so it can be properly (re)opened and 50169 # appended to by config.status. When coming back to configure, we 50170 # need to make the FD available again. 50171 if test "$no_create" != yes; then 50172 ac_cs_success=: 50173 ac_config_status_args= 50174 test "$silent" = yes && 50175 ac_config_status_args="$ac_config_status_args --quiet" 50176 exec 5>/dev/null 50177 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 50178 exec 5>>config.log 50179 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 50180 # would make configure fail if this is the last instruction. 50181 $ac_cs_success || as_fn_exit 1 50182 fi 50183 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 50184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 50185 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 50186 fi 50187 50188 50189 # Try to move the config.log file to the output directory. 50190 if test -e ./config.log; then 50191 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 50192 fi 50193 50194 # Make the compare script executable 50195 $CHMOD +x $OUTPUT_ROOT/compare.sh 50196 50197 # Finally output some useful information to the user 50198 50199 # Finally output some useful information to the user 50200 50201 printf "\n" 50202 printf "====================================================\n" 50203 if test "x$no_create" != "xyes"; then 50204 if test "x$IS_RECONFIGURE" != "xyes"; then 50205 printf "A new configuration has been successfully created in\n %s\n" "$OUTPUT_ROOT" 50206 else 50207 printf "The existing configuration has been successfully updated in\n %s\n" "$OUTPUT_ROOT" 50208 fi 50209 else 50210 if test "x$IS_RECONFIGURE" != "xyes"; then 50211 printf "A configuration has been successfully checked but not created\n" 50212 else 50213 printf "The existing configuration has been successfully checked in\n %s\n" "$OUTPUT_ROOT" 50214 fi 50215 fi 50216 if test "x$CONFIGURE_COMMAND_LINE" != x; then 50217 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 50218 else 50219 printf "using default settings.\n" 50220 fi 50221 50222 printf "\n" 50223 printf "Configuration summary:\n" 50224 printf "* Debug level: $DEBUG_LEVEL\n" 50225 printf "* JDK variant: $JDK_VARIANT\n" 50226 printf "* JVM variants: $with_jvm_variants\n" 50227 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 50228 50229 printf "\n" 50230 printf "Tools summary:\n" 50231 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 50232 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 50233 fi 50234 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 50235 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 50236 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 50237 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 50238 50239 printf "\n" 50240 printf "Build performance summary:\n" 50241 printf "* Cores to use: $JOBS\n" 50242 printf "* Memory limit: $MEMORY_SIZE MB\n" 50243 if test "x$CCACHE_STATUS" != "x"; then 50244 printf "* ccache status: $CCACHE_STATUS\n" 50245 fi 50246 printf "\n" 50247 50248 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 50249 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 50250 printf "will result in longer build times.\n" 50251 printf "\n" 50252 fi 50253 50254 if test "x$FOUND_ALT_VARIABLES" != "x"; then 50255 printf "WARNING: You have old-style ALT_ environment variables set.\n" 50256 printf "These are not respected, and will be ignored. It is recommended\n" 50257 printf "that you clean your environment. The following variables are set:\n" 50258 printf "$FOUND_ALT_VARIABLES\n" 50259 printf "\n" 50260 fi 50261 50262 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 50263 printf "WARNING: Your build output directory is not on a local disk.\n" 50264 printf "This will severely degrade build performance!\n" 50265 printf "It is recommended that you create an output directory on a local disk,\n" 50266 printf "and run the configure script again from that directory.\n" 50267 printf "\n" 50268 fi 50269 50270 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 50271 printf "WARNING: The result of this configuration has overridden an older\n" 50272 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 50273 printf "proper build. Failure to do so might result in strange build problems.\n" 50274 printf "\n" 50275 fi 50276 50277 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 50278 printf "WARNING: The result of this configuration was not saved.\n" 50279 printf "You should run without '--no-create | -n' to create the configuration.\n" 50280 printf "\n" 50281 fi 50282