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_LCMS 660 LCMS_LIBS 661 LCMS_CFLAGS 662 USE_EXTERNAL_LIBGIF 663 USE_EXTERNAL_LIBJPEG 664 ALSA_LIBS 665 ALSA_CFLAGS 666 FREETYPE_BUNDLE_LIB_PATH 667 FREETYPE_LIBS 668 FREETYPE_CFLAGS 669 CUPS_CFLAGS 670 X_EXTRA_LIBS 671 X_LIBS 672 X_PRE_LIBS 673 X_CFLAGS 674 XMKMF 675 FIXPATH 676 ZIP_DEBUGINFO_FILES 677 ENABLE_DEBUG_SYMBOLS 678 CFLAGS_WARNINGS_ARE_ERRORS 679 COMPILER_SUPPORTS_TARGET_BITS_FLAG 680 ZERO_ARCHFLAG 681 LDFLAGS_CXX_JDK 682 LDFLAGS_JDKEXE_SUFFIX 683 LDFLAGS_JDKLIB_SUFFIX 684 LDFLAGS_JDKEXE 685 LDFLAGS_JDKLIB 686 CXXFLAGS_JDKEXE 687 CXXFLAGS_JDKLIB 688 CFLAGS_JDKEXE 689 CFLAGS_JDKLIB 690 MACOSX_VERSION_MIN 691 LEGACY_EXTRA_LDFLAGS 692 LEGACY_EXTRA_CXXFLAGS 693 LEGACY_EXTRA_CFLAGS 694 CXX_O_FLAG_NONE 695 CXX_O_FLAG_DEBUG 696 CXX_O_FLAG_NORM 697 CXX_O_FLAG_HI 698 CXX_O_FLAG_HIGHEST 699 C_O_FLAG_NONE 700 C_O_FLAG_DEBUG 701 C_O_FLAG_NORM 702 C_O_FLAG_HI 703 C_O_FLAG_HIGHEST 704 CXXFLAGS_DEBUG_OPTIONS 705 CFLAGS_DEBUG_OPTIONS 706 CXXFLAGS_DEBUG_SYMBOLS 707 CFLAGS_DEBUG_SYMBOLS 708 CXX_FLAG_DEPS 709 C_FLAG_DEPS 710 SET_SHARED_LIBRARY_MAPFILE 711 SET_SHARED_LIBRARY_NAME 712 SET_SHARED_LIBRARY_ORIGIN 713 SET_EXECUTABLE_ORIGIN 714 SHARED_LIBRARY_FLAGS 715 CXX_FLAG_REORDER 716 C_FLAG_REORDER 717 SYSROOT_LDFLAGS 718 SYSROOT_CFLAGS 719 RC_FLAGS 720 AR_OUT_OPTION 721 LD_OUT_OPTION 722 EXE_OUT_OPTION 723 CC_OUT_OPTION 724 POST_MCS_CMD 725 POST_STRIP_CMD 726 ARFLAGS 727 COMPILER_TARGET_BITS_FLAG 728 JT_HOME 729 JTREGEXE 730 USING_BROKEN_SUSE_LD 731 PACKAGE_PATH 732 LDEXECXX 733 LDEXE 734 USE_CLANG 735 HOTSPOT_LD 736 HOTSPOT_CXX 737 HOTSPOT_RC 738 HOTSPOT_MT 739 BUILD_LD 740 BUILD_CXX 741 BUILD_CC 742 ac_ct_OBJDUMP 743 OBJDUMP 744 ac_ct_OBJCOPY 745 OBJCOPY 746 ac_ct_NM 747 ac_ct_STRIP 748 MCS 749 GNM 750 NM 751 STRIP 752 DUMPBIN 753 RC 754 MT 755 LIPO 756 ac_ct_OBJC 757 OBJCFLAGS 758 OBJC 759 ac_ct_AR 760 AR 761 AS 762 LDCXX 763 LD 764 CXXCPP 765 CPP 766 ac_ct_CXX 767 CXXFLAGS 768 CXX 769 ac_ct_PROPER_COMPILER_CXX 770 PROPER_COMPILER_CXX 771 TOOLCHAIN_PATH_CXX 772 POTENTIAL_CXX 773 OBJEXT 774 EXEEXT 775 ac_ct_CC 776 CPPFLAGS 777 LDFLAGS 778 CFLAGS 779 CC 780 ac_ct_PROPER_COMPILER_CC 781 PROPER_COMPILER_CC 782 TOOLCHAIN_PATH_CC 783 POTENTIAL_CC 784 VS_LIB 785 VS_INCLUDE 786 VS_PATH 787 CYGWIN_LINK 788 EXE_SUFFIX 789 OBJ_SUFFIX 790 STATIC_LIBRARY 791 SHARED_LIBRARY 792 STATIC_LIBRARY_SUFFIX 793 SHARED_LIBRARY_SUFFIX 794 LIBRARY_PREFIX 795 TOOLCHAIN_TYPE 796 BUILD_HOTSPOT 797 HOTSPOT_DIST 798 BUILD_OUTPUT 799 OVERRIDE_SRC_ROOT 800 ADD_SRC_ROOT 801 JDK_TOPDIR 802 NASHORN_TOPDIR 803 HOTSPOT_TOPDIR 804 JAXWS_TOPDIR 805 JAXP_TOPDIR 806 CORBA_TOPDIR 807 LANGTOOLS_TOPDIR 808 JAVA_FLAGS_SMALL 809 JAVA_FLAGS_BIG 810 JAVA_FLAGS 811 JAVAC_FLAGS 812 BOOT_JDK_SOURCETARGET 813 JARSIGNER 814 NATIVE2ASCII 815 JAR 816 JAVAH 817 JAVAC 818 JAVA 819 BOOT_JDK 820 BOOT_TOOLSJAR 821 BOOT_RTJAR 822 JAVA_CHECK 823 JAVAC_CHECK 824 COOKED_BUILD_NUMBER 825 JDK_VERSION 826 COPYRIGHT_YEAR 827 MACOSX_BUNDLE_ID_BASE 828 MACOSX_BUNDLE_NAME_BASE 829 COMPANY_NAME 830 JDK_RC_PLATFORM_NAME 831 PRODUCT_SUFFIX 832 PRODUCT_NAME 833 LAUNCHER_NAME 834 MILESTONE 835 JDK_BUILD_NUMBER 836 JDK_UPDATE_VERSION 837 JDK_MICRO_VERSION 838 JDK_MINOR_VERSION 839 JDK_MAJOR_VERSION 840 USER_RELEASE_SUFFIX 841 COMPRESS_JARS 842 RMICONNECTOR_IIOP 843 UNLIMITED_CRYPTO 844 CACERTS_FILE 845 TEST_IN_BUILD 846 BUILD_HEADLESS 847 SUPPORT_HEADFUL 848 SUPPORT_HEADLESS 849 BDEPS_FTP 850 BDEPS_UNZIP 851 OS_VERSION_MICRO 852 OS_VERSION_MINOR 853 OS_VERSION_MAJOR 854 PKG_CONFIG 855 CODESIGN 856 XATTR 857 DSYMUTIL 858 IS_GNU_TIME 859 TIME 860 STAT 861 HG 862 READELF 863 OTOOL 864 LDD 865 ZIP 866 UNZIP 867 FIND_DELETE 868 MAKE 869 CHECK_TOOLSDIR_MAKE 870 CHECK_TOOLSDIR_GMAKE 871 CHECK_MAKE 872 CHECK_GMAKE 873 PKGHANDLER 874 OUTPUT_ROOT 875 CONF_NAME 876 SPEC 877 SDKROOT 878 XCODEBUILD 879 BUILD_VARIANT_RELEASE 880 DEBUG_CLASSFILES 881 FASTDEBUG 882 VARIANT 883 DEBUG_LEVEL 884 MACOSX_UNIVERSAL 885 INCLUDE_SA 886 JVM_VARIANT_CORE 887 JVM_VARIANT_ZEROSHARK 888 JVM_VARIANT_ZERO 889 JVM_VARIANT_KERNEL 890 JVM_VARIANT_MINIMAL1 891 JVM_VARIANT_CLIENT 892 JVM_VARIANT_SERVER 893 JVM_VARIANTS 894 JVM_INTERPRETER 895 JDK_VARIANT 896 SET_OPENJDK 897 BUILD_LOG_WRAPPER 898 BUILD_LOG_PREVIOUS 899 BUILD_LOG 900 TOPDIR 901 PATH_SEP 902 ZERO_ARCHDEF 903 DEFINE_CROSS_COMPILE_ARCH 904 LP64 905 OPENJDK_TARGET_OS_EXPORT_DIR 906 OPENJDK_TARGET_OS_API_DIR 907 OPENJDK_TARGET_CPU_JLI_CFLAGS 908 OPENJDK_TARGET_CPU_OSARCH 909 OPENJDK_TARGET_CPU_ISADIR 910 OPENJDK_TARGET_CPU_LIBDIR 911 OPENJDK_TARGET_CPU_LEGACY_LIB 912 OPENJDK_TARGET_CPU_LEGACY 913 REQUIRED_OS_VERSION 914 REQUIRED_OS_NAME 915 COMPILE_TYPE 916 OPENJDK_TARGET_CPU_ENDIAN 917 OPENJDK_TARGET_CPU_BITS 918 OPENJDK_TARGET_CPU_ARCH 919 OPENJDK_TARGET_CPU 920 OPENJDK_TARGET_OS_API 921 OPENJDK_TARGET_OS 922 OPENJDK_BUILD_CPU_ENDIAN 923 OPENJDK_BUILD_CPU_BITS 924 OPENJDK_BUILD_CPU_ARCH 925 OPENJDK_BUILD_CPU 926 OPENJDK_BUILD_OS_API 927 OPENJDK_BUILD_OS 928 OPENJDK_BUILD_AUTOCONF_NAME 929 OPENJDK_TARGET_AUTOCONF_NAME 930 target_os 931 target_vendor 932 target_cpu 933 target 934 host_os 935 host_vendor 936 host_cpu 937 host 938 build_os 939 build_vendor 940 build_cpu 941 build 942 CPIO 943 SETFILE 944 DF 945 READLINK 946 CYGPATH 947 SED 948 FGREP 949 EGREP 950 GREP 951 AWK 952 XARGS 953 WHICH 954 WC 955 UNIQ 956 UNAME 957 TR 958 TOUCH 959 TEE 960 TAR 961 TAIL 962 SORT 963 SH 964 RM 965 PRINTF 966 NAWK 967 MV 968 MKTEMP 969 MKDIR 970 LS 971 LN 972 HEAD 973 FIND 974 FILE 975 EXPR 976 ECHO 977 DIRNAME 978 DIFF 979 DATE 980 CUT 981 CP 982 COMM 983 CMP 984 CHMOD 985 CAT 986 BASH 987 BASENAME 988 DATE_WHEN_CONFIGURED 989 CONFIGURE_COMMAND_LINE 990 target_alias 991 host_alias 992 build_alias 993 LIBS 994 ECHO_T 995 ECHO_N 996 ECHO_C 997 DEFS 998 mandir 999 localedir 1000 libdir 1001 psdir 1002 pdfdir 1003 dvidir 1004 htmldir 1005 infodir 1006 docdir 1007 oldincludedir 1008 includedir 1009 localstatedir 1010 sharedstatedir 1011 sysconfdir 1012 datadir 1013 datarootdir 1014 libexecdir 1015 sbindir 1016 bindir 1017 program_transform_name 1018 prefix 1019 exec_prefix 1020 PACKAGE_URL 1021 PACKAGE_BUGREPORT 1022 PACKAGE_STRING 1023 PACKAGE_VERSION 1024 PACKAGE_TARNAME 1025 PACKAGE_NAME 1026 PATH_SEPARATOR 1027 SHELL' 1028 ac_subst_files='' 1029 ac_user_opts=' 1030 enable_option_checking 1031 with_target_bits 1032 enable_openjdk_only 1033 with_custom_make_dir 1034 with_jdk_variant 1035 with_jvm_interpreter 1036 with_jvm_variants 1037 enable_debug 1038 with_debug_level 1039 with_devkit 1040 with_sys_root 1041 with_sysroot 1042 with_tools_dir 1043 with_toolchain_path 1044 with_extra_path 1045 with_sdk_name 1046 with_conf_name 1047 with_builddeps_conf 1048 with_builddeps_server 1049 with_builddeps_dir 1050 with_builddeps_group 1051 enable_headful 1052 enable_hotspot_test_in_build 1053 with_cacerts_file 1054 enable_unlimited_crypto 1055 enable_rmiconnector_iiop 1056 with_milestone 1057 with_update_version 1058 with_user_release_suffix 1059 with_build_number 1060 with_boot_jdk 1061 with_boot_jdk_jvmargs 1062 with_add_source_root 1063 with_override_source_root 1064 with_adds_and_overrides 1065 with_override_langtools 1066 with_override_corba 1067 with_override_jaxp 1068 with_override_jaxws 1069 with_override_hotspot 1070 with_override_nashorn 1071 with_override_jdk 1072 with_import_hotspot 1073 with_toolchain_type 1074 with_jtreg 1075 with_extra_cflags 1076 with_extra_cxxflags 1077 with_extra_ldflags 1078 enable_debug_symbols 1079 enable_zip_debug_info 1080 with_x 1081 with_cups 1082 with_cups_include 1083 with_freetype 1084 with_freetype_include 1085 with_freetype_lib 1086 enable_freetype_bundling 1087 with_alsa 1088 with_alsa_include 1089 with_alsa_lib 1090 with_libjpeg 1091 with_giflib 1092 with_lcms 1093 with_libpng 1094 with_zlib 1095 with_stdc__lib 1096 with_msvcr_dll 1097 with_dxsdk 1098 with_dxsdk_lib 1099 with_dxsdk_include 1100 with_num_cores 1101 with_memory_size 1102 with_jobs 1103 with_sjavac_server_java 1104 enable_sjavac 1105 enable_precompiled_headers 1106 enable_ccache 1107 with_ccache_dir 1108 ' 1109 ac_precious_vars='build_alias 1110 host_alias 1111 target_alias 1112 BASENAME 1113 BASH 1114 CAT 1115 CHMOD 1116 CMP 1117 COMM 1118 CP 1119 CUT 1120 DATE 1121 DIFF 1122 DIRNAME 1123 ECHO 1124 EXPR 1125 FILE 1126 FIND 1127 HEAD 1128 LN 1129 LS 1130 MKDIR 1131 MKTEMP 1132 MV 1133 NAWK 1134 PRINTF 1135 RM 1136 SH 1137 SORT 1138 TAIL 1139 TAR 1140 TEE 1141 TOUCH 1142 TR 1143 UNAME 1144 UNIQ 1145 WC 1146 WHICH 1147 XARGS 1148 AWK 1149 GREP 1150 EGREP 1151 FGREP 1152 SED 1153 CYGPATH 1154 READLINK 1155 DF 1156 SETFILE 1157 CPIO 1158 UNZIP 1159 ZIP 1160 LDD 1161 OTOOL 1162 READELF 1163 HG 1164 STAT 1165 TIME 1166 DSYMUTIL 1167 XATTR 1168 CODESIGN 1169 PKG_CONFIG 1170 JAVA 1171 JAVAC 1172 JAVAH 1173 JAR 1174 NATIVE2ASCII 1175 JARSIGNER 1176 CC 1177 CFLAGS 1178 LDFLAGS 1179 LIBS 1180 CPPFLAGS 1181 CXX 1182 CXXFLAGS 1183 CCC 1184 CPP 1185 CXXCPP 1186 AS 1187 AR 1188 OBJC 1189 OBJCFLAGS 1190 LIPO 1191 STRIP 1192 NM 1193 GNM 1194 MCS 1195 OBJCOPY 1196 OBJDUMP 1197 BUILD_CC 1198 BUILD_CXX 1199 BUILD_LD 1200 JTREGEXE 1201 XMKMF 1202 FREETYPE_CFLAGS 1203 FREETYPE_LIBS 1204 ALSA_CFLAGS 1205 ALSA_LIBS 1206 LCMS_CFLAGS 1207 LCMS_LIBS 1208 PNG_CFLAGS 1209 PNG_LIBS 1210 LIBFFI_CFLAGS 1211 LIBFFI_LIBS 1212 CCACHE' 1213 1214 1215 # Initialize some variables set by options. 1216 ac_init_help= 1217 ac_init_version=false 1218 ac_unrecognized_opts= 1219 ac_unrecognized_sep= 1220 # The variables have the same names as the options, with 1221 # dashes changed to underlines. 1222 cache_file=/dev/null 1223 exec_prefix=NONE 1224 no_create= 1225 no_recursion= 1226 prefix=NONE 1227 program_prefix=NONE 1228 program_suffix=NONE 1229 program_transform_name=s,x,x, 1230 silent= 1231 site= 1232 srcdir= 1233 verbose= 1234 x_includes=NONE 1235 x_libraries=NONE 1236 1237 # Installation directory options. 1238 # These are left unexpanded so users can "make install exec_prefix=/foo" 1239 # and all the variables that are supposed to be based on exec_prefix 1240 # by default will actually change. 1241 # Use braces instead of parens because sh, perl, etc. also accept them. 1242 # (The list follows the same order as the GNU Coding Standards.) 1243 bindir='${exec_prefix}/bin' 1244 sbindir='${exec_prefix}/sbin' 1245 libexecdir='${exec_prefix}/libexec' 1246 datarootdir='${prefix}/share' 1247 datadir='${datarootdir}' 1248 sysconfdir='${prefix}/etc' 1249 sharedstatedir='${prefix}/com' 1250 localstatedir='${prefix}/var' 1251 includedir='${prefix}/include' 1252 oldincludedir='/usr/include' 1253 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1254 infodir='${datarootdir}/info' 1255 htmldir='${docdir}' 1256 dvidir='${docdir}' 1257 pdfdir='${docdir}' 1258 psdir='${docdir}' 1259 libdir='${exec_prefix}/lib' 1260 localedir='${datarootdir}/locale' 1261 mandir='${datarootdir}/man' 1262 1263 ac_prev= 1264 ac_dashdash= 1265 for ac_option 1266 do 1267 # If the previous option needs an argument, assign it. 1268 if test -n "$ac_prev"; then 1269 eval $ac_prev=\$ac_option 1270 ac_prev= 1271 continue 1272 fi 1273 1274 case $ac_option in 1275 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1276 *=) ac_optarg= ;; 1277 *) ac_optarg=yes ;; 1278 esac 1279 1280 # Accept the important Cygnus configure options, so we can diagnose typos. 1281 1282 case $ac_dashdash$ac_option in 1283 --) 1284 ac_dashdash=yes ;; 1285 1286 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1287 ac_prev=bindir ;; 1288 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1289 bindir=$ac_optarg ;; 1290 1291 -build | --build | --buil | --bui | --bu) 1292 ac_prev=build_alias ;; 1293 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1294 build_alias=$ac_optarg ;; 1295 1296 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1297 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1298 ac_prev=cache_file ;; 1299 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1300 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1301 cache_file=$ac_optarg ;; 1302 1303 --config-cache | -C) 1304 cache_file=config.cache ;; 1305 1306 -datadir | --datadir | --datadi | --datad) 1307 ac_prev=datadir ;; 1308 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1309 datadir=$ac_optarg ;; 1310 1311 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1312 | --dataroo | --dataro | --datar) 1313 ac_prev=datarootdir ;; 1314 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1315 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1316 datarootdir=$ac_optarg ;; 1317 1318 -disable-* | --disable-*) 1319 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1320 # Reject names that are not valid shell variable names. 1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1322 as_fn_error $? "invalid feature name: $ac_useropt" 1323 ac_useropt_orig=$ac_useropt 1324 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1325 case $ac_user_opts in 1326 *" 1327 "enable_$ac_useropt" 1328 "*) ;; 1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1330 ac_unrecognized_sep=', ';; 1331 esac 1332 eval enable_$ac_useropt=no ;; 1333 1334 -docdir | --docdir | --docdi | --doc | --do) 1335 ac_prev=docdir ;; 1336 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1337 docdir=$ac_optarg ;; 1338 1339 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1340 ac_prev=dvidir ;; 1341 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1342 dvidir=$ac_optarg ;; 1343 1344 -enable-* | --enable-*) 1345 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1346 # Reject names that are not valid shell variable names. 1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1348 as_fn_error $? "invalid feature name: $ac_useropt" 1349 ac_useropt_orig=$ac_useropt 1350 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1351 case $ac_user_opts in 1352 *" 1353 "enable_$ac_useropt" 1354 "*) ;; 1355 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1356 ac_unrecognized_sep=', ';; 1357 esac 1358 eval enable_$ac_useropt=\$ac_optarg ;; 1359 1360 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1361 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1362 | --exec | --exe | --ex) 1363 ac_prev=exec_prefix ;; 1364 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1365 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1366 | --exec=* | --exe=* | --ex=*) 1367 exec_prefix=$ac_optarg ;; 1368 1369 -gas | --gas | --ga | --g) 1370 # Obsolete; use --with-gas. 1371 with_gas=yes ;; 1372 1373 -help | --help | --hel | --he | -h) 1374 ac_init_help=long ;; 1375 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1376 ac_init_help=recursive ;; 1377 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1378 ac_init_help=short ;; 1379 1380 -host | --host | --hos | --ho) 1381 ac_prev=host_alias ;; 1382 -host=* | --host=* | --hos=* | --ho=*) 1383 host_alias=$ac_optarg ;; 1384 1385 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1386 ac_prev=htmldir ;; 1387 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1388 | --ht=*) 1389 htmldir=$ac_optarg ;; 1390 1391 -includedir | --includedir | --includedi | --included | --include \ 1392 | --includ | --inclu | --incl | --inc) 1393 ac_prev=includedir ;; 1394 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1395 | --includ=* | --inclu=* | --incl=* | --inc=*) 1396 includedir=$ac_optarg ;; 1397 1398 -infodir | --infodir | --infodi | --infod | --info | --inf) 1399 ac_prev=infodir ;; 1400 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1401 infodir=$ac_optarg ;; 1402 1403 -libdir | --libdir | --libdi | --libd) 1404 ac_prev=libdir ;; 1405 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1406 libdir=$ac_optarg ;; 1407 1408 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1409 | --libexe | --libex | --libe) 1410 ac_prev=libexecdir ;; 1411 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1412 | --libexe=* | --libex=* | --libe=*) 1413 libexecdir=$ac_optarg ;; 1414 1415 -localedir | --localedir | --localedi | --localed | --locale) 1416 ac_prev=localedir ;; 1417 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1418 localedir=$ac_optarg ;; 1419 1420 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1421 | --localstate | --localstat | --localsta | --localst | --locals) 1422 ac_prev=localstatedir ;; 1423 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1424 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1425 localstatedir=$ac_optarg ;; 1426 1427 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1428 ac_prev=mandir ;; 1429 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1430 mandir=$ac_optarg ;; 1431 1432 -nfp | --nfp | --nf) 1433 # Obsolete; use --without-fp. 1434 with_fp=no ;; 1435 1436 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1437 | --no-cr | --no-c | -n) 1438 no_create=yes ;; 1439 1440 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1441 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1442 no_recursion=yes ;; 1443 1444 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1445 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1446 | --oldin | --oldi | --old | --ol | --o) 1447 ac_prev=oldincludedir ;; 1448 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1449 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1450 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1451 oldincludedir=$ac_optarg ;; 1452 1453 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1454 ac_prev=prefix ;; 1455 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1456 prefix=$ac_optarg ;; 1457 1458 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1459 | --program-pre | --program-pr | --program-p) 1460 ac_prev=program_prefix ;; 1461 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1462 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1463 program_prefix=$ac_optarg ;; 1464 1465 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1466 | --program-suf | --program-su | --program-s) 1467 ac_prev=program_suffix ;; 1468 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1469 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1470 program_suffix=$ac_optarg ;; 1471 1472 -program-transform-name | --program-transform-name \ 1473 | --program-transform-nam | --program-transform-na \ 1474 | --program-transform-n | --program-transform- \ 1475 | --program-transform | --program-transfor \ 1476 | --program-transfo | --program-transf \ 1477 | --program-trans | --program-tran \ 1478 | --progr-tra | --program-tr | --program-t) 1479 ac_prev=program_transform_name ;; 1480 -program-transform-name=* | --program-transform-name=* \ 1481 | --program-transform-nam=* | --program-transform-na=* \ 1482 | --program-transform-n=* | --program-transform-=* \ 1483 | --program-transform=* | --program-transfor=* \ 1484 | --program-transfo=* | --program-transf=* \ 1485 | --program-trans=* | --program-tran=* \ 1486 | --progr-tra=* | --program-tr=* | --program-t=*) 1487 program_transform_name=$ac_optarg ;; 1488 1489 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1490 ac_prev=pdfdir ;; 1491 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1492 pdfdir=$ac_optarg ;; 1493 1494 -psdir | --psdir | --psdi | --psd | --ps) 1495 ac_prev=psdir ;; 1496 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1497 psdir=$ac_optarg ;; 1498 1499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1500 | -silent | --silent | --silen | --sile | --sil) 1501 silent=yes ;; 1502 1503 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1504 ac_prev=sbindir ;; 1505 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1506 | --sbi=* | --sb=*) 1507 sbindir=$ac_optarg ;; 1508 1509 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1510 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1511 | --sharedst | --shareds | --shared | --share | --shar \ 1512 | --sha | --sh) 1513 ac_prev=sharedstatedir ;; 1514 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1515 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1516 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1517 | --sha=* | --sh=*) 1518 sharedstatedir=$ac_optarg ;; 1519 1520 -site | --site | --sit) 1521 ac_prev=site ;; 1522 -site=* | --site=* | --sit=*) 1523 site=$ac_optarg ;; 1524 1525 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1526 ac_prev=srcdir ;; 1527 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1528 srcdir=$ac_optarg ;; 1529 1530 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1531 | --syscon | --sysco | --sysc | --sys | --sy) 1532 ac_prev=sysconfdir ;; 1533 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1534 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1535 sysconfdir=$ac_optarg ;; 1536 1537 -target | --target | --targe | --targ | --tar | --ta | --t) 1538 ac_prev=target_alias ;; 1539 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1540 target_alias=$ac_optarg ;; 1541 1542 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1543 verbose=yes ;; 1544 1545 -version | --version | --versio | --versi | --vers | -V) 1546 ac_init_version=: ;; 1547 1548 -with-* | --with-*) 1549 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 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--with-$ac_useropt_orig" 1560 ac_unrecognized_sep=', ';; 1561 esac 1562 eval with_$ac_useropt=\$ac_optarg ;; 1563 1564 -without-* | --without-*) 1565 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1566 # Reject names that are not valid shell variable names. 1567 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1568 as_fn_error $? "invalid package name: $ac_useropt" 1569 ac_useropt_orig=$ac_useropt 1570 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1571 case $ac_user_opts in 1572 *" 1573 "with_$ac_useropt" 1574 "*) ;; 1575 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1576 ac_unrecognized_sep=', ';; 1577 esac 1578 eval with_$ac_useropt=no ;; 1579 1580 --x) 1581 # Obsolete; use --with-x. 1582 with_x=yes ;; 1583 1584 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1585 | --x-incl | --x-inc | --x-in | --x-i) 1586 ac_prev=x_includes ;; 1587 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1588 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1589 x_includes=$ac_optarg ;; 1590 1591 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1592 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1593 ac_prev=x_libraries ;; 1594 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1595 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1596 x_libraries=$ac_optarg ;; 1597 1598 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1599 Try \`$0 --help' for more information" 1600 ;; 1601 1602 *=*) 1603 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1604 # Reject names that are not valid shell variable names. 1605 case $ac_envvar in #( 1606 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1607 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1608 esac 1609 eval $ac_envvar=\$ac_optarg 1610 export $ac_envvar ;; 1611 1612 *) 1613 # FIXME: should be removed in autoconf 3.0. 1614 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1615 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1616 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1617 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1618 ;; 1619 1620 esac 1621 done 1622 1623 if test -n "$ac_prev"; then 1624 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1625 as_fn_error $? "missing argument to $ac_option" 1626 fi 1627 1628 if test -n "$ac_unrecognized_opts"; then 1629 case $enable_option_checking in 1630 no) ;; 1631 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1632 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1633 esac 1634 fi 1635 1636 # Check all directory arguments for consistency. 1637 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1638 datadir sysconfdir sharedstatedir localstatedir includedir \ 1639 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1640 libdir localedir mandir 1641 do 1642 eval ac_val=\$$ac_var 1643 # Remove trailing slashes. 1644 case $ac_val in 1645 */ ) 1646 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1647 eval $ac_var=\$ac_val;; 1648 esac 1649 # Be sure to have absolute directory names. 1650 case $ac_val in 1651 [\\/$]* | ?:[\\/]* ) continue;; 1652 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1653 esac 1654 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1655 done 1656 1657 # There might be people who depend on the old broken behavior: `$host' 1658 # used to hold the argument of --host etc. 1659 # FIXME: To remove some day. 1660 build=$build_alias 1661 host=$host_alias 1662 target=$target_alias 1663 1664 # FIXME: To remove some day. 1665 if test "x$host_alias" != x; then 1666 if test "x$build_alias" = x; then 1667 cross_compiling=maybe 1668 elif test "x$build_alias" != "x$host_alias"; then 1669 cross_compiling=yes 1670 fi 1671 fi 1672 1673 ac_tool_prefix= 1674 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1675 1676 test "$silent" = yes && exec 6>/dev/null 1677 1678 1679 ac_pwd=`pwd` && test -n "$ac_pwd" && 1680 ac_ls_di=`ls -di .` && 1681 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1682 as_fn_error $? "working directory cannot be determined" 1683 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1684 as_fn_error $? "pwd does not report name of working directory" 1685 1686 1687 # Find the source files, if location was not specified. 1688 if test -z "$srcdir"; then 1689 ac_srcdir_defaulted=yes 1690 # Try the directory containing this script, then the parent directory. 1691 ac_confdir=`$as_dirname -- "$as_myself" || 1692 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1693 X"$as_myself" : 'X\(//\)[^/]' \| \ 1694 X"$as_myself" : 'X\(//\)$' \| \ 1695 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1696 $as_echo X"$as_myself" | 1697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1698 s//\1/ 1699 q 1700 } 1701 /^X\(\/\/\)[^/].*/{ 1702 s//\1/ 1703 q 1704 } 1705 /^X\(\/\/\)$/{ 1706 s//\1/ 1707 q 1708 } 1709 /^X\(\/\).*/{ 1710 s//\1/ 1711 q 1712 } 1713 s/.*/./; q'` 1714 srcdir=$ac_confdir 1715 if test ! -r "$srcdir/$ac_unique_file"; then 1716 srcdir=.. 1717 fi 1718 else 1719 ac_srcdir_defaulted=no 1720 fi 1721 if test ! -r "$srcdir/$ac_unique_file"; then 1722 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1723 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1724 fi 1725 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1726 ac_abs_confdir=`( 1727 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1728 pwd)` 1729 # When building in place, set srcdir=. 1730 if test "$ac_abs_confdir" = "$ac_pwd"; then 1731 srcdir=. 1732 fi 1733 # Remove unnecessary trailing slashes from srcdir. 1734 # Double slashes in file names in object file debugging info 1735 # mess up M-x gdb in Emacs. 1736 case $srcdir in 1737 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1738 esac 1739 for ac_var in $ac_precious_vars; do 1740 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1741 eval ac_env_${ac_var}_value=\$${ac_var} 1742 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1743 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1744 done 1745 1746 # 1747 # Report the --help message. 1748 # 1749 if test "$ac_init_help" = "long"; then 1750 # Omit some internal or obsolete options to make the list less imposing. 1751 # This message is too long to be a string in the A/UX 3.1 sh. 1752 cat <<_ACEOF 1753 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1754 1755 Usage: $0 [OPTION]... [VAR=VALUE]... 1756 1757 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1758 VAR=VALUE. See below for descriptions of some of the useful variables. 1759 1760 Defaults for the options are specified in brackets. 1761 1762 Configuration: 1763 -h, --help display this help and exit 1764 --help=short display options specific to this package 1765 --help=recursive display the short help of all the included packages 1766 -V, --version display version information and exit 1767 -q, --quiet, --silent do not print \`checking ...' messages 1768 --cache-file=FILE cache test results in FILE [disabled] 1769 -C, --config-cache alias for \`--cache-file=config.cache' 1770 -n, --no-create do not create output files 1771 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1772 1773 Installation directories: 1774 --prefix=PREFIX install architecture-independent files in PREFIX 1775 [$ac_default_prefix] 1776 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1777 [PREFIX] 1778 1779 By default, \`make install' will install all the files in 1780 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1781 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1782 for instance \`--prefix=\$HOME'. 1783 1784 For better control, use the options below. 1785 1786 Fine tuning of the installation directories: 1787 --bindir=DIR user executables [EPREFIX/bin] 1788 --sbindir=DIR system admin executables [EPREFIX/sbin] 1789 --libexecdir=DIR program executables [EPREFIX/libexec] 1790 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1791 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1792 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1793 --libdir=DIR object code libraries [EPREFIX/lib] 1794 --includedir=DIR C header files [PREFIX/include] 1795 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1796 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1797 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1798 --infodir=DIR info documentation [DATAROOTDIR/info] 1799 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1800 --mandir=DIR man documentation [DATAROOTDIR/man] 1801 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1802 --htmldir=DIR html documentation [DOCDIR] 1803 --dvidir=DIR dvi documentation [DOCDIR] 1804 --pdfdir=DIR pdf documentation [DOCDIR] 1805 --psdir=DIR ps documentation [DOCDIR] 1806 _ACEOF 1807 1808 cat <<\_ACEOF 1809 1810 X features: 1811 --x-includes=DIR X include files are in DIR 1812 --x-libraries=DIR X library files are in DIR 1813 1814 System types: 1815 --build=BUILD configure for building on BUILD [guessed] 1816 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1817 --target=TARGET configure for building compilers for TARGET [HOST] 1818 _ACEOF 1819 fi 1820 1821 if test -n "$ac_init_help"; then 1822 case $ac_init_help in 1823 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1824 esac 1825 cat <<\_ACEOF 1826 1827 Optional Features: 1828 --disable-option-checking ignore unrecognized --enable/--with options 1829 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1830 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1831 --enable-openjdk-only suppress building custom source even if present 1832 [disabled] 1833 --enable-debug set the debug level to fastdebug (shorthand for 1834 --with-debug-level=fastdebug) [disabled] 1835 --disable-headful disable building headful support (graphical UI 1836 support) [enabled] 1837 --enable-hotspot-test-in-build 1838 run the Queens test after Hotspot build [disabled] 1839 --enable-unlimited-crypto 1840 Enable unlimited crypto policy [disabled] 1841 --enable-rmiconnector-iiop 1842 enable the JMX RMIConnector iiop transport 1843 [disabled] 1844 --disable-debug-symbols disable generation of debug symbols [enabled] 1845 --disable-zip-debug-info 1846 disable zipping of debug-info files [enabled] 1847 --disable-freetype-bundling 1848 disable bundling of the freetype library with the 1849 build result [enabled on Windows or when using 1850 --with-freetype, disabled otherwise] 1851 --enable-sjavac use sjavac to do fast incremental compiles 1852 [disabled] 1853 --disable-precompiled-headers 1854 disable using precompiled headers when compiling C++ 1855 [enabled] 1856 --enable-ccache enable using ccache to speed up recompilations 1857 [disabled] 1858 1859 Optional Packages: 1860 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1861 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1862 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1863 support it), e.g. --with-target-bits=32 [guessed] 1864 --with-custom-make-dir Deprecated. Option is kept for backwards 1865 compatibility and is ignored 1866 --with-jdk-variant JDK variant to build (normal) [normal] 1867 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1868 --with-jvm-variants JVM variants (separated by commas) to build (server, 1869 client, minimal1, kernel, zero, zeroshark, core) 1870 [server] 1871 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1872 optimized (HotSpot build only)) [release] 1873 --with-devkit use this devkit for compilers, tools and resources 1874 --with-sys-root alias for --with-sysroot for backwards compatability 1875 --with-sysroot use this directory as sysroot 1876 --with-tools-dir alias for --with-toolchain-path for backwards 1877 compatibility 1878 --with-toolchain-path prepend these directories when searching for 1879 toolchain binaries (compilers etc) 1880 --with-extra-path prepend these directories to the default path 1881 --with-sdk-name use the platform SDK of the given name. [macosx] 1882 --with-conf-name use this as the name of the configuration [generated 1883 from important configuration options] 1884 --with-builddeps-conf use this configuration file for the builddeps 1885 --with-builddeps-server download and use build dependencies from this server 1886 url 1887 --with-builddeps-dir store downloaded build dependencies here 1888 [/localhome/builddeps] 1889 --with-builddeps-group chgrp the downloaded build dependencies to this 1890 group 1891 --with-cacerts-file specify alternative cacerts file 1892 --with-milestone Set milestone value for build [internal] 1893 --with-update-version Set update version value for build [b00] 1894 --with-user-release-suffix 1895 Add a custom string to the version string if build 1896 number is not set.[username_builddateb00] 1897 --with-build-number Set build number value for build [b00] 1898 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1899 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 1900 invocations of boot JDK, overriding the default 1901 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1902 -enableassertions" 1903 --with-add-source-root for each and every source directory, look in this 1904 additional source root for the same directory; if it 1905 exists and have files in it, include it in the build 1906 --with-override-source-root 1907 for each and every source directory, look in this 1908 override source root for the same directory; if it 1909 exists, use that directory instead and ignore the 1910 directory in the original source root 1911 --with-adds-and-overrides 1912 use the subdirs 'adds' and 'overrides' in the 1913 specified directory as add-source-root and 1914 override-source-root 1915 --with-override-langtools 1916 use this langtools dir for the build 1917 --with-override-corba use this corba dir for the build 1918 --with-override-jaxp use this jaxp dir for the build 1919 --with-override-jaxws use this jaxws dir for the build 1920 --with-override-hotspot use this hotspot dir for the build 1921 --with-override-nashorn use this nashorn dir for the build 1922 --with-override-jdk use this jdk dir for the build 1923 --with-import-hotspot import hotspot binaries from this jdk image or 1924 hotspot build dist dir instead of building from 1925 source 1926 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1927 to show possible values [platform dependent] 1928 --with-jtreg Regression Test Harness [probed] 1929 --with-extra-cflags extra flags to be used when compiling jdk c-files 1930 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1931 --with-extra-ldflags extra flags to be used when linking jdk 1932 --with-x use the X Window System 1933 --with-cups specify prefix directory for the cups package 1934 (expecting the headers under PATH/include) 1935 --with-cups-include specify directory for the cups include files 1936 --with-freetype specify prefix directory for the freetype package 1937 (expecting the libraries under PATH/lib and the 1938 headers under PATH/include) 1939 --with-freetype-include specify directory for the freetype include files 1940 --with-freetype-lib specify directory for the freetype library 1941 --with-alsa specify prefix directory for the alsa package 1942 (expecting the libraries under PATH/lib and the 1943 headers under PATH/include) 1944 --with-alsa-include specify directory for the alsa include files 1945 --with-alsa-lib specify directory for the alsa library 1946 --with-libjpeg use libjpeg from build system or OpenJDK source 1947 (system, bundled) [bundled] 1948 --with-giflib use giflib from build system or OpenJDK source 1949 (system, bundled) [bundled] 1950 --with-lcms use lcms2 from build system or OpenJDK source 1951 (system, bundled) [bundled] 1952 --with-libpng use libpng from build system or OpenJDK source 1953 (system, bundled) [bundled] 1954 --with-zlib use zlib from build system or OpenJDK source 1955 (system, bundled) [bundled] 1956 --with-stdc++lib=<static>,<dynamic>,<default> 1957 force linking of the C++ runtime on Linux to either 1958 static or dynamic, default is static with dynamic as 1959 fallback 1960 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1961 only) [probed] 1962 --with-dxsdk Deprecated. Option is kept for backwards 1963 compatibility and is ignored 1964 --with-dxsdk-lib Deprecated. Option is kept for backwards 1965 compatibility and is ignored 1966 --with-dxsdk-include Deprecated. Option is kept for backwards 1967 compatibility and is ignored 1968 --with-num-cores number of cores in the build system, e.g. 1969 --with-num-cores=8 [probed] 1970 --with-memory-size memory (in MB) available in the build system, e.g. 1971 --with-memory-size=1024 [probed] 1972 --with-jobs number of parallel jobs to let make run [calculated 1973 based on cores and memory] 1974 --with-sjavac-server-java 1975 use this java binary for running the sjavac 1976 background server [Boot JDK java] 1977 --with-ccache-dir where to store ccache files [~/.ccache] 1978 1979 Some influential environment variables: 1980 BASENAME Override default value for BASENAME 1981 BASH Override default value for BASH 1982 CAT Override default value for CAT 1983 CHMOD Override default value for CHMOD 1984 CMP Override default value for CMP 1985 COMM Override default value for COMM 1986 CP Override default value for CP 1987 CUT Override default value for CUT 1988 DATE Override default value for DATE 1989 DIFF Override default value for DIFF 1990 DIRNAME Override default value for DIRNAME 1991 ECHO Override default value for ECHO 1992 EXPR Override default value for EXPR 1993 FILE Override default value for FILE 1994 FIND Override default value for FIND 1995 HEAD Override default value for HEAD 1996 LN Override default value for LN 1997 LS Override default value for LS 1998 MKDIR Override default value for MKDIR 1999 MKTEMP Override default value for MKTEMP 2000 MV Override default value for MV 2001 NAWK Override default value for NAWK 2002 PRINTF Override default value for PRINTF 2003 RM Override default value for RM 2004 SH Override default value for SH 2005 SORT Override default value for SORT 2006 TAIL Override default value for TAIL 2007 TAR Override default value for TAR 2008 TEE Override default value for TEE 2009 TOUCH Override default value for TOUCH 2010 TR Override default value for TR 2011 UNAME Override default value for UNAME 2012 UNIQ Override default value for UNIQ 2013 WC Override default value for WC 2014 WHICH Override default value for WHICH 2015 XARGS Override default value for XARGS 2016 AWK Override default value for AWK 2017 GREP Override default value for GREP 2018 EGREP Override default value for EGREP 2019 FGREP Override default value for FGREP 2020 SED Override default value for SED 2021 CYGPATH Override default value for CYGPATH 2022 READLINK Override default value for READLINK 2023 DF Override default value for DF 2024 SETFILE Override default value for SETFILE 2025 CPIO Override default value for CPIO 2026 UNZIP Override default value for UNZIP 2027 ZIP Override default value for ZIP 2028 LDD Override default value for LDD 2029 OTOOL Override default value for OTOOL 2030 READELF Override default value for READELF 2031 HG Override default value for HG 2032 STAT Override default value for STAT 2033 TIME Override default value for TIME 2034 DSYMUTIL Override default value for DSYMUTIL 2035 XATTR Override default value for XATTR 2036 CODESIGN Override default value for CODESIGN 2037 PKG_CONFIG path to pkg-config utility 2038 JAVA Override default value for JAVA 2039 JAVAC Override default value for JAVAC 2040 JAVAH Override default value for JAVAH 2041 JAR Override default value for JAR 2042 NATIVE2ASCII 2043 Override default value for NATIVE2ASCII 2044 JARSIGNER Override default value for JARSIGNER 2045 CC C compiler command 2046 CFLAGS C compiler flags 2047 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2048 nonstandard directory <lib dir> 2049 LIBS libraries to pass to the linker, e.g. -l<library> 2050 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2051 you have headers in a nonstandard directory <include dir> 2052 CXX C++ compiler command 2053 CXXFLAGS C++ compiler flags 2054 CPP C preprocessor 2055 CXXCPP C++ preprocessor 2056 AS Override default value for AS 2057 AR Override default value for AR 2058 OBJC Objective C compiler command 2059 OBJCFLAGS Objective C compiler flags 2060 LIPO Override default value for LIPO 2061 STRIP Override default value for STRIP 2062 NM Override default value for NM 2063 GNM Override default value for GNM 2064 MCS Override default value for MCS 2065 OBJCOPY Override default value for OBJCOPY 2066 OBJDUMP Override default value for OBJDUMP 2067 BUILD_CC Override default value for BUILD_CC 2068 BUILD_CXX Override default value for BUILD_CXX 2069 BUILD_LD Override default value for BUILD_LD 2070 JTREGEXE Override default value for JTREGEXE 2071 XMKMF Path to xmkmf, Makefile generator for X Window System 2072 FREETYPE_CFLAGS 2073 C compiler flags for FREETYPE, overriding pkg-config 2074 FREETYPE_LIBS 2075 linker flags for FREETYPE, overriding pkg-config 2076 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2077 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2078 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2079 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2080 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2081 PNG_LIBS linker flags for PNG, overriding pkg-config 2082 LIBFFI_CFLAGS 2083 C compiler flags for LIBFFI, overriding pkg-config 2084 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2085 CCACHE Override default value for CCACHE 2086 2087 Use these variables to override the choices made by `configure' or to help 2088 it to find libraries and programs with nonstandard names/locations. 2089 2090 Report bugs to <build-dev@openjdk.java.net>. 2091 OpenJDK home page: <http://openjdk.java.net>. 2092 _ACEOF 2093 ac_status=$? 2094 fi 2095 2096 if test "$ac_init_help" = "recursive"; then 2097 # If there are subdirs, report their specific --help. 2098 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2099 test -d "$ac_dir" || 2100 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2101 continue 2102 ac_builddir=. 2103 2104 case "$ac_dir" in 2105 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2106 *) 2107 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2108 # A ".." for each directory in $ac_dir_suffix. 2109 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2110 case $ac_top_builddir_sub in 2111 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2112 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2113 esac ;; 2114 esac 2115 ac_abs_top_builddir=$ac_pwd 2116 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2117 # for backward compatibility: 2118 ac_top_builddir=$ac_top_build_prefix 2119 2120 case $srcdir in 2121 .) # We are building in place. 2122 ac_srcdir=. 2123 ac_top_srcdir=$ac_top_builddir_sub 2124 ac_abs_top_srcdir=$ac_pwd ;; 2125 [\\/]* | ?:[\\/]* ) # Absolute name. 2126 ac_srcdir=$srcdir$ac_dir_suffix; 2127 ac_top_srcdir=$srcdir 2128 ac_abs_top_srcdir=$srcdir ;; 2129 *) # Relative name. 2130 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2131 ac_top_srcdir=$ac_top_build_prefix$srcdir 2132 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2133 esac 2134 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2135 2136 cd "$ac_dir" || { ac_status=$?; continue; } 2137 # Check for guested configure. 2138 if test -f "$ac_srcdir/configure.gnu"; then 2139 echo && 2140 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2141 elif test -f "$ac_srcdir/configure"; then 2142 echo && 2143 $SHELL "$ac_srcdir/configure" --help=recursive 2144 else 2145 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2146 fi || ac_status=$? 2147 cd "$ac_pwd" || { ac_status=$?; break; } 2148 done 2149 fi 2150 2151 test -n "$ac_init_help" && exit $ac_status 2152 if $ac_init_version; then 2153 cat <<\_ACEOF 2154 OpenJDK configure jdk9 2155 generated by GNU Autoconf 2.69 2156 2157 Copyright (C) 2012 Free Software Foundation, Inc. 2158 This configure script is free software; the Free Software Foundation 2159 gives unlimited permission to copy, distribute and modify it. 2160 _ACEOF 2161 exit 2162 fi 2163 2164 ## ------------------------ ## 2165 ## Autoconf initialization. ## 2166 ## ------------------------ ## 2167 2168 # ac_fn_c_try_compile LINENO 2169 # -------------------------- 2170 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2171 ac_fn_c_try_compile () 2172 { 2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2174 rm -f conftest.$ac_objext 2175 if { { ac_try="$ac_compile" 2176 case "(($ac_try" in 2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2178 *) ac_try_echo=$ac_try;; 2179 esac 2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2181 $as_echo "$ac_try_echo"; } >&5 2182 (eval "$ac_compile") 2>conftest.err 2183 ac_status=$? 2184 if test -s conftest.err; then 2185 grep -v '^ *+' conftest.err >conftest.er1 2186 cat conftest.er1 >&5 2187 mv -f conftest.er1 conftest.err 2188 fi 2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2190 test $ac_status = 0; } && { 2191 test -z "$ac_c_werror_flag" || 2192 test ! -s conftest.err 2193 } && test -s conftest.$ac_objext; then : 2194 ac_retval=0 2195 else 2196 $as_echo "$as_me: failed program was:" >&5 2197 sed 's/^/| /' conftest.$ac_ext >&5 2198 2199 ac_retval=1 2200 fi 2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2202 as_fn_set_status $ac_retval 2203 2204 } # ac_fn_c_try_compile 2205 2206 # ac_fn_cxx_try_compile LINENO 2207 # ---------------------------- 2208 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2209 ac_fn_cxx_try_compile () 2210 { 2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2212 rm -f conftest.$ac_objext 2213 if { { ac_try="$ac_compile" 2214 case "(($ac_try" in 2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2216 *) ac_try_echo=$ac_try;; 2217 esac 2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2219 $as_echo "$ac_try_echo"; } >&5 2220 (eval "$ac_compile") 2>conftest.err 2221 ac_status=$? 2222 if test -s conftest.err; then 2223 grep -v '^ *+' conftest.err >conftest.er1 2224 cat conftest.er1 >&5 2225 mv -f conftest.er1 conftest.err 2226 fi 2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2228 test $ac_status = 0; } && { 2229 test -z "$ac_cxx_werror_flag" || 2230 test ! -s conftest.err 2231 } && test -s conftest.$ac_objext; then : 2232 ac_retval=0 2233 else 2234 $as_echo "$as_me: failed program was:" >&5 2235 sed 's/^/| /' conftest.$ac_ext >&5 2236 2237 ac_retval=1 2238 fi 2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2240 as_fn_set_status $ac_retval 2241 2242 } # ac_fn_cxx_try_compile 2243 2244 # ac_fn_c_try_cpp LINENO 2245 # ---------------------- 2246 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2247 ac_fn_c_try_cpp () 2248 { 2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2250 if { { ac_try="$ac_cpp conftest.$ac_ext" 2251 case "(($ac_try" in 2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2253 *) ac_try_echo=$ac_try;; 2254 esac 2255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2256 $as_echo "$ac_try_echo"; } >&5 2257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2258 ac_status=$? 2259 if test -s conftest.err; then 2260 grep -v '^ *+' conftest.err >conftest.er1 2261 cat conftest.er1 >&5 2262 mv -f conftest.er1 conftest.err 2263 fi 2264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2265 test $ac_status = 0; } > conftest.i && { 2266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2267 test ! -s conftest.err 2268 }; then : 2269 ac_retval=0 2270 else 2271 $as_echo "$as_me: failed program was:" >&5 2272 sed 's/^/| /' conftest.$ac_ext >&5 2273 2274 ac_retval=1 2275 fi 2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2277 as_fn_set_status $ac_retval 2278 2279 } # ac_fn_c_try_cpp 2280 2281 # ac_fn_cxx_try_cpp LINENO 2282 # ------------------------ 2283 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2284 ac_fn_cxx_try_cpp () 2285 { 2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2287 if { { ac_try="$ac_cpp conftest.$ac_ext" 2288 case "(($ac_try" in 2289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2290 *) ac_try_echo=$ac_try;; 2291 esac 2292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2293 $as_echo "$ac_try_echo"; } >&5 2294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2295 ac_status=$? 2296 if test -s conftest.err; then 2297 grep -v '^ *+' conftest.err >conftest.er1 2298 cat conftest.er1 >&5 2299 mv -f conftest.er1 conftest.err 2300 fi 2301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2302 test $ac_status = 0; } > conftest.i && { 2303 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2304 test ! -s conftest.err 2305 }; then : 2306 ac_retval=0 2307 else 2308 $as_echo "$as_me: failed program was:" >&5 2309 sed 's/^/| /' conftest.$ac_ext >&5 2310 2311 ac_retval=1 2312 fi 2313 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2314 as_fn_set_status $ac_retval 2315 2316 } # ac_fn_cxx_try_cpp 2317 2318 # ac_fn_objc_try_compile LINENO 2319 # ----------------------------- 2320 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2321 ac_fn_objc_try_compile () 2322 { 2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2324 rm -f conftest.$ac_objext 2325 if { { ac_try="$ac_compile" 2326 case "(($ac_try" in 2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2328 *) ac_try_echo=$ac_try;; 2329 esac 2330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2331 $as_echo "$ac_try_echo"; } >&5 2332 (eval "$ac_compile") 2>conftest.err 2333 ac_status=$? 2334 if test -s conftest.err; then 2335 grep -v '^ *+' conftest.err >conftest.er1 2336 cat conftest.er1 >&5 2337 mv -f conftest.er1 conftest.err 2338 fi 2339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2340 test $ac_status = 0; } && { 2341 test -z "$ac_objc_werror_flag" || 2342 test ! -s conftest.err 2343 } && test -s conftest.$ac_objext; then : 2344 ac_retval=0 2345 else 2346 $as_echo "$as_me: failed program was:" >&5 2347 sed 's/^/| /' conftest.$ac_ext >&5 2348 2349 ac_retval=1 2350 fi 2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2352 as_fn_set_status $ac_retval 2353 2354 } # ac_fn_objc_try_compile 2355 2356 # ac_fn_c_try_link LINENO 2357 # ----------------------- 2358 # Try to link conftest.$ac_ext, and return whether this succeeded. 2359 ac_fn_c_try_link () 2360 { 2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2362 rm -f conftest.$ac_objext conftest$ac_exeext 2363 if { { ac_try="$ac_link" 2364 case "(($ac_try" in 2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2366 *) ac_try_echo=$ac_try;; 2367 esac 2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2369 $as_echo "$ac_try_echo"; } >&5 2370 (eval "$ac_link") 2>conftest.err 2371 ac_status=$? 2372 if test -s conftest.err; then 2373 grep -v '^ *+' conftest.err >conftest.er1 2374 cat conftest.er1 >&5 2375 mv -f conftest.er1 conftest.err 2376 fi 2377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2378 test $ac_status = 0; } && { 2379 test -z "$ac_c_werror_flag" || 2380 test ! -s conftest.err 2381 } && test -s conftest$ac_exeext && { 2382 test "$cross_compiling" = yes || 2383 test -x conftest$ac_exeext 2384 }; then : 2385 ac_retval=0 2386 else 2387 $as_echo "$as_me: failed program was:" >&5 2388 sed 's/^/| /' conftest.$ac_ext >&5 2389 2390 ac_retval=1 2391 fi 2392 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2393 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2394 # interfere with the next link command; also delete a directory that is 2395 # left behind by Apple's compiler. We do this before executing the actions. 2396 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2398 as_fn_set_status $ac_retval 2399 2400 } # ac_fn_c_try_link 2401 2402 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2403 # --------------------------------------------------------- 2404 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2405 # the include files in INCLUDES and setting the cache variable VAR 2406 # accordingly. 2407 ac_fn_cxx_check_header_mongrel () 2408 { 2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2410 if eval \${$3+:} false; then : 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2412 $as_echo_n "checking for $2... " >&6; } 2413 if eval \${$3+:} false; then : 2414 $as_echo_n "(cached) " >&6 2415 fi 2416 eval ac_res=\$$3 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2418 $as_echo "$ac_res" >&6; } 2419 else 2420 # Is the header compilable? 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2422 $as_echo_n "checking $2 usability... " >&6; } 2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2424 /* end confdefs.h. */ 2425 $4 2426 #include <$2> 2427 _ACEOF 2428 if ac_fn_cxx_try_compile "$LINENO"; then : 2429 ac_header_compiler=yes 2430 else 2431 ac_header_compiler=no 2432 fi 2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2435 $as_echo "$ac_header_compiler" >&6; } 2436 2437 # Is the header present? 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2439 $as_echo_n "checking $2 presence... " >&6; } 2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2441 /* end confdefs.h. */ 2442 #include <$2> 2443 _ACEOF 2444 if ac_fn_cxx_try_cpp "$LINENO"; then : 2445 ac_header_preproc=yes 2446 else 2447 ac_header_preproc=no 2448 fi 2449 rm -f conftest.err conftest.i conftest.$ac_ext 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2451 $as_echo "$ac_header_preproc" >&6; } 2452 2453 # So? What about this header? 2454 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2455 yes:no: ) 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2457 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2459 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2460 ;; 2461 no:yes:* ) 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2463 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2465 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2467 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2469 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2471 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2472 ( $as_echo "## ----------------------------------------- ## 2473 ## Report this to build-dev@openjdk.java.net ## 2474 ## ----------------------------------------- ##" 2475 ) | sed "s/^/$as_me: WARNING: /" >&2 2476 ;; 2477 esac 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2479 $as_echo_n "checking for $2... " >&6; } 2480 if eval \${$3+:} false; then : 2481 $as_echo_n "(cached) " >&6 2482 else 2483 eval "$3=\$ac_header_compiler" 2484 fi 2485 eval ac_res=\$$3 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2487 $as_echo "$ac_res" >&6; } 2488 fi 2489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2490 2491 } # ac_fn_cxx_check_header_mongrel 2492 2493 # ac_fn_cxx_try_run LINENO 2494 # ------------------------ 2495 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2496 # that executables *can* be run. 2497 ac_fn_cxx_try_run () 2498 { 2499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2500 if { { ac_try="$ac_link" 2501 case "(($ac_try" in 2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2503 *) ac_try_echo=$ac_try;; 2504 esac 2505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2506 $as_echo "$ac_try_echo"; } >&5 2507 (eval "$ac_link") 2>&5 2508 ac_status=$? 2509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2510 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2511 { { case "(($ac_try" in 2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2513 *) ac_try_echo=$ac_try;; 2514 esac 2515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2516 $as_echo "$ac_try_echo"; } >&5 2517 (eval "$ac_try") 2>&5 2518 ac_status=$? 2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2520 test $ac_status = 0; }; }; then : 2521 ac_retval=0 2522 else 2523 $as_echo "$as_me: program exited with status $ac_status" >&5 2524 $as_echo "$as_me: failed program was:" >&5 2525 sed 's/^/| /' conftest.$ac_ext >&5 2526 2527 ac_retval=$ac_status 2528 fi 2529 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2531 as_fn_set_status $ac_retval 2532 2533 } # ac_fn_cxx_try_run 2534 2535 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2536 # --------------------------------------------------------- 2537 # Tests whether HEADER exists and can be compiled using the include files in 2538 # INCLUDES, setting the cache variable VAR accordingly. 2539 ac_fn_cxx_check_header_compile () 2540 { 2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2543 $as_echo_n "checking for $2... " >&6; } 2544 if eval \${$3+:} false; then : 2545 $as_echo_n "(cached) " >&6 2546 else 2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2548 /* end confdefs.h. */ 2549 $4 2550 #include <$2> 2551 _ACEOF 2552 if ac_fn_cxx_try_compile "$LINENO"; then : 2553 eval "$3=yes" 2554 else 2555 eval "$3=no" 2556 fi 2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2558 fi 2559 eval ac_res=\$$3 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2561 $as_echo "$ac_res" >&6; } 2562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2563 2564 } # ac_fn_cxx_check_header_compile 2565 2566 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2567 # ---------------------------------------------- 2568 # Tries to find the compile-time value of EXPR in a program that includes 2569 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2570 # computed 2571 ac_fn_cxx_compute_int () 2572 { 2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2574 if test "$cross_compiling" = yes; then 2575 # Depending upon the size, compute the lo and hi bounds. 2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2577 /* end confdefs.h. */ 2578 $4 2579 int 2580 main () 2581 { 2582 static int test_array [1 - 2 * !(($2) >= 0)]; 2583 test_array [0] = 0; 2584 return test_array [0]; 2585 2586 ; 2587 return 0; 2588 } 2589 _ACEOF 2590 if ac_fn_cxx_try_compile "$LINENO"; then : 2591 ac_lo=0 ac_mid=0 2592 while :; do 2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2594 /* end confdefs.h. */ 2595 $4 2596 int 2597 main () 2598 { 2599 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2600 test_array [0] = 0; 2601 return test_array [0]; 2602 2603 ; 2604 return 0; 2605 } 2606 _ACEOF 2607 if ac_fn_cxx_try_compile "$LINENO"; then : 2608 ac_hi=$ac_mid; break 2609 else 2610 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2611 if test $ac_lo -le $ac_mid; then 2612 ac_lo= ac_hi= 2613 break 2614 fi 2615 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2616 fi 2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2618 done 2619 else 2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2621 /* end confdefs.h. */ 2622 $4 2623 int 2624 main () 2625 { 2626 static int test_array [1 - 2 * !(($2) < 0)]; 2627 test_array [0] = 0; 2628 return test_array [0]; 2629 2630 ; 2631 return 0; 2632 } 2633 _ACEOF 2634 if ac_fn_cxx_try_compile "$LINENO"; then : 2635 ac_hi=-1 ac_mid=-1 2636 while :; do 2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2638 /* end confdefs.h. */ 2639 $4 2640 int 2641 main () 2642 { 2643 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2644 test_array [0] = 0; 2645 return test_array [0]; 2646 2647 ; 2648 return 0; 2649 } 2650 _ACEOF 2651 if ac_fn_cxx_try_compile "$LINENO"; then : 2652 ac_lo=$ac_mid; break 2653 else 2654 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2655 if test $ac_mid -le $ac_hi; then 2656 ac_lo= ac_hi= 2657 break 2658 fi 2659 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2660 fi 2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2662 done 2663 else 2664 ac_lo= ac_hi= 2665 fi 2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2667 fi 2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2669 # Binary search between lo and hi bounds. 2670 while test "x$ac_lo" != "x$ac_hi"; do 2671 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2673 /* end confdefs.h. */ 2674 $4 2675 int 2676 main () 2677 { 2678 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2679 test_array [0] = 0; 2680 return test_array [0]; 2681 2682 ; 2683 return 0; 2684 } 2685 _ACEOF 2686 if ac_fn_cxx_try_compile "$LINENO"; then : 2687 ac_hi=$ac_mid 2688 else 2689 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2690 fi 2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2692 done 2693 case $ac_lo in #(( 2694 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2695 '') ac_retval=1 ;; 2696 esac 2697 else 2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2699 /* end confdefs.h. */ 2700 $4 2701 static long int longval () { return $2; } 2702 static unsigned long int ulongval () { return $2; } 2703 #include <stdio.h> 2704 #include <stdlib.h> 2705 int 2706 main () 2707 { 2708 2709 FILE *f = fopen ("conftest.val", "w"); 2710 if (! f) 2711 return 1; 2712 if (($2) < 0) 2713 { 2714 long int i = longval (); 2715 if (i != ($2)) 2716 return 1; 2717 fprintf (f, "%ld", i); 2718 } 2719 else 2720 { 2721 unsigned long int i = ulongval (); 2722 if (i != ($2)) 2723 return 1; 2724 fprintf (f, "%lu", i); 2725 } 2726 /* Do not output a trailing newline, as this causes \r\n confusion 2727 on some platforms. */ 2728 return ferror (f) || fclose (f) != 0; 2729 2730 ; 2731 return 0; 2732 } 2733 _ACEOF 2734 if ac_fn_cxx_try_run "$LINENO"; then : 2735 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2736 else 2737 ac_retval=1 2738 fi 2739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2740 conftest.$ac_objext conftest.beam conftest.$ac_ext 2741 rm -f conftest.val 2742 2743 fi 2744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2745 as_fn_set_status $ac_retval 2746 2747 } # ac_fn_cxx_compute_int 2748 2749 # ac_fn_cxx_try_link LINENO 2750 # ------------------------- 2751 # Try to link conftest.$ac_ext, and return whether this succeeded. 2752 ac_fn_cxx_try_link () 2753 { 2754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2755 rm -f conftest.$ac_objext conftest$ac_exeext 2756 if { { ac_try="$ac_link" 2757 case "(($ac_try" in 2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2759 *) ac_try_echo=$ac_try;; 2760 esac 2761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2762 $as_echo "$ac_try_echo"; } >&5 2763 (eval "$ac_link") 2>conftest.err 2764 ac_status=$? 2765 if test -s conftest.err; then 2766 grep -v '^ *+' conftest.err >conftest.er1 2767 cat conftest.er1 >&5 2768 mv -f conftest.er1 conftest.err 2769 fi 2770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2771 test $ac_status = 0; } && { 2772 test -z "$ac_cxx_werror_flag" || 2773 test ! -s conftest.err 2774 } && test -s conftest$ac_exeext && { 2775 test "$cross_compiling" = yes || 2776 test -x conftest$ac_exeext 2777 }; then : 2778 ac_retval=0 2779 else 2780 $as_echo "$as_me: failed program was:" >&5 2781 sed 's/^/| /' conftest.$ac_ext >&5 2782 2783 ac_retval=1 2784 fi 2785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2787 # interfere with the next link command; also delete a directory that is 2788 # left behind by Apple's compiler. We do this before executing the actions. 2789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2791 as_fn_set_status $ac_retval 2792 2793 } # ac_fn_cxx_try_link 2794 2795 # ac_fn_cxx_check_func LINENO FUNC VAR 2796 # ------------------------------------ 2797 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2798 ac_fn_cxx_check_func () 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 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2809 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2810 #define $2 innocuous_$2 2811 2812 /* System header to define __stub macros and hopefully few prototypes, 2813 which can conflict with char $2 (); below. 2814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2815 <limits.h> exists even on freestanding compilers. */ 2816 2817 #ifdef __STDC__ 2818 # include <limits.h> 2819 #else 2820 # include <assert.h> 2821 #endif 2822 2823 #undef $2 2824 2825 /* Override any GCC internal prototype to avoid an error. 2826 Use char because int might match the return type of a GCC 2827 builtin and then its argument prototype would still apply. */ 2828 #ifdef __cplusplus 2829 extern "C" 2830 #endif 2831 char $2 (); 2832 /* The GNU C library defines this for functions which it implements 2833 to always fail with ENOSYS. Some functions are actually named 2834 something starting with __ and the normal name is an alias. */ 2835 #if defined __stub_$2 || defined __stub___$2 2836 choke me 2837 #endif 2838 2839 int 2840 main () 2841 { 2842 return $2 (); 2843 ; 2844 return 0; 2845 } 2846 _ACEOF 2847 if ac_fn_cxx_try_link "$LINENO"; then : 2848 eval "$3=yes" 2849 else 2850 eval "$3=no" 2851 fi 2852 rm -f core conftest.err conftest.$ac_objext \ 2853 conftest$ac_exeext conftest.$ac_ext 2854 fi 2855 eval ac_res=\$$3 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2857 $as_echo "$ac_res" >&6; } 2858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2859 2860 } # ac_fn_cxx_check_func 2861 2862 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2863 # ------------------------------------------------------- 2864 # Tests whether HEADER exists and can be compiled using the include files in 2865 # INCLUDES, setting the cache variable VAR accordingly. 2866 ac_fn_c_check_header_compile () 2867 { 2868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2870 $as_echo_n "checking for $2... " >&6; } 2871 if eval \${$3+:} false; then : 2872 $as_echo_n "(cached) " >&6 2873 else 2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2875 /* end confdefs.h. */ 2876 $4 2877 #include <$2> 2878 _ACEOF 2879 if ac_fn_c_try_compile "$LINENO"; then : 2880 eval "$3=yes" 2881 else 2882 eval "$3=no" 2883 fi 2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2885 fi 2886 eval ac_res=\$$3 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2888 $as_echo "$ac_res" >&6; } 2889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2890 2891 } # ac_fn_c_check_header_compile 2892 cat >config.log <<_ACEOF 2893 This file contains any messages produced by compilers while 2894 running configure, to aid debugging if configure makes a mistake. 2895 2896 It was created by OpenJDK $as_me jdk9, which was 2897 generated by GNU Autoconf 2.69. Invocation command line was 2898 2899 $ $0 $@ 2900 2901 _ACEOF 2902 exec 5>>config.log 2903 { 2904 cat <<_ASUNAME 2905 ## --------- ## 2906 ## Platform. ## 2907 ## --------- ## 2908 2909 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2910 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2911 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2912 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2913 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2914 2915 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2916 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2917 2918 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2919 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2920 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2921 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2922 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2923 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2924 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2925 2926 _ASUNAME 2927 2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2929 for as_dir in $PATH 2930 do 2931 IFS=$as_save_IFS 2932 test -z "$as_dir" && as_dir=. 2933 $as_echo "PATH: $as_dir" 2934 done 2935 IFS=$as_save_IFS 2936 2937 } >&5 2938 2939 cat >&5 <<_ACEOF 2940 2941 2942 ## ----------- ## 2943 ## Core tests. ## 2944 ## ----------- ## 2945 2946 _ACEOF 2947 2948 2949 # Keep a trace of the command line. 2950 # Strip out --no-create and --no-recursion so they do not pile up. 2951 # Strip out --silent because we don't want to record it for future runs. 2952 # Also quote any args containing shell meta-characters. 2953 # Make two passes to allow for proper duplicate-argument suppression. 2954 ac_configure_args= 2955 ac_configure_args0= 2956 ac_configure_args1= 2957 ac_must_keep_next=false 2958 for ac_pass in 1 2 2959 do 2960 for ac_arg 2961 do 2962 case $ac_arg in 2963 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2965 | -silent | --silent | --silen | --sile | --sil) 2966 continue ;; 2967 *\'*) 2968 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2969 esac 2970 case $ac_pass in 2971 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2972 2) 2973 as_fn_append ac_configure_args1 " '$ac_arg'" 2974 if test $ac_must_keep_next = true; then 2975 ac_must_keep_next=false # Got value, back to normal. 2976 else 2977 case $ac_arg in 2978 *=* | --config-cache | -C | -disable-* | --disable-* \ 2979 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2980 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2981 | -with-* | --with-* | -without-* | --without-* | --x) 2982 case "$ac_configure_args0 " in 2983 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2984 esac 2985 ;; 2986 -* ) ac_must_keep_next=true ;; 2987 esac 2988 fi 2989 as_fn_append ac_configure_args " '$ac_arg'" 2990 ;; 2991 esac 2992 done 2993 done 2994 { ac_configure_args0=; unset ac_configure_args0;} 2995 { ac_configure_args1=; unset ac_configure_args1;} 2996 2997 # When interrupted or exit'd, cleanup temporary files, and complete 2998 # config.log. We remove comments because anyway the quotes in there 2999 # would cause problems or look ugly. 3000 # WARNING: Use '\'' to represent an apostrophe within the trap. 3001 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3002 trap 'exit_status=$? 3003 # Save into config.log some information that might help in debugging. 3004 { 3005 echo 3006 3007 $as_echo "## ---------------- ## 3008 ## Cache variables. ## 3009 ## ---------------- ##" 3010 echo 3011 # The following way of writing the cache mishandles newlines in values, 3012 ( 3013 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3014 eval ac_val=\$$ac_var 3015 case $ac_val in #( 3016 *${as_nl}*) 3017 case $ac_var in #( 3018 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3020 esac 3021 case $ac_var in #( 3022 _ | IFS | as_nl) ;; #( 3023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3024 *) { eval $ac_var=; unset $ac_var;} ;; 3025 esac ;; 3026 esac 3027 done 3028 (set) 2>&1 | 3029 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3030 *${as_nl}ac_space=\ *) 3031 sed -n \ 3032 "s/'\''/'\''\\\\'\'''\''/g; 3033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3034 ;; #( 3035 *) 3036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3037 ;; 3038 esac | 3039 sort 3040 ) 3041 echo 3042 3043 $as_echo "## ----------------- ## 3044 ## Output variables. ## 3045 ## ----------------- ##" 3046 echo 3047 for ac_var in $ac_subst_vars 3048 do 3049 eval ac_val=\$$ac_var 3050 case $ac_val in 3051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3052 esac 3053 $as_echo "$ac_var='\''$ac_val'\''" 3054 done | sort 3055 echo 3056 3057 if test -n "$ac_subst_files"; then 3058 $as_echo "## ------------------- ## 3059 ## File substitutions. ## 3060 ## ------------------- ##" 3061 echo 3062 for ac_var in $ac_subst_files 3063 do 3064 eval ac_val=\$$ac_var 3065 case $ac_val in 3066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3067 esac 3068 $as_echo "$ac_var='\''$ac_val'\''" 3069 done | sort 3070 echo 3071 fi 3072 3073 if test -s confdefs.h; then 3074 $as_echo "## ----------- ## 3075 ## confdefs.h. ## 3076 ## ----------- ##" 3077 echo 3078 cat confdefs.h 3079 echo 3080 fi 3081 test "$ac_signal" != 0 && 3082 $as_echo "$as_me: caught signal $ac_signal" 3083 $as_echo "$as_me: exit $exit_status" 3084 } >&5 3085 rm -f core *.core core.conftest.* && 3086 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3087 exit $exit_status 3088 ' 0 3089 for ac_signal in 1 2 13 15; do 3090 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3091 done 3092 ac_signal=0 3093 3094 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3095 rm -f -r conftest* confdefs.h 3096 3097 $as_echo "/* confdefs.h */" > confdefs.h 3098 3099 # Predefined preprocessor variables. 3100 3101 cat >>confdefs.h <<_ACEOF 3102 #define PACKAGE_NAME "$PACKAGE_NAME" 3103 _ACEOF 3104 3105 cat >>confdefs.h <<_ACEOF 3106 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3107 _ACEOF 3108 3109 cat >>confdefs.h <<_ACEOF 3110 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3111 _ACEOF 3112 3113 cat >>confdefs.h <<_ACEOF 3114 #define PACKAGE_STRING "$PACKAGE_STRING" 3115 _ACEOF 3116 3117 cat >>confdefs.h <<_ACEOF 3118 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3119 _ACEOF 3120 3121 cat >>confdefs.h <<_ACEOF 3122 #define PACKAGE_URL "$PACKAGE_URL" 3123 _ACEOF 3124 3125 3126 # Let the site file select an alternate cache file if it wants to. 3127 # Prefer an explicitly selected file to automatically selected ones. 3128 ac_site_file1=NONE 3129 ac_site_file2=NONE 3130 if test -n "$CONFIG_SITE"; then 3131 # We do not want a PATH search for config.site. 3132 case $CONFIG_SITE in #(( 3133 -*) ac_site_file1=./$CONFIG_SITE;; 3134 */*) ac_site_file1=$CONFIG_SITE;; 3135 *) ac_site_file1=./$CONFIG_SITE;; 3136 esac 3137 elif test "x$prefix" != xNONE; then 3138 ac_site_file1=$prefix/share/config.site 3139 ac_site_file2=$prefix/etc/config.site 3140 else 3141 ac_site_file1=$ac_default_prefix/share/config.site 3142 ac_site_file2=$ac_default_prefix/etc/config.site 3143 fi 3144 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3145 do 3146 test "x$ac_site_file" = xNONE && continue 3147 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3149 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3150 sed 's/^/| /' "$ac_site_file" >&5 3151 . "$ac_site_file" \ 3152 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3154 as_fn_error $? "failed to load site script $ac_site_file 3155 See \`config.log' for more details" "$LINENO" 5; } 3156 fi 3157 done 3158 3159 if test -r "$cache_file"; then 3160 # Some versions of bash will fail to source /dev/null (special files 3161 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3162 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3164 $as_echo "$as_me: loading cache $cache_file" >&6;} 3165 case $cache_file in 3166 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3167 *) . "./$cache_file";; 3168 esac 3169 fi 3170 else 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3172 $as_echo "$as_me: creating cache $cache_file" >&6;} 3173 >$cache_file 3174 fi 3175 3176 # Check that the precious variables saved in the cache have kept the same 3177 # value. 3178 ac_cache_corrupted=false 3179 for ac_var in $ac_precious_vars; do 3180 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3181 eval ac_new_set=\$ac_env_${ac_var}_set 3182 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3183 eval ac_new_val=\$ac_env_${ac_var}_value 3184 case $ac_old_set,$ac_new_set in 3185 set,) 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3187 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3188 ac_cache_corrupted=: ;; 3189 ,set) 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3191 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3192 ac_cache_corrupted=: ;; 3193 ,);; 3194 *) 3195 if test "x$ac_old_val" != "x$ac_new_val"; then 3196 # differences in whitespace do not lead to failure. 3197 ac_old_val_w=`echo x $ac_old_val` 3198 ac_new_val_w=`echo x $ac_new_val` 3199 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3201 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3202 ac_cache_corrupted=: 3203 else 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3205 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3206 eval $ac_var=\$ac_old_val 3207 fi 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3209 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3211 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3212 fi;; 3213 esac 3214 # Pass precious variables to config.status. 3215 if test "$ac_new_set" = set; then 3216 case $ac_new_val in 3217 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3218 *) ac_arg=$ac_var=$ac_new_val ;; 3219 esac 3220 case " $ac_configure_args " in 3221 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3222 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3223 esac 3224 fi 3225 done 3226 if $ac_cache_corrupted; then 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3230 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3231 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3232 fi 3233 ## -------------------- ## 3234 ## Main body of script. ## 3235 ## -------------------- ## 3236 3237 ac_ext=c 3238 ac_cpp='$CPP $CPPFLAGS' 3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3242 3243 3244 3245 ac_aux_dir= 3246 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3247 if test -f "$ac_dir/install-sh"; then 3248 ac_aux_dir=$ac_dir 3249 ac_install_sh="$ac_aux_dir/install-sh -c" 3250 break 3251 elif test -f "$ac_dir/install.sh"; then 3252 ac_aux_dir=$ac_dir 3253 ac_install_sh="$ac_aux_dir/install.sh -c" 3254 break 3255 elif test -f "$ac_dir/shtool"; then 3256 ac_aux_dir=$ac_dir 3257 ac_install_sh="$ac_aux_dir/shtool install -c" 3258 break 3259 fi 3260 done 3261 if test -z "$ac_aux_dir"; then 3262 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 3263 fi 3264 3265 # These three variables are undocumented and unsupported, 3266 # and are intended to be withdrawn in a future Autoconf release. 3267 # They can cause serious problems if a builder's source tree is in a directory 3268 # whose full name contains unusual characters. 3269 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3270 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3271 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3272 3273 3274 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3275 3276 # 3277 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3278 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3279 # 3280 # This code is free software; you can redistribute it and/or modify it 3281 # under the terms of the GNU General Public License version 2 only, as 3282 # published by the Free Software Foundation. Oracle designates this 3283 # particular file as subject to the "Classpath" exception as provided 3284 # by Oracle in the LICENSE file that accompanied this code. 3285 # 3286 # This code is distributed in the hope that it will be useful, but WITHOUT 3287 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3288 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3289 # version 2 for more details (a copy is included in the LICENSE file that 3290 # accompanied this code). 3291 # 3292 # You should have received a copy of the GNU General Public License version 3293 # 2 along with this work; if not, write to the Free Software Foundation, 3294 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3295 # 3296 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3297 # or visit www.oracle.com if you need additional information or have any 3298 # questions. 3299 # 3300 3301 # 3302 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3303 # 3304 # This program is free software; you can redistribute it and/or modify 3305 # it under the terms of the GNU General Public License as published by 3306 # the Free Software Foundation; either version 2 of the License, or 3307 # (at your option) any later version. 3308 # 3309 # This program is distributed in the hope that it will be useful, but 3310 # WITHOUT ANY WARRANTY; without even the implied warranty of 3311 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3312 # General Public License for more details. 3313 # 3314 # You should have received a copy of the GNU General Public License 3315 # along with this program; if not, write to the Free Software 3316 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3317 # 3318 # As a special exception to the GNU General Public License, if you 3319 # distribute this file as part of a program that contains a 3320 # configuration script generated by Autoconf, you may include it under 3321 # the same distribution terms that you use for the rest of that program. 3322 3323 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3324 # ---------------------------------- 3325 # PKG_PROG_PKG_CONFIG 3326 3327 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3328 # 3329 # Check to see whether a particular set of modules exists. Similar 3330 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3331 # 3332 # 3333 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3334 # this or PKG_CHECK_MODULES is called, or make sure to call 3335 # PKG_CHECK_EXISTS manually 3336 # -------------------------------------------------------------- 3337 3338 3339 3340 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3341 # --------------------------------------------- 3342 # _PKG_CONFIG 3343 3344 # _PKG_SHORT_ERRORS_SUPPORTED 3345 # ----------------------------- 3346 # _PKG_SHORT_ERRORS_SUPPORTED 3347 3348 3349 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3350 # [ACTION-IF-NOT-FOUND]) 3351 # 3352 # 3353 # Note that if there is a possibility the first call to 3354 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3355 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3356 # 3357 # 3358 # -------------------------------------------------------------- 3359 # PKG_CHECK_MODULES 3360 3361 3362 # Include these first... 3363 # 3364 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3365 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3366 # 3367 # This code is free software; you can redistribute it and/or modify it 3368 # under the terms of the GNU General Public License version 2 only, as 3369 # published by the Free Software Foundation. Oracle designates this 3370 # particular file as subject to the "Classpath" exception as provided 3371 # by Oracle in the LICENSE file that accompanied this code. 3372 # 3373 # This code is distributed in the hope that it will be useful, but WITHOUT 3374 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3375 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3376 # version 2 for more details (a copy is included in the LICENSE file that 3377 # accompanied this code). 3378 # 3379 # You should have received a copy of the GNU General Public License version 3380 # 2 along with this work; if not, write to the Free Software Foundation, 3381 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3382 # 3383 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3384 # or visit www.oracle.com if you need additional information or have any 3385 # questions. 3386 # 3387 3388 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3389 # If so, then append $1 to $2 \ 3390 # Also set JVM_ARG_OK to true/false depending on outcome. 3391 3392 3393 # Appends a string to a path variable, only adding the : when needed. 3394 3395 3396 # Prepends a string to a path variable, only adding the : when needed. 3397 3398 3399 # This will make sure the given variable points to a full and proper 3400 # path. This means: 3401 # 1) There will be no spaces in the path. On posix platforms, 3402 # spaces in the path will result in an error. On Windows, 3403 # the path will be rewritten using short-style to be space-free. 3404 # 2) The path will be absolute, and it will be in unix-style (on 3405 # cygwin). 3406 # $1: The name of the variable to fix 3407 3408 3409 # This will make sure the given variable points to a executable 3410 # with a full and proper path. This means: 3411 # 1) There will be no spaces in the path. On posix platforms, 3412 # spaces in the path will result in an error. On Windows, 3413 # the path will be rewritten using short-style to be space-free. 3414 # 2) The path will be absolute, and it will be in unix-style (on 3415 # cygwin). 3416 # Any arguments given to the executable is preserved. 3417 # If the input variable does not have a directory specification, then 3418 # it need to be in the PATH. 3419 # $1: The name of the variable to fix 3420 3421 3422 3423 3424 # Register a --with argument but mark it as deprecated 3425 # $1: The name of the with argument to deprecate, not including --with- 3426 3427 3428 # Register a --enable argument but mark it as deprecated 3429 # $1: The name of the with argument to deprecate, not including --enable- 3430 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3431 3432 3433 3434 3435 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3436 # $1: variable to check 3437 3438 3439 # Check that there are no unprocessed overridden variables left. 3440 # If so, they are an incorrect argument and we will exit with an error. 3441 3442 3443 # Setup a tool for the given variable. If correctly specified by the user, 3444 # use that value, otherwise search for the tool using the supplied code snippet. 3445 # $1: variable to set 3446 # $2: code snippet to call to look for the tool 3447 3448 3449 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3450 # $1: variable to set 3451 # $2: executable name (or list of names) to look for 3452 3453 3454 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3455 # $1: variable to set 3456 # $2: executable name (or list of names) to look for 3457 3458 3459 # Like BASIC_PATH_PROGS but fails if no tool was found. 3460 # $1: variable to set 3461 # $2: executable name (or list of names) to look for 3462 3463 3464 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3465 # $1: variable to set 3466 # $2: autoconf macro to call to look for the special tool 3467 3468 3469 # Setup the most fundamental tools that relies on not much else to set up, 3470 # but is used by much of the early bootstrap code. 3471 3472 3473 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 #%%% Simple tools %%% 3484 3485 # Check if we have found a usable version of make 3486 # $1: the path to a potential make binary (or empty) 3487 # $2: the description on how we found this 3488 3489 3490 # Goes looking for a usable version of GNU make. 3491 3492 3493 3494 3495 3496 3497 # Check if build directory is on local disk. If not possible to determine, 3498 # we prefer to claim it's local. 3499 # Argument 1: directory to test 3500 # Argument 2: what to do if it is on local disk 3501 # Argument 3: what to do otherwise (remote disk or failure) 3502 3503 3504 # Check that source files have basic read permissions set. This might 3505 # not be the case in cygwin in certain conditions. 3506 3507 3508 3509 3510 # 3511 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3512 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3513 # 3514 # This code is free software; you can redistribute it and/or modify it 3515 # under the terms of the GNU General Public License version 2 only, as 3516 # published by the Free Software Foundation. Oracle designates this 3517 # particular file as subject to the "Classpath" exception as provided 3518 # by Oracle in the LICENSE file that accompanied this code. 3519 # 3520 # This code is distributed in the hope that it will be useful, but WITHOUT 3521 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3522 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3523 # version 2 for more details (a copy is included in the LICENSE file that 3524 # accompanied this code). 3525 # 3526 # You should have received a copy of the GNU General Public License version 3527 # 2 along with this work; if not, write to the Free Software Foundation, 3528 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3529 # 3530 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3531 # or visit www.oracle.com if you need additional information or have any 3532 # questions. 3533 # 3534 3535 3536 3537 3538 3539 # Helper function which possibly converts a path using DOS-style short mode. 3540 # If so, the updated path is stored in $new_path. 3541 # $1: The path to check 3542 3543 3544 # Helper function which possibly converts a path using DOS-style short mode. 3545 # If so, the updated path is stored in $new_path. 3546 # $1: The path to check 3547 3548 3549 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3550 # and could probably be heavily simplified. However, all changes in this 3551 # area tend to need lot of testing in different scenarios, and in lack of 3552 # proper unit testing, cleaning this up has not been deemed worth the effort 3553 # at the moment. 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3564 3565 3566 3567 3568 # 3569 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3570 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3571 # 3572 # This code is free software; you can redistribute it and/or modify it 3573 # under the terms of the GNU General Public License version 2 only, as 3574 # published by the Free Software Foundation. Oracle designates this 3575 # particular file as subject to the "Classpath" exception as provided 3576 # by Oracle in the LICENSE file that accompanied this code. 3577 # 3578 # This code is distributed in the hope that it will be useful, but WITHOUT 3579 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3580 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3581 # version 2 for more details (a copy is included in the LICENSE file that 3582 # accompanied this code). 3583 # 3584 # You should have received a copy of the GNU General Public License version 3585 # 2 along with this work; if not, write to the Free Software Foundation, 3586 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3587 # 3588 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3589 # or visit www.oracle.com if you need additional information or have any 3590 # questions. 3591 # 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 # ... then the rest 3604 # 3605 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3606 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3607 # 3608 # This code is free software; you can redistribute it and/or modify it 3609 # under the terms of the GNU General Public License version 2 only, as 3610 # published by the Free Software Foundation. Oracle designates this 3611 # particular file as subject to the "Classpath" exception as provided 3612 # by Oracle in the LICENSE file that accompanied this code. 3613 # 3614 # This code is distributed in the hope that it will be useful, but WITHOUT 3615 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3616 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3617 # version 2 for more details (a copy is included in the LICENSE file that 3618 # accompanied this code). 3619 # 3620 # You should have received a copy of the GNU General Public License version 3621 # 2 along with this work; if not, write to the Free Software Foundation, 3622 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3623 # 3624 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3625 # or visit www.oracle.com if you need additional information or have any 3626 # questions. 3627 # 3628 3629 ######################################################################## 3630 # This file handles detection of the Boot JDK. The Boot JDK detection 3631 # process has been developed as a response to solve a complex real-world 3632 # problem. Initially, it was simple, but it has grown as platform after 3633 # platform, idiosyncracy after idiosyncracy has been supported. 3634 # 3635 # The basic idea is this: 3636 # 1) You need an acceptable *) JDK to use as a Boot JDK 3637 # 2) There are several ways to locate a JDK, that are mostly platform 3638 # dependent **) 3639 # 3) You can have multiple JDKs installed 3640 # 4) If possible, configure should try to dig out an acceptable JDK 3641 # automatically, without having to resort to command-line options 3642 # 3643 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3644 # javac) and not a JRE, etc. 3645 # 3646 # **) On Windows we typically use a well-known path. 3647 # On MacOSX we typically use the tool java_home. 3648 # On Linux we typically find javac in the $PATH, and then follow a 3649 # chain of symlinks that often ends up in a real JDK. 3650 # 3651 # This leads to the code where we check in different ways to locate a 3652 # JDK, and if one is found, check if it is acceptable. If not, we print 3653 # our reasons for rejecting it (useful when debugging non-working 3654 # configure situations) and continue checking the next one. 3655 ######################################################################## 3656 3657 # Execute the check given as argument, and verify the result 3658 # If the Boot JDK was previously found, do nothing 3659 # $1 A command line (typically autoconf macro) to execute 3660 3661 3662 # Test: Is bootjdk explicitely set by command line arguments? 3663 3664 3665 # Test: Is bootjdk available from builddeps? 3666 3667 3668 # Test: Is $JAVA_HOME set? 3669 3670 3671 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3672 3673 3674 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3675 # $1: Argument to the java_home binary (optional) 3676 3677 3678 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3679 3680 3681 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3682 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3683 # $1 = Path to directory containing jdk installations. 3684 # $2 = String to append to the found JDK directory to get the proper JDK home 3685 3686 3687 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3688 # environmental variable as base for where to look. 3689 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3690 3691 3692 # Test: Is there a JDK installed in default, well-known locations? 3693 3694 3695 # Check that a command-line tool in the Boot JDK is correct 3696 # $1 = name of variable to assign 3697 # $2 = name of binary 3698 3699 3700 ############################################################################### 3701 # 3702 # We need a Boot JDK to bootstrap the build. 3703 # 3704 3705 3706 3707 3708 3709 # 3710 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3711 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3712 # 3713 # This code is free software; you can redistribute it and/or modify it 3714 # under the terms of the GNU General Public License version 2 only, as 3715 # published by the Free Software Foundation. Oracle designates this 3716 # particular file as subject to the "Classpath" exception as provided 3717 # by Oracle in the LICENSE file that accompanied this code. 3718 # 3719 # This code is distributed in the hope that it will be useful, but WITHOUT 3720 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3721 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3722 # version 2 for more details (a copy is included in the LICENSE file that 3723 # accompanied this code). 3724 # 3725 # You should have received a copy of the GNU General Public License version 3726 # 2 along with this work; if not, write to the Free Software Foundation, 3727 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3728 # 3729 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3730 # or visit www.oracle.com if you need additional information or have any 3731 # questions. 3732 # 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 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 # Documentation on common flags used for solstudio in HIGHEST. 3783 # 3784 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3785 # done with care, there are some assumptions below that need to 3786 # be understood about the use of pointers, and IEEE behavior. 3787 # 3788 # -fns: Use non-standard floating point mode (not IEEE 754) 3789 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3790 # -fsingle: Use single precision floating point with 'float' 3791 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3792 # (Source with excessing pointer casting and data access with mixed 3793 # pointer types are not recommended) 3794 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3795 # (If you expect perfect errno behavior, do not use this) 3796 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3797 # -xrestrict: Pointer parameters to functions do not overlap 3798 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3799 # If you pass in multiple pointers to the same data, do not use this) 3800 # -xlibmil: Inline some library routines 3801 # (If you expect perfect errno behavior, do not use this) 3802 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3803 # (If you expect perfect errno behavior, do not use this) 3804 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3805 3806 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3807 # Bug? 3808 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3809 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3810 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3811 #fi 3812 3813 3814 3815 3816 3817 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3818 # [RUN-IF-FALSE]) 3819 # ------------------------------------------------------------ 3820 # Check that the c and c++ compilers support an argument 3821 3822 3823 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3824 # [RUN-IF-FALSE]) 3825 # ------------------------------------------------------------ 3826 # Check that the linker support an argument 3827 3828 3829 3830 3831 # 3832 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3833 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3834 # 3835 # This code is free software; you can redistribute it and/or modify it 3836 # under the terms of the GNU General Public License version 2 only, as 3837 # published by the Free Software Foundation. Oracle designates this 3838 # particular file as subject to the "Classpath" exception as provided 3839 # by Oracle in the LICENSE file that accompanied this code. 3840 # 3841 # This code is distributed in the hope that it will be useful, but WITHOUT 3842 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3843 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3844 # version 2 for more details (a copy is included in the LICENSE file that 3845 # accompanied this code). 3846 # 3847 # You should have received a copy of the GNU General Public License version 3848 # 2 along with this work; if not, write to the Free Software Foundation, 3849 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3850 # 3851 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3852 # or visit www.oracle.com if you need additional information or have any 3853 # questions. 3854 # 3855 3856 3857 3858 3859 3860 cygwin_help() { 3861 case $1 in 3862 unzip) 3863 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3864 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3865 ;; 3866 zip) 3867 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3868 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3869 ;; 3870 make) 3871 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3872 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3873 ;; 3874 freetype) 3875 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 3876 HELP_MSG="To install freetype, run: 3877 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe 3878 chmod +x /tmp/freetype-setup.exe 3879 /tmp/freetype-setup.exe 3880 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\". 3881 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll." 3882 else 3883 HELP_MSG="You need to build a 64-bit version of freetype. 3884 This is not readily available. 3885 You can find source code and build instructions on 3886 http://www.freetype.org/ 3887 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically." 3888 fi 3889 ;; 3890 esac 3891 } 3892 3893 msys_help() { 3894 PKGHANDLER_COMMAND="" 3895 } 3896 3897 apt_help() { 3898 case $1 in 3899 devkit) 3900 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3901 openjdk) 3902 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3903 alsa) 3904 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3905 cups) 3906 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3907 freetype) 3908 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3909 pulse) 3910 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3911 x11) 3912 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3913 ccache) 3914 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3915 esac 3916 } 3917 3918 yum_help() { 3919 case $1 in 3920 devkit) 3921 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3922 openjdk) 3923 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3924 alsa) 3925 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3926 cups) 3927 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3928 freetype) 3929 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3930 pulse) 3931 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3932 x11) 3933 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3934 ccache) 3935 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3936 esac 3937 } 3938 3939 port_help() { 3940 PKGHANDLER_COMMAND="" 3941 } 3942 3943 pkgutil_help() { 3944 PKGHANDLER_COMMAND="" 3945 } 3946 3947 pkgadd_help() { 3948 PKGHANDLER_COMMAND="" 3949 } 3950 3951 # This function will check if we're called from the "configure" wrapper while 3952 # printing --help. If so, we will print out additional information that can 3953 # only be extracted within the autoconf script, and then exit. This must be 3954 # called at the very beginning in configure.ac. 3955 3956 3957 3958 3959 # 3960 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3961 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3962 # 3963 # This code is free software; you can redistribute it and/or modify it 3964 # under the terms of the GNU General Public License version 2 only, as 3965 # published by the Free Software Foundation. Oracle designates this 3966 # particular file as subject to the "Classpath" exception as provided 3967 # by Oracle in the LICENSE file that accompanied this code. 3968 # 3969 # This code is distributed in the hope that it will be useful, but WITHOUT 3970 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3971 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3972 # version 2 for more details (a copy is included in the LICENSE file that 3973 # accompanied this code). 3974 # 3975 # You should have received a copy of the GNU General Public License version 3976 # 2 along with this work; if not, write to the Free Software Foundation, 3977 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3978 # 3979 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3980 # or visit www.oracle.com if you need additional information or have any 3981 # questions. 3982 # 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 ############################################################################### 3994 # 3995 # Should we build only OpenJDK even if closed sources are present? 3996 # 3997 3998 3999 4000 4001 ############################################################################### 4002 # 4003 # Setup version numbers 4004 # 4005 4006 4007 4008 4009 4010 4011 # 4012 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4013 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4014 # 4015 # This code is free software; you can redistribute it and/or modify it 4016 # under the terms of the GNU General Public License version 2 only, as 4017 # published by the Free Software Foundation. Oracle designates this 4018 # particular file as subject to the "Classpath" exception as provided 4019 # by Oracle in the LICENSE file that accompanied this code. 4020 # 4021 # This code is distributed in the hope that it will be useful, but WITHOUT 4022 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4023 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4024 # version 2 for more details (a copy is included in the LICENSE file that 4025 # accompanied this code). 4026 # 4027 # You should have received a copy of the GNU General Public License version 4028 # 2 along with this work; if not, write to the Free Software Foundation, 4029 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4030 # 4031 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4032 # or visit www.oracle.com if you need additional information or have any 4033 # questions. 4034 # 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 # 4055 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4056 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4057 # 4058 # This code is free software; you can redistribute it and/or modify it 4059 # under the terms of the GNU General Public License version 2 only, as 4060 # published by the Free Software Foundation. Oracle designates this 4061 # particular file as subject to the "Classpath" exception as provided 4062 # by Oracle in the LICENSE file that accompanied this code. 4063 # 4064 # This code is distributed in the hope that it will be useful, but WITHOUT 4065 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4066 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4067 # version 2 for more details (a copy is included in the LICENSE file that 4068 # accompanied this code). 4069 # 4070 # You should have received a copy of the GNU General Public License version 4071 # 2 along with this work; if not, write to the Free Software Foundation, 4072 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4073 # 4074 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4075 # or visit www.oracle.com if you need additional information or have any 4076 # questions. 4077 # 4078 4079 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4080 # Converts autoconf style CPU name to OpenJDK style, into 4081 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4082 4083 4084 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4085 # Converts autoconf style OS name to OpenJDK style, into 4086 # VAR_OS and VAR_OS_API. 4087 4088 4089 # Expects $host_os $host_cpu $build_os and $build_cpu 4090 # and $with_target_bits to have been setup! 4091 # 4092 # Translate the standard triplet(quadruplet) definition 4093 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4094 # OPENJDK_BUILD_OS, etc. 4095 4096 4097 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4098 # accordingly. Must be done after setting up build and target system, but before 4099 # doing anything else with these values. 4100 4101 4102 # Setup the legacy variables, for controlling the old makefiles. 4103 # 4104 4105 4106 4107 4108 #%%% Build and target systems %%% 4109 4110 4111 4112 4113 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4114 # Add -mX to various FLAGS variables. 4115 4116 4117 4118 4119 4120 4121 # 4122 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4123 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4124 # 4125 # This code is free software; you can redistribute it and/or modify it 4126 # under the terms of the GNU General Public License version 2 only, as 4127 # published by the Free Software Foundation. Oracle designates this 4128 # particular file as subject to the "Classpath" exception as provided 4129 # by Oracle in the LICENSE file that accompanied this code. 4130 # 4131 # This code is distributed in the hope that it will be useful, but WITHOUT 4132 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4133 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4134 # version 2 for more details (a copy is included in the LICENSE file that 4135 # accompanied this code). 4136 # 4137 # You should have received a copy of the GNU General Public License version 4138 # 2 along with this work; if not, write to the Free Software Foundation, 4139 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4140 # 4141 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4142 # or visit www.oracle.com if you need additional information or have any 4143 # questions. 4144 # 4145 4146 4147 4148 4149 4150 4151 4152 4153 # 4154 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4155 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4156 # 4157 # This code is free software; you can redistribute it and/or modify it 4158 # under the terms of the GNU General Public License version 2 only, as 4159 # published by the Free Software Foundation. Oracle designates this 4160 # particular file as subject to the "Classpath" exception as provided 4161 # by Oracle in the LICENSE file that accompanied this code. 4162 # 4163 # This code is distributed in the hope that it will be useful, but WITHOUT 4164 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4165 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4166 # version 2 for more details (a copy is included in the LICENSE file that 4167 # accompanied this code). 4168 # 4169 # You should have received a copy of the GNU General Public License version 4170 # 2 along with this work; if not, write to the Free Software Foundation, 4171 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4172 # 4173 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4174 # or visit www.oracle.com if you need additional information or have any 4175 # questions. 4176 # 4177 4178 ######################################################################## 4179 # This file is responsible for detecting, verifying and setting up the 4180 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4181 # proper paths to the binaries, but it will not setup any flags. 4182 # 4183 # The binaries used is determined by the toolchain type, which is the family of 4184 # compilers and related tools that are used. 4185 ######################################################################## 4186 4187 4188 # All valid toolchains, regardless of platform (used by help.m4) 4189 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4190 4191 # These toolchains are valid on different platforms 4192 VALID_TOOLCHAINS_linux="gcc clang" 4193 VALID_TOOLCHAINS_solaris="solstudio" 4194 VALID_TOOLCHAINS_macosx="gcc clang" 4195 VALID_TOOLCHAINS_aix="xlc" 4196 VALID_TOOLCHAINS_windows="microsoft" 4197 4198 # Toolchain descriptions 4199 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4200 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4201 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4202 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4203 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4204 4205 # Setup a number of variables describing how native output files are 4206 # named on this platform/toolchain. 4207 4208 4209 # Determine which toolchain type to use, and make sure it is valid for this 4210 # platform. Setup various information about the selected toolchain. 4211 4212 4213 # Before we start detecting the toolchain executables, we might need some 4214 # special setup, e.g. additional paths etc. 4215 4216 4217 # Restore path, etc 4218 4219 4220 # Check if a compiler is of the toolchain type we expect, and save the version 4221 # information from it. If the compiler does not match the expected type, 4222 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4223 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4224 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4225 # 4226 # $1 = compiler to test (CC or CXX) 4227 # $2 = human readable name of compiler (C or C++) 4228 4229 4230 # Try to locate the given C or C++ compiler in the path, or otherwise. 4231 # 4232 # $1 = compiler to test (CC or CXX) 4233 # $2 = human readable name of compiler (C or C++) 4234 # $3 = list of compiler names to search for 4235 4236 4237 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4238 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4239 # archiver (AR). Verify that the compilers are correct according to the 4240 # toolchain type. 4241 4242 4243 # Setup additional tools that is considered a part of the toolchain, but not the 4244 # core part. Many of these are highly platform-specific and do not exist, 4245 # and/or are not needed on all platforms. 4246 4247 4248 # Setup the build tools (i.e, the compiler and linker used to build programs 4249 # that should be run on the build platform, not the target platform, as a build 4250 # helper). Since the non-cross-compile case uses the normal, target compilers 4251 # for this, we can only do this after these have been setup. 4252 4253 4254 # Setup legacy variables that are still needed as alternative ways to refer to 4255 # parts of the toolchain. 4256 4257 4258 # Do some additional checks on the detected tools. 4259 4260 4261 # Setup the JTReg Regression Test Harness. 4262 4263 4264 # 4265 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4266 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4267 # 4268 # This code is free software; you can redistribute it and/or modify it 4269 # under the terms of the GNU General Public License version 2 only, as 4270 # published by the Free Software Foundation. Oracle designates this 4271 # particular file as subject to the "Classpath" exception as provided 4272 # by Oracle in the LICENSE file that accompanied this code. 4273 # 4274 # This code is distributed in the hope that it will be useful, but WITHOUT 4275 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4276 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4277 # version 2 for more details (a copy is included in the LICENSE file that 4278 # accompanied this code). 4279 # 4280 # You should have received a copy of the GNU General Public License version 4281 # 2 along with this work; if not, write to the Free Software Foundation, 4282 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4283 # 4284 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4285 # or visit www.oracle.com if you need additional information or have any 4286 # questions. 4287 # 4288 4289 4290 4291 4292 4293 4294 4295 # Check if the VS env variables were setup prior to running configure. 4296 # If not, then find vcvarsall.bat and run it automatically, and integrate 4297 # the set env variables into the spec file. 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 # This line needs to be here, verbatim, after all includes and the dummy hook 4309 # definitions. It is replaced with custom functionality when building 4310 # custom sources. 4311 #CUSTOM_AUTOCONF_INCLUDE 4312 4313 # Do not change or remove the following line, it is needed for consistency checks: 4314 DATE_WHEN_GENERATED=1407259507 4315 4316 ############################################################################### 4317 # 4318 # Initialization / Boot-strapping 4319 # 4320 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4321 # thus it jumps back and forth, each time gaining something needed later on. 4322 # 4323 ############################################################################### 4324 4325 # If we are requested to print additional help, do that and then exit. 4326 # This must be the very first call. 4327 4328 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4329 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4330 $PRINTF "Which are valid to use depends on the build platform.\n" 4331 for toolchain in $VALID_TOOLCHAINS_all; do 4332 # Use indirect variable referencing 4333 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4334 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4335 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4336 done 4337 4338 # And now exit directly 4339 exit 0 4340 fi 4341 4342 4343 # Basic initialization that must happen first of all in the normal process. 4344 4345 # Save the original command line. This is passed to us by the wrapper configure script. 4346 4347 DATE_WHEN_CONFIGURED=`LANG=C date` 4348 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4350 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4352 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4353 4354 4355 # Start with tools that do not need have cross compilation support 4356 # and can be expected to be found in the default PATH. These tools are 4357 # used by configure. Nor are these tools expected to be found in the 4358 # devkit from the builddeps server either, since they are 4359 # needed to download the devkit. 4360 4361 # First are all the simple required tools. 4362 4363 4364 4365 # Publish this variable in the help. 4366 4367 4368 if test "x$BASENAME" = x; then 4369 # The variable is not set by user, try to locate tool using the code snippet 4370 for ac_prog in basename 4371 do 4372 # Extract the first word of "$ac_prog", so it can be a program name with args. 4373 set dummy $ac_prog; ac_word=$2 4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4375 $as_echo_n "checking for $ac_word... " >&6; } 4376 if ${ac_cv_path_BASENAME+:} false; then : 4377 $as_echo_n "(cached) " >&6 4378 else 4379 case $BASENAME in 4380 [\\/]* | ?:[\\/]*) 4381 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4382 ;; 4383 *) 4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4385 for as_dir in $PATH 4386 do 4387 IFS=$as_save_IFS 4388 test -z "$as_dir" && as_dir=. 4389 for ac_exec_ext in '' $ac_executable_extensions; do 4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4391 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4393 break 2 4394 fi 4395 done 4396 done 4397 IFS=$as_save_IFS 4398 4399 ;; 4400 esac 4401 fi 4402 BASENAME=$ac_cv_path_BASENAME 4403 if test -n "$BASENAME"; then 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4405 $as_echo "$BASENAME" >&6; } 4406 else 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4408 $as_echo "no" >&6; } 4409 fi 4410 4411 4412 test -n "$BASENAME" && break 4413 done 4414 4415 else 4416 # The variable is set, but is it from the command line or the environment? 4417 4418 # Try to remove the string !BASENAME! from our list. 4419 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4420 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4421 # If it failed, the variable was not from the command line. Ignore it, 4422 # but warn the user (except for BASH, which is always set by the calling BASH). 4423 if test "xBASENAME" != xBASH; then 4424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4425 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4426 fi 4427 # Try to locate tool using the code snippet 4428 for ac_prog in basename 4429 do 4430 # Extract the first word of "$ac_prog", so it can be a program name with args. 4431 set dummy $ac_prog; ac_word=$2 4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4433 $as_echo_n "checking for $ac_word... " >&6; } 4434 if ${ac_cv_path_BASENAME+:} false; then : 4435 $as_echo_n "(cached) " >&6 4436 else 4437 case $BASENAME in 4438 [\\/]* | ?:[\\/]*) 4439 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4440 ;; 4441 *) 4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4443 for as_dir in $PATH 4444 do 4445 IFS=$as_save_IFS 4446 test -z "$as_dir" && as_dir=. 4447 for ac_exec_ext in '' $ac_executable_extensions; do 4448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4449 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4451 break 2 4452 fi 4453 done 4454 done 4455 IFS=$as_save_IFS 4456 4457 ;; 4458 esac 4459 fi 4460 BASENAME=$ac_cv_path_BASENAME 4461 if test -n "$BASENAME"; then 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4463 $as_echo "$BASENAME" >&6; } 4464 else 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4466 $as_echo "no" >&6; } 4467 fi 4468 4469 4470 test -n "$BASENAME" && break 4471 done 4472 4473 else 4474 # If it succeeded, then it was overridden by the user. We will use it 4475 # for the tool. 4476 4477 # First remove it from the list of overridden variables, so we can test 4478 # for unknown variables in the end. 4479 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4480 4481 # Check if the provided tool contains a complete path. 4482 tool_specified="$BASENAME" 4483 tool_basename="${tool_specified##*/}" 4484 if test "x$tool_basename" = "x$tool_specified"; then 4485 # A command without a complete path is provided, search $PATH. 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4487 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4488 # Extract the first word of "$tool_basename", so it can be a program name with args. 4489 set dummy $tool_basename; ac_word=$2 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4491 $as_echo_n "checking for $ac_word... " >&6; } 4492 if ${ac_cv_path_BASENAME+:} false; then : 4493 $as_echo_n "(cached) " >&6 4494 else 4495 case $BASENAME in 4496 [\\/]* | ?:[\\/]*) 4497 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4498 ;; 4499 *) 4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4501 for as_dir in $PATH 4502 do 4503 IFS=$as_save_IFS 4504 test -z "$as_dir" && as_dir=. 4505 for ac_exec_ext in '' $ac_executable_extensions; do 4506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4507 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4509 break 2 4510 fi 4511 done 4512 done 4513 IFS=$as_save_IFS 4514 4515 ;; 4516 esac 4517 fi 4518 BASENAME=$ac_cv_path_BASENAME 4519 if test -n "$BASENAME"; then 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4521 $as_echo "$BASENAME" >&6; } 4522 else 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4524 $as_echo "no" >&6; } 4525 fi 4526 4527 4528 if test "x$BASENAME" = x; then 4529 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4530 fi 4531 else 4532 # Otherwise we believe it is a complete path. Use it as it is. 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4534 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4536 $as_echo_n "checking for BASENAME... " >&6; } 4537 if test ! -x "$tool_specified"; then 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4539 $as_echo "not found" >&6; } 4540 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4541 fi 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4543 $as_echo "$tool_specified" >&6; } 4544 fi 4545 fi 4546 fi 4547 4548 4549 4550 if test "x$BASENAME" = x; then 4551 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4552 fi 4553 4554 4555 4556 4557 4558 # Publish this variable in the help. 4559 4560 4561 if test "x$BASH" = x; then 4562 # The variable is not set by user, try to locate tool using the code snippet 4563 for ac_prog in bash 4564 do 4565 # Extract the first word of "$ac_prog", so it can be a program name with args. 4566 set dummy $ac_prog; ac_word=$2 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4568 $as_echo_n "checking for $ac_word... " >&6; } 4569 if ${ac_cv_path_BASH+:} false; then : 4570 $as_echo_n "(cached) " >&6 4571 else 4572 case $BASH in 4573 [\\/]* | ?:[\\/]*) 4574 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4575 ;; 4576 *) 4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4578 for as_dir in $PATH 4579 do 4580 IFS=$as_save_IFS 4581 test -z "$as_dir" && as_dir=. 4582 for ac_exec_ext in '' $ac_executable_extensions; do 4583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4584 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4586 break 2 4587 fi 4588 done 4589 done 4590 IFS=$as_save_IFS 4591 4592 ;; 4593 esac 4594 fi 4595 BASH=$ac_cv_path_BASH 4596 if test -n "$BASH"; then 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4598 $as_echo "$BASH" >&6; } 4599 else 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4601 $as_echo "no" >&6; } 4602 fi 4603 4604 4605 test -n "$BASH" && break 4606 done 4607 4608 else 4609 # The variable is set, but is it from the command line or the environment? 4610 4611 # Try to remove the string !BASH! from our list. 4612 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4613 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4614 # If it failed, the variable was not from the command line. Ignore it, 4615 # but warn the user (except for BASH, which is always set by the calling BASH). 4616 if test "xBASH" != xBASH; then 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4618 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4619 fi 4620 # Try to locate tool using the code snippet 4621 for ac_prog in bash 4622 do 4623 # Extract the first word of "$ac_prog", so it can be a program name with args. 4624 set dummy $ac_prog; ac_word=$2 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4626 $as_echo_n "checking for $ac_word... " >&6; } 4627 if ${ac_cv_path_BASH+:} false; then : 4628 $as_echo_n "(cached) " >&6 4629 else 4630 case $BASH in 4631 [\\/]* | ?:[\\/]*) 4632 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4633 ;; 4634 *) 4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4636 for as_dir in $PATH 4637 do 4638 IFS=$as_save_IFS 4639 test -z "$as_dir" && as_dir=. 4640 for ac_exec_ext in '' $ac_executable_extensions; do 4641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4642 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4644 break 2 4645 fi 4646 done 4647 done 4648 IFS=$as_save_IFS 4649 4650 ;; 4651 esac 4652 fi 4653 BASH=$ac_cv_path_BASH 4654 if test -n "$BASH"; then 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4656 $as_echo "$BASH" >&6; } 4657 else 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4659 $as_echo "no" >&6; } 4660 fi 4661 4662 4663 test -n "$BASH" && break 4664 done 4665 4666 else 4667 # If it succeeded, then it was overridden by the user. We will use it 4668 # for the tool. 4669 4670 # First remove it from the list of overridden variables, so we can test 4671 # for unknown variables in the end. 4672 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4673 4674 # Check if the provided tool contains a complete path. 4675 tool_specified="$BASH" 4676 tool_basename="${tool_specified##*/}" 4677 if test "x$tool_basename" = "x$tool_specified"; then 4678 # A command without a complete path is provided, search $PATH. 4679 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4680 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4681 # Extract the first word of "$tool_basename", so it can be a program name with args. 4682 set dummy $tool_basename; ac_word=$2 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4684 $as_echo_n "checking for $ac_word... " >&6; } 4685 if ${ac_cv_path_BASH+:} false; then : 4686 $as_echo_n "(cached) " >&6 4687 else 4688 case $BASH in 4689 [\\/]* | ?:[\\/]*) 4690 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4691 ;; 4692 *) 4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4694 for as_dir in $PATH 4695 do 4696 IFS=$as_save_IFS 4697 test -z "$as_dir" && as_dir=. 4698 for ac_exec_ext in '' $ac_executable_extensions; do 4699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4700 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4702 break 2 4703 fi 4704 done 4705 done 4706 IFS=$as_save_IFS 4707 4708 ;; 4709 esac 4710 fi 4711 BASH=$ac_cv_path_BASH 4712 if test -n "$BASH"; then 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4714 $as_echo "$BASH" >&6; } 4715 else 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4717 $as_echo "no" >&6; } 4718 fi 4719 4720 4721 if test "x$BASH" = x; then 4722 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4723 fi 4724 else 4725 # Otherwise we believe it is a complete path. Use it as it is. 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4727 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4729 $as_echo_n "checking for BASH... " >&6; } 4730 if test ! -x "$tool_specified"; then 4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4732 $as_echo "not found" >&6; } 4733 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4734 fi 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4736 $as_echo "$tool_specified" >&6; } 4737 fi 4738 fi 4739 fi 4740 4741 4742 4743 if test "x$BASH" = x; then 4744 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4745 fi 4746 4747 4748 4749 4750 4751 # Publish this variable in the help. 4752 4753 4754 if test "x$CAT" = x; then 4755 # The variable is not set by user, try to locate tool using the code snippet 4756 for ac_prog in cat 4757 do 4758 # Extract the first word of "$ac_prog", so it can be a program name with args. 4759 set dummy $ac_prog; ac_word=$2 4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4761 $as_echo_n "checking for $ac_word... " >&6; } 4762 if ${ac_cv_path_CAT+:} false; then : 4763 $as_echo_n "(cached) " >&6 4764 else 4765 case $CAT in 4766 [\\/]* | ?:[\\/]*) 4767 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4768 ;; 4769 *) 4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4771 for as_dir in $PATH 4772 do 4773 IFS=$as_save_IFS 4774 test -z "$as_dir" && as_dir=. 4775 for ac_exec_ext in '' $ac_executable_extensions; do 4776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4777 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4779 break 2 4780 fi 4781 done 4782 done 4783 IFS=$as_save_IFS 4784 4785 ;; 4786 esac 4787 fi 4788 CAT=$ac_cv_path_CAT 4789 if test -n "$CAT"; then 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4791 $as_echo "$CAT" >&6; } 4792 else 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4794 $as_echo "no" >&6; } 4795 fi 4796 4797 4798 test -n "$CAT" && break 4799 done 4800 4801 else 4802 # The variable is set, but is it from the command line or the environment? 4803 4804 # Try to remove the string !CAT! from our list. 4805 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4806 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4807 # If it failed, the variable was not from the command line. Ignore it, 4808 # but warn the user (except for BASH, which is always set by the calling BASH). 4809 if test "xCAT" != xBASH; then 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4811 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4812 fi 4813 # Try to locate tool using the code snippet 4814 for ac_prog in cat 4815 do 4816 # Extract the first word of "$ac_prog", so it can be a program name with args. 4817 set dummy $ac_prog; ac_word=$2 4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4819 $as_echo_n "checking for $ac_word... " >&6; } 4820 if ${ac_cv_path_CAT+:} false; then : 4821 $as_echo_n "(cached) " >&6 4822 else 4823 case $CAT in 4824 [\\/]* | ?:[\\/]*) 4825 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4826 ;; 4827 *) 4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4829 for as_dir in $PATH 4830 do 4831 IFS=$as_save_IFS 4832 test -z "$as_dir" && as_dir=. 4833 for ac_exec_ext in '' $ac_executable_extensions; do 4834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4835 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4837 break 2 4838 fi 4839 done 4840 done 4841 IFS=$as_save_IFS 4842 4843 ;; 4844 esac 4845 fi 4846 CAT=$ac_cv_path_CAT 4847 if test -n "$CAT"; then 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4849 $as_echo "$CAT" >&6; } 4850 else 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4852 $as_echo "no" >&6; } 4853 fi 4854 4855 4856 test -n "$CAT" && break 4857 done 4858 4859 else 4860 # If it succeeded, then it was overridden by the user. We will use it 4861 # for the tool. 4862 4863 # First remove it from the list of overridden variables, so we can test 4864 # for unknown variables in the end. 4865 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4866 4867 # Check if the provided tool contains a complete path. 4868 tool_specified="$CAT" 4869 tool_basename="${tool_specified##*/}" 4870 if test "x$tool_basename" = "x$tool_specified"; then 4871 # A command without a complete path is provided, search $PATH. 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4873 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4874 # Extract the first word of "$tool_basename", so it can be a program name with args. 4875 set dummy $tool_basename; ac_word=$2 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4877 $as_echo_n "checking for $ac_word... " >&6; } 4878 if ${ac_cv_path_CAT+:} false; then : 4879 $as_echo_n "(cached) " >&6 4880 else 4881 case $CAT in 4882 [\\/]* | ?:[\\/]*) 4883 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4884 ;; 4885 *) 4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4887 for as_dir in $PATH 4888 do 4889 IFS=$as_save_IFS 4890 test -z "$as_dir" && as_dir=. 4891 for ac_exec_ext in '' $ac_executable_extensions; do 4892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4893 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4895 break 2 4896 fi 4897 done 4898 done 4899 IFS=$as_save_IFS 4900 4901 ;; 4902 esac 4903 fi 4904 CAT=$ac_cv_path_CAT 4905 if test -n "$CAT"; then 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4907 $as_echo "$CAT" >&6; } 4908 else 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4910 $as_echo "no" >&6; } 4911 fi 4912 4913 4914 if test "x$CAT" = x; then 4915 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4916 fi 4917 else 4918 # Otherwise we believe it is a complete path. Use it as it is. 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4920 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4922 $as_echo_n "checking for CAT... " >&6; } 4923 if test ! -x "$tool_specified"; then 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4925 $as_echo "not found" >&6; } 4926 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4927 fi 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4929 $as_echo "$tool_specified" >&6; } 4930 fi 4931 fi 4932 fi 4933 4934 4935 4936 if test "x$CAT" = x; then 4937 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4938 fi 4939 4940 4941 4942 4943 4944 # Publish this variable in the help. 4945 4946 4947 if test "x$CHMOD" = x; then 4948 # The variable is not set by user, try to locate tool using the code snippet 4949 for ac_prog in chmod 4950 do 4951 # Extract the first word of "$ac_prog", so it can be a program name with args. 4952 set dummy $ac_prog; ac_word=$2 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4954 $as_echo_n "checking for $ac_word... " >&6; } 4955 if ${ac_cv_path_CHMOD+:} false; then : 4956 $as_echo_n "(cached) " >&6 4957 else 4958 case $CHMOD in 4959 [\\/]* | ?:[\\/]*) 4960 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4961 ;; 4962 *) 4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4964 for as_dir in $PATH 4965 do 4966 IFS=$as_save_IFS 4967 test -z "$as_dir" && as_dir=. 4968 for ac_exec_ext in '' $ac_executable_extensions; do 4969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4970 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4972 break 2 4973 fi 4974 done 4975 done 4976 IFS=$as_save_IFS 4977 4978 ;; 4979 esac 4980 fi 4981 CHMOD=$ac_cv_path_CHMOD 4982 if test -n "$CHMOD"; then 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4984 $as_echo "$CHMOD" >&6; } 4985 else 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4987 $as_echo "no" >&6; } 4988 fi 4989 4990 4991 test -n "$CHMOD" && break 4992 done 4993 4994 else 4995 # The variable is set, but is it from the command line or the environment? 4996 4997 # Try to remove the string !CHMOD! from our list. 4998 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 4999 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5000 # If it failed, the variable was not from the command line. Ignore it, 5001 # but warn the user (except for BASH, which is always set by the calling BASH). 5002 if test "xCHMOD" != xBASH; then 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5004 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5005 fi 5006 # Try to locate tool using the code snippet 5007 for ac_prog in chmod 5008 do 5009 # Extract the first word of "$ac_prog", so it can be a program name with args. 5010 set dummy $ac_prog; ac_word=$2 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5012 $as_echo_n "checking for $ac_word... " >&6; } 5013 if ${ac_cv_path_CHMOD+:} false; then : 5014 $as_echo_n "(cached) " >&6 5015 else 5016 case $CHMOD in 5017 [\\/]* | ?:[\\/]*) 5018 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5019 ;; 5020 *) 5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5022 for as_dir in $PATH 5023 do 5024 IFS=$as_save_IFS 5025 test -z "$as_dir" && as_dir=. 5026 for ac_exec_ext in '' $ac_executable_extensions; do 5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5028 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5030 break 2 5031 fi 5032 done 5033 done 5034 IFS=$as_save_IFS 5035 5036 ;; 5037 esac 5038 fi 5039 CHMOD=$ac_cv_path_CHMOD 5040 if test -n "$CHMOD"; then 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5042 $as_echo "$CHMOD" >&6; } 5043 else 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5045 $as_echo "no" >&6; } 5046 fi 5047 5048 5049 test -n "$CHMOD" && break 5050 done 5051 5052 else 5053 # If it succeeded, then it was overridden by the user. We will use it 5054 # for the tool. 5055 5056 # First remove it from the list of overridden variables, so we can test 5057 # for unknown variables in the end. 5058 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5059 5060 # Check if the provided tool contains a complete path. 5061 tool_specified="$CHMOD" 5062 tool_basename="${tool_specified##*/}" 5063 if test "x$tool_basename" = "x$tool_specified"; then 5064 # A command without a complete path is provided, search $PATH. 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5066 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5067 # Extract the first word of "$tool_basename", so it can be a program name with args. 5068 set dummy $tool_basename; ac_word=$2 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5070 $as_echo_n "checking for $ac_word... " >&6; } 5071 if ${ac_cv_path_CHMOD+:} false; then : 5072 $as_echo_n "(cached) " >&6 5073 else 5074 case $CHMOD in 5075 [\\/]* | ?:[\\/]*) 5076 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5077 ;; 5078 *) 5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5080 for as_dir in $PATH 5081 do 5082 IFS=$as_save_IFS 5083 test -z "$as_dir" && as_dir=. 5084 for ac_exec_ext in '' $ac_executable_extensions; do 5085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5086 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5088 break 2 5089 fi 5090 done 5091 done 5092 IFS=$as_save_IFS 5093 5094 ;; 5095 esac 5096 fi 5097 CHMOD=$ac_cv_path_CHMOD 5098 if test -n "$CHMOD"; then 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5100 $as_echo "$CHMOD" >&6; } 5101 else 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5103 $as_echo "no" >&6; } 5104 fi 5105 5106 5107 if test "x$CHMOD" = x; then 5108 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5109 fi 5110 else 5111 # Otherwise we believe it is a complete path. Use it as it is. 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5113 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5115 $as_echo_n "checking for CHMOD... " >&6; } 5116 if test ! -x "$tool_specified"; then 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5118 $as_echo "not found" >&6; } 5119 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5120 fi 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5122 $as_echo "$tool_specified" >&6; } 5123 fi 5124 fi 5125 fi 5126 5127 5128 5129 if test "x$CHMOD" = x; then 5130 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5131 fi 5132 5133 5134 5135 5136 5137 # Publish this variable in the help. 5138 5139 5140 if test "x$CMP" = x; then 5141 # The variable is not set by user, try to locate tool using the code snippet 5142 for ac_prog in cmp 5143 do 5144 # Extract the first word of "$ac_prog", so it can be a program name with args. 5145 set dummy $ac_prog; ac_word=$2 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5147 $as_echo_n "checking for $ac_word... " >&6; } 5148 if ${ac_cv_path_CMP+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150 else 5151 case $CMP in 5152 [\\/]* | ?:[\\/]*) 5153 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5154 ;; 5155 *) 5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5157 for as_dir in $PATH 5158 do 5159 IFS=$as_save_IFS 5160 test -z "$as_dir" && as_dir=. 5161 for ac_exec_ext in '' $ac_executable_extensions; do 5162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5163 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5165 break 2 5166 fi 5167 done 5168 done 5169 IFS=$as_save_IFS 5170 5171 ;; 5172 esac 5173 fi 5174 CMP=$ac_cv_path_CMP 5175 if test -n "$CMP"; then 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5177 $as_echo "$CMP" >&6; } 5178 else 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5180 $as_echo "no" >&6; } 5181 fi 5182 5183 5184 test -n "$CMP" && break 5185 done 5186 5187 else 5188 # The variable is set, but is it from the command line or the environment? 5189 5190 # Try to remove the string !CMP! from our list. 5191 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5192 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5193 # If it failed, the variable was not from the command line. Ignore it, 5194 # but warn the user (except for BASH, which is always set by the calling BASH). 5195 if test "xCMP" != xBASH; then 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5197 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5198 fi 5199 # Try to locate tool using the code snippet 5200 for ac_prog in cmp 5201 do 5202 # Extract the first word of "$ac_prog", so it can be a program name with args. 5203 set dummy $ac_prog; ac_word=$2 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5205 $as_echo_n "checking for $ac_word... " >&6; } 5206 if ${ac_cv_path_CMP+:} false; then : 5207 $as_echo_n "(cached) " >&6 5208 else 5209 case $CMP in 5210 [\\/]* | ?:[\\/]*) 5211 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5212 ;; 5213 *) 5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5215 for as_dir in $PATH 5216 do 5217 IFS=$as_save_IFS 5218 test -z "$as_dir" && as_dir=. 5219 for ac_exec_ext in '' $ac_executable_extensions; do 5220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5221 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5223 break 2 5224 fi 5225 done 5226 done 5227 IFS=$as_save_IFS 5228 5229 ;; 5230 esac 5231 fi 5232 CMP=$ac_cv_path_CMP 5233 if test -n "$CMP"; then 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5235 $as_echo "$CMP" >&6; } 5236 else 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5238 $as_echo "no" >&6; } 5239 fi 5240 5241 5242 test -n "$CMP" && break 5243 done 5244 5245 else 5246 # If it succeeded, then it was overridden by the user. We will use it 5247 # for the tool. 5248 5249 # First remove it from the list of overridden variables, so we can test 5250 # for unknown variables in the end. 5251 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5252 5253 # Check if the provided tool contains a complete path. 5254 tool_specified="$CMP" 5255 tool_basename="${tool_specified##*/}" 5256 if test "x$tool_basename" = "x$tool_specified"; then 5257 # A command without a complete path is provided, search $PATH. 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5259 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5260 # Extract the first word of "$tool_basename", so it can be a program name with args. 5261 set dummy $tool_basename; ac_word=$2 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5263 $as_echo_n "checking for $ac_word... " >&6; } 5264 if ${ac_cv_path_CMP+:} false; then : 5265 $as_echo_n "(cached) " >&6 5266 else 5267 case $CMP in 5268 [\\/]* | ?:[\\/]*) 5269 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5270 ;; 5271 *) 5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5273 for as_dir in $PATH 5274 do 5275 IFS=$as_save_IFS 5276 test -z "$as_dir" && as_dir=. 5277 for ac_exec_ext in '' $ac_executable_extensions; do 5278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5279 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5281 break 2 5282 fi 5283 done 5284 done 5285 IFS=$as_save_IFS 5286 5287 ;; 5288 esac 5289 fi 5290 CMP=$ac_cv_path_CMP 5291 if test -n "$CMP"; then 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5293 $as_echo "$CMP" >&6; } 5294 else 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5296 $as_echo "no" >&6; } 5297 fi 5298 5299 5300 if test "x$CMP" = x; then 5301 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5302 fi 5303 else 5304 # Otherwise we believe it is a complete path. Use it as it is. 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5306 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5308 $as_echo_n "checking for CMP... " >&6; } 5309 if test ! -x "$tool_specified"; then 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5311 $as_echo "not found" >&6; } 5312 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5313 fi 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5315 $as_echo "$tool_specified" >&6; } 5316 fi 5317 fi 5318 fi 5319 5320 5321 5322 if test "x$CMP" = x; then 5323 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5324 fi 5325 5326 5327 5328 5329 5330 # Publish this variable in the help. 5331 5332 5333 if test "x$COMM" = x; then 5334 # The variable is not set by user, try to locate tool using the code snippet 5335 for ac_prog in comm 5336 do 5337 # Extract the first word of "$ac_prog", so it can be a program name with args. 5338 set dummy $ac_prog; ac_word=$2 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5340 $as_echo_n "checking for $ac_word... " >&6; } 5341 if ${ac_cv_path_COMM+:} false; then : 5342 $as_echo_n "(cached) " >&6 5343 else 5344 case $COMM in 5345 [\\/]* | ?:[\\/]*) 5346 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5347 ;; 5348 *) 5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5350 for as_dir in $PATH 5351 do 5352 IFS=$as_save_IFS 5353 test -z "$as_dir" && as_dir=. 5354 for ac_exec_ext in '' $ac_executable_extensions; do 5355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5356 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5358 break 2 5359 fi 5360 done 5361 done 5362 IFS=$as_save_IFS 5363 5364 ;; 5365 esac 5366 fi 5367 COMM=$ac_cv_path_COMM 5368 if test -n "$COMM"; then 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5370 $as_echo "$COMM" >&6; } 5371 else 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5373 $as_echo "no" >&6; } 5374 fi 5375 5376 5377 test -n "$COMM" && break 5378 done 5379 5380 else 5381 # The variable is set, but is it from the command line or the environment? 5382 5383 # Try to remove the string !COMM! from our list. 5384 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5385 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5386 # If it failed, the variable was not from the command line. Ignore it, 5387 # but warn the user (except for BASH, which is always set by the calling BASH). 5388 if test "xCOMM" != xBASH; then 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5390 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5391 fi 5392 # Try to locate tool using the code snippet 5393 for ac_prog in comm 5394 do 5395 # Extract the first word of "$ac_prog", so it can be a program name with args. 5396 set dummy $ac_prog; ac_word=$2 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5398 $as_echo_n "checking for $ac_word... " >&6; } 5399 if ${ac_cv_path_COMM+:} false; then : 5400 $as_echo_n "(cached) " >&6 5401 else 5402 case $COMM in 5403 [\\/]* | ?:[\\/]*) 5404 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5405 ;; 5406 *) 5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5408 for as_dir in $PATH 5409 do 5410 IFS=$as_save_IFS 5411 test -z "$as_dir" && as_dir=. 5412 for ac_exec_ext in '' $ac_executable_extensions; do 5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5414 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5416 break 2 5417 fi 5418 done 5419 done 5420 IFS=$as_save_IFS 5421 5422 ;; 5423 esac 5424 fi 5425 COMM=$ac_cv_path_COMM 5426 if test -n "$COMM"; then 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5428 $as_echo "$COMM" >&6; } 5429 else 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5431 $as_echo "no" >&6; } 5432 fi 5433 5434 5435 test -n "$COMM" && break 5436 done 5437 5438 else 5439 # If it succeeded, then it was overridden by the user. We will use it 5440 # for the tool. 5441 5442 # First remove it from the list of overridden variables, so we can test 5443 # for unknown variables in the end. 5444 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5445 5446 # Check if the provided tool contains a complete path. 5447 tool_specified="$COMM" 5448 tool_basename="${tool_specified##*/}" 5449 if test "x$tool_basename" = "x$tool_specified"; then 5450 # A command without a complete path is provided, search $PATH. 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5452 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5453 # Extract the first word of "$tool_basename", so it can be a program name with args. 5454 set dummy $tool_basename; ac_word=$2 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5456 $as_echo_n "checking for $ac_word... " >&6; } 5457 if ${ac_cv_path_COMM+:} false; then : 5458 $as_echo_n "(cached) " >&6 5459 else 5460 case $COMM in 5461 [\\/]* | ?:[\\/]*) 5462 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5463 ;; 5464 *) 5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5466 for as_dir in $PATH 5467 do 5468 IFS=$as_save_IFS 5469 test -z "$as_dir" && as_dir=. 5470 for ac_exec_ext in '' $ac_executable_extensions; do 5471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5472 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5474 break 2 5475 fi 5476 done 5477 done 5478 IFS=$as_save_IFS 5479 5480 ;; 5481 esac 5482 fi 5483 COMM=$ac_cv_path_COMM 5484 if test -n "$COMM"; then 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5486 $as_echo "$COMM" >&6; } 5487 else 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5489 $as_echo "no" >&6; } 5490 fi 5491 5492 5493 if test "x$COMM" = x; then 5494 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5495 fi 5496 else 5497 # Otherwise we believe it is a complete path. Use it as it is. 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5499 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5501 $as_echo_n "checking for COMM... " >&6; } 5502 if test ! -x "$tool_specified"; then 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5504 $as_echo "not found" >&6; } 5505 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5506 fi 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5508 $as_echo "$tool_specified" >&6; } 5509 fi 5510 fi 5511 fi 5512 5513 5514 5515 if test "x$COMM" = x; then 5516 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5517 fi 5518 5519 5520 5521 5522 5523 # Publish this variable in the help. 5524 5525 5526 if test "x$CP" = x; then 5527 # The variable is not set by user, try to locate tool using the code snippet 5528 for ac_prog in cp 5529 do 5530 # Extract the first word of "$ac_prog", so it can be a program name with args. 5531 set dummy $ac_prog; ac_word=$2 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5533 $as_echo_n "checking for $ac_word... " >&6; } 5534 if ${ac_cv_path_CP+:} false; then : 5535 $as_echo_n "(cached) " >&6 5536 else 5537 case $CP in 5538 [\\/]* | ?:[\\/]*) 5539 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5540 ;; 5541 *) 5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5543 for as_dir in $PATH 5544 do 5545 IFS=$as_save_IFS 5546 test -z "$as_dir" && as_dir=. 5547 for ac_exec_ext in '' $ac_executable_extensions; do 5548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5549 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5551 break 2 5552 fi 5553 done 5554 done 5555 IFS=$as_save_IFS 5556 5557 ;; 5558 esac 5559 fi 5560 CP=$ac_cv_path_CP 5561 if test -n "$CP"; then 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5563 $as_echo "$CP" >&6; } 5564 else 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5566 $as_echo "no" >&6; } 5567 fi 5568 5569 5570 test -n "$CP" && break 5571 done 5572 5573 else 5574 # The variable is set, but is it from the command line or the environment? 5575 5576 # Try to remove the string !CP! from our list. 5577 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5578 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5579 # If it failed, the variable was not from the command line. Ignore it, 5580 # but warn the user (except for BASH, which is always set by the calling BASH). 5581 if test "xCP" != xBASH; then 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5583 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5584 fi 5585 # Try to locate tool using the code snippet 5586 for ac_prog in cp 5587 do 5588 # Extract the first word of "$ac_prog", so it can be a program name with args. 5589 set dummy $ac_prog; ac_word=$2 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5591 $as_echo_n "checking for $ac_word... " >&6; } 5592 if ${ac_cv_path_CP+:} false; then : 5593 $as_echo_n "(cached) " >&6 5594 else 5595 case $CP in 5596 [\\/]* | ?:[\\/]*) 5597 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5598 ;; 5599 *) 5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5601 for as_dir in $PATH 5602 do 5603 IFS=$as_save_IFS 5604 test -z "$as_dir" && as_dir=. 5605 for ac_exec_ext in '' $ac_executable_extensions; do 5606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5607 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5609 break 2 5610 fi 5611 done 5612 done 5613 IFS=$as_save_IFS 5614 5615 ;; 5616 esac 5617 fi 5618 CP=$ac_cv_path_CP 5619 if test -n "$CP"; then 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5621 $as_echo "$CP" >&6; } 5622 else 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5624 $as_echo "no" >&6; } 5625 fi 5626 5627 5628 test -n "$CP" && break 5629 done 5630 5631 else 5632 # If it succeeded, then it was overridden by the user. We will use it 5633 # for the tool. 5634 5635 # First remove it from the list of overridden variables, so we can test 5636 # for unknown variables in the end. 5637 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5638 5639 # Check if the provided tool contains a complete path. 5640 tool_specified="$CP" 5641 tool_basename="${tool_specified##*/}" 5642 if test "x$tool_basename" = "x$tool_specified"; then 5643 # A command without a complete path is provided, search $PATH. 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5645 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5646 # Extract the first word of "$tool_basename", so it can be a program name with args. 5647 set dummy $tool_basename; ac_word=$2 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5649 $as_echo_n "checking for $ac_word... " >&6; } 5650 if ${ac_cv_path_CP+:} false; then : 5651 $as_echo_n "(cached) " >&6 5652 else 5653 case $CP in 5654 [\\/]* | ?:[\\/]*) 5655 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5656 ;; 5657 *) 5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5659 for as_dir in $PATH 5660 do 5661 IFS=$as_save_IFS 5662 test -z "$as_dir" && as_dir=. 5663 for ac_exec_ext in '' $ac_executable_extensions; do 5664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5665 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5667 break 2 5668 fi 5669 done 5670 done 5671 IFS=$as_save_IFS 5672 5673 ;; 5674 esac 5675 fi 5676 CP=$ac_cv_path_CP 5677 if test -n "$CP"; then 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5679 $as_echo "$CP" >&6; } 5680 else 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5682 $as_echo "no" >&6; } 5683 fi 5684 5685 5686 if test "x$CP" = x; then 5687 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5688 fi 5689 else 5690 # Otherwise we believe it is a complete path. Use it as it is. 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5692 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5694 $as_echo_n "checking for CP... " >&6; } 5695 if test ! -x "$tool_specified"; then 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5697 $as_echo "not found" >&6; } 5698 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5699 fi 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5701 $as_echo "$tool_specified" >&6; } 5702 fi 5703 fi 5704 fi 5705 5706 5707 5708 if test "x$CP" = x; then 5709 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5710 fi 5711 5712 5713 5714 5715 5716 # Publish this variable in the help. 5717 5718 5719 if test "x$CUT" = x; then 5720 # The variable is not set by user, try to locate tool using the code snippet 5721 for ac_prog in cut 5722 do 5723 # Extract the first word of "$ac_prog", so it can be a program name with args. 5724 set dummy $ac_prog; ac_word=$2 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5726 $as_echo_n "checking for $ac_word... " >&6; } 5727 if ${ac_cv_path_CUT+:} false; then : 5728 $as_echo_n "(cached) " >&6 5729 else 5730 case $CUT in 5731 [\\/]* | ?:[\\/]*) 5732 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5733 ;; 5734 *) 5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5736 for as_dir in $PATH 5737 do 5738 IFS=$as_save_IFS 5739 test -z "$as_dir" && as_dir=. 5740 for ac_exec_ext in '' $ac_executable_extensions; do 5741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5742 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5744 break 2 5745 fi 5746 done 5747 done 5748 IFS=$as_save_IFS 5749 5750 ;; 5751 esac 5752 fi 5753 CUT=$ac_cv_path_CUT 5754 if test -n "$CUT"; then 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5756 $as_echo "$CUT" >&6; } 5757 else 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5759 $as_echo "no" >&6; } 5760 fi 5761 5762 5763 test -n "$CUT" && break 5764 done 5765 5766 else 5767 # The variable is set, but is it from the command line or the environment? 5768 5769 # Try to remove the string !CUT! from our list. 5770 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5771 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5772 # If it failed, the variable was not from the command line. Ignore it, 5773 # but warn the user (except for BASH, which is always set by the calling BASH). 5774 if test "xCUT" != xBASH; then 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5776 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5777 fi 5778 # Try to locate tool using the code snippet 5779 for ac_prog in cut 5780 do 5781 # Extract the first word of "$ac_prog", so it can be a program name with args. 5782 set dummy $ac_prog; ac_word=$2 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5784 $as_echo_n "checking for $ac_word... " >&6; } 5785 if ${ac_cv_path_CUT+:} false; then : 5786 $as_echo_n "(cached) " >&6 5787 else 5788 case $CUT in 5789 [\\/]* | ?:[\\/]*) 5790 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5791 ;; 5792 *) 5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5794 for as_dir in $PATH 5795 do 5796 IFS=$as_save_IFS 5797 test -z "$as_dir" && as_dir=. 5798 for ac_exec_ext in '' $ac_executable_extensions; do 5799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5800 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5802 break 2 5803 fi 5804 done 5805 done 5806 IFS=$as_save_IFS 5807 5808 ;; 5809 esac 5810 fi 5811 CUT=$ac_cv_path_CUT 5812 if test -n "$CUT"; then 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5814 $as_echo "$CUT" >&6; } 5815 else 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5817 $as_echo "no" >&6; } 5818 fi 5819 5820 5821 test -n "$CUT" && break 5822 done 5823 5824 else 5825 # If it succeeded, then it was overridden by the user. We will use it 5826 # for the tool. 5827 5828 # First remove it from the list of overridden variables, so we can test 5829 # for unknown variables in the end. 5830 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5831 5832 # Check if the provided tool contains a complete path. 5833 tool_specified="$CUT" 5834 tool_basename="${tool_specified##*/}" 5835 if test "x$tool_basename" = "x$tool_specified"; then 5836 # A command without a complete path is provided, search $PATH. 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5838 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5839 # Extract the first word of "$tool_basename", so it can be a program name with args. 5840 set dummy $tool_basename; ac_word=$2 5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5842 $as_echo_n "checking for $ac_word... " >&6; } 5843 if ${ac_cv_path_CUT+:} false; then : 5844 $as_echo_n "(cached) " >&6 5845 else 5846 case $CUT in 5847 [\\/]* | ?:[\\/]*) 5848 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5849 ;; 5850 *) 5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5852 for as_dir in $PATH 5853 do 5854 IFS=$as_save_IFS 5855 test -z "$as_dir" && as_dir=. 5856 for ac_exec_ext in '' $ac_executable_extensions; do 5857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5858 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5860 break 2 5861 fi 5862 done 5863 done 5864 IFS=$as_save_IFS 5865 5866 ;; 5867 esac 5868 fi 5869 CUT=$ac_cv_path_CUT 5870 if test -n "$CUT"; then 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5872 $as_echo "$CUT" >&6; } 5873 else 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5875 $as_echo "no" >&6; } 5876 fi 5877 5878 5879 if test "x$CUT" = x; then 5880 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5881 fi 5882 else 5883 # Otherwise we believe it is a complete path. Use it as it is. 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5885 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5887 $as_echo_n "checking for CUT... " >&6; } 5888 if test ! -x "$tool_specified"; then 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5890 $as_echo "not found" >&6; } 5891 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5892 fi 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5894 $as_echo "$tool_specified" >&6; } 5895 fi 5896 fi 5897 fi 5898 5899 5900 5901 if test "x$CUT" = x; then 5902 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5903 fi 5904 5905 5906 5907 5908 5909 # Publish this variable in the help. 5910 5911 5912 if test "x$DATE" = x; then 5913 # The variable is not set by user, try to locate tool using the code snippet 5914 for ac_prog in date 5915 do 5916 # Extract the first word of "$ac_prog", so it can be a program name with args. 5917 set dummy $ac_prog; ac_word=$2 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5919 $as_echo_n "checking for $ac_word... " >&6; } 5920 if ${ac_cv_path_DATE+:} false; then : 5921 $as_echo_n "(cached) " >&6 5922 else 5923 case $DATE in 5924 [\\/]* | ?:[\\/]*) 5925 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5926 ;; 5927 *) 5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5929 for as_dir in $PATH 5930 do 5931 IFS=$as_save_IFS 5932 test -z "$as_dir" && as_dir=. 5933 for ac_exec_ext in '' $ac_executable_extensions; do 5934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5935 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5937 break 2 5938 fi 5939 done 5940 done 5941 IFS=$as_save_IFS 5942 5943 ;; 5944 esac 5945 fi 5946 DATE=$ac_cv_path_DATE 5947 if test -n "$DATE"; then 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 5949 $as_echo "$DATE" >&6; } 5950 else 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5952 $as_echo "no" >&6; } 5953 fi 5954 5955 5956 test -n "$DATE" && break 5957 done 5958 5959 else 5960 # The variable is set, but is it from the command line or the environment? 5961 5962 # Try to remove the string !DATE! from our list. 5963 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 5964 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5965 # If it failed, the variable was not from the command line. Ignore it, 5966 # but warn the user (except for BASH, which is always set by the calling BASH). 5967 if test "xDATE" != xBASH; then 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 5969 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 5970 fi 5971 # Try to locate tool using the code snippet 5972 for ac_prog in date 5973 do 5974 # Extract the first word of "$ac_prog", so it can be a program name with args. 5975 set dummy $ac_prog; ac_word=$2 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5977 $as_echo_n "checking for $ac_word... " >&6; } 5978 if ${ac_cv_path_DATE+:} false; then : 5979 $as_echo_n "(cached) " >&6 5980 else 5981 case $DATE in 5982 [\\/]* | ?:[\\/]*) 5983 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5984 ;; 5985 *) 5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5987 for as_dir in $PATH 5988 do 5989 IFS=$as_save_IFS 5990 test -z "$as_dir" && as_dir=. 5991 for ac_exec_ext in '' $ac_executable_extensions; do 5992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5993 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5995 break 2 5996 fi 5997 done 5998 done 5999 IFS=$as_save_IFS 6000 6001 ;; 6002 esac 6003 fi 6004 DATE=$ac_cv_path_DATE 6005 if test -n "$DATE"; then 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6007 $as_echo "$DATE" >&6; } 6008 else 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6010 $as_echo "no" >&6; } 6011 fi 6012 6013 6014 test -n "$DATE" && break 6015 done 6016 6017 else 6018 # If it succeeded, then it was overridden by the user. We will use it 6019 # for the tool. 6020 6021 # First remove it from the list of overridden variables, so we can test 6022 # for unknown variables in the end. 6023 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6024 6025 # Check if the provided tool contains a complete path. 6026 tool_specified="$DATE" 6027 tool_basename="${tool_specified##*/}" 6028 if test "x$tool_basename" = "x$tool_specified"; then 6029 # A command without a complete path is provided, search $PATH. 6030 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6031 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6032 # Extract the first word of "$tool_basename", so it can be a program name with args. 6033 set dummy $tool_basename; ac_word=$2 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6035 $as_echo_n "checking for $ac_word... " >&6; } 6036 if ${ac_cv_path_DATE+:} false; then : 6037 $as_echo_n "(cached) " >&6 6038 else 6039 case $DATE in 6040 [\\/]* | ?:[\\/]*) 6041 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6042 ;; 6043 *) 6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6045 for as_dir in $PATH 6046 do 6047 IFS=$as_save_IFS 6048 test -z "$as_dir" && as_dir=. 6049 for ac_exec_ext in '' $ac_executable_extensions; do 6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6051 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6053 break 2 6054 fi 6055 done 6056 done 6057 IFS=$as_save_IFS 6058 6059 ;; 6060 esac 6061 fi 6062 DATE=$ac_cv_path_DATE 6063 if test -n "$DATE"; then 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6065 $as_echo "$DATE" >&6; } 6066 else 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6068 $as_echo "no" >&6; } 6069 fi 6070 6071 6072 if test "x$DATE" = x; then 6073 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6074 fi 6075 else 6076 # Otherwise we believe it is a complete path. Use it as it is. 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6078 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6080 $as_echo_n "checking for DATE... " >&6; } 6081 if test ! -x "$tool_specified"; then 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6083 $as_echo "not found" >&6; } 6084 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6085 fi 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6087 $as_echo "$tool_specified" >&6; } 6088 fi 6089 fi 6090 fi 6091 6092 6093 6094 if test "x$DATE" = x; then 6095 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6096 fi 6097 6098 6099 6100 6101 6102 # Publish this variable in the help. 6103 6104 6105 if test "x$DIFF" = x; then 6106 # The variable is not set by user, try to locate tool using the code snippet 6107 for ac_prog in gdiff diff 6108 do 6109 # Extract the first word of "$ac_prog", so it can be a program name with args. 6110 set dummy $ac_prog; ac_word=$2 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6112 $as_echo_n "checking for $ac_word... " >&6; } 6113 if ${ac_cv_path_DIFF+:} false; then : 6114 $as_echo_n "(cached) " >&6 6115 else 6116 case $DIFF in 6117 [\\/]* | ?:[\\/]*) 6118 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6119 ;; 6120 *) 6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6122 for as_dir in $PATH 6123 do 6124 IFS=$as_save_IFS 6125 test -z "$as_dir" && as_dir=. 6126 for ac_exec_ext in '' $ac_executable_extensions; do 6127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6128 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6130 break 2 6131 fi 6132 done 6133 done 6134 IFS=$as_save_IFS 6135 6136 ;; 6137 esac 6138 fi 6139 DIFF=$ac_cv_path_DIFF 6140 if test -n "$DIFF"; then 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6142 $as_echo "$DIFF" >&6; } 6143 else 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6145 $as_echo "no" >&6; } 6146 fi 6147 6148 6149 test -n "$DIFF" && break 6150 done 6151 6152 else 6153 # The variable is set, but is it from the command line or the environment? 6154 6155 # Try to remove the string !DIFF! from our list. 6156 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6157 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6158 # If it failed, the variable was not from the command line. Ignore it, 6159 # but warn the user (except for BASH, which is always set by the calling BASH). 6160 if test "xDIFF" != xBASH; then 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6162 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6163 fi 6164 # Try to locate tool using the code snippet 6165 for ac_prog in gdiff diff 6166 do 6167 # Extract the first word of "$ac_prog", so it can be a program name with args. 6168 set dummy $ac_prog; ac_word=$2 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6170 $as_echo_n "checking for $ac_word... " >&6; } 6171 if ${ac_cv_path_DIFF+:} false; then : 6172 $as_echo_n "(cached) " >&6 6173 else 6174 case $DIFF in 6175 [\\/]* | ?:[\\/]*) 6176 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6177 ;; 6178 *) 6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6180 for as_dir in $PATH 6181 do 6182 IFS=$as_save_IFS 6183 test -z "$as_dir" && as_dir=. 6184 for ac_exec_ext in '' $ac_executable_extensions; do 6185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6186 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6188 break 2 6189 fi 6190 done 6191 done 6192 IFS=$as_save_IFS 6193 6194 ;; 6195 esac 6196 fi 6197 DIFF=$ac_cv_path_DIFF 6198 if test -n "$DIFF"; then 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6200 $as_echo "$DIFF" >&6; } 6201 else 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6203 $as_echo "no" >&6; } 6204 fi 6205 6206 6207 test -n "$DIFF" && break 6208 done 6209 6210 else 6211 # If it succeeded, then it was overridden by the user. We will use it 6212 # for the tool. 6213 6214 # First remove it from the list of overridden variables, so we can test 6215 # for unknown variables in the end. 6216 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6217 6218 # Check if the provided tool contains a complete path. 6219 tool_specified="$DIFF" 6220 tool_basename="${tool_specified##*/}" 6221 if test "x$tool_basename" = "x$tool_specified"; then 6222 # A command without a complete path is provided, search $PATH. 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6224 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6225 # Extract the first word of "$tool_basename", so it can be a program name with args. 6226 set dummy $tool_basename; ac_word=$2 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6228 $as_echo_n "checking for $ac_word... " >&6; } 6229 if ${ac_cv_path_DIFF+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231 else 6232 case $DIFF in 6233 [\\/]* | ?:[\\/]*) 6234 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6235 ;; 6236 *) 6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6238 for as_dir in $PATH 6239 do 6240 IFS=$as_save_IFS 6241 test -z "$as_dir" && as_dir=. 6242 for ac_exec_ext in '' $ac_executable_extensions; do 6243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6244 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6246 break 2 6247 fi 6248 done 6249 done 6250 IFS=$as_save_IFS 6251 6252 ;; 6253 esac 6254 fi 6255 DIFF=$ac_cv_path_DIFF 6256 if test -n "$DIFF"; then 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6258 $as_echo "$DIFF" >&6; } 6259 else 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6261 $as_echo "no" >&6; } 6262 fi 6263 6264 6265 if test "x$DIFF" = x; then 6266 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6267 fi 6268 else 6269 # Otherwise we believe it is a complete path. Use it as it is. 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6271 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6273 $as_echo_n "checking for DIFF... " >&6; } 6274 if test ! -x "$tool_specified"; then 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6276 $as_echo "not found" >&6; } 6277 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6278 fi 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6280 $as_echo "$tool_specified" >&6; } 6281 fi 6282 fi 6283 fi 6284 6285 6286 6287 if test "x$DIFF" = x; then 6288 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6289 fi 6290 6291 6292 6293 6294 6295 # Publish this variable in the help. 6296 6297 6298 if test "x$DIRNAME" = x; then 6299 # The variable is not set by user, try to locate tool using the code snippet 6300 for ac_prog in dirname 6301 do 6302 # Extract the first word of "$ac_prog", so it can be a program name with args. 6303 set dummy $ac_prog; ac_word=$2 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6305 $as_echo_n "checking for $ac_word... " >&6; } 6306 if ${ac_cv_path_DIRNAME+:} false; then : 6307 $as_echo_n "(cached) " >&6 6308 else 6309 case $DIRNAME in 6310 [\\/]* | ?:[\\/]*) 6311 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6312 ;; 6313 *) 6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6315 for as_dir in $PATH 6316 do 6317 IFS=$as_save_IFS 6318 test -z "$as_dir" && as_dir=. 6319 for ac_exec_ext in '' $ac_executable_extensions; do 6320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6321 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6323 break 2 6324 fi 6325 done 6326 done 6327 IFS=$as_save_IFS 6328 6329 ;; 6330 esac 6331 fi 6332 DIRNAME=$ac_cv_path_DIRNAME 6333 if test -n "$DIRNAME"; then 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6335 $as_echo "$DIRNAME" >&6; } 6336 else 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6338 $as_echo "no" >&6; } 6339 fi 6340 6341 6342 test -n "$DIRNAME" && break 6343 done 6344 6345 else 6346 # The variable is set, but is it from the command line or the environment? 6347 6348 # Try to remove the string !DIRNAME! from our list. 6349 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6350 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6351 # If it failed, the variable was not from the command line. Ignore it, 6352 # but warn the user (except for BASH, which is always set by the calling BASH). 6353 if test "xDIRNAME" != xBASH; then 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6355 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6356 fi 6357 # Try to locate tool using the code snippet 6358 for ac_prog in dirname 6359 do 6360 # Extract the first word of "$ac_prog", so it can be a program name with args. 6361 set dummy $ac_prog; ac_word=$2 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6363 $as_echo_n "checking for $ac_word... " >&6; } 6364 if ${ac_cv_path_DIRNAME+:} false; then : 6365 $as_echo_n "(cached) " >&6 6366 else 6367 case $DIRNAME in 6368 [\\/]* | ?:[\\/]*) 6369 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6370 ;; 6371 *) 6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6373 for as_dir in $PATH 6374 do 6375 IFS=$as_save_IFS 6376 test -z "$as_dir" && as_dir=. 6377 for ac_exec_ext in '' $ac_executable_extensions; do 6378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6379 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6381 break 2 6382 fi 6383 done 6384 done 6385 IFS=$as_save_IFS 6386 6387 ;; 6388 esac 6389 fi 6390 DIRNAME=$ac_cv_path_DIRNAME 6391 if test -n "$DIRNAME"; then 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6393 $as_echo "$DIRNAME" >&6; } 6394 else 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6396 $as_echo "no" >&6; } 6397 fi 6398 6399 6400 test -n "$DIRNAME" && break 6401 done 6402 6403 else 6404 # If it succeeded, then it was overridden by the user. We will use it 6405 # for the tool. 6406 6407 # First remove it from the list of overridden variables, so we can test 6408 # for unknown variables in the end. 6409 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6410 6411 # Check if the provided tool contains a complete path. 6412 tool_specified="$DIRNAME" 6413 tool_basename="${tool_specified##*/}" 6414 if test "x$tool_basename" = "x$tool_specified"; then 6415 # A command without a complete path is provided, search $PATH. 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6417 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6418 # Extract the first word of "$tool_basename", so it can be a program name with args. 6419 set dummy $tool_basename; ac_word=$2 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6421 $as_echo_n "checking for $ac_word... " >&6; } 6422 if ${ac_cv_path_DIRNAME+:} false; then : 6423 $as_echo_n "(cached) " >&6 6424 else 6425 case $DIRNAME in 6426 [\\/]* | ?:[\\/]*) 6427 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6428 ;; 6429 *) 6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6431 for as_dir in $PATH 6432 do 6433 IFS=$as_save_IFS 6434 test -z "$as_dir" && as_dir=. 6435 for ac_exec_ext in '' $ac_executable_extensions; do 6436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6437 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6439 break 2 6440 fi 6441 done 6442 done 6443 IFS=$as_save_IFS 6444 6445 ;; 6446 esac 6447 fi 6448 DIRNAME=$ac_cv_path_DIRNAME 6449 if test -n "$DIRNAME"; then 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6451 $as_echo "$DIRNAME" >&6; } 6452 else 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6454 $as_echo "no" >&6; } 6455 fi 6456 6457 6458 if test "x$DIRNAME" = x; then 6459 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6460 fi 6461 else 6462 # Otherwise we believe it is a complete path. Use it as it is. 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6464 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6466 $as_echo_n "checking for DIRNAME... " >&6; } 6467 if test ! -x "$tool_specified"; then 6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6469 $as_echo "not found" >&6; } 6470 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6471 fi 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6473 $as_echo "$tool_specified" >&6; } 6474 fi 6475 fi 6476 fi 6477 6478 6479 6480 if test "x$DIRNAME" = x; then 6481 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6482 fi 6483 6484 6485 6486 6487 6488 # Publish this variable in the help. 6489 6490 6491 if test "x$ECHO" = x; then 6492 # The variable is not set by user, try to locate tool using the code snippet 6493 for ac_prog in echo 6494 do 6495 # Extract the first word of "$ac_prog", so it can be a program name with args. 6496 set dummy $ac_prog; ac_word=$2 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6498 $as_echo_n "checking for $ac_word... " >&6; } 6499 if ${ac_cv_path_ECHO+:} false; then : 6500 $as_echo_n "(cached) " >&6 6501 else 6502 case $ECHO in 6503 [\\/]* | ?:[\\/]*) 6504 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6505 ;; 6506 *) 6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6508 for as_dir in $PATH 6509 do 6510 IFS=$as_save_IFS 6511 test -z "$as_dir" && as_dir=. 6512 for ac_exec_ext in '' $ac_executable_extensions; do 6513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6514 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6516 break 2 6517 fi 6518 done 6519 done 6520 IFS=$as_save_IFS 6521 6522 ;; 6523 esac 6524 fi 6525 ECHO=$ac_cv_path_ECHO 6526 if test -n "$ECHO"; then 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6528 $as_echo "$ECHO" >&6; } 6529 else 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6531 $as_echo "no" >&6; } 6532 fi 6533 6534 6535 test -n "$ECHO" && break 6536 done 6537 6538 else 6539 # The variable is set, but is it from the command line or the environment? 6540 6541 # Try to remove the string !ECHO! from our list. 6542 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6543 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6544 # If it failed, the variable was not from the command line. Ignore it, 6545 # but warn the user (except for BASH, which is always set by the calling BASH). 6546 if test "xECHO" != xBASH; then 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6548 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6549 fi 6550 # Try to locate tool using the code snippet 6551 for ac_prog in echo 6552 do 6553 # Extract the first word of "$ac_prog", so it can be a program name with args. 6554 set dummy $ac_prog; ac_word=$2 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6556 $as_echo_n "checking for $ac_word... " >&6; } 6557 if ${ac_cv_path_ECHO+:} false; then : 6558 $as_echo_n "(cached) " >&6 6559 else 6560 case $ECHO in 6561 [\\/]* | ?:[\\/]*) 6562 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6563 ;; 6564 *) 6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6566 for as_dir in $PATH 6567 do 6568 IFS=$as_save_IFS 6569 test -z "$as_dir" && as_dir=. 6570 for ac_exec_ext in '' $ac_executable_extensions; do 6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6572 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6574 break 2 6575 fi 6576 done 6577 done 6578 IFS=$as_save_IFS 6579 6580 ;; 6581 esac 6582 fi 6583 ECHO=$ac_cv_path_ECHO 6584 if test -n "$ECHO"; then 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6586 $as_echo "$ECHO" >&6; } 6587 else 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6589 $as_echo "no" >&6; } 6590 fi 6591 6592 6593 test -n "$ECHO" && break 6594 done 6595 6596 else 6597 # If it succeeded, then it was overridden by the user. We will use it 6598 # for the tool. 6599 6600 # First remove it from the list of overridden variables, so we can test 6601 # for unknown variables in the end. 6602 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6603 6604 # Check if the provided tool contains a complete path. 6605 tool_specified="$ECHO" 6606 tool_basename="${tool_specified##*/}" 6607 if test "x$tool_basename" = "x$tool_specified"; then 6608 # A command without a complete path is provided, search $PATH. 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6610 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6611 # Extract the first word of "$tool_basename", so it can be a program name with args. 6612 set dummy $tool_basename; ac_word=$2 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6614 $as_echo_n "checking for $ac_word... " >&6; } 6615 if ${ac_cv_path_ECHO+:} false; then : 6616 $as_echo_n "(cached) " >&6 6617 else 6618 case $ECHO in 6619 [\\/]* | ?:[\\/]*) 6620 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6621 ;; 6622 *) 6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6624 for as_dir in $PATH 6625 do 6626 IFS=$as_save_IFS 6627 test -z "$as_dir" && as_dir=. 6628 for ac_exec_ext in '' $ac_executable_extensions; do 6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6630 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6632 break 2 6633 fi 6634 done 6635 done 6636 IFS=$as_save_IFS 6637 6638 ;; 6639 esac 6640 fi 6641 ECHO=$ac_cv_path_ECHO 6642 if test -n "$ECHO"; then 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6644 $as_echo "$ECHO" >&6; } 6645 else 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6647 $as_echo "no" >&6; } 6648 fi 6649 6650 6651 if test "x$ECHO" = x; then 6652 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6653 fi 6654 else 6655 # Otherwise we believe it is a complete path. Use it as it is. 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6657 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6659 $as_echo_n "checking for ECHO... " >&6; } 6660 if test ! -x "$tool_specified"; then 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6662 $as_echo "not found" >&6; } 6663 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6664 fi 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6666 $as_echo "$tool_specified" >&6; } 6667 fi 6668 fi 6669 fi 6670 6671 6672 6673 if test "x$ECHO" = x; then 6674 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6675 fi 6676 6677 6678 6679 6680 6681 # Publish this variable in the help. 6682 6683 6684 if test "x$EXPR" = x; then 6685 # The variable is not set by user, try to locate tool using the code snippet 6686 for ac_prog in expr 6687 do 6688 # Extract the first word of "$ac_prog", so it can be a program name with args. 6689 set dummy $ac_prog; ac_word=$2 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6691 $as_echo_n "checking for $ac_word... " >&6; } 6692 if ${ac_cv_path_EXPR+:} false; then : 6693 $as_echo_n "(cached) " >&6 6694 else 6695 case $EXPR in 6696 [\\/]* | ?:[\\/]*) 6697 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6698 ;; 6699 *) 6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6701 for as_dir in $PATH 6702 do 6703 IFS=$as_save_IFS 6704 test -z "$as_dir" && as_dir=. 6705 for ac_exec_ext in '' $ac_executable_extensions; do 6706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6707 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6709 break 2 6710 fi 6711 done 6712 done 6713 IFS=$as_save_IFS 6714 6715 ;; 6716 esac 6717 fi 6718 EXPR=$ac_cv_path_EXPR 6719 if test -n "$EXPR"; then 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6721 $as_echo "$EXPR" >&6; } 6722 else 6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6724 $as_echo "no" >&6; } 6725 fi 6726 6727 6728 test -n "$EXPR" && break 6729 done 6730 6731 else 6732 # The variable is set, but is it from the command line or the environment? 6733 6734 # Try to remove the string !EXPR! from our list. 6735 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6736 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6737 # If it failed, the variable was not from the command line. Ignore it, 6738 # but warn the user (except for BASH, which is always set by the calling BASH). 6739 if test "xEXPR" != xBASH; then 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6741 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6742 fi 6743 # Try to locate tool using the code snippet 6744 for ac_prog in expr 6745 do 6746 # Extract the first word of "$ac_prog", so it can be a program name with args. 6747 set dummy $ac_prog; ac_word=$2 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6749 $as_echo_n "checking for $ac_word... " >&6; } 6750 if ${ac_cv_path_EXPR+:} false; then : 6751 $as_echo_n "(cached) " >&6 6752 else 6753 case $EXPR in 6754 [\\/]* | ?:[\\/]*) 6755 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6756 ;; 6757 *) 6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6759 for as_dir in $PATH 6760 do 6761 IFS=$as_save_IFS 6762 test -z "$as_dir" && as_dir=. 6763 for ac_exec_ext in '' $ac_executable_extensions; do 6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6765 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6767 break 2 6768 fi 6769 done 6770 done 6771 IFS=$as_save_IFS 6772 6773 ;; 6774 esac 6775 fi 6776 EXPR=$ac_cv_path_EXPR 6777 if test -n "$EXPR"; then 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6779 $as_echo "$EXPR" >&6; } 6780 else 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6782 $as_echo "no" >&6; } 6783 fi 6784 6785 6786 test -n "$EXPR" && break 6787 done 6788 6789 else 6790 # If it succeeded, then it was overridden by the user. We will use it 6791 # for the tool. 6792 6793 # First remove it from the list of overridden variables, so we can test 6794 # for unknown variables in the end. 6795 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6796 6797 # Check if the provided tool contains a complete path. 6798 tool_specified="$EXPR" 6799 tool_basename="${tool_specified##*/}" 6800 if test "x$tool_basename" = "x$tool_specified"; then 6801 # A command without a complete path is provided, search $PATH. 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6803 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6804 # Extract the first word of "$tool_basename", so it can be a program name with args. 6805 set dummy $tool_basename; ac_word=$2 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6807 $as_echo_n "checking for $ac_word... " >&6; } 6808 if ${ac_cv_path_EXPR+:} false; then : 6809 $as_echo_n "(cached) " >&6 6810 else 6811 case $EXPR in 6812 [\\/]* | ?:[\\/]*) 6813 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6814 ;; 6815 *) 6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6817 for as_dir in $PATH 6818 do 6819 IFS=$as_save_IFS 6820 test -z "$as_dir" && as_dir=. 6821 for ac_exec_ext in '' $ac_executable_extensions; do 6822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6823 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6825 break 2 6826 fi 6827 done 6828 done 6829 IFS=$as_save_IFS 6830 6831 ;; 6832 esac 6833 fi 6834 EXPR=$ac_cv_path_EXPR 6835 if test -n "$EXPR"; then 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6837 $as_echo "$EXPR" >&6; } 6838 else 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6840 $as_echo "no" >&6; } 6841 fi 6842 6843 6844 if test "x$EXPR" = x; then 6845 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6846 fi 6847 else 6848 # Otherwise we believe it is a complete path. Use it as it is. 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6850 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6852 $as_echo_n "checking for EXPR... " >&6; } 6853 if test ! -x "$tool_specified"; then 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6855 $as_echo "not found" >&6; } 6856 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6857 fi 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6859 $as_echo "$tool_specified" >&6; } 6860 fi 6861 fi 6862 fi 6863 6864 6865 6866 if test "x$EXPR" = x; then 6867 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6868 fi 6869 6870 6871 6872 6873 6874 # Publish this variable in the help. 6875 6876 6877 if test "x$FILE" = x; then 6878 # The variable is not set by user, try to locate tool using the code snippet 6879 for ac_prog in file 6880 do 6881 # Extract the first word of "$ac_prog", so it can be a program name with args. 6882 set dummy $ac_prog; ac_word=$2 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6884 $as_echo_n "checking for $ac_word... " >&6; } 6885 if ${ac_cv_path_FILE+:} false; then : 6886 $as_echo_n "(cached) " >&6 6887 else 6888 case $FILE in 6889 [\\/]* | ?:[\\/]*) 6890 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6891 ;; 6892 *) 6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6894 for as_dir in $PATH 6895 do 6896 IFS=$as_save_IFS 6897 test -z "$as_dir" && as_dir=. 6898 for ac_exec_ext in '' $ac_executable_extensions; do 6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6900 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6902 break 2 6903 fi 6904 done 6905 done 6906 IFS=$as_save_IFS 6907 6908 ;; 6909 esac 6910 fi 6911 FILE=$ac_cv_path_FILE 6912 if test -n "$FILE"; then 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6914 $as_echo "$FILE" >&6; } 6915 else 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6917 $as_echo "no" >&6; } 6918 fi 6919 6920 6921 test -n "$FILE" && break 6922 done 6923 6924 else 6925 # The variable is set, but is it from the command line or the environment? 6926 6927 # Try to remove the string !FILE! from our list. 6928 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 6929 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6930 # If it failed, the variable was not from the command line. Ignore it, 6931 # but warn the user (except for BASH, which is always set by the calling BASH). 6932 if test "xFILE" != xBASH; then 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 6934 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 6935 fi 6936 # Try to locate tool using the code snippet 6937 for ac_prog in file 6938 do 6939 # Extract the first word of "$ac_prog", so it can be a program name with args. 6940 set dummy $ac_prog; ac_word=$2 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6942 $as_echo_n "checking for $ac_word... " >&6; } 6943 if ${ac_cv_path_FILE+:} false; then : 6944 $as_echo_n "(cached) " >&6 6945 else 6946 case $FILE in 6947 [\\/]* | ?:[\\/]*) 6948 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6949 ;; 6950 *) 6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6952 for as_dir in $PATH 6953 do 6954 IFS=$as_save_IFS 6955 test -z "$as_dir" && as_dir=. 6956 for ac_exec_ext in '' $ac_executable_extensions; do 6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6958 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6960 break 2 6961 fi 6962 done 6963 done 6964 IFS=$as_save_IFS 6965 6966 ;; 6967 esac 6968 fi 6969 FILE=$ac_cv_path_FILE 6970 if test -n "$FILE"; then 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6972 $as_echo "$FILE" >&6; } 6973 else 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6975 $as_echo "no" >&6; } 6976 fi 6977 6978 6979 test -n "$FILE" && break 6980 done 6981 6982 else 6983 # If it succeeded, then it was overridden by the user. We will use it 6984 # for the tool. 6985 6986 # First remove it from the list of overridden variables, so we can test 6987 # for unknown variables in the end. 6988 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6989 6990 # Check if the provided tool contains a complete path. 6991 tool_specified="$FILE" 6992 tool_basename="${tool_specified##*/}" 6993 if test "x$tool_basename" = "x$tool_specified"; then 6994 # A command without a complete path is provided, search $PATH. 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 6996 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 6997 # Extract the first word of "$tool_basename", so it can be a program name with args. 6998 set dummy $tool_basename; ac_word=$2 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7000 $as_echo_n "checking for $ac_word... " >&6; } 7001 if ${ac_cv_path_FILE+:} false; then : 7002 $as_echo_n "(cached) " >&6 7003 else 7004 case $FILE in 7005 [\\/]* | ?:[\\/]*) 7006 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7007 ;; 7008 *) 7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7010 for as_dir in $PATH 7011 do 7012 IFS=$as_save_IFS 7013 test -z "$as_dir" && as_dir=. 7014 for ac_exec_ext in '' $ac_executable_extensions; do 7015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7016 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7018 break 2 7019 fi 7020 done 7021 done 7022 IFS=$as_save_IFS 7023 7024 ;; 7025 esac 7026 fi 7027 FILE=$ac_cv_path_FILE 7028 if test -n "$FILE"; then 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7030 $as_echo "$FILE" >&6; } 7031 else 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7033 $as_echo "no" >&6; } 7034 fi 7035 7036 7037 if test "x$FILE" = x; then 7038 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7039 fi 7040 else 7041 # Otherwise we believe it is a complete path. Use it as it is. 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7043 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7045 $as_echo_n "checking for FILE... " >&6; } 7046 if test ! -x "$tool_specified"; then 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7048 $as_echo "not found" >&6; } 7049 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7050 fi 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7052 $as_echo "$tool_specified" >&6; } 7053 fi 7054 fi 7055 fi 7056 7057 7058 7059 if test "x$FILE" = x; then 7060 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7061 fi 7062 7063 7064 7065 7066 7067 # Publish this variable in the help. 7068 7069 7070 if test "x$FIND" = x; then 7071 # The variable is not set by user, try to locate tool using the code snippet 7072 for ac_prog in find 7073 do 7074 # Extract the first word of "$ac_prog", so it can be a program name with args. 7075 set dummy $ac_prog; ac_word=$2 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7077 $as_echo_n "checking for $ac_word... " >&6; } 7078 if ${ac_cv_path_FIND+:} false; then : 7079 $as_echo_n "(cached) " >&6 7080 else 7081 case $FIND in 7082 [\\/]* | ?:[\\/]*) 7083 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7084 ;; 7085 *) 7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7087 for as_dir in $PATH 7088 do 7089 IFS=$as_save_IFS 7090 test -z "$as_dir" && as_dir=. 7091 for ac_exec_ext in '' $ac_executable_extensions; do 7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7093 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7095 break 2 7096 fi 7097 done 7098 done 7099 IFS=$as_save_IFS 7100 7101 ;; 7102 esac 7103 fi 7104 FIND=$ac_cv_path_FIND 7105 if test -n "$FIND"; then 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7107 $as_echo "$FIND" >&6; } 7108 else 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7110 $as_echo "no" >&6; } 7111 fi 7112 7113 7114 test -n "$FIND" && break 7115 done 7116 7117 else 7118 # The variable is set, but is it from the command line or the environment? 7119 7120 # Try to remove the string !FIND! from our list. 7121 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7122 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7123 # If it failed, the variable was not from the command line. Ignore it, 7124 # but warn the user (except for BASH, which is always set by the calling BASH). 7125 if test "xFIND" != xBASH; then 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7127 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7128 fi 7129 # Try to locate tool using the code snippet 7130 for ac_prog in find 7131 do 7132 # Extract the first word of "$ac_prog", so it can be a program name with args. 7133 set dummy $ac_prog; ac_word=$2 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7135 $as_echo_n "checking for $ac_word... " >&6; } 7136 if ${ac_cv_path_FIND+:} false; then : 7137 $as_echo_n "(cached) " >&6 7138 else 7139 case $FIND in 7140 [\\/]* | ?:[\\/]*) 7141 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7142 ;; 7143 *) 7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7145 for as_dir in $PATH 7146 do 7147 IFS=$as_save_IFS 7148 test -z "$as_dir" && as_dir=. 7149 for ac_exec_ext in '' $ac_executable_extensions; do 7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7151 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7153 break 2 7154 fi 7155 done 7156 done 7157 IFS=$as_save_IFS 7158 7159 ;; 7160 esac 7161 fi 7162 FIND=$ac_cv_path_FIND 7163 if test -n "$FIND"; then 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7165 $as_echo "$FIND" >&6; } 7166 else 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7168 $as_echo "no" >&6; } 7169 fi 7170 7171 7172 test -n "$FIND" && break 7173 done 7174 7175 else 7176 # If it succeeded, then it was overridden by the user. We will use it 7177 # for the tool. 7178 7179 # First remove it from the list of overridden variables, so we can test 7180 # for unknown variables in the end. 7181 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7182 7183 # Check if the provided tool contains a complete path. 7184 tool_specified="$FIND" 7185 tool_basename="${tool_specified##*/}" 7186 if test "x$tool_basename" = "x$tool_specified"; then 7187 # A command without a complete path is provided, search $PATH. 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7189 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7190 # Extract the first word of "$tool_basename", so it can be a program name with args. 7191 set dummy $tool_basename; ac_word=$2 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7193 $as_echo_n "checking for $ac_word... " >&6; } 7194 if ${ac_cv_path_FIND+:} false; then : 7195 $as_echo_n "(cached) " >&6 7196 else 7197 case $FIND in 7198 [\\/]* | ?:[\\/]*) 7199 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7200 ;; 7201 *) 7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7203 for as_dir in $PATH 7204 do 7205 IFS=$as_save_IFS 7206 test -z "$as_dir" && as_dir=. 7207 for ac_exec_ext in '' $ac_executable_extensions; do 7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7209 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7211 break 2 7212 fi 7213 done 7214 done 7215 IFS=$as_save_IFS 7216 7217 ;; 7218 esac 7219 fi 7220 FIND=$ac_cv_path_FIND 7221 if test -n "$FIND"; then 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7223 $as_echo "$FIND" >&6; } 7224 else 7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7226 $as_echo "no" >&6; } 7227 fi 7228 7229 7230 if test "x$FIND" = x; then 7231 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7232 fi 7233 else 7234 # Otherwise we believe it is a complete path. Use it as it is. 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7236 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7238 $as_echo_n "checking for FIND... " >&6; } 7239 if test ! -x "$tool_specified"; then 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7241 $as_echo "not found" >&6; } 7242 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7243 fi 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7245 $as_echo "$tool_specified" >&6; } 7246 fi 7247 fi 7248 fi 7249 7250 7251 7252 if test "x$FIND" = x; then 7253 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7254 fi 7255 7256 7257 7258 7259 7260 # Publish this variable in the help. 7261 7262 7263 if test "x$HEAD" = x; then 7264 # The variable is not set by user, try to locate tool using the code snippet 7265 for ac_prog in head 7266 do 7267 # Extract the first word of "$ac_prog", so it can be a program name with args. 7268 set dummy $ac_prog; ac_word=$2 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7270 $as_echo_n "checking for $ac_word... " >&6; } 7271 if ${ac_cv_path_HEAD+:} false; then : 7272 $as_echo_n "(cached) " >&6 7273 else 7274 case $HEAD in 7275 [\\/]* | ?:[\\/]*) 7276 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7277 ;; 7278 *) 7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7280 for as_dir in $PATH 7281 do 7282 IFS=$as_save_IFS 7283 test -z "$as_dir" && as_dir=. 7284 for ac_exec_ext in '' $ac_executable_extensions; do 7285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7286 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7288 break 2 7289 fi 7290 done 7291 done 7292 IFS=$as_save_IFS 7293 7294 ;; 7295 esac 7296 fi 7297 HEAD=$ac_cv_path_HEAD 7298 if test -n "$HEAD"; then 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7300 $as_echo "$HEAD" >&6; } 7301 else 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7303 $as_echo "no" >&6; } 7304 fi 7305 7306 7307 test -n "$HEAD" && break 7308 done 7309 7310 else 7311 # The variable is set, but is it from the command line or the environment? 7312 7313 # Try to remove the string !HEAD! from our list. 7314 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7315 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7316 # If it failed, the variable was not from the command line. Ignore it, 7317 # but warn the user (except for BASH, which is always set by the calling BASH). 7318 if test "xHEAD" != xBASH; then 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7320 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7321 fi 7322 # Try to locate tool using the code snippet 7323 for ac_prog in head 7324 do 7325 # Extract the first word of "$ac_prog", so it can be a program name with args. 7326 set dummy $ac_prog; ac_word=$2 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7328 $as_echo_n "checking for $ac_word... " >&6; } 7329 if ${ac_cv_path_HEAD+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331 else 7332 case $HEAD in 7333 [\\/]* | ?:[\\/]*) 7334 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7335 ;; 7336 *) 7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7338 for as_dir in $PATH 7339 do 7340 IFS=$as_save_IFS 7341 test -z "$as_dir" && as_dir=. 7342 for ac_exec_ext in '' $ac_executable_extensions; do 7343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7344 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7346 break 2 7347 fi 7348 done 7349 done 7350 IFS=$as_save_IFS 7351 7352 ;; 7353 esac 7354 fi 7355 HEAD=$ac_cv_path_HEAD 7356 if test -n "$HEAD"; then 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7358 $as_echo "$HEAD" >&6; } 7359 else 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7361 $as_echo "no" >&6; } 7362 fi 7363 7364 7365 test -n "$HEAD" && break 7366 done 7367 7368 else 7369 # If it succeeded, then it was overridden by the user. We will use it 7370 # for the tool. 7371 7372 # First remove it from the list of overridden variables, so we can test 7373 # for unknown variables in the end. 7374 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7375 7376 # Check if the provided tool contains a complete path. 7377 tool_specified="$HEAD" 7378 tool_basename="${tool_specified##*/}" 7379 if test "x$tool_basename" = "x$tool_specified"; then 7380 # A command without a complete path is provided, search $PATH. 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7382 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7383 # Extract the first word of "$tool_basename", so it can be a program name with args. 7384 set dummy $tool_basename; ac_word=$2 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7386 $as_echo_n "checking for $ac_word... " >&6; } 7387 if ${ac_cv_path_HEAD+:} false; then : 7388 $as_echo_n "(cached) " >&6 7389 else 7390 case $HEAD in 7391 [\\/]* | ?:[\\/]*) 7392 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7393 ;; 7394 *) 7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7396 for as_dir in $PATH 7397 do 7398 IFS=$as_save_IFS 7399 test -z "$as_dir" && as_dir=. 7400 for ac_exec_ext in '' $ac_executable_extensions; do 7401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7402 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7404 break 2 7405 fi 7406 done 7407 done 7408 IFS=$as_save_IFS 7409 7410 ;; 7411 esac 7412 fi 7413 HEAD=$ac_cv_path_HEAD 7414 if test -n "$HEAD"; then 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7416 $as_echo "$HEAD" >&6; } 7417 else 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7419 $as_echo "no" >&6; } 7420 fi 7421 7422 7423 if test "x$HEAD" = x; then 7424 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7425 fi 7426 else 7427 # Otherwise we believe it is a complete path. Use it as it is. 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7429 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7431 $as_echo_n "checking for HEAD... " >&6; } 7432 if test ! -x "$tool_specified"; then 7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7434 $as_echo "not found" >&6; } 7435 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7436 fi 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7438 $as_echo "$tool_specified" >&6; } 7439 fi 7440 fi 7441 fi 7442 7443 7444 7445 if test "x$HEAD" = x; then 7446 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7447 fi 7448 7449 7450 7451 7452 7453 # Publish this variable in the help. 7454 7455 7456 if test "x$LN" = x; then 7457 # The variable is not set by user, try to locate tool using the code snippet 7458 for ac_prog in ln 7459 do 7460 # Extract the first word of "$ac_prog", so it can be a program name with args. 7461 set dummy $ac_prog; ac_word=$2 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7463 $as_echo_n "checking for $ac_word... " >&6; } 7464 if ${ac_cv_path_LN+:} false; then : 7465 $as_echo_n "(cached) " >&6 7466 else 7467 case $LN in 7468 [\\/]* | ?:[\\/]*) 7469 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7470 ;; 7471 *) 7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7473 for as_dir in $PATH 7474 do 7475 IFS=$as_save_IFS 7476 test -z "$as_dir" && as_dir=. 7477 for ac_exec_ext in '' $ac_executable_extensions; do 7478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7479 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7481 break 2 7482 fi 7483 done 7484 done 7485 IFS=$as_save_IFS 7486 7487 ;; 7488 esac 7489 fi 7490 LN=$ac_cv_path_LN 7491 if test -n "$LN"; then 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7493 $as_echo "$LN" >&6; } 7494 else 7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7496 $as_echo "no" >&6; } 7497 fi 7498 7499 7500 test -n "$LN" && break 7501 done 7502 7503 else 7504 # The variable is set, but is it from the command line or the environment? 7505 7506 # Try to remove the string !LN! from our list. 7507 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7508 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7509 # If it failed, the variable was not from the command line. Ignore it, 7510 # but warn the user (except for BASH, which is always set by the calling BASH). 7511 if test "xLN" != xBASH; then 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7513 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7514 fi 7515 # Try to locate tool using the code snippet 7516 for ac_prog in ln 7517 do 7518 # Extract the first word of "$ac_prog", so it can be a program name with args. 7519 set dummy $ac_prog; ac_word=$2 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7521 $as_echo_n "checking for $ac_word... " >&6; } 7522 if ${ac_cv_path_LN+:} false; then : 7523 $as_echo_n "(cached) " >&6 7524 else 7525 case $LN in 7526 [\\/]* | ?:[\\/]*) 7527 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7528 ;; 7529 *) 7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7531 for as_dir in $PATH 7532 do 7533 IFS=$as_save_IFS 7534 test -z "$as_dir" && as_dir=. 7535 for ac_exec_ext in '' $ac_executable_extensions; do 7536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7537 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7539 break 2 7540 fi 7541 done 7542 done 7543 IFS=$as_save_IFS 7544 7545 ;; 7546 esac 7547 fi 7548 LN=$ac_cv_path_LN 7549 if test -n "$LN"; then 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7551 $as_echo "$LN" >&6; } 7552 else 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7554 $as_echo "no" >&6; } 7555 fi 7556 7557 7558 test -n "$LN" && break 7559 done 7560 7561 else 7562 # If it succeeded, then it was overridden by the user. We will use it 7563 # for the tool. 7564 7565 # First remove it from the list of overridden variables, so we can test 7566 # for unknown variables in the end. 7567 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7568 7569 # Check if the provided tool contains a complete path. 7570 tool_specified="$LN" 7571 tool_basename="${tool_specified##*/}" 7572 if test "x$tool_basename" = "x$tool_specified"; then 7573 # A command without a complete path is provided, search $PATH. 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7575 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7576 # Extract the first word of "$tool_basename", so it can be a program name with args. 7577 set dummy $tool_basename; ac_word=$2 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7579 $as_echo_n "checking for $ac_word... " >&6; } 7580 if ${ac_cv_path_LN+:} false; then : 7581 $as_echo_n "(cached) " >&6 7582 else 7583 case $LN in 7584 [\\/]* | ?:[\\/]*) 7585 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7586 ;; 7587 *) 7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7589 for as_dir in $PATH 7590 do 7591 IFS=$as_save_IFS 7592 test -z "$as_dir" && as_dir=. 7593 for ac_exec_ext in '' $ac_executable_extensions; do 7594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7595 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7597 break 2 7598 fi 7599 done 7600 done 7601 IFS=$as_save_IFS 7602 7603 ;; 7604 esac 7605 fi 7606 LN=$ac_cv_path_LN 7607 if test -n "$LN"; then 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7609 $as_echo "$LN" >&6; } 7610 else 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7612 $as_echo "no" >&6; } 7613 fi 7614 7615 7616 if test "x$LN" = x; then 7617 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7618 fi 7619 else 7620 # Otherwise we believe it is a complete path. Use it as it is. 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7622 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7624 $as_echo_n "checking for LN... " >&6; } 7625 if test ! -x "$tool_specified"; then 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7627 $as_echo "not found" >&6; } 7628 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7629 fi 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7631 $as_echo "$tool_specified" >&6; } 7632 fi 7633 fi 7634 fi 7635 7636 7637 7638 if test "x$LN" = x; then 7639 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7640 fi 7641 7642 7643 7644 7645 7646 # Publish this variable in the help. 7647 7648 7649 if test "x$LS" = x; then 7650 # The variable is not set by user, try to locate tool using the code snippet 7651 for ac_prog in ls 7652 do 7653 # Extract the first word of "$ac_prog", so it can be a program name with args. 7654 set dummy $ac_prog; ac_word=$2 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7656 $as_echo_n "checking for $ac_word... " >&6; } 7657 if ${ac_cv_path_LS+:} false; then : 7658 $as_echo_n "(cached) " >&6 7659 else 7660 case $LS in 7661 [\\/]* | ?:[\\/]*) 7662 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7663 ;; 7664 *) 7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7666 for as_dir in $PATH 7667 do 7668 IFS=$as_save_IFS 7669 test -z "$as_dir" && as_dir=. 7670 for ac_exec_ext in '' $ac_executable_extensions; do 7671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7672 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7674 break 2 7675 fi 7676 done 7677 done 7678 IFS=$as_save_IFS 7679 7680 ;; 7681 esac 7682 fi 7683 LS=$ac_cv_path_LS 7684 if test -n "$LS"; then 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7686 $as_echo "$LS" >&6; } 7687 else 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7689 $as_echo "no" >&6; } 7690 fi 7691 7692 7693 test -n "$LS" && break 7694 done 7695 7696 else 7697 # The variable is set, but is it from the command line or the environment? 7698 7699 # Try to remove the string !LS! from our list. 7700 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7701 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7702 # If it failed, the variable was not from the command line. Ignore it, 7703 # but warn the user (except for BASH, which is always set by the calling BASH). 7704 if test "xLS" != xBASH; then 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7706 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7707 fi 7708 # Try to locate tool using the code snippet 7709 for ac_prog in ls 7710 do 7711 # Extract the first word of "$ac_prog", so it can be a program name with args. 7712 set dummy $ac_prog; ac_word=$2 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7714 $as_echo_n "checking for $ac_word... " >&6; } 7715 if ${ac_cv_path_LS+:} false; then : 7716 $as_echo_n "(cached) " >&6 7717 else 7718 case $LS in 7719 [\\/]* | ?:[\\/]*) 7720 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7721 ;; 7722 *) 7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7724 for as_dir in $PATH 7725 do 7726 IFS=$as_save_IFS 7727 test -z "$as_dir" && as_dir=. 7728 for ac_exec_ext in '' $ac_executable_extensions; do 7729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7730 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7732 break 2 7733 fi 7734 done 7735 done 7736 IFS=$as_save_IFS 7737 7738 ;; 7739 esac 7740 fi 7741 LS=$ac_cv_path_LS 7742 if test -n "$LS"; then 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7744 $as_echo "$LS" >&6; } 7745 else 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7747 $as_echo "no" >&6; } 7748 fi 7749 7750 7751 test -n "$LS" && break 7752 done 7753 7754 else 7755 # If it succeeded, then it was overridden by the user. We will use it 7756 # for the tool. 7757 7758 # First remove it from the list of overridden variables, so we can test 7759 # for unknown variables in the end. 7760 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7761 7762 # Check if the provided tool contains a complete path. 7763 tool_specified="$LS" 7764 tool_basename="${tool_specified##*/}" 7765 if test "x$tool_basename" = "x$tool_specified"; then 7766 # A command without a complete path is provided, search $PATH. 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7768 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7769 # Extract the first word of "$tool_basename", so it can be a program name with args. 7770 set dummy $tool_basename; ac_word=$2 7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7772 $as_echo_n "checking for $ac_word... " >&6; } 7773 if ${ac_cv_path_LS+:} false; then : 7774 $as_echo_n "(cached) " >&6 7775 else 7776 case $LS in 7777 [\\/]* | ?:[\\/]*) 7778 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7779 ;; 7780 *) 7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7782 for as_dir in $PATH 7783 do 7784 IFS=$as_save_IFS 7785 test -z "$as_dir" && as_dir=. 7786 for ac_exec_ext in '' $ac_executable_extensions; do 7787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7788 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7790 break 2 7791 fi 7792 done 7793 done 7794 IFS=$as_save_IFS 7795 7796 ;; 7797 esac 7798 fi 7799 LS=$ac_cv_path_LS 7800 if test -n "$LS"; then 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7802 $as_echo "$LS" >&6; } 7803 else 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7805 $as_echo "no" >&6; } 7806 fi 7807 7808 7809 if test "x$LS" = x; then 7810 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7811 fi 7812 else 7813 # Otherwise we believe it is a complete path. Use it as it is. 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7815 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7817 $as_echo_n "checking for LS... " >&6; } 7818 if test ! -x "$tool_specified"; then 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7820 $as_echo "not found" >&6; } 7821 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7822 fi 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7824 $as_echo "$tool_specified" >&6; } 7825 fi 7826 fi 7827 fi 7828 7829 7830 7831 if test "x$LS" = x; then 7832 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7833 fi 7834 7835 7836 7837 7838 7839 # Publish this variable in the help. 7840 7841 7842 if test "x$MKDIR" = x; then 7843 # The variable is not set by user, try to locate tool using the code snippet 7844 for ac_prog in mkdir 7845 do 7846 # Extract the first word of "$ac_prog", so it can be a program name with args. 7847 set dummy $ac_prog; ac_word=$2 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7849 $as_echo_n "checking for $ac_word... " >&6; } 7850 if ${ac_cv_path_MKDIR+:} false; then : 7851 $as_echo_n "(cached) " >&6 7852 else 7853 case $MKDIR in 7854 [\\/]* | ?:[\\/]*) 7855 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7856 ;; 7857 *) 7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7859 for as_dir in $PATH 7860 do 7861 IFS=$as_save_IFS 7862 test -z "$as_dir" && as_dir=. 7863 for ac_exec_ext in '' $ac_executable_extensions; do 7864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7865 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7867 break 2 7868 fi 7869 done 7870 done 7871 IFS=$as_save_IFS 7872 7873 ;; 7874 esac 7875 fi 7876 MKDIR=$ac_cv_path_MKDIR 7877 if test -n "$MKDIR"; then 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7879 $as_echo "$MKDIR" >&6; } 7880 else 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7882 $as_echo "no" >&6; } 7883 fi 7884 7885 7886 test -n "$MKDIR" && break 7887 done 7888 7889 else 7890 # The variable is set, but is it from the command line or the environment? 7891 7892 # Try to remove the string !MKDIR! from our list. 7893 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7894 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7895 # If it failed, the variable was not from the command line. Ignore it, 7896 # but warn the user (except for BASH, which is always set by the calling BASH). 7897 if test "xMKDIR" != xBASH; then 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7899 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7900 fi 7901 # Try to locate tool using the code snippet 7902 for ac_prog in mkdir 7903 do 7904 # Extract the first word of "$ac_prog", so it can be a program name with args. 7905 set dummy $ac_prog; ac_word=$2 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7907 $as_echo_n "checking for $ac_word... " >&6; } 7908 if ${ac_cv_path_MKDIR+:} false; then : 7909 $as_echo_n "(cached) " >&6 7910 else 7911 case $MKDIR in 7912 [\\/]* | ?:[\\/]*) 7913 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7914 ;; 7915 *) 7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7917 for as_dir in $PATH 7918 do 7919 IFS=$as_save_IFS 7920 test -z "$as_dir" && as_dir=. 7921 for ac_exec_ext in '' $ac_executable_extensions; do 7922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7923 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7925 break 2 7926 fi 7927 done 7928 done 7929 IFS=$as_save_IFS 7930 7931 ;; 7932 esac 7933 fi 7934 MKDIR=$ac_cv_path_MKDIR 7935 if test -n "$MKDIR"; then 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7937 $as_echo "$MKDIR" >&6; } 7938 else 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7940 $as_echo "no" >&6; } 7941 fi 7942 7943 7944 test -n "$MKDIR" && break 7945 done 7946 7947 else 7948 # If it succeeded, then it was overridden by the user. We will use it 7949 # for the tool. 7950 7951 # First remove it from the list of overridden variables, so we can test 7952 # for unknown variables in the end. 7953 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7954 7955 # Check if the provided tool contains a complete path. 7956 tool_specified="$MKDIR" 7957 tool_basename="${tool_specified##*/}" 7958 if test "x$tool_basename" = "x$tool_specified"; then 7959 # A command without a complete path is provided, search $PATH. 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 7961 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 7962 # Extract the first word of "$tool_basename", so it can be a program name with args. 7963 set dummy $tool_basename; ac_word=$2 7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7965 $as_echo_n "checking for $ac_word... " >&6; } 7966 if ${ac_cv_path_MKDIR+:} false; then : 7967 $as_echo_n "(cached) " >&6 7968 else 7969 case $MKDIR in 7970 [\\/]* | ?:[\\/]*) 7971 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7972 ;; 7973 *) 7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7975 for as_dir in $PATH 7976 do 7977 IFS=$as_save_IFS 7978 test -z "$as_dir" && as_dir=. 7979 for ac_exec_ext in '' $ac_executable_extensions; do 7980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7981 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7983 break 2 7984 fi 7985 done 7986 done 7987 IFS=$as_save_IFS 7988 7989 ;; 7990 esac 7991 fi 7992 MKDIR=$ac_cv_path_MKDIR 7993 if test -n "$MKDIR"; then 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7995 $as_echo "$MKDIR" >&6; } 7996 else 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7998 $as_echo "no" >&6; } 7999 fi 8000 8001 8002 if test "x$MKDIR" = x; then 8003 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8004 fi 8005 else 8006 # Otherwise we believe it is a complete path. Use it as it is. 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8008 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8010 $as_echo_n "checking for MKDIR... " >&6; } 8011 if test ! -x "$tool_specified"; then 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8013 $as_echo "not found" >&6; } 8014 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8015 fi 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8017 $as_echo "$tool_specified" >&6; } 8018 fi 8019 fi 8020 fi 8021 8022 8023 8024 if test "x$MKDIR" = x; then 8025 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8026 fi 8027 8028 8029 8030 8031 8032 # Publish this variable in the help. 8033 8034 8035 if test "x$MKTEMP" = x; then 8036 # The variable is not set by user, try to locate tool using the code snippet 8037 for ac_prog in mktemp 8038 do 8039 # Extract the first word of "$ac_prog", so it can be a program name with args. 8040 set dummy $ac_prog; ac_word=$2 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8042 $as_echo_n "checking for $ac_word... " >&6; } 8043 if ${ac_cv_path_MKTEMP+:} false; then : 8044 $as_echo_n "(cached) " >&6 8045 else 8046 case $MKTEMP in 8047 [\\/]* | ?:[\\/]*) 8048 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8049 ;; 8050 *) 8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8052 for as_dir in $PATH 8053 do 8054 IFS=$as_save_IFS 8055 test -z "$as_dir" && as_dir=. 8056 for ac_exec_ext in '' $ac_executable_extensions; do 8057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8058 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8060 break 2 8061 fi 8062 done 8063 done 8064 IFS=$as_save_IFS 8065 8066 ;; 8067 esac 8068 fi 8069 MKTEMP=$ac_cv_path_MKTEMP 8070 if test -n "$MKTEMP"; then 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8072 $as_echo "$MKTEMP" >&6; } 8073 else 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8075 $as_echo "no" >&6; } 8076 fi 8077 8078 8079 test -n "$MKTEMP" && break 8080 done 8081 8082 else 8083 # The variable is set, but is it from the command line or the environment? 8084 8085 # Try to remove the string !MKTEMP! from our list. 8086 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8087 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8088 # If it failed, the variable was not from the command line. Ignore it, 8089 # but warn the user (except for BASH, which is always set by the calling BASH). 8090 if test "xMKTEMP" != xBASH; then 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8092 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8093 fi 8094 # Try to locate tool using the code snippet 8095 for ac_prog in mktemp 8096 do 8097 # Extract the first word of "$ac_prog", so it can be a program name with args. 8098 set dummy $ac_prog; ac_word=$2 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8100 $as_echo_n "checking for $ac_word... " >&6; } 8101 if ${ac_cv_path_MKTEMP+:} false; then : 8102 $as_echo_n "(cached) " >&6 8103 else 8104 case $MKTEMP in 8105 [\\/]* | ?:[\\/]*) 8106 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8107 ;; 8108 *) 8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8110 for as_dir in $PATH 8111 do 8112 IFS=$as_save_IFS 8113 test -z "$as_dir" && as_dir=. 8114 for ac_exec_ext in '' $ac_executable_extensions; do 8115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8116 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8118 break 2 8119 fi 8120 done 8121 done 8122 IFS=$as_save_IFS 8123 8124 ;; 8125 esac 8126 fi 8127 MKTEMP=$ac_cv_path_MKTEMP 8128 if test -n "$MKTEMP"; then 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8130 $as_echo "$MKTEMP" >&6; } 8131 else 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8133 $as_echo "no" >&6; } 8134 fi 8135 8136 8137 test -n "$MKTEMP" && break 8138 done 8139 8140 else 8141 # If it succeeded, then it was overridden by the user. We will use it 8142 # for the tool. 8143 8144 # First remove it from the list of overridden variables, so we can test 8145 # for unknown variables in the end. 8146 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8147 8148 # Check if the provided tool contains a complete path. 8149 tool_specified="$MKTEMP" 8150 tool_basename="${tool_specified##*/}" 8151 if test "x$tool_basename" = "x$tool_specified"; then 8152 # A command without a complete path is provided, search $PATH. 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8154 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8155 # Extract the first word of "$tool_basename", so it can be a program name with args. 8156 set dummy $tool_basename; ac_word=$2 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8158 $as_echo_n "checking for $ac_word... " >&6; } 8159 if ${ac_cv_path_MKTEMP+:} false; then : 8160 $as_echo_n "(cached) " >&6 8161 else 8162 case $MKTEMP in 8163 [\\/]* | ?:[\\/]*) 8164 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8165 ;; 8166 *) 8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8168 for as_dir in $PATH 8169 do 8170 IFS=$as_save_IFS 8171 test -z "$as_dir" && as_dir=. 8172 for ac_exec_ext in '' $ac_executable_extensions; do 8173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8174 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8176 break 2 8177 fi 8178 done 8179 done 8180 IFS=$as_save_IFS 8181 8182 ;; 8183 esac 8184 fi 8185 MKTEMP=$ac_cv_path_MKTEMP 8186 if test -n "$MKTEMP"; then 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8188 $as_echo "$MKTEMP" >&6; } 8189 else 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8191 $as_echo "no" >&6; } 8192 fi 8193 8194 8195 if test "x$MKTEMP" = x; then 8196 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8197 fi 8198 else 8199 # Otherwise we believe it is a complete path. Use it as it is. 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8201 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8203 $as_echo_n "checking for MKTEMP... " >&6; } 8204 if test ! -x "$tool_specified"; then 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8206 $as_echo "not found" >&6; } 8207 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8208 fi 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8210 $as_echo "$tool_specified" >&6; } 8211 fi 8212 fi 8213 fi 8214 8215 8216 8217 if test "x$MKTEMP" = x; then 8218 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8219 fi 8220 8221 8222 8223 8224 8225 # Publish this variable in the help. 8226 8227 8228 if test "x$MV" = x; then 8229 # The variable is not set by user, try to locate tool using the code snippet 8230 for ac_prog in mv 8231 do 8232 # Extract the first word of "$ac_prog", so it can be a program name with args. 8233 set dummy $ac_prog; ac_word=$2 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8235 $as_echo_n "checking for $ac_word... " >&6; } 8236 if ${ac_cv_path_MV+:} false; then : 8237 $as_echo_n "(cached) " >&6 8238 else 8239 case $MV in 8240 [\\/]* | ?:[\\/]*) 8241 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8242 ;; 8243 *) 8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8245 for as_dir in $PATH 8246 do 8247 IFS=$as_save_IFS 8248 test -z "$as_dir" && as_dir=. 8249 for ac_exec_ext in '' $ac_executable_extensions; do 8250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8251 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8253 break 2 8254 fi 8255 done 8256 done 8257 IFS=$as_save_IFS 8258 8259 ;; 8260 esac 8261 fi 8262 MV=$ac_cv_path_MV 8263 if test -n "$MV"; then 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8265 $as_echo "$MV" >&6; } 8266 else 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8268 $as_echo "no" >&6; } 8269 fi 8270 8271 8272 test -n "$MV" && break 8273 done 8274 8275 else 8276 # The variable is set, but is it from the command line or the environment? 8277 8278 # Try to remove the string !MV! from our list. 8279 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8280 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8281 # If it failed, the variable was not from the command line. Ignore it, 8282 # but warn the user (except for BASH, which is always set by the calling BASH). 8283 if test "xMV" != xBASH; then 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8285 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8286 fi 8287 # Try to locate tool using the code snippet 8288 for ac_prog in mv 8289 do 8290 # Extract the first word of "$ac_prog", so it can be a program name with args. 8291 set dummy $ac_prog; ac_word=$2 8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8293 $as_echo_n "checking for $ac_word... " >&6; } 8294 if ${ac_cv_path_MV+:} false; then : 8295 $as_echo_n "(cached) " >&6 8296 else 8297 case $MV in 8298 [\\/]* | ?:[\\/]*) 8299 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8300 ;; 8301 *) 8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8303 for as_dir in $PATH 8304 do 8305 IFS=$as_save_IFS 8306 test -z "$as_dir" && as_dir=. 8307 for ac_exec_ext in '' $ac_executable_extensions; do 8308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8309 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8311 break 2 8312 fi 8313 done 8314 done 8315 IFS=$as_save_IFS 8316 8317 ;; 8318 esac 8319 fi 8320 MV=$ac_cv_path_MV 8321 if test -n "$MV"; then 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8323 $as_echo "$MV" >&6; } 8324 else 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8326 $as_echo "no" >&6; } 8327 fi 8328 8329 8330 test -n "$MV" && break 8331 done 8332 8333 else 8334 # If it succeeded, then it was overridden by the user. We will use it 8335 # for the tool. 8336 8337 # First remove it from the list of overridden variables, so we can test 8338 # for unknown variables in the end. 8339 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8340 8341 # Check if the provided tool contains a complete path. 8342 tool_specified="$MV" 8343 tool_basename="${tool_specified##*/}" 8344 if test "x$tool_basename" = "x$tool_specified"; then 8345 # A command without a complete path is provided, search $PATH. 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8347 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8348 # Extract the first word of "$tool_basename", so it can be a program name with args. 8349 set dummy $tool_basename; ac_word=$2 8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8351 $as_echo_n "checking for $ac_word... " >&6; } 8352 if ${ac_cv_path_MV+:} false; then : 8353 $as_echo_n "(cached) " >&6 8354 else 8355 case $MV in 8356 [\\/]* | ?:[\\/]*) 8357 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8358 ;; 8359 *) 8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8361 for as_dir in $PATH 8362 do 8363 IFS=$as_save_IFS 8364 test -z "$as_dir" && as_dir=. 8365 for ac_exec_ext in '' $ac_executable_extensions; do 8366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8367 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8369 break 2 8370 fi 8371 done 8372 done 8373 IFS=$as_save_IFS 8374 8375 ;; 8376 esac 8377 fi 8378 MV=$ac_cv_path_MV 8379 if test -n "$MV"; then 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8381 $as_echo "$MV" >&6; } 8382 else 8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8384 $as_echo "no" >&6; } 8385 fi 8386 8387 8388 if test "x$MV" = x; then 8389 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8390 fi 8391 else 8392 # Otherwise we believe it is a complete path. Use it as it is. 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8394 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8396 $as_echo_n "checking for MV... " >&6; } 8397 if test ! -x "$tool_specified"; then 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8399 $as_echo "not found" >&6; } 8400 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8401 fi 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8403 $as_echo "$tool_specified" >&6; } 8404 fi 8405 fi 8406 fi 8407 8408 8409 8410 if test "x$MV" = x; then 8411 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8412 fi 8413 8414 8415 8416 8417 8418 # Publish this variable in the help. 8419 8420 8421 if test "x$NAWK" = x; then 8422 # The variable is not set by user, try to locate tool using the code snippet 8423 for ac_prog in nawk gawk awk 8424 do 8425 # Extract the first word of "$ac_prog", so it can be a program name with args. 8426 set dummy $ac_prog; ac_word=$2 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8428 $as_echo_n "checking for $ac_word... " >&6; } 8429 if ${ac_cv_path_NAWK+:} false; then : 8430 $as_echo_n "(cached) " >&6 8431 else 8432 case $NAWK in 8433 [\\/]* | ?:[\\/]*) 8434 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8435 ;; 8436 *) 8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8438 for as_dir in $PATH 8439 do 8440 IFS=$as_save_IFS 8441 test -z "$as_dir" && as_dir=. 8442 for ac_exec_ext in '' $ac_executable_extensions; do 8443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8444 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8446 break 2 8447 fi 8448 done 8449 done 8450 IFS=$as_save_IFS 8451 8452 ;; 8453 esac 8454 fi 8455 NAWK=$ac_cv_path_NAWK 8456 if test -n "$NAWK"; then 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8458 $as_echo "$NAWK" >&6; } 8459 else 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8461 $as_echo "no" >&6; } 8462 fi 8463 8464 8465 test -n "$NAWK" && break 8466 done 8467 8468 else 8469 # The variable is set, but is it from the command line or the environment? 8470 8471 # Try to remove the string !NAWK! from our list. 8472 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8473 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8474 # If it failed, the variable was not from the command line. Ignore it, 8475 # but warn the user (except for BASH, which is always set by the calling BASH). 8476 if test "xNAWK" != xBASH; then 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8478 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8479 fi 8480 # Try to locate tool using the code snippet 8481 for ac_prog in nawk gawk awk 8482 do 8483 # Extract the first word of "$ac_prog", so it can be a program name with args. 8484 set dummy $ac_prog; ac_word=$2 8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8486 $as_echo_n "checking for $ac_word... " >&6; } 8487 if ${ac_cv_path_NAWK+:} false; then : 8488 $as_echo_n "(cached) " >&6 8489 else 8490 case $NAWK in 8491 [\\/]* | ?:[\\/]*) 8492 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8493 ;; 8494 *) 8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8496 for as_dir in $PATH 8497 do 8498 IFS=$as_save_IFS 8499 test -z "$as_dir" && as_dir=. 8500 for ac_exec_ext in '' $ac_executable_extensions; do 8501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8502 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8504 break 2 8505 fi 8506 done 8507 done 8508 IFS=$as_save_IFS 8509 8510 ;; 8511 esac 8512 fi 8513 NAWK=$ac_cv_path_NAWK 8514 if test -n "$NAWK"; then 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8516 $as_echo "$NAWK" >&6; } 8517 else 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8519 $as_echo "no" >&6; } 8520 fi 8521 8522 8523 test -n "$NAWK" && break 8524 done 8525 8526 else 8527 # If it succeeded, then it was overridden by the user. We will use it 8528 # for the tool. 8529 8530 # First remove it from the list of overridden variables, so we can test 8531 # for unknown variables in the end. 8532 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8533 8534 # Check if the provided tool contains a complete path. 8535 tool_specified="$NAWK" 8536 tool_basename="${tool_specified##*/}" 8537 if test "x$tool_basename" = "x$tool_specified"; then 8538 # A command without a complete path is provided, search $PATH. 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8540 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8541 # Extract the first word of "$tool_basename", so it can be a program name with args. 8542 set dummy $tool_basename; ac_word=$2 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8544 $as_echo_n "checking for $ac_word... " >&6; } 8545 if ${ac_cv_path_NAWK+:} false; then : 8546 $as_echo_n "(cached) " >&6 8547 else 8548 case $NAWK in 8549 [\\/]* | ?:[\\/]*) 8550 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8551 ;; 8552 *) 8553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8554 for as_dir in $PATH 8555 do 8556 IFS=$as_save_IFS 8557 test -z "$as_dir" && as_dir=. 8558 for ac_exec_ext in '' $ac_executable_extensions; do 8559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8560 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8562 break 2 8563 fi 8564 done 8565 done 8566 IFS=$as_save_IFS 8567 8568 ;; 8569 esac 8570 fi 8571 NAWK=$ac_cv_path_NAWK 8572 if test -n "$NAWK"; then 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8574 $as_echo "$NAWK" >&6; } 8575 else 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8577 $as_echo "no" >&6; } 8578 fi 8579 8580 8581 if test "x$NAWK" = x; then 8582 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8583 fi 8584 else 8585 # Otherwise we believe it is a complete path. Use it as it is. 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8587 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8589 $as_echo_n "checking for NAWK... " >&6; } 8590 if test ! -x "$tool_specified"; then 8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8592 $as_echo "not found" >&6; } 8593 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8594 fi 8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8596 $as_echo "$tool_specified" >&6; } 8597 fi 8598 fi 8599 fi 8600 8601 8602 8603 if test "x$NAWK" = x; then 8604 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8605 fi 8606 8607 8608 8609 8610 8611 # Publish this variable in the help. 8612 8613 8614 if test "x$PRINTF" = x; then 8615 # The variable is not set by user, try to locate tool using the code snippet 8616 for ac_prog in printf 8617 do 8618 # Extract the first word of "$ac_prog", so it can be a program name with args. 8619 set dummy $ac_prog; ac_word=$2 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8621 $as_echo_n "checking for $ac_word... " >&6; } 8622 if ${ac_cv_path_PRINTF+:} false; then : 8623 $as_echo_n "(cached) " >&6 8624 else 8625 case $PRINTF in 8626 [\\/]* | ?:[\\/]*) 8627 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8628 ;; 8629 *) 8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8631 for as_dir in $PATH 8632 do 8633 IFS=$as_save_IFS 8634 test -z "$as_dir" && as_dir=. 8635 for ac_exec_ext in '' $ac_executable_extensions; do 8636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8637 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8639 break 2 8640 fi 8641 done 8642 done 8643 IFS=$as_save_IFS 8644 8645 ;; 8646 esac 8647 fi 8648 PRINTF=$ac_cv_path_PRINTF 8649 if test -n "$PRINTF"; then 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8651 $as_echo "$PRINTF" >&6; } 8652 else 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8654 $as_echo "no" >&6; } 8655 fi 8656 8657 8658 test -n "$PRINTF" && break 8659 done 8660 8661 else 8662 # The variable is set, but is it from the command line or the environment? 8663 8664 # Try to remove the string !PRINTF! from our list. 8665 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8666 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8667 # If it failed, the variable was not from the command line. Ignore it, 8668 # but warn the user (except for BASH, which is always set by the calling BASH). 8669 if test "xPRINTF" != xBASH; then 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8671 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8672 fi 8673 # Try to locate tool using the code snippet 8674 for ac_prog in printf 8675 do 8676 # Extract the first word of "$ac_prog", so it can be a program name with args. 8677 set dummy $ac_prog; ac_word=$2 8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8679 $as_echo_n "checking for $ac_word... " >&6; } 8680 if ${ac_cv_path_PRINTF+:} false; then : 8681 $as_echo_n "(cached) " >&6 8682 else 8683 case $PRINTF in 8684 [\\/]* | ?:[\\/]*) 8685 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8686 ;; 8687 *) 8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8689 for as_dir in $PATH 8690 do 8691 IFS=$as_save_IFS 8692 test -z "$as_dir" && as_dir=. 8693 for ac_exec_ext in '' $ac_executable_extensions; do 8694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8695 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8697 break 2 8698 fi 8699 done 8700 done 8701 IFS=$as_save_IFS 8702 8703 ;; 8704 esac 8705 fi 8706 PRINTF=$ac_cv_path_PRINTF 8707 if test -n "$PRINTF"; then 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8709 $as_echo "$PRINTF" >&6; } 8710 else 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8712 $as_echo "no" >&6; } 8713 fi 8714 8715 8716 test -n "$PRINTF" && break 8717 done 8718 8719 else 8720 # If it succeeded, then it was overridden by the user. We will use it 8721 # for the tool. 8722 8723 # First remove it from the list of overridden variables, so we can test 8724 # for unknown variables in the end. 8725 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8726 8727 # Check if the provided tool contains a complete path. 8728 tool_specified="$PRINTF" 8729 tool_basename="${tool_specified##*/}" 8730 if test "x$tool_basename" = "x$tool_specified"; then 8731 # A command without a complete path is provided, search $PATH. 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8733 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8734 # Extract the first word of "$tool_basename", so it can be a program name with args. 8735 set dummy $tool_basename; ac_word=$2 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8737 $as_echo_n "checking for $ac_word... " >&6; } 8738 if ${ac_cv_path_PRINTF+:} false; then : 8739 $as_echo_n "(cached) " >&6 8740 else 8741 case $PRINTF in 8742 [\\/]* | ?:[\\/]*) 8743 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8744 ;; 8745 *) 8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8747 for as_dir in $PATH 8748 do 8749 IFS=$as_save_IFS 8750 test -z "$as_dir" && as_dir=. 8751 for ac_exec_ext in '' $ac_executable_extensions; do 8752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8753 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8755 break 2 8756 fi 8757 done 8758 done 8759 IFS=$as_save_IFS 8760 8761 ;; 8762 esac 8763 fi 8764 PRINTF=$ac_cv_path_PRINTF 8765 if test -n "$PRINTF"; then 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8767 $as_echo "$PRINTF" >&6; } 8768 else 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8770 $as_echo "no" >&6; } 8771 fi 8772 8773 8774 if test "x$PRINTF" = x; then 8775 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8776 fi 8777 else 8778 # Otherwise we believe it is a complete path. Use it as it is. 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8780 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8782 $as_echo_n "checking for PRINTF... " >&6; } 8783 if test ! -x "$tool_specified"; then 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8785 $as_echo "not found" >&6; } 8786 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8787 fi 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8789 $as_echo "$tool_specified" >&6; } 8790 fi 8791 fi 8792 fi 8793 8794 8795 8796 if test "x$PRINTF" = x; then 8797 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8798 fi 8799 8800 8801 8802 8803 8804 # Publish this variable in the help. 8805 8806 8807 if test "x$RM" = x; then 8808 # The variable is not set by user, try to locate tool using the code snippet 8809 for ac_prog in rm 8810 do 8811 # Extract the first word of "$ac_prog", so it can be a program name with args. 8812 set dummy $ac_prog; ac_word=$2 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8814 $as_echo_n "checking for $ac_word... " >&6; } 8815 if ${ac_cv_path_RM+:} false; then : 8816 $as_echo_n "(cached) " >&6 8817 else 8818 case $RM in 8819 [\\/]* | ?:[\\/]*) 8820 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8821 ;; 8822 *) 8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8824 for as_dir in $PATH 8825 do 8826 IFS=$as_save_IFS 8827 test -z "$as_dir" && as_dir=. 8828 for ac_exec_ext in '' $ac_executable_extensions; do 8829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8830 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8832 break 2 8833 fi 8834 done 8835 done 8836 IFS=$as_save_IFS 8837 8838 ;; 8839 esac 8840 fi 8841 RM=$ac_cv_path_RM 8842 if test -n "$RM"; then 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8844 $as_echo "$RM" >&6; } 8845 else 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8847 $as_echo "no" >&6; } 8848 fi 8849 8850 8851 test -n "$RM" && break 8852 done 8853 8854 else 8855 # The variable is set, but is it from the command line or the environment? 8856 8857 # Try to remove the string !RM! from our list. 8858 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8859 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8860 # If it failed, the variable was not from the command line. Ignore it, 8861 # but warn the user (except for BASH, which is always set by the calling BASH). 8862 if test "xRM" != xBASH; then 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8864 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8865 fi 8866 # Try to locate tool using the code snippet 8867 for ac_prog in rm 8868 do 8869 # Extract the first word of "$ac_prog", so it can be a program name with args. 8870 set dummy $ac_prog; ac_word=$2 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8872 $as_echo_n "checking for $ac_word... " >&6; } 8873 if ${ac_cv_path_RM+:} false; then : 8874 $as_echo_n "(cached) " >&6 8875 else 8876 case $RM in 8877 [\\/]* | ?:[\\/]*) 8878 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8879 ;; 8880 *) 8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8882 for as_dir in $PATH 8883 do 8884 IFS=$as_save_IFS 8885 test -z "$as_dir" && as_dir=. 8886 for ac_exec_ext in '' $ac_executable_extensions; do 8887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8888 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8890 break 2 8891 fi 8892 done 8893 done 8894 IFS=$as_save_IFS 8895 8896 ;; 8897 esac 8898 fi 8899 RM=$ac_cv_path_RM 8900 if test -n "$RM"; then 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8902 $as_echo "$RM" >&6; } 8903 else 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8905 $as_echo "no" >&6; } 8906 fi 8907 8908 8909 test -n "$RM" && break 8910 done 8911 8912 else 8913 # If it succeeded, then it was overridden by the user. We will use it 8914 # for the tool. 8915 8916 # First remove it from the list of overridden variables, so we can test 8917 # for unknown variables in the end. 8918 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8919 8920 # Check if the provided tool contains a complete path. 8921 tool_specified="$RM" 8922 tool_basename="${tool_specified##*/}" 8923 if test "x$tool_basename" = "x$tool_specified"; then 8924 # A command without a complete path is provided, search $PATH. 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 8926 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 8927 # Extract the first word of "$tool_basename", so it can be a program name with args. 8928 set dummy $tool_basename; ac_word=$2 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8930 $as_echo_n "checking for $ac_word... " >&6; } 8931 if ${ac_cv_path_RM+:} false; then : 8932 $as_echo_n "(cached) " >&6 8933 else 8934 case $RM in 8935 [\\/]* | ?:[\\/]*) 8936 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8937 ;; 8938 *) 8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8940 for as_dir in $PATH 8941 do 8942 IFS=$as_save_IFS 8943 test -z "$as_dir" && as_dir=. 8944 for ac_exec_ext in '' $ac_executable_extensions; do 8945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8946 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8948 break 2 8949 fi 8950 done 8951 done 8952 IFS=$as_save_IFS 8953 8954 ;; 8955 esac 8956 fi 8957 RM=$ac_cv_path_RM 8958 if test -n "$RM"; then 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8960 $as_echo "$RM" >&6; } 8961 else 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8963 $as_echo "no" >&6; } 8964 fi 8965 8966 8967 if test "x$RM" = x; then 8968 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8969 fi 8970 else 8971 # Otherwise we believe it is a complete path. Use it as it is. 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 8973 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 8975 $as_echo_n "checking for RM... " >&6; } 8976 if test ! -x "$tool_specified"; then 8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8978 $as_echo "not found" >&6; } 8979 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 8980 fi 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8982 $as_echo "$tool_specified" >&6; } 8983 fi 8984 fi 8985 fi 8986 8987 8988 8989 if test "x$RM" = x; then 8990 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 8991 fi 8992 8993 8994 8995 8996 8997 # Publish this variable in the help. 8998 8999 9000 if test "x$SH" = x; then 9001 # The variable is not set by user, try to locate tool using the code snippet 9002 for ac_prog in sh 9003 do 9004 # Extract the first word of "$ac_prog", so it can be a program name with args. 9005 set dummy $ac_prog; ac_word=$2 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9007 $as_echo_n "checking for $ac_word... " >&6; } 9008 if ${ac_cv_path_SH+:} false; then : 9009 $as_echo_n "(cached) " >&6 9010 else 9011 case $SH in 9012 [\\/]* | ?:[\\/]*) 9013 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9014 ;; 9015 *) 9016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9017 for as_dir in $PATH 9018 do 9019 IFS=$as_save_IFS 9020 test -z "$as_dir" && as_dir=. 9021 for ac_exec_ext in '' $ac_executable_extensions; do 9022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9023 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9025 break 2 9026 fi 9027 done 9028 done 9029 IFS=$as_save_IFS 9030 9031 ;; 9032 esac 9033 fi 9034 SH=$ac_cv_path_SH 9035 if test -n "$SH"; then 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9037 $as_echo "$SH" >&6; } 9038 else 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9040 $as_echo "no" >&6; } 9041 fi 9042 9043 9044 test -n "$SH" && break 9045 done 9046 9047 else 9048 # The variable is set, but is it from the command line or the environment? 9049 9050 # Try to remove the string !SH! from our list. 9051 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9052 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9053 # If it failed, the variable was not from the command line. Ignore it, 9054 # but warn the user (except for BASH, which is always set by the calling BASH). 9055 if test "xSH" != xBASH; then 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9057 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9058 fi 9059 # Try to locate tool using the code snippet 9060 for ac_prog in sh 9061 do 9062 # Extract the first word of "$ac_prog", so it can be a program name with args. 9063 set dummy $ac_prog; ac_word=$2 9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9065 $as_echo_n "checking for $ac_word... " >&6; } 9066 if ${ac_cv_path_SH+:} false; then : 9067 $as_echo_n "(cached) " >&6 9068 else 9069 case $SH in 9070 [\\/]* | ?:[\\/]*) 9071 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9072 ;; 9073 *) 9074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9075 for as_dir in $PATH 9076 do 9077 IFS=$as_save_IFS 9078 test -z "$as_dir" && as_dir=. 9079 for ac_exec_ext in '' $ac_executable_extensions; do 9080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9081 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9083 break 2 9084 fi 9085 done 9086 done 9087 IFS=$as_save_IFS 9088 9089 ;; 9090 esac 9091 fi 9092 SH=$ac_cv_path_SH 9093 if test -n "$SH"; then 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9095 $as_echo "$SH" >&6; } 9096 else 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9098 $as_echo "no" >&6; } 9099 fi 9100 9101 9102 test -n "$SH" && break 9103 done 9104 9105 else 9106 # If it succeeded, then it was overridden by the user. We will use it 9107 # for the tool. 9108 9109 # First remove it from the list of overridden variables, so we can test 9110 # for unknown variables in the end. 9111 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9112 9113 # Check if the provided tool contains a complete path. 9114 tool_specified="$SH" 9115 tool_basename="${tool_specified##*/}" 9116 if test "x$tool_basename" = "x$tool_specified"; then 9117 # A command without a complete path is provided, search $PATH. 9118 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9119 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9120 # Extract the first word of "$tool_basename", so it can be a program name with args. 9121 set dummy $tool_basename; ac_word=$2 9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9123 $as_echo_n "checking for $ac_word... " >&6; } 9124 if ${ac_cv_path_SH+:} false; then : 9125 $as_echo_n "(cached) " >&6 9126 else 9127 case $SH in 9128 [\\/]* | ?:[\\/]*) 9129 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9130 ;; 9131 *) 9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9133 for as_dir in $PATH 9134 do 9135 IFS=$as_save_IFS 9136 test -z "$as_dir" && as_dir=. 9137 for ac_exec_ext in '' $ac_executable_extensions; do 9138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9139 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9141 break 2 9142 fi 9143 done 9144 done 9145 IFS=$as_save_IFS 9146 9147 ;; 9148 esac 9149 fi 9150 SH=$ac_cv_path_SH 9151 if test -n "$SH"; then 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9153 $as_echo "$SH" >&6; } 9154 else 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9156 $as_echo "no" >&6; } 9157 fi 9158 9159 9160 if test "x$SH" = x; then 9161 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9162 fi 9163 else 9164 # Otherwise we believe it is a complete path. Use it as it is. 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9166 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9168 $as_echo_n "checking for SH... " >&6; } 9169 if test ! -x "$tool_specified"; then 9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9171 $as_echo "not found" >&6; } 9172 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9173 fi 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9175 $as_echo "$tool_specified" >&6; } 9176 fi 9177 fi 9178 fi 9179 9180 9181 9182 if test "x$SH" = x; then 9183 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9184 fi 9185 9186 9187 9188 9189 9190 # Publish this variable in the help. 9191 9192 9193 if test "x$SORT" = x; then 9194 # The variable is not set by user, try to locate tool using the code snippet 9195 for ac_prog in sort 9196 do 9197 # Extract the first word of "$ac_prog", so it can be a program name with args. 9198 set dummy $ac_prog; ac_word=$2 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9200 $as_echo_n "checking for $ac_word... " >&6; } 9201 if ${ac_cv_path_SORT+:} false; then : 9202 $as_echo_n "(cached) " >&6 9203 else 9204 case $SORT in 9205 [\\/]* | ?:[\\/]*) 9206 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9207 ;; 9208 *) 9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9210 for as_dir in $PATH 9211 do 9212 IFS=$as_save_IFS 9213 test -z "$as_dir" && as_dir=. 9214 for ac_exec_ext in '' $ac_executable_extensions; do 9215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9216 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9218 break 2 9219 fi 9220 done 9221 done 9222 IFS=$as_save_IFS 9223 9224 ;; 9225 esac 9226 fi 9227 SORT=$ac_cv_path_SORT 9228 if test -n "$SORT"; then 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9230 $as_echo "$SORT" >&6; } 9231 else 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9233 $as_echo "no" >&6; } 9234 fi 9235 9236 9237 test -n "$SORT" && break 9238 done 9239 9240 else 9241 # The variable is set, but is it from the command line or the environment? 9242 9243 # Try to remove the string !SORT! from our list. 9244 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9245 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9246 # If it failed, the variable was not from the command line. Ignore it, 9247 # but warn the user (except for BASH, which is always set by the calling BASH). 9248 if test "xSORT" != xBASH; then 9249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9250 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9251 fi 9252 # Try to locate tool using the code snippet 9253 for ac_prog in sort 9254 do 9255 # Extract the first word of "$ac_prog", so it can be a program name with args. 9256 set dummy $ac_prog; ac_word=$2 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9258 $as_echo_n "checking for $ac_word... " >&6; } 9259 if ${ac_cv_path_SORT+:} false; then : 9260 $as_echo_n "(cached) " >&6 9261 else 9262 case $SORT in 9263 [\\/]* | ?:[\\/]*) 9264 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9265 ;; 9266 *) 9267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9268 for as_dir in $PATH 9269 do 9270 IFS=$as_save_IFS 9271 test -z "$as_dir" && as_dir=. 9272 for ac_exec_ext in '' $ac_executable_extensions; do 9273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9274 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9276 break 2 9277 fi 9278 done 9279 done 9280 IFS=$as_save_IFS 9281 9282 ;; 9283 esac 9284 fi 9285 SORT=$ac_cv_path_SORT 9286 if test -n "$SORT"; then 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9288 $as_echo "$SORT" >&6; } 9289 else 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9291 $as_echo "no" >&6; } 9292 fi 9293 9294 9295 test -n "$SORT" && break 9296 done 9297 9298 else 9299 # If it succeeded, then it was overridden by the user. We will use it 9300 # for the tool. 9301 9302 # First remove it from the list of overridden variables, so we can test 9303 # for unknown variables in the end. 9304 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9305 9306 # Check if the provided tool contains a complete path. 9307 tool_specified="$SORT" 9308 tool_basename="${tool_specified##*/}" 9309 if test "x$tool_basename" = "x$tool_specified"; then 9310 # A command without a complete path is provided, search $PATH. 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9312 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9313 # Extract the first word of "$tool_basename", so it can be a program name with args. 9314 set dummy $tool_basename; ac_word=$2 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9316 $as_echo_n "checking for $ac_word... " >&6; } 9317 if ${ac_cv_path_SORT+:} false; then : 9318 $as_echo_n "(cached) " >&6 9319 else 9320 case $SORT in 9321 [\\/]* | ?:[\\/]*) 9322 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9323 ;; 9324 *) 9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9326 for as_dir in $PATH 9327 do 9328 IFS=$as_save_IFS 9329 test -z "$as_dir" && as_dir=. 9330 for ac_exec_ext in '' $ac_executable_extensions; do 9331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9332 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9334 break 2 9335 fi 9336 done 9337 done 9338 IFS=$as_save_IFS 9339 9340 ;; 9341 esac 9342 fi 9343 SORT=$ac_cv_path_SORT 9344 if test -n "$SORT"; then 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9346 $as_echo "$SORT" >&6; } 9347 else 9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9349 $as_echo "no" >&6; } 9350 fi 9351 9352 9353 if test "x$SORT" = x; then 9354 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9355 fi 9356 else 9357 # Otherwise we believe it is a complete path. Use it as it is. 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9359 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9361 $as_echo_n "checking for SORT... " >&6; } 9362 if test ! -x "$tool_specified"; then 9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9364 $as_echo "not found" >&6; } 9365 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9366 fi 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9368 $as_echo "$tool_specified" >&6; } 9369 fi 9370 fi 9371 fi 9372 9373 9374 9375 if test "x$SORT" = x; then 9376 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9377 fi 9378 9379 9380 9381 9382 9383 # Publish this variable in the help. 9384 9385 9386 if test "x$TAIL" = x; then 9387 # The variable is not set by user, try to locate tool using the code snippet 9388 for ac_prog in tail 9389 do 9390 # Extract the first word of "$ac_prog", so it can be a program name with args. 9391 set dummy $ac_prog; ac_word=$2 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9393 $as_echo_n "checking for $ac_word... " >&6; } 9394 if ${ac_cv_path_TAIL+:} false; then : 9395 $as_echo_n "(cached) " >&6 9396 else 9397 case $TAIL in 9398 [\\/]* | ?:[\\/]*) 9399 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9400 ;; 9401 *) 9402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9403 for as_dir in $PATH 9404 do 9405 IFS=$as_save_IFS 9406 test -z "$as_dir" && as_dir=. 9407 for ac_exec_ext in '' $ac_executable_extensions; do 9408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9409 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9411 break 2 9412 fi 9413 done 9414 done 9415 IFS=$as_save_IFS 9416 9417 ;; 9418 esac 9419 fi 9420 TAIL=$ac_cv_path_TAIL 9421 if test -n "$TAIL"; then 9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9423 $as_echo "$TAIL" >&6; } 9424 else 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9426 $as_echo "no" >&6; } 9427 fi 9428 9429 9430 test -n "$TAIL" && break 9431 done 9432 9433 else 9434 # The variable is set, but is it from the command line or the environment? 9435 9436 # Try to remove the string !TAIL! from our list. 9437 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9438 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9439 # If it failed, the variable was not from the command line. Ignore it, 9440 # but warn the user (except for BASH, which is always set by the calling BASH). 9441 if test "xTAIL" != xBASH; then 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9443 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9444 fi 9445 # Try to locate tool using the code snippet 9446 for ac_prog in tail 9447 do 9448 # Extract the first word of "$ac_prog", so it can be a program name with args. 9449 set dummy $ac_prog; ac_word=$2 9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9451 $as_echo_n "checking for $ac_word... " >&6; } 9452 if ${ac_cv_path_TAIL+:} false; then : 9453 $as_echo_n "(cached) " >&6 9454 else 9455 case $TAIL in 9456 [\\/]* | ?:[\\/]*) 9457 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9458 ;; 9459 *) 9460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9461 for as_dir in $PATH 9462 do 9463 IFS=$as_save_IFS 9464 test -z "$as_dir" && as_dir=. 9465 for ac_exec_ext in '' $ac_executable_extensions; do 9466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9467 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9469 break 2 9470 fi 9471 done 9472 done 9473 IFS=$as_save_IFS 9474 9475 ;; 9476 esac 9477 fi 9478 TAIL=$ac_cv_path_TAIL 9479 if test -n "$TAIL"; then 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9481 $as_echo "$TAIL" >&6; } 9482 else 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9484 $as_echo "no" >&6; } 9485 fi 9486 9487 9488 test -n "$TAIL" && break 9489 done 9490 9491 else 9492 # If it succeeded, then it was overridden by the user. We will use it 9493 # for the tool. 9494 9495 # First remove it from the list of overridden variables, so we can test 9496 # for unknown variables in the end. 9497 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9498 9499 # Check if the provided tool contains a complete path. 9500 tool_specified="$TAIL" 9501 tool_basename="${tool_specified##*/}" 9502 if test "x$tool_basename" = "x$tool_specified"; then 9503 # A command without a complete path is provided, search $PATH. 9504 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9505 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9506 # Extract the first word of "$tool_basename", so it can be a program name with args. 9507 set dummy $tool_basename; ac_word=$2 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9509 $as_echo_n "checking for $ac_word... " >&6; } 9510 if ${ac_cv_path_TAIL+:} false; then : 9511 $as_echo_n "(cached) " >&6 9512 else 9513 case $TAIL in 9514 [\\/]* | ?:[\\/]*) 9515 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9516 ;; 9517 *) 9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9519 for as_dir in $PATH 9520 do 9521 IFS=$as_save_IFS 9522 test -z "$as_dir" && as_dir=. 9523 for ac_exec_ext in '' $ac_executable_extensions; do 9524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9525 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9527 break 2 9528 fi 9529 done 9530 done 9531 IFS=$as_save_IFS 9532 9533 ;; 9534 esac 9535 fi 9536 TAIL=$ac_cv_path_TAIL 9537 if test -n "$TAIL"; then 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9539 $as_echo "$TAIL" >&6; } 9540 else 9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9542 $as_echo "no" >&6; } 9543 fi 9544 9545 9546 if test "x$TAIL" = x; then 9547 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9548 fi 9549 else 9550 # Otherwise we believe it is a complete path. Use it as it is. 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9552 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9554 $as_echo_n "checking for TAIL... " >&6; } 9555 if test ! -x "$tool_specified"; then 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9557 $as_echo "not found" >&6; } 9558 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9559 fi 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9561 $as_echo "$tool_specified" >&6; } 9562 fi 9563 fi 9564 fi 9565 9566 9567 9568 if test "x$TAIL" = x; then 9569 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9570 fi 9571 9572 9573 9574 9575 9576 # Publish this variable in the help. 9577 9578 9579 if test "x$TAR" = x; then 9580 # The variable is not set by user, try to locate tool using the code snippet 9581 for ac_prog in tar 9582 do 9583 # Extract the first word of "$ac_prog", so it can be a program name with args. 9584 set dummy $ac_prog; ac_word=$2 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9586 $as_echo_n "checking for $ac_word... " >&6; } 9587 if ${ac_cv_path_TAR+:} false; then : 9588 $as_echo_n "(cached) " >&6 9589 else 9590 case $TAR in 9591 [\\/]* | ?:[\\/]*) 9592 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9593 ;; 9594 *) 9595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9596 for as_dir in $PATH 9597 do 9598 IFS=$as_save_IFS 9599 test -z "$as_dir" && as_dir=. 9600 for ac_exec_ext in '' $ac_executable_extensions; do 9601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9602 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9604 break 2 9605 fi 9606 done 9607 done 9608 IFS=$as_save_IFS 9609 9610 ;; 9611 esac 9612 fi 9613 TAR=$ac_cv_path_TAR 9614 if test -n "$TAR"; then 9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9616 $as_echo "$TAR" >&6; } 9617 else 9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9619 $as_echo "no" >&6; } 9620 fi 9621 9622 9623 test -n "$TAR" && break 9624 done 9625 9626 else 9627 # The variable is set, but is it from the command line or the environment? 9628 9629 # Try to remove the string !TAR! from our list. 9630 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9631 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9632 # If it failed, the variable was not from the command line. Ignore it, 9633 # but warn the user (except for BASH, which is always set by the calling BASH). 9634 if test "xTAR" != xBASH; then 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9636 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9637 fi 9638 # Try to locate tool using the code snippet 9639 for ac_prog in tar 9640 do 9641 # Extract the first word of "$ac_prog", so it can be a program name with args. 9642 set dummy $ac_prog; ac_word=$2 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9644 $as_echo_n "checking for $ac_word... " >&6; } 9645 if ${ac_cv_path_TAR+:} false; then : 9646 $as_echo_n "(cached) " >&6 9647 else 9648 case $TAR in 9649 [\\/]* | ?:[\\/]*) 9650 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9651 ;; 9652 *) 9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9654 for as_dir in $PATH 9655 do 9656 IFS=$as_save_IFS 9657 test -z "$as_dir" && as_dir=. 9658 for ac_exec_ext in '' $ac_executable_extensions; do 9659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9660 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9662 break 2 9663 fi 9664 done 9665 done 9666 IFS=$as_save_IFS 9667 9668 ;; 9669 esac 9670 fi 9671 TAR=$ac_cv_path_TAR 9672 if test -n "$TAR"; then 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9674 $as_echo "$TAR" >&6; } 9675 else 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9677 $as_echo "no" >&6; } 9678 fi 9679 9680 9681 test -n "$TAR" && break 9682 done 9683 9684 else 9685 # If it succeeded, then it was overridden by the user. We will use it 9686 # for the tool. 9687 9688 # First remove it from the list of overridden variables, so we can test 9689 # for unknown variables in the end. 9690 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9691 9692 # Check if the provided tool contains a complete path. 9693 tool_specified="$TAR" 9694 tool_basename="${tool_specified##*/}" 9695 if test "x$tool_basename" = "x$tool_specified"; then 9696 # A command without a complete path is provided, search $PATH. 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9698 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9699 # Extract the first word of "$tool_basename", so it can be a program name with args. 9700 set dummy $tool_basename; ac_word=$2 9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9702 $as_echo_n "checking for $ac_word... " >&6; } 9703 if ${ac_cv_path_TAR+:} false; then : 9704 $as_echo_n "(cached) " >&6 9705 else 9706 case $TAR in 9707 [\\/]* | ?:[\\/]*) 9708 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9709 ;; 9710 *) 9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9712 for as_dir in $PATH 9713 do 9714 IFS=$as_save_IFS 9715 test -z "$as_dir" && as_dir=. 9716 for ac_exec_ext in '' $ac_executable_extensions; do 9717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9718 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9720 break 2 9721 fi 9722 done 9723 done 9724 IFS=$as_save_IFS 9725 9726 ;; 9727 esac 9728 fi 9729 TAR=$ac_cv_path_TAR 9730 if test -n "$TAR"; then 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9732 $as_echo "$TAR" >&6; } 9733 else 9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9735 $as_echo "no" >&6; } 9736 fi 9737 9738 9739 if test "x$TAR" = x; then 9740 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9741 fi 9742 else 9743 # Otherwise we believe it is a complete path. Use it as it is. 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9745 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9747 $as_echo_n "checking for TAR... " >&6; } 9748 if test ! -x "$tool_specified"; then 9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9750 $as_echo "not found" >&6; } 9751 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9752 fi 9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9754 $as_echo "$tool_specified" >&6; } 9755 fi 9756 fi 9757 fi 9758 9759 9760 9761 if test "x$TAR" = x; then 9762 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9763 fi 9764 9765 9766 9767 9768 9769 # Publish this variable in the help. 9770 9771 9772 if test "x$TEE" = x; then 9773 # The variable is not set by user, try to locate tool using the code snippet 9774 for ac_prog in tee 9775 do 9776 # Extract the first word of "$ac_prog", so it can be a program name with args. 9777 set dummy $ac_prog; ac_word=$2 9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9779 $as_echo_n "checking for $ac_word... " >&6; } 9780 if ${ac_cv_path_TEE+:} false; then : 9781 $as_echo_n "(cached) " >&6 9782 else 9783 case $TEE in 9784 [\\/]* | ?:[\\/]*) 9785 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9786 ;; 9787 *) 9788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9789 for as_dir in $PATH 9790 do 9791 IFS=$as_save_IFS 9792 test -z "$as_dir" && as_dir=. 9793 for ac_exec_ext in '' $ac_executable_extensions; do 9794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9795 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9797 break 2 9798 fi 9799 done 9800 done 9801 IFS=$as_save_IFS 9802 9803 ;; 9804 esac 9805 fi 9806 TEE=$ac_cv_path_TEE 9807 if test -n "$TEE"; then 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9809 $as_echo "$TEE" >&6; } 9810 else 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9812 $as_echo "no" >&6; } 9813 fi 9814 9815 9816 test -n "$TEE" && break 9817 done 9818 9819 else 9820 # The variable is set, but is it from the command line or the environment? 9821 9822 # Try to remove the string !TEE! from our list. 9823 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9824 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9825 # If it failed, the variable was not from the command line. Ignore it, 9826 # but warn the user (except for BASH, which is always set by the calling BASH). 9827 if test "xTEE" != xBASH; then 9828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9829 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9830 fi 9831 # Try to locate tool using the code snippet 9832 for ac_prog in tee 9833 do 9834 # Extract the first word of "$ac_prog", so it can be a program name with args. 9835 set dummy $ac_prog; ac_word=$2 9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9837 $as_echo_n "checking for $ac_word... " >&6; } 9838 if ${ac_cv_path_TEE+:} false; then : 9839 $as_echo_n "(cached) " >&6 9840 else 9841 case $TEE in 9842 [\\/]* | ?:[\\/]*) 9843 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9844 ;; 9845 *) 9846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9847 for as_dir in $PATH 9848 do 9849 IFS=$as_save_IFS 9850 test -z "$as_dir" && as_dir=. 9851 for ac_exec_ext in '' $ac_executable_extensions; do 9852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9853 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9855 break 2 9856 fi 9857 done 9858 done 9859 IFS=$as_save_IFS 9860 9861 ;; 9862 esac 9863 fi 9864 TEE=$ac_cv_path_TEE 9865 if test -n "$TEE"; then 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9867 $as_echo "$TEE" >&6; } 9868 else 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9870 $as_echo "no" >&6; } 9871 fi 9872 9873 9874 test -n "$TEE" && break 9875 done 9876 9877 else 9878 # If it succeeded, then it was overridden by the user. We will use it 9879 # for the tool. 9880 9881 # First remove it from the list of overridden variables, so we can test 9882 # for unknown variables in the end. 9883 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9884 9885 # Check if the provided tool contains a complete path. 9886 tool_specified="$TEE" 9887 tool_basename="${tool_specified##*/}" 9888 if test "x$tool_basename" = "x$tool_specified"; then 9889 # A command without a complete path is provided, search $PATH. 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9891 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9892 # Extract the first word of "$tool_basename", so it can be a program name with args. 9893 set dummy $tool_basename; ac_word=$2 9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9895 $as_echo_n "checking for $ac_word... " >&6; } 9896 if ${ac_cv_path_TEE+:} false; then : 9897 $as_echo_n "(cached) " >&6 9898 else 9899 case $TEE in 9900 [\\/]* | ?:[\\/]*) 9901 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9902 ;; 9903 *) 9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9905 for as_dir in $PATH 9906 do 9907 IFS=$as_save_IFS 9908 test -z "$as_dir" && as_dir=. 9909 for ac_exec_ext in '' $ac_executable_extensions; do 9910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9911 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9913 break 2 9914 fi 9915 done 9916 done 9917 IFS=$as_save_IFS 9918 9919 ;; 9920 esac 9921 fi 9922 TEE=$ac_cv_path_TEE 9923 if test -n "$TEE"; then 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9925 $as_echo "$TEE" >&6; } 9926 else 9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9928 $as_echo "no" >&6; } 9929 fi 9930 9931 9932 if test "x$TEE" = x; then 9933 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9934 fi 9935 else 9936 # Otherwise we believe it is a complete path. Use it as it is. 9937 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 9938 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 9940 $as_echo_n "checking for TEE... " >&6; } 9941 if test ! -x "$tool_specified"; then 9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9943 $as_echo "not found" >&6; } 9944 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 9945 fi 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9947 $as_echo "$tool_specified" >&6; } 9948 fi 9949 fi 9950 fi 9951 9952 9953 9954 if test "x$TEE" = x; then 9955 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 9956 fi 9957 9958 9959 9960 9961 9962 # Publish this variable in the help. 9963 9964 9965 if test "x$TOUCH" = x; then 9966 # The variable is not set by user, try to locate tool using the code snippet 9967 for ac_prog in touch 9968 do 9969 # Extract the first word of "$ac_prog", so it can be a program name with args. 9970 set dummy $ac_prog; ac_word=$2 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9972 $as_echo_n "checking for $ac_word... " >&6; } 9973 if ${ac_cv_path_TOUCH+:} false; then : 9974 $as_echo_n "(cached) " >&6 9975 else 9976 case $TOUCH in 9977 [\\/]* | ?:[\\/]*) 9978 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 9979 ;; 9980 *) 9981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9982 for as_dir in $PATH 9983 do 9984 IFS=$as_save_IFS 9985 test -z "$as_dir" && as_dir=. 9986 for ac_exec_ext in '' $ac_executable_extensions; do 9987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9988 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 9989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9990 break 2 9991 fi 9992 done 9993 done 9994 IFS=$as_save_IFS 9995 9996 ;; 9997 esac 9998 fi 9999 TOUCH=$ac_cv_path_TOUCH 10000 if test -n "$TOUCH"; then 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10002 $as_echo "$TOUCH" >&6; } 10003 else 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10005 $as_echo "no" >&6; } 10006 fi 10007 10008 10009 test -n "$TOUCH" && break 10010 done 10011 10012 else 10013 # The variable is set, but is it from the command line or the environment? 10014 10015 # Try to remove the string !TOUCH! from our list. 10016 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10017 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10018 # If it failed, the variable was not from the command line. Ignore it, 10019 # but warn the user (except for BASH, which is always set by the calling BASH). 10020 if test "xTOUCH" != xBASH; then 10021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10022 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10023 fi 10024 # Try to locate tool using the code snippet 10025 for ac_prog in touch 10026 do 10027 # Extract the first word of "$ac_prog", so it can be a program name with args. 10028 set dummy $ac_prog; ac_word=$2 10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10030 $as_echo_n "checking for $ac_word... " >&6; } 10031 if ${ac_cv_path_TOUCH+:} false; then : 10032 $as_echo_n "(cached) " >&6 10033 else 10034 case $TOUCH in 10035 [\\/]* | ?:[\\/]*) 10036 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10037 ;; 10038 *) 10039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10040 for as_dir in $PATH 10041 do 10042 IFS=$as_save_IFS 10043 test -z "$as_dir" && as_dir=. 10044 for ac_exec_ext in '' $ac_executable_extensions; do 10045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10046 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10048 break 2 10049 fi 10050 done 10051 done 10052 IFS=$as_save_IFS 10053 10054 ;; 10055 esac 10056 fi 10057 TOUCH=$ac_cv_path_TOUCH 10058 if test -n "$TOUCH"; then 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10060 $as_echo "$TOUCH" >&6; } 10061 else 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10063 $as_echo "no" >&6; } 10064 fi 10065 10066 10067 test -n "$TOUCH" && break 10068 done 10069 10070 else 10071 # If it succeeded, then it was overridden by the user. We will use it 10072 # for the tool. 10073 10074 # First remove it from the list of overridden variables, so we can test 10075 # for unknown variables in the end. 10076 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10077 10078 # Check if the provided tool contains a complete path. 10079 tool_specified="$TOUCH" 10080 tool_basename="${tool_specified##*/}" 10081 if test "x$tool_basename" = "x$tool_specified"; then 10082 # A command without a complete path is provided, search $PATH. 10083 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10084 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10085 # Extract the first word of "$tool_basename", so it can be a program name with args. 10086 set dummy $tool_basename; ac_word=$2 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10088 $as_echo_n "checking for $ac_word... " >&6; } 10089 if ${ac_cv_path_TOUCH+:} false; then : 10090 $as_echo_n "(cached) " >&6 10091 else 10092 case $TOUCH in 10093 [\\/]* | ?:[\\/]*) 10094 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10095 ;; 10096 *) 10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10098 for as_dir in $PATH 10099 do 10100 IFS=$as_save_IFS 10101 test -z "$as_dir" && as_dir=. 10102 for ac_exec_ext in '' $ac_executable_extensions; do 10103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10104 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10106 break 2 10107 fi 10108 done 10109 done 10110 IFS=$as_save_IFS 10111 10112 ;; 10113 esac 10114 fi 10115 TOUCH=$ac_cv_path_TOUCH 10116 if test -n "$TOUCH"; then 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10118 $as_echo "$TOUCH" >&6; } 10119 else 10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10121 $as_echo "no" >&6; } 10122 fi 10123 10124 10125 if test "x$TOUCH" = x; then 10126 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10127 fi 10128 else 10129 # Otherwise we believe it is a complete path. Use it as it is. 10130 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10131 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10133 $as_echo_n "checking for TOUCH... " >&6; } 10134 if test ! -x "$tool_specified"; then 10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10136 $as_echo "not found" >&6; } 10137 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10138 fi 10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10140 $as_echo "$tool_specified" >&6; } 10141 fi 10142 fi 10143 fi 10144 10145 10146 10147 if test "x$TOUCH" = x; then 10148 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10149 fi 10150 10151 10152 10153 10154 10155 # Publish this variable in the help. 10156 10157 10158 if test "x$TR" = x; then 10159 # The variable is not set by user, try to locate tool using the code snippet 10160 for ac_prog in tr 10161 do 10162 # Extract the first word of "$ac_prog", so it can be a program name with args. 10163 set dummy $ac_prog; ac_word=$2 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10165 $as_echo_n "checking for $ac_word... " >&6; } 10166 if ${ac_cv_path_TR+:} false; then : 10167 $as_echo_n "(cached) " >&6 10168 else 10169 case $TR in 10170 [\\/]* | ?:[\\/]*) 10171 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10172 ;; 10173 *) 10174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10175 for as_dir in $PATH 10176 do 10177 IFS=$as_save_IFS 10178 test -z "$as_dir" && as_dir=. 10179 for ac_exec_ext in '' $ac_executable_extensions; do 10180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10181 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10183 break 2 10184 fi 10185 done 10186 done 10187 IFS=$as_save_IFS 10188 10189 ;; 10190 esac 10191 fi 10192 TR=$ac_cv_path_TR 10193 if test -n "$TR"; then 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10195 $as_echo "$TR" >&6; } 10196 else 10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10198 $as_echo "no" >&6; } 10199 fi 10200 10201 10202 test -n "$TR" && break 10203 done 10204 10205 else 10206 # The variable is set, but is it from the command line or the environment? 10207 10208 # Try to remove the string !TR! from our list. 10209 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10210 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10211 # If it failed, the variable was not from the command line. Ignore it, 10212 # but warn the user (except for BASH, which is always set by the calling BASH). 10213 if test "xTR" != xBASH; then 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10215 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10216 fi 10217 # Try to locate tool using the code snippet 10218 for ac_prog in tr 10219 do 10220 # Extract the first word of "$ac_prog", so it can be a program name with args. 10221 set dummy $ac_prog; ac_word=$2 10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10223 $as_echo_n "checking for $ac_word... " >&6; } 10224 if ${ac_cv_path_TR+:} false; then : 10225 $as_echo_n "(cached) " >&6 10226 else 10227 case $TR in 10228 [\\/]* | ?:[\\/]*) 10229 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10230 ;; 10231 *) 10232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10233 for as_dir in $PATH 10234 do 10235 IFS=$as_save_IFS 10236 test -z "$as_dir" && as_dir=. 10237 for ac_exec_ext in '' $ac_executable_extensions; do 10238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10239 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10241 break 2 10242 fi 10243 done 10244 done 10245 IFS=$as_save_IFS 10246 10247 ;; 10248 esac 10249 fi 10250 TR=$ac_cv_path_TR 10251 if test -n "$TR"; then 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10253 $as_echo "$TR" >&6; } 10254 else 10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10256 $as_echo "no" >&6; } 10257 fi 10258 10259 10260 test -n "$TR" && break 10261 done 10262 10263 else 10264 # If it succeeded, then it was overridden by the user. We will use it 10265 # for the tool. 10266 10267 # First remove it from the list of overridden variables, so we can test 10268 # for unknown variables in the end. 10269 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10270 10271 # Check if the provided tool contains a complete path. 10272 tool_specified="$TR" 10273 tool_basename="${tool_specified##*/}" 10274 if test "x$tool_basename" = "x$tool_specified"; then 10275 # A command without a complete path is provided, search $PATH. 10276 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10277 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10278 # Extract the first word of "$tool_basename", so it can be a program name with args. 10279 set dummy $tool_basename; ac_word=$2 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10281 $as_echo_n "checking for $ac_word... " >&6; } 10282 if ${ac_cv_path_TR+:} false; then : 10283 $as_echo_n "(cached) " >&6 10284 else 10285 case $TR in 10286 [\\/]* | ?:[\\/]*) 10287 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10288 ;; 10289 *) 10290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10291 for as_dir in $PATH 10292 do 10293 IFS=$as_save_IFS 10294 test -z "$as_dir" && as_dir=. 10295 for ac_exec_ext in '' $ac_executable_extensions; do 10296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10297 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10299 break 2 10300 fi 10301 done 10302 done 10303 IFS=$as_save_IFS 10304 10305 ;; 10306 esac 10307 fi 10308 TR=$ac_cv_path_TR 10309 if test -n "$TR"; then 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10311 $as_echo "$TR" >&6; } 10312 else 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10314 $as_echo "no" >&6; } 10315 fi 10316 10317 10318 if test "x$TR" = x; then 10319 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10320 fi 10321 else 10322 # Otherwise we believe it is a complete path. Use it as it is. 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10324 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10326 $as_echo_n "checking for TR... " >&6; } 10327 if test ! -x "$tool_specified"; then 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10329 $as_echo "not found" >&6; } 10330 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10331 fi 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10333 $as_echo "$tool_specified" >&6; } 10334 fi 10335 fi 10336 fi 10337 10338 10339 10340 if test "x$TR" = x; then 10341 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10342 fi 10343 10344 10345 10346 10347 10348 # Publish this variable in the help. 10349 10350 10351 if test "x$UNAME" = x; then 10352 # The variable is not set by user, try to locate tool using the code snippet 10353 for ac_prog in uname 10354 do 10355 # Extract the first word of "$ac_prog", so it can be a program name with args. 10356 set dummy $ac_prog; ac_word=$2 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10358 $as_echo_n "checking for $ac_word... " >&6; } 10359 if ${ac_cv_path_UNAME+:} false; then : 10360 $as_echo_n "(cached) " >&6 10361 else 10362 case $UNAME in 10363 [\\/]* | ?:[\\/]*) 10364 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10365 ;; 10366 *) 10367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10368 for as_dir in $PATH 10369 do 10370 IFS=$as_save_IFS 10371 test -z "$as_dir" && as_dir=. 10372 for ac_exec_ext in '' $ac_executable_extensions; do 10373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10374 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10376 break 2 10377 fi 10378 done 10379 done 10380 IFS=$as_save_IFS 10381 10382 ;; 10383 esac 10384 fi 10385 UNAME=$ac_cv_path_UNAME 10386 if test -n "$UNAME"; then 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10388 $as_echo "$UNAME" >&6; } 10389 else 10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10391 $as_echo "no" >&6; } 10392 fi 10393 10394 10395 test -n "$UNAME" && break 10396 done 10397 10398 else 10399 # The variable is set, but is it from the command line or the environment? 10400 10401 # Try to remove the string !UNAME! from our list. 10402 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10403 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10404 # If it failed, the variable was not from the command line. Ignore it, 10405 # but warn the user (except for BASH, which is always set by the calling BASH). 10406 if test "xUNAME" != xBASH; then 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10408 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10409 fi 10410 # Try to locate tool using the code snippet 10411 for ac_prog in uname 10412 do 10413 # Extract the first word of "$ac_prog", so it can be a program name with args. 10414 set dummy $ac_prog; ac_word=$2 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10416 $as_echo_n "checking for $ac_word... " >&6; } 10417 if ${ac_cv_path_UNAME+:} false; then : 10418 $as_echo_n "(cached) " >&6 10419 else 10420 case $UNAME in 10421 [\\/]* | ?:[\\/]*) 10422 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10423 ;; 10424 *) 10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10426 for as_dir in $PATH 10427 do 10428 IFS=$as_save_IFS 10429 test -z "$as_dir" && as_dir=. 10430 for ac_exec_ext in '' $ac_executable_extensions; do 10431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10432 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10434 break 2 10435 fi 10436 done 10437 done 10438 IFS=$as_save_IFS 10439 10440 ;; 10441 esac 10442 fi 10443 UNAME=$ac_cv_path_UNAME 10444 if test -n "$UNAME"; then 10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10446 $as_echo "$UNAME" >&6; } 10447 else 10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10449 $as_echo "no" >&6; } 10450 fi 10451 10452 10453 test -n "$UNAME" && break 10454 done 10455 10456 else 10457 # If it succeeded, then it was overridden by the user. We will use it 10458 # for the tool. 10459 10460 # First remove it from the list of overridden variables, so we can test 10461 # for unknown variables in the end. 10462 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10463 10464 # Check if the provided tool contains a complete path. 10465 tool_specified="$UNAME" 10466 tool_basename="${tool_specified##*/}" 10467 if test "x$tool_basename" = "x$tool_specified"; then 10468 # A command without a complete path is provided, search $PATH. 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10470 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10471 # Extract the first word of "$tool_basename", so it can be a program name with args. 10472 set dummy $tool_basename; ac_word=$2 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10474 $as_echo_n "checking for $ac_word... " >&6; } 10475 if ${ac_cv_path_UNAME+:} false; then : 10476 $as_echo_n "(cached) " >&6 10477 else 10478 case $UNAME in 10479 [\\/]* | ?:[\\/]*) 10480 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10481 ;; 10482 *) 10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10484 for as_dir in $PATH 10485 do 10486 IFS=$as_save_IFS 10487 test -z "$as_dir" && as_dir=. 10488 for ac_exec_ext in '' $ac_executable_extensions; do 10489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10490 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10492 break 2 10493 fi 10494 done 10495 done 10496 IFS=$as_save_IFS 10497 10498 ;; 10499 esac 10500 fi 10501 UNAME=$ac_cv_path_UNAME 10502 if test -n "$UNAME"; then 10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10504 $as_echo "$UNAME" >&6; } 10505 else 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10507 $as_echo "no" >&6; } 10508 fi 10509 10510 10511 if test "x$UNAME" = x; then 10512 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10513 fi 10514 else 10515 # Otherwise we believe it is a complete path. Use it as it is. 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10517 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10519 $as_echo_n "checking for UNAME... " >&6; } 10520 if test ! -x "$tool_specified"; then 10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10522 $as_echo "not found" >&6; } 10523 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10524 fi 10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10526 $as_echo "$tool_specified" >&6; } 10527 fi 10528 fi 10529 fi 10530 10531 10532 10533 if test "x$UNAME" = x; then 10534 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10535 fi 10536 10537 10538 10539 10540 10541 # Publish this variable in the help. 10542 10543 10544 if test "x$UNIQ" = x; then 10545 # The variable is not set by user, try to locate tool using the code snippet 10546 for ac_prog in uniq 10547 do 10548 # Extract the first word of "$ac_prog", so it can be a program name with args. 10549 set dummy $ac_prog; ac_word=$2 10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10551 $as_echo_n "checking for $ac_word... " >&6; } 10552 if ${ac_cv_path_UNIQ+:} false; then : 10553 $as_echo_n "(cached) " >&6 10554 else 10555 case $UNIQ in 10556 [\\/]* | ?:[\\/]*) 10557 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10558 ;; 10559 *) 10560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10561 for as_dir in $PATH 10562 do 10563 IFS=$as_save_IFS 10564 test -z "$as_dir" && as_dir=. 10565 for ac_exec_ext in '' $ac_executable_extensions; do 10566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10567 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10569 break 2 10570 fi 10571 done 10572 done 10573 IFS=$as_save_IFS 10574 10575 ;; 10576 esac 10577 fi 10578 UNIQ=$ac_cv_path_UNIQ 10579 if test -n "$UNIQ"; then 10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10581 $as_echo "$UNIQ" >&6; } 10582 else 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10584 $as_echo "no" >&6; } 10585 fi 10586 10587 10588 test -n "$UNIQ" && break 10589 done 10590 10591 else 10592 # The variable is set, but is it from the command line or the environment? 10593 10594 # Try to remove the string !UNIQ! from our list. 10595 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10596 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10597 # If it failed, the variable was not from the command line. Ignore it, 10598 # but warn the user (except for BASH, which is always set by the calling BASH). 10599 if test "xUNIQ" != xBASH; then 10600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10601 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10602 fi 10603 # Try to locate tool using the code snippet 10604 for ac_prog in uniq 10605 do 10606 # Extract the first word of "$ac_prog", so it can be a program name with args. 10607 set dummy $ac_prog; ac_word=$2 10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10609 $as_echo_n "checking for $ac_word... " >&6; } 10610 if ${ac_cv_path_UNIQ+:} false; then : 10611 $as_echo_n "(cached) " >&6 10612 else 10613 case $UNIQ in 10614 [\\/]* | ?:[\\/]*) 10615 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10616 ;; 10617 *) 10618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10619 for as_dir in $PATH 10620 do 10621 IFS=$as_save_IFS 10622 test -z "$as_dir" && as_dir=. 10623 for ac_exec_ext in '' $ac_executable_extensions; do 10624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10625 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10627 break 2 10628 fi 10629 done 10630 done 10631 IFS=$as_save_IFS 10632 10633 ;; 10634 esac 10635 fi 10636 UNIQ=$ac_cv_path_UNIQ 10637 if test -n "$UNIQ"; then 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10639 $as_echo "$UNIQ" >&6; } 10640 else 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10642 $as_echo "no" >&6; } 10643 fi 10644 10645 10646 test -n "$UNIQ" && break 10647 done 10648 10649 else 10650 # If it succeeded, then it was overridden by the user. We will use it 10651 # for the tool. 10652 10653 # First remove it from the list of overridden variables, so we can test 10654 # for unknown variables in the end. 10655 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10656 10657 # Check if the provided tool contains a complete path. 10658 tool_specified="$UNIQ" 10659 tool_basename="${tool_specified##*/}" 10660 if test "x$tool_basename" = "x$tool_specified"; then 10661 # A command without a complete path is provided, search $PATH. 10662 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10663 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10664 # Extract the first word of "$tool_basename", so it can be a program name with args. 10665 set dummy $tool_basename; ac_word=$2 10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10667 $as_echo_n "checking for $ac_word... " >&6; } 10668 if ${ac_cv_path_UNIQ+:} false; then : 10669 $as_echo_n "(cached) " >&6 10670 else 10671 case $UNIQ in 10672 [\\/]* | ?:[\\/]*) 10673 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10674 ;; 10675 *) 10676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10677 for as_dir in $PATH 10678 do 10679 IFS=$as_save_IFS 10680 test -z "$as_dir" && as_dir=. 10681 for ac_exec_ext in '' $ac_executable_extensions; do 10682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10683 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10685 break 2 10686 fi 10687 done 10688 done 10689 IFS=$as_save_IFS 10690 10691 ;; 10692 esac 10693 fi 10694 UNIQ=$ac_cv_path_UNIQ 10695 if test -n "$UNIQ"; then 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10697 $as_echo "$UNIQ" >&6; } 10698 else 10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10700 $as_echo "no" >&6; } 10701 fi 10702 10703 10704 if test "x$UNIQ" = x; then 10705 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10706 fi 10707 else 10708 # Otherwise we believe it is a complete path. Use it as it is. 10709 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10710 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10712 $as_echo_n "checking for UNIQ... " >&6; } 10713 if test ! -x "$tool_specified"; then 10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10715 $as_echo "not found" >&6; } 10716 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10717 fi 10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10719 $as_echo "$tool_specified" >&6; } 10720 fi 10721 fi 10722 fi 10723 10724 10725 10726 if test "x$UNIQ" = x; then 10727 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10728 fi 10729 10730 10731 10732 10733 10734 # Publish this variable in the help. 10735 10736 10737 if test "x$WC" = x; then 10738 # The variable is not set by user, try to locate tool using the code snippet 10739 for ac_prog in wc 10740 do 10741 # Extract the first word of "$ac_prog", so it can be a program name with args. 10742 set dummy $ac_prog; ac_word=$2 10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10744 $as_echo_n "checking for $ac_word... " >&6; } 10745 if ${ac_cv_path_WC+:} false; then : 10746 $as_echo_n "(cached) " >&6 10747 else 10748 case $WC in 10749 [\\/]* | ?:[\\/]*) 10750 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10751 ;; 10752 *) 10753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10754 for as_dir in $PATH 10755 do 10756 IFS=$as_save_IFS 10757 test -z "$as_dir" && as_dir=. 10758 for ac_exec_ext in '' $ac_executable_extensions; do 10759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10760 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10762 break 2 10763 fi 10764 done 10765 done 10766 IFS=$as_save_IFS 10767 10768 ;; 10769 esac 10770 fi 10771 WC=$ac_cv_path_WC 10772 if test -n "$WC"; then 10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10774 $as_echo "$WC" >&6; } 10775 else 10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10777 $as_echo "no" >&6; } 10778 fi 10779 10780 10781 test -n "$WC" && break 10782 done 10783 10784 else 10785 # The variable is set, but is it from the command line or the environment? 10786 10787 # Try to remove the string !WC! from our list. 10788 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10789 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10790 # If it failed, the variable was not from the command line. Ignore it, 10791 # but warn the user (except for BASH, which is always set by the calling BASH). 10792 if test "xWC" != xBASH; then 10793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10794 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10795 fi 10796 # Try to locate tool using the code snippet 10797 for ac_prog in wc 10798 do 10799 # Extract the first word of "$ac_prog", so it can be a program name with args. 10800 set dummy $ac_prog; ac_word=$2 10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10802 $as_echo_n "checking for $ac_word... " >&6; } 10803 if ${ac_cv_path_WC+:} false; then : 10804 $as_echo_n "(cached) " >&6 10805 else 10806 case $WC in 10807 [\\/]* | ?:[\\/]*) 10808 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10809 ;; 10810 *) 10811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10812 for as_dir in $PATH 10813 do 10814 IFS=$as_save_IFS 10815 test -z "$as_dir" && as_dir=. 10816 for ac_exec_ext in '' $ac_executable_extensions; do 10817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10818 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10820 break 2 10821 fi 10822 done 10823 done 10824 IFS=$as_save_IFS 10825 10826 ;; 10827 esac 10828 fi 10829 WC=$ac_cv_path_WC 10830 if test -n "$WC"; then 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10832 $as_echo "$WC" >&6; } 10833 else 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10835 $as_echo "no" >&6; } 10836 fi 10837 10838 10839 test -n "$WC" && break 10840 done 10841 10842 else 10843 # If it succeeded, then it was overridden by the user. We will use it 10844 # for the tool. 10845 10846 # First remove it from the list of overridden variables, so we can test 10847 # for unknown variables in the end. 10848 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10849 10850 # Check if the provided tool contains a complete path. 10851 tool_specified="$WC" 10852 tool_basename="${tool_specified##*/}" 10853 if test "x$tool_basename" = "x$tool_specified"; then 10854 # A command without a complete path is provided, search $PATH. 10855 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10856 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10857 # Extract the first word of "$tool_basename", so it can be a program name with args. 10858 set dummy $tool_basename; ac_word=$2 10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10860 $as_echo_n "checking for $ac_word... " >&6; } 10861 if ${ac_cv_path_WC+:} false; then : 10862 $as_echo_n "(cached) " >&6 10863 else 10864 case $WC in 10865 [\\/]* | ?:[\\/]*) 10866 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10867 ;; 10868 *) 10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10870 for as_dir in $PATH 10871 do 10872 IFS=$as_save_IFS 10873 test -z "$as_dir" && as_dir=. 10874 for ac_exec_ext in '' $ac_executable_extensions; do 10875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10876 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10878 break 2 10879 fi 10880 done 10881 done 10882 IFS=$as_save_IFS 10883 10884 ;; 10885 esac 10886 fi 10887 WC=$ac_cv_path_WC 10888 if test -n "$WC"; then 10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10890 $as_echo "$WC" >&6; } 10891 else 10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10893 $as_echo "no" >&6; } 10894 fi 10895 10896 10897 if test "x$WC" = x; then 10898 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10899 fi 10900 else 10901 # Otherwise we believe it is a complete path. Use it as it is. 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10903 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10905 $as_echo_n "checking for WC... " >&6; } 10906 if test ! -x "$tool_specified"; then 10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10908 $as_echo "not found" >&6; } 10909 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10910 fi 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10912 $as_echo "$tool_specified" >&6; } 10913 fi 10914 fi 10915 fi 10916 10917 10918 10919 if test "x$WC" = x; then 10920 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 10921 fi 10922 10923 10924 10925 10926 10927 # Publish this variable in the help. 10928 10929 10930 if test "x$WHICH" = x; then 10931 # The variable is not set by user, try to locate tool using the code snippet 10932 for ac_prog in which 10933 do 10934 # Extract the first word of "$ac_prog", so it can be a program name with args. 10935 set dummy $ac_prog; ac_word=$2 10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10937 $as_echo_n "checking for $ac_word... " >&6; } 10938 if ${ac_cv_path_WHICH+:} false; then : 10939 $as_echo_n "(cached) " >&6 10940 else 10941 case $WHICH in 10942 [\\/]* | ?:[\\/]*) 10943 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 10944 ;; 10945 *) 10946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10947 for as_dir in $PATH 10948 do 10949 IFS=$as_save_IFS 10950 test -z "$as_dir" && as_dir=. 10951 for ac_exec_ext in '' $ac_executable_extensions; do 10952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10953 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 10954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10955 break 2 10956 fi 10957 done 10958 done 10959 IFS=$as_save_IFS 10960 10961 ;; 10962 esac 10963 fi 10964 WHICH=$ac_cv_path_WHICH 10965 if test -n "$WHICH"; then 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 10967 $as_echo "$WHICH" >&6; } 10968 else 10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10970 $as_echo "no" >&6; } 10971 fi 10972 10973 10974 test -n "$WHICH" && break 10975 done 10976 10977 else 10978 # The variable is set, but is it from the command line or the environment? 10979 10980 # Try to remove the string !WHICH! from our list. 10981 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 10982 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10983 # If it failed, the variable was not from the command line. Ignore it, 10984 # but warn the user (except for BASH, which is always set by the calling BASH). 10985 if test "xWHICH" != xBASH; then 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 10987 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 10988 fi 10989 # Try to locate tool using the code snippet 10990 for ac_prog in which 10991 do 10992 # Extract the first word of "$ac_prog", so it can be a program name with args. 10993 set dummy $ac_prog; ac_word=$2 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10995 $as_echo_n "checking for $ac_word... " >&6; } 10996 if ${ac_cv_path_WHICH+:} false; then : 10997 $as_echo_n "(cached) " >&6 10998 else 10999 case $WHICH in 11000 [\\/]* | ?:[\\/]*) 11001 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11002 ;; 11003 *) 11004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11005 for as_dir in $PATH 11006 do 11007 IFS=$as_save_IFS 11008 test -z "$as_dir" && as_dir=. 11009 for ac_exec_ext in '' $ac_executable_extensions; do 11010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11011 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11013 break 2 11014 fi 11015 done 11016 done 11017 IFS=$as_save_IFS 11018 11019 ;; 11020 esac 11021 fi 11022 WHICH=$ac_cv_path_WHICH 11023 if test -n "$WHICH"; then 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11025 $as_echo "$WHICH" >&6; } 11026 else 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11028 $as_echo "no" >&6; } 11029 fi 11030 11031 11032 test -n "$WHICH" && break 11033 done 11034 11035 else 11036 # If it succeeded, then it was overridden by the user. We will use it 11037 # for the tool. 11038 11039 # First remove it from the list of overridden variables, so we can test 11040 # for unknown variables in the end. 11041 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11042 11043 # Check if the provided tool contains a complete path. 11044 tool_specified="$WHICH" 11045 tool_basename="${tool_specified##*/}" 11046 if test "x$tool_basename" = "x$tool_specified"; then 11047 # A command without a complete path is provided, search $PATH. 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11049 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11050 # Extract the first word of "$tool_basename", so it can be a program name with args. 11051 set dummy $tool_basename; ac_word=$2 11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11053 $as_echo_n "checking for $ac_word... " >&6; } 11054 if ${ac_cv_path_WHICH+:} false; then : 11055 $as_echo_n "(cached) " >&6 11056 else 11057 case $WHICH in 11058 [\\/]* | ?:[\\/]*) 11059 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11060 ;; 11061 *) 11062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11063 for as_dir in $PATH 11064 do 11065 IFS=$as_save_IFS 11066 test -z "$as_dir" && as_dir=. 11067 for ac_exec_ext in '' $ac_executable_extensions; do 11068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11069 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11071 break 2 11072 fi 11073 done 11074 done 11075 IFS=$as_save_IFS 11076 11077 ;; 11078 esac 11079 fi 11080 WHICH=$ac_cv_path_WHICH 11081 if test -n "$WHICH"; then 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11083 $as_echo "$WHICH" >&6; } 11084 else 11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11086 $as_echo "no" >&6; } 11087 fi 11088 11089 11090 if test "x$WHICH" = x; then 11091 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11092 fi 11093 else 11094 # Otherwise we believe it is a complete path. Use it as it is. 11095 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11096 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11098 $as_echo_n "checking for WHICH... " >&6; } 11099 if test ! -x "$tool_specified"; then 11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11101 $as_echo "not found" >&6; } 11102 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11103 fi 11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11105 $as_echo "$tool_specified" >&6; } 11106 fi 11107 fi 11108 fi 11109 11110 11111 11112 if test "x$WHICH" = x; then 11113 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11114 fi 11115 11116 11117 11118 11119 11120 # Publish this variable in the help. 11121 11122 11123 if test "x$XARGS" = x; then 11124 # The variable is not set by user, try to locate tool using the code snippet 11125 for ac_prog in xargs 11126 do 11127 # Extract the first word of "$ac_prog", so it can be a program name with args. 11128 set dummy $ac_prog; ac_word=$2 11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11130 $as_echo_n "checking for $ac_word... " >&6; } 11131 if ${ac_cv_path_XARGS+:} false; then : 11132 $as_echo_n "(cached) " >&6 11133 else 11134 case $XARGS in 11135 [\\/]* | ?:[\\/]*) 11136 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11137 ;; 11138 *) 11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11140 for as_dir in $PATH 11141 do 11142 IFS=$as_save_IFS 11143 test -z "$as_dir" && as_dir=. 11144 for ac_exec_ext in '' $ac_executable_extensions; do 11145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11146 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11148 break 2 11149 fi 11150 done 11151 done 11152 IFS=$as_save_IFS 11153 11154 ;; 11155 esac 11156 fi 11157 XARGS=$ac_cv_path_XARGS 11158 if test -n "$XARGS"; then 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11160 $as_echo "$XARGS" >&6; } 11161 else 11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11163 $as_echo "no" >&6; } 11164 fi 11165 11166 11167 test -n "$XARGS" && break 11168 done 11169 11170 else 11171 # The variable is set, but is it from the command line or the environment? 11172 11173 # Try to remove the string !XARGS! from our list. 11174 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11175 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11176 # If it failed, the variable was not from the command line. Ignore it, 11177 # but warn the user (except for BASH, which is always set by the calling BASH). 11178 if test "xXARGS" != xBASH; then 11179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11180 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11181 fi 11182 # Try to locate tool using the code snippet 11183 for ac_prog in xargs 11184 do 11185 # Extract the first word of "$ac_prog", so it can be a program name with args. 11186 set dummy $ac_prog; ac_word=$2 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11188 $as_echo_n "checking for $ac_word... " >&6; } 11189 if ${ac_cv_path_XARGS+:} false; then : 11190 $as_echo_n "(cached) " >&6 11191 else 11192 case $XARGS in 11193 [\\/]* | ?:[\\/]*) 11194 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11195 ;; 11196 *) 11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11198 for as_dir in $PATH 11199 do 11200 IFS=$as_save_IFS 11201 test -z "$as_dir" && as_dir=. 11202 for ac_exec_ext in '' $ac_executable_extensions; do 11203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11204 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11206 break 2 11207 fi 11208 done 11209 done 11210 IFS=$as_save_IFS 11211 11212 ;; 11213 esac 11214 fi 11215 XARGS=$ac_cv_path_XARGS 11216 if test -n "$XARGS"; then 11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11218 $as_echo "$XARGS" >&6; } 11219 else 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11221 $as_echo "no" >&6; } 11222 fi 11223 11224 11225 test -n "$XARGS" && break 11226 done 11227 11228 else 11229 # If it succeeded, then it was overridden by the user. We will use it 11230 # for the tool. 11231 11232 # First remove it from the list of overridden variables, so we can test 11233 # for unknown variables in the end. 11234 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11235 11236 # Check if the provided tool contains a complete path. 11237 tool_specified="$XARGS" 11238 tool_basename="${tool_specified##*/}" 11239 if test "x$tool_basename" = "x$tool_specified"; then 11240 # A command without a complete path is provided, search $PATH. 11241 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11242 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11243 # Extract the first word of "$tool_basename", so it can be a program name with args. 11244 set dummy $tool_basename; ac_word=$2 11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11246 $as_echo_n "checking for $ac_word... " >&6; } 11247 if ${ac_cv_path_XARGS+:} false; then : 11248 $as_echo_n "(cached) " >&6 11249 else 11250 case $XARGS in 11251 [\\/]* | ?:[\\/]*) 11252 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11253 ;; 11254 *) 11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11256 for as_dir in $PATH 11257 do 11258 IFS=$as_save_IFS 11259 test -z "$as_dir" && as_dir=. 11260 for ac_exec_ext in '' $ac_executable_extensions; do 11261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11262 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11264 break 2 11265 fi 11266 done 11267 done 11268 IFS=$as_save_IFS 11269 11270 ;; 11271 esac 11272 fi 11273 XARGS=$ac_cv_path_XARGS 11274 if test -n "$XARGS"; then 11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11276 $as_echo "$XARGS" >&6; } 11277 else 11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11279 $as_echo "no" >&6; } 11280 fi 11281 11282 11283 if test "x$XARGS" = x; then 11284 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11285 fi 11286 else 11287 # Otherwise we believe it is a complete path. Use it as it is. 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11289 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11291 $as_echo_n "checking for XARGS... " >&6; } 11292 if test ! -x "$tool_specified"; then 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11294 $as_echo "not found" >&6; } 11295 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11296 fi 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11298 $as_echo "$tool_specified" >&6; } 11299 fi 11300 fi 11301 fi 11302 11303 11304 11305 if test "x$XARGS" = x; then 11306 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11307 fi 11308 11309 11310 11311 # Then required tools that require some special treatment. 11312 11313 11314 # Publish this variable in the help. 11315 11316 11317 if test "x$AWK" = x; then 11318 # The variable is not set by user, try to locate tool using the code snippet 11319 for ac_prog in gawk mawk nawk awk 11320 do 11321 # Extract the first word of "$ac_prog", so it can be a program name with args. 11322 set dummy $ac_prog; ac_word=$2 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11324 $as_echo_n "checking for $ac_word... " >&6; } 11325 if ${ac_cv_prog_AWK+:} false; then : 11326 $as_echo_n "(cached) " >&6 11327 else 11328 if test -n "$AWK"; then 11329 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11330 else 11331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11332 for as_dir in $PATH 11333 do 11334 IFS=$as_save_IFS 11335 test -z "$as_dir" && as_dir=. 11336 for ac_exec_ext in '' $ac_executable_extensions; do 11337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11338 ac_cv_prog_AWK="$ac_prog" 11339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11340 break 2 11341 fi 11342 done 11343 done 11344 IFS=$as_save_IFS 11345 11346 fi 11347 fi 11348 AWK=$ac_cv_prog_AWK 11349 if test -n "$AWK"; then 11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11351 $as_echo "$AWK" >&6; } 11352 else 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11354 $as_echo "no" >&6; } 11355 fi 11356 11357 11358 test -n "$AWK" && break 11359 done 11360 11361 else 11362 # The variable is set, but is it from the command line or the environment? 11363 11364 # Try to remove the string !AWK! from our list. 11365 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11366 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11367 # If it failed, the variable was not from the command line. Ignore it, 11368 # but warn the user (except for BASH, which is always set by the calling BASH). 11369 if test "xAWK" != xBASH; then 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11371 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11372 fi 11373 # Try to locate tool using the code snippet 11374 for ac_prog in gawk mawk nawk awk 11375 do 11376 # Extract the first word of "$ac_prog", so it can be a program name with args. 11377 set dummy $ac_prog; ac_word=$2 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11379 $as_echo_n "checking for $ac_word... " >&6; } 11380 if ${ac_cv_prog_AWK+:} false; then : 11381 $as_echo_n "(cached) " >&6 11382 else 11383 if test -n "$AWK"; then 11384 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11385 else 11386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11387 for as_dir in $PATH 11388 do 11389 IFS=$as_save_IFS 11390 test -z "$as_dir" && as_dir=. 11391 for ac_exec_ext in '' $ac_executable_extensions; do 11392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11393 ac_cv_prog_AWK="$ac_prog" 11394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11395 break 2 11396 fi 11397 done 11398 done 11399 IFS=$as_save_IFS 11400 11401 fi 11402 fi 11403 AWK=$ac_cv_prog_AWK 11404 if test -n "$AWK"; then 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11406 $as_echo "$AWK" >&6; } 11407 else 11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11409 $as_echo "no" >&6; } 11410 fi 11411 11412 11413 test -n "$AWK" && break 11414 done 11415 11416 else 11417 # If it succeeded, then it was overridden by the user. We will use it 11418 # for the tool. 11419 11420 # First remove it from the list of overridden variables, so we can test 11421 # for unknown variables in the end. 11422 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11423 11424 # Check if the provided tool contains a complete path. 11425 tool_specified="$AWK" 11426 tool_basename="${tool_specified##*/}" 11427 if test "x$tool_basename" = "x$tool_specified"; then 11428 # A command without a complete path is provided, search $PATH. 11429 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11430 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11431 # Extract the first word of "$tool_basename", so it can be a program name with args. 11432 set dummy $tool_basename; ac_word=$2 11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11434 $as_echo_n "checking for $ac_word... " >&6; } 11435 if ${ac_cv_path_AWK+:} false; then : 11436 $as_echo_n "(cached) " >&6 11437 else 11438 case $AWK in 11439 [\\/]* | ?:[\\/]*) 11440 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11441 ;; 11442 *) 11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11444 for as_dir in $PATH 11445 do 11446 IFS=$as_save_IFS 11447 test -z "$as_dir" && as_dir=. 11448 for ac_exec_ext in '' $ac_executable_extensions; do 11449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11450 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11452 break 2 11453 fi 11454 done 11455 done 11456 IFS=$as_save_IFS 11457 11458 ;; 11459 esac 11460 fi 11461 AWK=$ac_cv_path_AWK 11462 if test -n "$AWK"; then 11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11464 $as_echo "$AWK" >&6; } 11465 else 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11467 $as_echo "no" >&6; } 11468 fi 11469 11470 11471 if test "x$AWK" = x; then 11472 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11473 fi 11474 else 11475 # Otherwise we believe it is a complete path. Use it as it is. 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11477 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11479 $as_echo_n "checking for AWK... " >&6; } 11480 if test ! -x "$tool_specified"; then 11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11482 $as_echo "not found" >&6; } 11483 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11484 fi 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11486 $as_echo "$tool_specified" >&6; } 11487 fi 11488 fi 11489 fi 11490 11491 11492 if test "x$AWK" = x; then 11493 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11494 fi 11495 11496 11497 11498 11499 # Publish this variable in the help. 11500 11501 11502 if test "x$GREP" = x; then 11503 # The variable is not set by user, try to locate tool using the code snippet 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11505 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11506 if ${ac_cv_path_GREP+:} false; then : 11507 $as_echo_n "(cached) " >&6 11508 else 11509 if test -z "$GREP"; then 11510 ac_path_GREP_found=false 11511 # Loop through the user's path and test for each of PROGNAME-LIST 11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11513 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11514 do 11515 IFS=$as_save_IFS 11516 test -z "$as_dir" && as_dir=. 11517 for ac_prog in grep ggrep; do 11518 for ac_exec_ext in '' $ac_executable_extensions; do 11519 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11520 as_fn_executable_p "$ac_path_GREP" || continue 11521 # Check for GNU ac_path_GREP and select it if it is found. 11522 # Check for GNU $ac_path_GREP 11523 case `"$ac_path_GREP" --version 2>&1` in 11524 *GNU*) 11525 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11526 *) 11527 ac_count=0 11528 $as_echo_n 0123456789 >"conftest.in" 11529 while : 11530 do 11531 cat "conftest.in" "conftest.in" >"conftest.tmp" 11532 mv "conftest.tmp" "conftest.in" 11533 cp "conftest.in" "conftest.nl" 11534 $as_echo 'GREP' >> "conftest.nl" 11535 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11537 as_fn_arith $ac_count + 1 && ac_count=$as_val 11538 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11539 # Best one so far, save it but keep looking for a better one 11540 ac_cv_path_GREP="$ac_path_GREP" 11541 ac_path_GREP_max=$ac_count 11542 fi 11543 # 10*(2^10) chars as input seems more than enough 11544 test $ac_count -gt 10 && break 11545 done 11546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11547 esac 11548 11549 $ac_path_GREP_found && break 3 11550 done 11551 done 11552 done 11553 IFS=$as_save_IFS 11554 if test -z "$ac_cv_path_GREP"; then 11555 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11556 fi 11557 else 11558 ac_cv_path_GREP=$GREP 11559 fi 11560 11561 fi 11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11563 $as_echo "$ac_cv_path_GREP" >&6; } 11564 GREP="$ac_cv_path_GREP" 11565 11566 11567 else 11568 # The variable is set, but is it from the command line or the environment? 11569 11570 # Try to remove the string !GREP! from our list. 11571 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11572 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11573 # If it failed, the variable was not from the command line. Ignore it, 11574 # but warn the user (except for BASH, which is always set by the calling BASH). 11575 if test "xGREP" != xBASH; then 11576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11577 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11578 fi 11579 # Try to locate tool using the code snippet 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11581 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11582 if ${ac_cv_path_GREP+:} false; then : 11583 $as_echo_n "(cached) " >&6 11584 else 11585 if test -z "$GREP"; then 11586 ac_path_GREP_found=false 11587 # Loop through the user's path and test for each of PROGNAME-LIST 11588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11589 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11590 do 11591 IFS=$as_save_IFS 11592 test -z "$as_dir" && as_dir=. 11593 for ac_prog in grep ggrep; do 11594 for ac_exec_ext in '' $ac_executable_extensions; do 11595 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11596 as_fn_executable_p "$ac_path_GREP" || continue 11597 # Check for GNU ac_path_GREP and select it if it is found. 11598 # Check for GNU $ac_path_GREP 11599 case `"$ac_path_GREP" --version 2>&1` in 11600 *GNU*) 11601 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11602 *) 11603 ac_count=0 11604 $as_echo_n 0123456789 >"conftest.in" 11605 while : 11606 do 11607 cat "conftest.in" "conftest.in" >"conftest.tmp" 11608 mv "conftest.tmp" "conftest.in" 11609 cp "conftest.in" "conftest.nl" 11610 $as_echo 'GREP' >> "conftest.nl" 11611 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11613 as_fn_arith $ac_count + 1 && ac_count=$as_val 11614 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11615 # Best one so far, save it but keep looking for a better one 11616 ac_cv_path_GREP="$ac_path_GREP" 11617 ac_path_GREP_max=$ac_count 11618 fi 11619 # 10*(2^10) chars as input seems more than enough 11620 test $ac_count -gt 10 && break 11621 done 11622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11623 esac 11624 11625 $ac_path_GREP_found && break 3 11626 done 11627 done 11628 done 11629 IFS=$as_save_IFS 11630 if test -z "$ac_cv_path_GREP"; then 11631 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11632 fi 11633 else 11634 ac_cv_path_GREP=$GREP 11635 fi 11636 11637 fi 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11639 $as_echo "$ac_cv_path_GREP" >&6; } 11640 GREP="$ac_cv_path_GREP" 11641 11642 11643 else 11644 # If it succeeded, then it was overridden by the user. We will use it 11645 # for the tool. 11646 11647 # First remove it from the list of overridden variables, so we can test 11648 # for unknown variables in the end. 11649 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11650 11651 # Check if the provided tool contains a complete path. 11652 tool_specified="$GREP" 11653 tool_basename="${tool_specified##*/}" 11654 if test "x$tool_basename" = "x$tool_specified"; then 11655 # A command without a complete path is provided, search $PATH. 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11657 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11658 # Extract the first word of "$tool_basename", so it can be a program name with args. 11659 set dummy $tool_basename; ac_word=$2 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11661 $as_echo_n "checking for $ac_word... " >&6; } 11662 if ${ac_cv_path_GREP+:} false; then : 11663 $as_echo_n "(cached) " >&6 11664 else 11665 case $GREP in 11666 [\\/]* | ?:[\\/]*) 11667 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11668 ;; 11669 *) 11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11671 for as_dir in $PATH 11672 do 11673 IFS=$as_save_IFS 11674 test -z "$as_dir" && as_dir=. 11675 for ac_exec_ext in '' $ac_executable_extensions; do 11676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11677 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11679 break 2 11680 fi 11681 done 11682 done 11683 IFS=$as_save_IFS 11684 11685 ;; 11686 esac 11687 fi 11688 GREP=$ac_cv_path_GREP 11689 if test -n "$GREP"; then 11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11691 $as_echo "$GREP" >&6; } 11692 else 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11694 $as_echo "no" >&6; } 11695 fi 11696 11697 11698 if test "x$GREP" = x; then 11699 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11700 fi 11701 else 11702 # Otherwise we believe it is a complete path. Use it as it is. 11703 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11704 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11706 $as_echo_n "checking for GREP... " >&6; } 11707 if test ! -x "$tool_specified"; then 11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11709 $as_echo "not found" >&6; } 11710 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11711 fi 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11713 $as_echo "$tool_specified" >&6; } 11714 fi 11715 fi 11716 fi 11717 11718 11719 if test "x$GREP" = x; then 11720 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11721 fi 11722 11723 11724 11725 11726 # Publish this variable in the help. 11727 11728 11729 if test "x$EGREP" = x; then 11730 # The variable is not set by user, try to locate tool using the code snippet 11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11732 $as_echo_n "checking for egrep... " >&6; } 11733 if ${ac_cv_path_EGREP+:} false; then : 11734 $as_echo_n "(cached) " >&6 11735 else 11736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11737 then ac_cv_path_EGREP="$GREP -E" 11738 else 11739 if test -z "$EGREP"; then 11740 ac_path_EGREP_found=false 11741 # Loop through the user's path and test for each of PROGNAME-LIST 11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11744 do 11745 IFS=$as_save_IFS 11746 test -z "$as_dir" && as_dir=. 11747 for ac_prog in egrep; do 11748 for ac_exec_ext in '' $ac_executable_extensions; do 11749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11750 as_fn_executable_p "$ac_path_EGREP" || continue 11751 # Check for GNU ac_path_EGREP and select it if it is found. 11752 # Check for GNU $ac_path_EGREP 11753 case `"$ac_path_EGREP" --version 2>&1` in 11754 *GNU*) 11755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11756 *) 11757 ac_count=0 11758 $as_echo_n 0123456789 >"conftest.in" 11759 while : 11760 do 11761 cat "conftest.in" "conftest.in" >"conftest.tmp" 11762 mv "conftest.tmp" "conftest.in" 11763 cp "conftest.in" "conftest.nl" 11764 $as_echo 'EGREP' >> "conftest.nl" 11765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11767 as_fn_arith $ac_count + 1 && ac_count=$as_val 11768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11769 # Best one so far, save it but keep looking for a better one 11770 ac_cv_path_EGREP="$ac_path_EGREP" 11771 ac_path_EGREP_max=$ac_count 11772 fi 11773 # 10*(2^10) chars as input seems more than enough 11774 test $ac_count -gt 10 && break 11775 done 11776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11777 esac 11778 11779 $ac_path_EGREP_found && break 3 11780 done 11781 done 11782 done 11783 IFS=$as_save_IFS 11784 if test -z "$ac_cv_path_EGREP"; then 11785 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11786 fi 11787 else 11788 ac_cv_path_EGREP=$EGREP 11789 fi 11790 11791 fi 11792 fi 11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11794 $as_echo "$ac_cv_path_EGREP" >&6; } 11795 EGREP="$ac_cv_path_EGREP" 11796 11797 11798 else 11799 # The variable is set, but is it from the command line or the environment? 11800 11801 # Try to remove the string !EGREP! from our list. 11802 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11803 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11804 # If it failed, the variable was not from the command line. Ignore it, 11805 # but warn the user (except for BASH, which is always set by the calling BASH). 11806 if test "xEGREP" != xBASH; then 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11808 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11809 fi 11810 # Try to locate tool using the code snippet 11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11812 $as_echo_n "checking for egrep... " >&6; } 11813 if ${ac_cv_path_EGREP+:} false; then : 11814 $as_echo_n "(cached) " >&6 11815 else 11816 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11817 then ac_cv_path_EGREP="$GREP -E" 11818 else 11819 if test -z "$EGREP"; then 11820 ac_path_EGREP_found=false 11821 # Loop through the user's path and test for each of PROGNAME-LIST 11822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11823 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11824 do 11825 IFS=$as_save_IFS 11826 test -z "$as_dir" && as_dir=. 11827 for ac_prog in egrep; do 11828 for ac_exec_ext in '' $ac_executable_extensions; do 11829 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11830 as_fn_executable_p "$ac_path_EGREP" || continue 11831 # Check for GNU ac_path_EGREP and select it if it is found. 11832 # Check for GNU $ac_path_EGREP 11833 case `"$ac_path_EGREP" --version 2>&1` in 11834 *GNU*) 11835 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11836 *) 11837 ac_count=0 11838 $as_echo_n 0123456789 >"conftest.in" 11839 while : 11840 do 11841 cat "conftest.in" "conftest.in" >"conftest.tmp" 11842 mv "conftest.tmp" "conftest.in" 11843 cp "conftest.in" "conftest.nl" 11844 $as_echo 'EGREP' >> "conftest.nl" 11845 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11847 as_fn_arith $ac_count + 1 && ac_count=$as_val 11848 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11849 # Best one so far, save it but keep looking for a better one 11850 ac_cv_path_EGREP="$ac_path_EGREP" 11851 ac_path_EGREP_max=$ac_count 11852 fi 11853 # 10*(2^10) chars as input seems more than enough 11854 test $ac_count -gt 10 && break 11855 done 11856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11857 esac 11858 11859 $ac_path_EGREP_found && break 3 11860 done 11861 done 11862 done 11863 IFS=$as_save_IFS 11864 if test -z "$ac_cv_path_EGREP"; then 11865 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11866 fi 11867 else 11868 ac_cv_path_EGREP=$EGREP 11869 fi 11870 11871 fi 11872 fi 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11874 $as_echo "$ac_cv_path_EGREP" >&6; } 11875 EGREP="$ac_cv_path_EGREP" 11876 11877 11878 else 11879 # If it succeeded, then it was overridden by the user. We will use it 11880 # for the tool. 11881 11882 # First remove it from the list of overridden variables, so we can test 11883 # for unknown variables in the end. 11884 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11885 11886 # Check if the provided tool contains a complete path. 11887 tool_specified="$EGREP" 11888 tool_basename="${tool_specified##*/}" 11889 if test "x$tool_basename" = "x$tool_specified"; then 11890 # A command without a complete path is provided, search $PATH. 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11892 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11893 # Extract the first word of "$tool_basename", so it can be a program name with args. 11894 set dummy $tool_basename; ac_word=$2 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11896 $as_echo_n "checking for $ac_word... " >&6; } 11897 if ${ac_cv_path_EGREP+:} false; then : 11898 $as_echo_n "(cached) " >&6 11899 else 11900 case $EGREP in 11901 [\\/]* | ?:[\\/]*) 11902 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11903 ;; 11904 *) 11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11906 for as_dir in $PATH 11907 do 11908 IFS=$as_save_IFS 11909 test -z "$as_dir" && as_dir=. 11910 for ac_exec_ext in '' $ac_executable_extensions; do 11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11912 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11914 break 2 11915 fi 11916 done 11917 done 11918 IFS=$as_save_IFS 11919 11920 ;; 11921 esac 11922 fi 11923 EGREP=$ac_cv_path_EGREP 11924 if test -n "$EGREP"; then 11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 11926 $as_echo "$EGREP" >&6; } 11927 else 11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11929 $as_echo "no" >&6; } 11930 fi 11931 11932 11933 if test "x$EGREP" = x; then 11934 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11935 fi 11936 else 11937 # Otherwise we believe it is a complete path. Use it as it is. 11938 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 11939 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 11941 $as_echo_n "checking for EGREP... " >&6; } 11942 if test ! -x "$tool_specified"; then 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11944 $as_echo "not found" >&6; } 11945 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11946 fi 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11948 $as_echo "$tool_specified" >&6; } 11949 fi 11950 fi 11951 fi 11952 11953 11954 if test "x$EGREP" = x; then 11955 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 11956 fi 11957 11958 11959 11960 11961 # Publish this variable in the help. 11962 11963 11964 if test "x$FGREP" = x; then 11965 # The variable is not set by user, try to locate tool using the code snippet 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11967 $as_echo_n "checking for fgrep... " >&6; } 11968 if ${ac_cv_path_FGREP+:} false; then : 11969 $as_echo_n "(cached) " >&6 11970 else 11971 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11972 then ac_cv_path_FGREP="$GREP -F" 11973 else 11974 if test -z "$FGREP"; then 11975 ac_path_FGREP_found=false 11976 # Loop through the user's path and test for each of PROGNAME-LIST 11977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11979 do 11980 IFS=$as_save_IFS 11981 test -z "$as_dir" && as_dir=. 11982 for ac_prog in fgrep; do 11983 for ac_exec_ext in '' $ac_executable_extensions; do 11984 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11985 as_fn_executable_p "$ac_path_FGREP" || continue 11986 # Check for GNU ac_path_FGREP and select it if it is found. 11987 # Check for GNU $ac_path_FGREP 11988 case `"$ac_path_FGREP" --version 2>&1` in 11989 *GNU*) 11990 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11991 *) 11992 ac_count=0 11993 $as_echo_n 0123456789 >"conftest.in" 11994 while : 11995 do 11996 cat "conftest.in" "conftest.in" >"conftest.tmp" 11997 mv "conftest.tmp" "conftest.in" 11998 cp "conftest.in" "conftest.nl" 11999 $as_echo 'FGREP' >> "conftest.nl" 12000 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12002 as_fn_arith $ac_count + 1 && ac_count=$as_val 12003 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12004 # Best one so far, save it but keep looking for a better one 12005 ac_cv_path_FGREP="$ac_path_FGREP" 12006 ac_path_FGREP_max=$ac_count 12007 fi 12008 # 10*(2^10) chars as input seems more than enough 12009 test $ac_count -gt 10 && break 12010 done 12011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12012 esac 12013 12014 $ac_path_FGREP_found && break 3 12015 done 12016 done 12017 done 12018 IFS=$as_save_IFS 12019 if test -z "$ac_cv_path_FGREP"; then 12020 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12021 fi 12022 else 12023 ac_cv_path_FGREP=$FGREP 12024 fi 12025 12026 fi 12027 fi 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12029 $as_echo "$ac_cv_path_FGREP" >&6; } 12030 FGREP="$ac_cv_path_FGREP" 12031 12032 12033 else 12034 # The variable is set, but is it from the command line or the environment? 12035 12036 # Try to remove the string !FGREP! from our list. 12037 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12038 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12039 # If it failed, the variable was not from the command line. Ignore it, 12040 # but warn the user (except for BASH, which is always set by the calling BASH). 12041 if test "xFGREP" != xBASH; then 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12043 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12044 fi 12045 # Try to locate tool using the code snippet 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12047 $as_echo_n "checking for fgrep... " >&6; } 12048 if ${ac_cv_path_FGREP+:} false; then : 12049 $as_echo_n "(cached) " >&6 12050 else 12051 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12052 then ac_cv_path_FGREP="$GREP -F" 12053 else 12054 if test -z "$FGREP"; then 12055 ac_path_FGREP_found=false 12056 # Loop through the user's path and test for each of PROGNAME-LIST 12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12059 do 12060 IFS=$as_save_IFS 12061 test -z "$as_dir" && as_dir=. 12062 for ac_prog in fgrep; do 12063 for ac_exec_ext in '' $ac_executable_extensions; do 12064 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12065 as_fn_executable_p "$ac_path_FGREP" || continue 12066 # Check for GNU ac_path_FGREP and select it if it is found. 12067 # Check for GNU $ac_path_FGREP 12068 case `"$ac_path_FGREP" --version 2>&1` in 12069 *GNU*) 12070 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12071 *) 12072 ac_count=0 12073 $as_echo_n 0123456789 >"conftest.in" 12074 while : 12075 do 12076 cat "conftest.in" "conftest.in" >"conftest.tmp" 12077 mv "conftest.tmp" "conftest.in" 12078 cp "conftest.in" "conftest.nl" 12079 $as_echo 'FGREP' >> "conftest.nl" 12080 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12082 as_fn_arith $ac_count + 1 && ac_count=$as_val 12083 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12084 # Best one so far, save it but keep looking for a better one 12085 ac_cv_path_FGREP="$ac_path_FGREP" 12086 ac_path_FGREP_max=$ac_count 12087 fi 12088 # 10*(2^10) chars as input seems more than enough 12089 test $ac_count -gt 10 && break 12090 done 12091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12092 esac 12093 12094 $ac_path_FGREP_found && break 3 12095 done 12096 done 12097 done 12098 IFS=$as_save_IFS 12099 if test -z "$ac_cv_path_FGREP"; then 12100 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12101 fi 12102 else 12103 ac_cv_path_FGREP=$FGREP 12104 fi 12105 12106 fi 12107 fi 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12109 $as_echo "$ac_cv_path_FGREP" >&6; } 12110 FGREP="$ac_cv_path_FGREP" 12111 12112 12113 else 12114 # If it succeeded, then it was overridden by the user. We will use it 12115 # for the tool. 12116 12117 # First remove it from the list of overridden variables, so we can test 12118 # for unknown variables in the end. 12119 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12120 12121 # Check if the provided tool contains a complete path. 12122 tool_specified="$FGREP" 12123 tool_basename="${tool_specified##*/}" 12124 if test "x$tool_basename" = "x$tool_specified"; then 12125 # A command without a complete path is provided, search $PATH. 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12127 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12128 # Extract the first word of "$tool_basename", so it can be a program name with args. 12129 set dummy $tool_basename; ac_word=$2 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12131 $as_echo_n "checking for $ac_word... " >&6; } 12132 if ${ac_cv_path_FGREP+:} false; then : 12133 $as_echo_n "(cached) " >&6 12134 else 12135 case $FGREP in 12136 [\\/]* | ?:[\\/]*) 12137 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12138 ;; 12139 *) 12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12141 for as_dir in $PATH 12142 do 12143 IFS=$as_save_IFS 12144 test -z "$as_dir" && as_dir=. 12145 for ac_exec_ext in '' $ac_executable_extensions; do 12146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12147 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12149 break 2 12150 fi 12151 done 12152 done 12153 IFS=$as_save_IFS 12154 12155 ;; 12156 esac 12157 fi 12158 FGREP=$ac_cv_path_FGREP 12159 if test -n "$FGREP"; then 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12161 $as_echo "$FGREP" >&6; } 12162 else 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12164 $as_echo "no" >&6; } 12165 fi 12166 12167 12168 if test "x$FGREP" = x; then 12169 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12170 fi 12171 else 12172 # Otherwise we believe it is a complete path. Use it as it is. 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12174 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12176 $as_echo_n "checking for FGREP... " >&6; } 12177 if test ! -x "$tool_specified"; then 12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12179 $as_echo "not found" >&6; } 12180 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12181 fi 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12183 $as_echo "$tool_specified" >&6; } 12184 fi 12185 fi 12186 fi 12187 12188 12189 if test "x$FGREP" = x; then 12190 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12191 fi 12192 12193 12194 12195 12196 # Publish this variable in the help. 12197 12198 12199 if test "x$SED" = x; then 12200 # The variable is not set by user, try to locate tool using the code snippet 12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12202 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12203 if ${ac_cv_path_SED+:} false; then : 12204 $as_echo_n "(cached) " >&6 12205 else 12206 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12207 for ac_i in 1 2 3 4 5 6 7; do 12208 ac_script="$ac_script$as_nl$ac_script" 12209 done 12210 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12211 { ac_script=; unset ac_script;} 12212 if test -z "$SED"; then 12213 ac_path_SED_found=false 12214 # Loop through the user's path and test for each of PROGNAME-LIST 12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12216 for as_dir in $PATH 12217 do 12218 IFS=$as_save_IFS 12219 test -z "$as_dir" && as_dir=. 12220 for ac_prog in sed gsed; do 12221 for ac_exec_ext in '' $ac_executable_extensions; do 12222 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12223 as_fn_executable_p "$ac_path_SED" || continue 12224 # Check for GNU ac_path_SED and select it if it is found. 12225 # Check for GNU $ac_path_SED 12226 case `"$ac_path_SED" --version 2>&1` in 12227 *GNU*) 12228 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12229 *) 12230 ac_count=0 12231 $as_echo_n 0123456789 >"conftest.in" 12232 while : 12233 do 12234 cat "conftest.in" "conftest.in" >"conftest.tmp" 12235 mv "conftest.tmp" "conftest.in" 12236 cp "conftest.in" "conftest.nl" 12237 $as_echo '' >> "conftest.nl" 12238 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12240 as_fn_arith $ac_count + 1 && ac_count=$as_val 12241 if test $ac_count -gt ${ac_path_SED_max-0}; then 12242 # Best one so far, save it but keep looking for a better one 12243 ac_cv_path_SED="$ac_path_SED" 12244 ac_path_SED_max=$ac_count 12245 fi 12246 # 10*(2^10) chars as input seems more than enough 12247 test $ac_count -gt 10 && break 12248 done 12249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12250 esac 12251 12252 $ac_path_SED_found && break 3 12253 done 12254 done 12255 done 12256 IFS=$as_save_IFS 12257 if test -z "$ac_cv_path_SED"; then 12258 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12259 fi 12260 else 12261 ac_cv_path_SED=$SED 12262 fi 12263 12264 fi 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12266 $as_echo "$ac_cv_path_SED" >&6; } 12267 SED="$ac_cv_path_SED" 12268 rm -f conftest.sed 12269 12270 else 12271 # The variable is set, but is it from the command line or the environment? 12272 12273 # Try to remove the string !SED! from our list. 12274 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12275 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12276 # If it failed, the variable was not from the command line. Ignore it, 12277 # but warn the user (except for BASH, which is always set by the calling BASH). 12278 if test "xSED" != xBASH; then 12279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12280 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12281 fi 12282 # Try to locate tool using the code snippet 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12284 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12285 if ${ac_cv_path_SED+:} false; then : 12286 $as_echo_n "(cached) " >&6 12287 else 12288 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12289 for ac_i in 1 2 3 4 5 6 7; do 12290 ac_script="$ac_script$as_nl$ac_script" 12291 done 12292 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12293 { ac_script=; unset ac_script;} 12294 if test -z "$SED"; then 12295 ac_path_SED_found=false 12296 # Loop through the user's path and test for each of PROGNAME-LIST 12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12298 for as_dir in $PATH 12299 do 12300 IFS=$as_save_IFS 12301 test -z "$as_dir" && as_dir=. 12302 for ac_prog in sed gsed; do 12303 for ac_exec_ext in '' $ac_executable_extensions; do 12304 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12305 as_fn_executable_p "$ac_path_SED" || continue 12306 # Check for GNU ac_path_SED and select it if it is found. 12307 # Check for GNU $ac_path_SED 12308 case `"$ac_path_SED" --version 2>&1` in 12309 *GNU*) 12310 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12311 *) 12312 ac_count=0 12313 $as_echo_n 0123456789 >"conftest.in" 12314 while : 12315 do 12316 cat "conftest.in" "conftest.in" >"conftest.tmp" 12317 mv "conftest.tmp" "conftest.in" 12318 cp "conftest.in" "conftest.nl" 12319 $as_echo '' >> "conftest.nl" 12320 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12322 as_fn_arith $ac_count + 1 && ac_count=$as_val 12323 if test $ac_count -gt ${ac_path_SED_max-0}; then 12324 # Best one so far, save it but keep looking for a better one 12325 ac_cv_path_SED="$ac_path_SED" 12326 ac_path_SED_max=$ac_count 12327 fi 12328 # 10*(2^10) chars as input seems more than enough 12329 test $ac_count -gt 10 && break 12330 done 12331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12332 esac 12333 12334 $ac_path_SED_found && break 3 12335 done 12336 done 12337 done 12338 IFS=$as_save_IFS 12339 if test -z "$ac_cv_path_SED"; then 12340 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12341 fi 12342 else 12343 ac_cv_path_SED=$SED 12344 fi 12345 12346 fi 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12348 $as_echo "$ac_cv_path_SED" >&6; } 12349 SED="$ac_cv_path_SED" 12350 rm -f conftest.sed 12351 12352 else 12353 # If it succeeded, then it was overridden by the user. We will use it 12354 # for the tool. 12355 12356 # First remove it from the list of overridden variables, so we can test 12357 # for unknown variables in the end. 12358 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12359 12360 # Check if the provided tool contains a complete path. 12361 tool_specified="$SED" 12362 tool_basename="${tool_specified##*/}" 12363 if test "x$tool_basename" = "x$tool_specified"; then 12364 # A command without a complete path is provided, search $PATH. 12365 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12366 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12367 # Extract the first word of "$tool_basename", so it can be a program name with args. 12368 set dummy $tool_basename; ac_word=$2 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12370 $as_echo_n "checking for $ac_word... " >&6; } 12371 if ${ac_cv_path_SED+:} false; then : 12372 $as_echo_n "(cached) " >&6 12373 else 12374 case $SED in 12375 [\\/]* | ?:[\\/]*) 12376 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12377 ;; 12378 *) 12379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12380 for as_dir in $PATH 12381 do 12382 IFS=$as_save_IFS 12383 test -z "$as_dir" && as_dir=. 12384 for ac_exec_ext in '' $ac_executable_extensions; do 12385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12386 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12388 break 2 12389 fi 12390 done 12391 done 12392 IFS=$as_save_IFS 12393 12394 ;; 12395 esac 12396 fi 12397 SED=$ac_cv_path_SED 12398 if test -n "$SED"; then 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12400 $as_echo "$SED" >&6; } 12401 else 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12403 $as_echo "no" >&6; } 12404 fi 12405 12406 12407 if test "x$SED" = x; then 12408 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12409 fi 12410 else 12411 # Otherwise we believe it is a complete path. Use it as it is. 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12413 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12415 $as_echo_n "checking for SED... " >&6; } 12416 if test ! -x "$tool_specified"; then 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12418 $as_echo "not found" >&6; } 12419 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12420 fi 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12422 $as_echo "$tool_specified" >&6; } 12423 fi 12424 fi 12425 fi 12426 12427 12428 if test "x$SED" = x; then 12429 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12430 fi 12431 12432 12433 12434 # Always force rm. 12435 RM="$RM -f" 12436 12437 # pwd behaves differently on various platforms and some don't support the -L flag. 12438 # Always use the bash builtin pwd to get uniform behavior. 12439 THEPWDCMD=pwd 12440 12441 # These are not required on all platforms 12442 12443 12444 # Publish this variable in the help. 12445 12446 12447 if test "x$CYGPATH" = x; then 12448 # The variable is not set by user, try to locate tool using the code snippet 12449 for ac_prog in cygpath 12450 do 12451 # Extract the first word of "$ac_prog", so it can be a program name with args. 12452 set dummy $ac_prog; ac_word=$2 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12454 $as_echo_n "checking for $ac_word... " >&6; } 12455 if ${ac_cv_path_CYGPATH+:} false; then : 12456 $as_echo_n "(cached) " >&6 12457 else 12458 case $CYGPATH in 12459 [\\/]* | ?:[\\/]*) 12460 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12461 ;; 12462 *) 12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12464 for as_dir in $PATH 12465 do 12466 IFS=$as_save_IFS 12467 test -z "$as_dir" && as_dir=. 12468 for ac_exec_ext in '' $ac_executable_extensions; do 12469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12470 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12472 break 2 12473 fi 12474 done 12475 done 12476 IFS=$as_save_IFS 12477 12478 ;; 12479 esac 12480 fi 12481 CYGPATH=$ac_cv_path_CYGPATH 12482 if test -n "$CYGPATH"; then 12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12484 $as_echo "$CYGPATH" >&6; } 12485 else 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12487 $as_echo "no" >&6; } 12488 fi 12489 12490 12491 test -n "$CYGPATH" && break 12492 done 12493 12494 else 12495 # The variable is set, but is it from the command line or the environment? 12496 12497 # Try to remove the string !CYGPATH! from our list. 12498 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12499 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12500 # If it failed, the variable was not from the command line. Ignore it, 12501 # but warn the user (except for BASH, which is always set by the calling BASH). 12502 if test "xCYGPATH" != xBASH; then 12503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12504 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12505 fi 12506 # Try to locate tool using the code snippet 12507 for ac_prog in cygpath 12508 do 12509 # Extract the first word of "$ac_prog", so it can be a program name with args. 12510 set dummy $ac_prog; ac_word=$2 12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12512 $as_echo_n "checking for $ac_word... " >&6; } 12513 if ${ac_cv_path_CYGPATH+:} false; then : 12514 $as_echo_n "(cached) " >&6 12515 else 12516 case $CYGPATH in 12517 [\\/]* | ?:[\\/]*) 12518 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12519 ;; 12520 *) 12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12522 for as_dir in $PATH 12523 do 12524 IFS=$as_save_IFS 12525 test -z "$as_dir" && as_dir=. 12526 for ac_exec_ext in '' $ac_executable_extensions; do 12527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12528 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12530 break 2 12531 fi 12532 done 12533 done 12534 IFS=$as_save_IFS 12535 12536 ;; 12537 esac 12538 fi 12539 CYGPATH=$ac_cv_path_CYGPATH 12540 if test -n "$CYGPATH"; then 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12542 $as_echo "$CYGPATH" >&6; } 12543 else 12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12545 $as_echo "no" >&6; } 12546 fi 12547 12548 12549 test -n "$CYGPATH" && break 12550 done 12551 12552 else 12553 # If it succeeded, then it was overridden by the user. We will use it 12554 # for the tool. 12555 12556 # First remove it from the list of overridden variables, so we can test 12557 # for unknown variables in the end. 12558 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12559 12560 # Check if the provided tool contains a complete path. 12561 tool_specified="$CYGPATH" 12562 tool_basename="${tool_specified##*/}" 12563 if test "x$tool_basename" = "x$tool_specified"; then 12564 # A command without a complete path is provided, search $PATH. 12565 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12566 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12567 # Extract the first word of "$tool_basename", so it can be a program name with args. 12568 set dummy $tool_basename; ac_word=$2 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12570 $as_echo_n "checking for $ac_word... " >&6; } 12571 if ${ac_cv_path_CYGPATH+:} false; then : 12572 $as_echo_n "(cached) " >&6 12573 else 12574 case $CYGPATH in 12575 [\\/]* | ?:[\\/]*) 12576 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12577 ;; 12578 *) 12579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12580 for as_dir in $PATH 12581 do 12582 IFS=$as_save_IFS 12583 test -z "$as_dir" && as_dir=. 12584 for ac_exec_ext in '' $ac_executable_extensions; do 12585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12586 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12588 break 2 12589 fi 12590 done 12591 done 12592 IFS=$as_save_IFS 12593 12594 ;; 12595 esac 12596 fi 12597 CYGPATH=$ac_cv_path_CYGPATH 12598 if test -n "$CYGPATH"; then 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12600 $as_echo "$CYGPATH" >&6; } 12601 else 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12603 $as_echo "no" >&6; } 12604 fi 12605 12606 12607 if test "x$CYGPATH" = x; then 12608 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12609 fi 12610 else 12611 # Otherwise we believe it is a complete path. Use it as it is. 12612 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12613 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12615 $as_echo_n "checking for CYGPATH... " >&6; } 12616 if test ! -x "$tool_specified"; then 12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12618 $as_echo "not found" >&6; } 12619 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12620 fi 12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12622 $as_echo "$tool_specified" >&6; } 12623 fi 12624 fi 12625 fi 12626 12627 12628 12629 12630 # Publish this variable in the help. 12631 12632 12633 if test "x$READLINK" = x; then 12634 # The variable is not set by user, try to locate tool using the code snippet 12635 for ac_prog in greadlink readlink 12636 do 12637 # Extract the first word of "$ac_prog", so it can be a program name with args. 12638 set dummy $ac_prog; ac_word=$2 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12640 $as_echo_n "checking for $ac_word... " >&6; } 12641 if ${ac_cv_path_READLINK+:} false; then : 12642 $as_echo_n "(cached) " >&6 12643 else 12644 case $READLINK in 12645 [\\/]* | ?:[\\/]*) 12646 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12647 ;; 12648 *) 12649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12650 for as_dir in $PATH 12651 do 12652 IFS=$as_save_IFS 12653 test -z "$as_dir" && as_dir=. 12654 for ac_exec_ext in '' $ac_executable_extensions; do 12655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12656 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12658 break 2 12659 fi 12660 done 12661 done 12662 IFS=$as_save_IFS 12663 12664 ;; 12665 esac 12666 fi 12667 READLINK=$ac_cv_path_READLINK 12668 if test -n "$READLINK"; then 12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12670 $as_echo "$READLINK" >&6; } 12671 else 12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12673 $as_echo "no" >&6; } 12674 fi 12675 12676 12677 test -n "$READLINK" && break 12678 done 12679 12680 else 12681 # The variable is set, but is it from the command line or the environment? 12682 12683 # Try to remove the string !READLINK! from our list. 12684 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12685 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12686 # If it failed, the variable was not from the command line. Ignore it, 12687 # but warn the user (except for BASH, which is always set by the calling BASH). 12688 if test "xREADLINK" != xBASH; then 12689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12690 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12691 fi 12692 # Try to locate tool using the code snippet 12693 for ac_prog in greadlink readlink 12694 do 12695 # Extract the first word of "$ac_prog", so it can be a program name with args. 12696 set dummy $ac_prog; ac_word=$2 12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12698 $as_echo_n "checking for $ac_word... " >&6; } 12699 if ${ac_cv_path_READLINK+:} false; then : 12700 $as_echo_n "(cached) " >&6 12701 else 12702 case $READLINK in 12703 [\\/]* | ?:[\\/]*) 12704 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12705 ;; 12706 *) 12707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12708 for as_dir in $PATH 12709 do 12710 IFS=$as_save_IFS 12711 test -z "$as_dir" && as_dir=. 12712 for ac_exec_ext in '' $ac_executable_extensions; do 12713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12714 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12716 break 2 12717 fi 12718 done 12719 done 12720 IFS=$as_save_IFS 12721 12722 ;; 12723 esac 12724 fi 12725 READLINK=$ac_cv_path_READLINK 12726 if test -n "$READLINK"; then 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12728 $as_echo "$READLINK" >&6; } 12729 else 12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12731 $as_echo "no" >&6; } 12732 fi 12733 12734 12735 test -n "$READLINK" && break 12736 done 12737 12738 else 12739 # If it succeeded, then it was overridden by the user. We will use it 12740 # for the tool. 12741 12742 # First remove it from the list of overridden variables, so we can test 12743 # for unknown variables in the end. 12744 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12745 12746 # Check if the provided tool contains a complete path. 12747 tool_specified="$READLINK" 12748 tool_basename="${tool_specified##*/}" 12749 if test "x$tool_basename" = "x$tool_specified"; then 12750 # A command without a complete path is provided, search $PATH. 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12752 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12753 # Extract the first word of "$tool_basename", so it can be a program name with args. 12754 set dummy $tool_basename; ac_word=$2 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12756 $as_echo_n "checking for $ac_word... " >&6; } 12757 if ${ac_cv_path_READLINK+:} false; then : 12758 $as_echo_n "(cached) " >&6 12759 else 12760 case $READLINK in 12761 [\\/]* | ?:[\\/]*) 12762 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12763 ;; 12764 *) 12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12766 for as_dir in $PATH 12767 do 12768 IFS=$as_save_IFS 12769 test -z "$as_dir" && as_dir=. 12770 for ac_exec_ext in '' $ac_executable_extensions; do 12771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12772 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12774 break 2 12775 fi 12776 done 12777 done 12778 IFS=$as_save_IFS 12779 12780 ;; 12781 esac 12782 fi 12783 READLINK=$ac_cv_path_READLINK 12784 if test -n "$READLINK"; then 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12786 $as_echo "$READLINK" >&6; } 12787 else 12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12789 $as_echo "no" >&6; } 12790 fi 12791 12792 12793 if test "x$READLINK" = x; then 12794 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12795 fi 12796 else 12797 # Otherwise we believe it is a complete path. Use it as it is. 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12799 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12801 $as_echo_n "checking for READLINK... " >&6; } 12802 if test ! -x "$tool_specified"; then 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12804 $as_echo "not found" >&6; } 12805 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12806 fi 12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12808 $as_echo "$tool_specified" >&6; } 12809 fi 12810 fi 12811 fi 12812 12813 12814 12815 12816 # Publish this variable in the help. 12817 12818 12819 if test "x$DF" = x; then 12820 # The variable is not set by user, try to locate tool using the code snippet 12821 for ac_prog in df 12822 do 12823 # Extract the first word of "$ac_prog", so it can be a program name with args. 12824 set dummy $ac_prog; ac_word=$2 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12826 $as_echo_n "checking for $ac_word... " >&6; } 12827 if ${ac_cv_path_DF+:} false; then : 12828 $as_echo_n "(cached) " >&6 12829 else 12830 case $DF in 12831 [\\/]* | ?:[\\/]*) 12832 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12833 ;; 12834 *) 12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12836 for as_dir in $PATH 12837 do 12838 IFS=$as_save_IFS 12839 test -z "$as_dir" && as_dir=. 12840 for ac_exec_ext in '' $ac_executable_extensions; do 12841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12842 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12844 break 2 12845 fi 12846 done 12847 done 12848 IFS=$as_save_IFS 12849 12850 ;; 12851 esac 12852 fi 12853 DF=$ac_cv_path_DF 12854 if test -n "$DF"; then 12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12856 $as_echo "$DF" >&6; } 12857 else 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12859 $as_echo "no" >&6; } 12860 fi 12861 12862 12863 test -n "$DF" && break 12864 done 12865 12866 else 12867 # The variable is set, but is it from the command line or the environment? 12868 12869 # Try to remove the string !DF! from our list. 12870 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12871 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12872 # If it failed, the variable was not from the command line. Ignore it, 12873 # but warn the user (except for BASH, which is always set by the calling BASH). 12874 if test "xDF" != xBASH; then 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12876 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12877 fi 12878 # Try to locate tool using the code snippet 12879 for ac_prog in df 12880 do 12881 # Extract the first word of "$ac_prog", so it can be a program name with args. 12882 set dummy $ac_prog; ac_word=$2 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12884 $as_echo_n "checking for $ac_word... " >&6; } 12885 if ${ac_cv_path_DF+:} false; then : 12886 $as_echo_n "(cached) " >&6 12887 else 12888 case $DF in 12889 [\\/]* | ?:[\\/]*) 12890 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12891 ;; 12892 *) 12893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12894 for as_dir in $PATH 12895 do 12896 IFS=$as_save_IFS 12897 test -z "$as_dir" && as_dir=. 12898 for ac_exec_ext in '' $ac_executable_extensions; do 12899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12900 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12902 break 2 12903 fi 12904 done 12905 done 12906 IFS=$as_save_IFS 12907 12908 ;; 12909 esac 12910 fi 12911 DF=$ac_cv_path_DF 12912 if test -n "$DF"; then 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12914 $as_echo "$DF" >&6; } 12915 else 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12917 $as_echo "no" >&6; } 12918 fi 12919 12920 12921 test -n "$DF" && break 12922 done 12923 12924 else 12925 # If it succeeded, then it was overridden by the user. We will use it 12926 # for the tool. 12927 12928 # First remove it from the list of overridden variables, so we can test 12929 # for unknown variables in the end. 12930 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12931 12932 # Check if the provided tool contains a complete path. 12933 tool_specified="$DF" 12934 tool_basename="${tool_specified##*/}" 12935 if test "x$tool_basename" = "x$tool_specified"; then 12936 # A command without a complete path is provided, search $PATH. 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 12938 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 12939 # Extract the first word of "$tool_basename", so it can be a program name with args. 12940 set dummy $tool_basename; ac_word=$2 12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12942 $as_echo_n "checking for $ac_word... " >&6; } 12943 if ${ac_cv_path_DF+:} false; then : 12944 $as_echo_n "(cached) " >&6 12945 else 12946 case $DF in 12947 [\\/]* | ?:[\\/]*) 12948 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12949 ;; 12950 *) 12951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12952 for as_dir in $PATH 12953 do 12954 IFS=$as_save_IFS 12955 test -z "$as_dir" && as_dir=. 12956 for ac_exec_ext in '' $ac_executable_extensions; do 12957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12958 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12960 break 2 12961 fi 12962 done 12963 done 12964 IFS=$as_save_IFS 12965 12966 ;; 12967 esac 12968 fi 12969 DF=$ac_cv_path_DF 12970 if test -n "$DF"; then 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12972 $as_echo "$DF" >&6; } 12973 else 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12975 $as_echo "no" >&6; } 12976 fi 12977 12978 12979 if test "x$DF" = x; then 12980 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12981 fi 12982 else 12983 # Otherwise we believe it is a complete path. Use it as it is. 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 12985 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 12987 $as_echo_n "checking for DF... " >&6; } 12988 if test ! -x "$tool_specified"; then 12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12990 $as_echo "not found" >&6; } 12991 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 12992 fi 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12994 $as_echo "$tool_specified" >&6; } 12995 fi 12996 fi 12997 fi 12998 12999 13000 13001 13002 # Publish this variable in the help. 13003 13004 13005 if test "x$SETFILE" = x; then 13006 # The variable is not set by user, try to locate tool using the code snippet 13007 for ac_prog in SetFile 13008 do 13009 # Extract the first word of "$ac_prog", so it can be a program name with args. 13010 set dummy $ac_prog; ac_word=$2 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13012 $as_echo_n "checking for $ac_word... " >&6; } 13013 if ${ac_cv_path_SETFILE+:} false; then : 13014 $as_echo_n "(cached) " >&6 13015 else 13016 case $SETFILE in 13017 [\\/]* | ?:[\\/]*) 13018 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13019 ;; 13020 *) 13021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13022 for as_dir in $PATH 13023 do 13024 IFS=$as_save_IFS 13025 test -z "$as_dir" && as_dir=. 13026 for ac_exec_ext in '' $ac_executable_extensions; do 13027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13028 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13030 break 2 13031 fi 13032 done 13033 done 13034 IFS=$as_save_IFS 13035 13036 ;; 13037 esac 13038 fi 13039 SETFILE=$ac_cv_path_SETFILE 13040 if test -n "$SETFILE"; then 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13042 $as_echo "$SETFILE" >&6; } 13043 else 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13045 $as_echo "no" >&6; } 13046 fi 13047 13048 13049 test -n "$SETFILE" && break 13050 done 13051 13052 else 13053 # The variable is set, but is it from the command line or the environment? 13054 13055 # Try to remove the string !SETFILE! from our list. 13056 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13057 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13058 # If it failed, the variable was not from the command line. Ignore it, 13059 # but warn the user (except for BASH, which is always set by the calling BASH). 13060 if test "xSETFILE" != xBASH; then 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13062 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13063 fi 13064 # Try to locate tool using the code snippet 13065 for ac_prog in SetFile 13066 do 13067 # Extract the first word of "$ac_prog", so it can be a program name with args. 13068 set dummy $ac_prog; ac_word=$2 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13070 $as_echo_n "checking for $ac_word... " >&6; } 13071 if ${ac_cv_path_SETFILE+:} false; then : 13072 $as_echo_n "(cached) " >&6 13073 else 13074 case $SETFILE in 13075 [\\/]* | ?:[\\/]*) 13076 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13077 ;; 13078 *) 13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13080 for as_dir in $PATH 13081 do 13082 IFS=$as_save_IFS 13083 test -z "$as_dir" && as_dir=. 13084 for ac_exec_ext in '' $ac_executable_extensions; do 13085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13086 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13088 break 2 13089 fi 13090 done 13091 done 13092 IFS=$as_save_IFS 13093 13094 ;; 13095 esac 13096 fi 13097 SETFILE=$ac_cv_path_SETFILE 13098 if test -n "$SETFILE"; then 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13100 $as_echo "$SETFILE" >&6; } 13101 else 13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13103 $as_echo "no" >&6; } 13104 fi 13105 13106 13107 test -n "$SETFILE" && break 13108 done 13109 13110 else 13111 # If it succeeded, then it was overridden by the user. We will use it 13112 # for the tool. 13113 13114 # First remove it from the list of overridden variables, so we can test 13115 # for unknown variables in the end. 13116 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13117 13118 # Check if the provided tool contains a complete path. 13119 tool_specified="$SETFILE" 13120 tool_basename="${tool_specified##*/}" 13121 if test "x$tool_basename" = "x$tool_specified"; then 13122 # A command without a complete path is provided, search $PATH. 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13124 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13125 # Extract the first word of "$tool_basename", so it can be a program name with args. 13126 set dummy $tool_basename; ac_word=$2 13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13128 $as_echo_n "checking for $ac_word... " >&6; } 13129 if ${ac_cv_path_SETFILE+:} false; then : 13130 $as_echo_n "(cached) " >&6 13131 else 13132 case $SETFILE in 13133 [\\/]* | ?:[\\/]*) 13134 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13135 ;; 13136 *) 13137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13138 for as_dir in $PATH 13139 do 13140 IFS=$as_save_IFS 13141 test -z "$as_dir" && as_dir=. 13142 for ac_exec_ext in '' $ac_executable_extensions; do 13143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13144 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13146 break 2 13147 fi 13148 done 13149 done 13150 IFS=$as_save_IFS 13151 13152 ;; 13153 esac 13154 fi 13155 SETFILE=$ac_cv_path_SETFILE 13156 if test -n "$SETFILE"; then 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13158 $as_echo "$SETFILE" >&6; } 13159 else 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13161 $as_echo "no" >&6; } 13162 fi 13163 13164 13165 if test "x$SETFILE" = x; then 13166 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13167 fi 13168 else 13169 # Otherwise we believe it is a complete path. Use it as it is. 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13171 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13173 $as_echo_n "checking for SETFILE... " >&6; } 13174 if test ! -x "$tool_specified"; then 13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13176 $as_echo "not found" >&6; } 13177 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13178 fi 13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13180 $as_echo "$tool_specified" >&6; } 13181 fi 13182 fi 13183 fi 13184 13185 13186 13187 13188 # Publish this variable in the help. 13189 13190 13191 if test "x$CPIO" = x; then 13192 # The variable is not set by user, try to locate tool using the code snippet 13193 for ac_prog in cpio bsdcpio 13194 do 13195 # Extract the first word of "$ac_prog", so it can be a program name with args. 13196 set dummy $ac_prog; ac_word=$2 13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13198 $as_echo_n "checking for $ac_word... " >&6; } 13199 if ${ac_cv_path_CPIO+:} false; then : 13200 $as_echo_n "(cached) " >&6 13201 else 13202 case $CPIO in 13203 [\\/]* | ?:[\\/]*) 13204 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13205 ;; 13206 *) 13207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13208 for as_dir in $PATH 13209 do 13210 IFS=$as_save_IFS 13211 test -z "$as_dir" && as_dir=. 13212 for ac_exec_ext in '' $ac_executable_extensions; do 13213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13214 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13216 break 2 13217 fi 13218 done 13219 done 13220 IFS=$as_save_IFS 13221 13222 ;; 13223 esac 13224 fi 13225 CPIO=$ac_cv_path_CPIO 13226 if test -n "$CPIO"; then 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13228 $as_echo "$CPIO" >&6; } 13229 else 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13231 $as_echo "no" >&6; } 13232 fi 13233 13234 13235 test -n "$CPIO" && break 13236 done 13237 13238 else 13239 # The variable is set, but is it from the command line or the environment? 13240 13241 # Try to remove the string !CPIO! from our list. 13242 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13243 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13244 # If it failed, the variable was not from the command line. Ignore it, 13245 # but warn the user (except for BASH, which is always set by the calling BASH). 13246 if test "xCPIO" != xBASH; then 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13248 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13249 fi 13250 # Try to locate tool using the code snippet 13251 for ac_prog in cpio bsdcpio 13252 do 13253 # Extract the first word of "$ac_prog", so it can be a program name with args. 13254 set dummy $ac_prog; ac_word=$2 13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13256 $as_echo_n "checking for $ac_word... " >&6; } 13257 if ${ac_cv_path_CPIO+:} false; then : 13258 $as_echo_n "(cached) " >&6 13259 else 13260 case $CPIO in 13261 [\\/]* | ?:[\\/]*) 13262 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13263 ;; 13264 *) 13265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13266 for as_dir in $PATH 13267 do 13268 IFS=$as_save_IFS 13269 test -z "$as_dir" && as_dir=. 13270 for ac_exec_ext in '' $ac_executable_extensions; do 13271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13272 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13274 break 2 13275 fi 13276 done 13277 done 13278 IFS=$as_save_IFS 13279 13280 ;; 13281 esac 13282 fi 13283 CPIO=$ac_cv_path_CPIO 13284 if test -n "$CPIO"; then 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13286 $as_echo "$CPIO" >&6; } 13287 else 13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13289 $as_echo "no" >&6; } 13290 fi 13291 13292 13293 test -n "$CPIO" && break 13294 done 13295 13296 else 13297 # If it succeeded, then it was overridden by the user. We will use it 13298 # for the tool. 13299 13300 # First remove it from the list of overridden variables, so we can test 13301 # for unknown variables in the end. 13302 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13303 13304 # Check if the provided tool contains a complete path. 13305 tool_specified="$CPIO" 13306 tool_basename="${tool_specified##*/}" 13307 if test "x$tool_basename" = "x$tool_specified"; then 13308 # A command without a complete path is provided, search $PATH. 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13310 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13311 # Extract the first word of "$tool_basename", so it can be a program name with args. 13312 set dummy $tool_basename; ac_word=$2 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13314 $as_echo_n "checking for $ac_word... " >&6; } 13315 if ${ac_cv_path_CPIO+:} false; then : 13316 $as_echo_n "(cached) " >&6 13317 else 13318 case $CPIO in 13319 [\\/]* | ?:[\\/]*) 13320 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13321 ;; 13322 *) 13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13324 for as_dir in $PATH 13325 do 13326 IFS=$as_save_IFS 13327 test -z "$as_dir" && as_dir=. 13328 for ac_exec_ext in '' $ac_executable_extensions; do 13329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13330 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13332 break 2 13333 fi 13334 done 13335 done 13336 IFS=$as_save_IFS 13337 13338 ;; 13339 esac 13340 fi 13341 CPIO=$ac_cv_path_CPIO 13342 if test -n "$CPIO"; then 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13344 $as_echo "$CPIO" >&6; } 13345 else 13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13347 $as_echo "no" >&6; } 13348 fi 13349 13350 13351 if test "x$CPIO" = x; then 13352 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13353 fi 13354 else 13355 # Otherwise we believe it is a complete path. Use it as it is. 13356 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13357 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13359 $as_echo_n "checking for CPIO... " >&6; } 13360 if test ! -x "$tool_specified"; then 13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13362 $as_echo "not found" >&6; } 13363 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13364 fi 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13366 $as_echo "$tool_specified" >&6; } 13367 fi 13368 fi 13369 fi 13370 13371 13372 13373 13374 # Now we can determine OpenJDK build and target platforms. This is required to 13375 # have early on. 13376 # Make sure we can run config.sub. 13377 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13378 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13379 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13381 $as_echo_n "checking build system type... " >&6; } 13382 if ${ac_cv_build+:} false; then : 13383 $as_echo_n "(cached) " >&6 13384 else 13385 ac_build_alias=$build_alias 13386 test "x$ac_build_alias" = x && 13387 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13388 test "x$ac_build_alias" = x && 13389 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13390 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13391 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13392 13393 fi 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13395 $as_echo "$ac_cv_build" >&6; } 13396 case $ac_cv_build in 13397 *-*-*) ;; 13398 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13399 esac 13400 build=$ac_cv_build 13401 ac_save_IFS=$IFS; IFS='-' 13402 set x $ac_cv_build 13403 shift 13404 build_cpu=$1 13405 build_vendor=$2 13406 shift; shift 13407 # Remember, the first character of IFS is used to create $*, 13408 # except with old shells: 13409 build_os=$* 13410 IFS=$ac_save_IFS 13411 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13412 13413 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13415 $as_echo_n "checking host system type... " >&6; } 13416 if ${ac_cv_host+:} false; then : 13417 $as_echo_n "(cached) " >&6 13418 else 13419 if test "x$host_alias" = x; then 13420 ac_cv_host=$ac_cv_build 13421 else 13422 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13423 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13424 fi 13425 13426 fi 13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13428 $as_echo "$ac_cv_host" >&6; } 13429 case $ac_cv_host in 13430 *-*-*) ;; 13431 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13432 esac 13433 host=$ac_cv_host 13434 ac_save_IFS=$IFS; IFS='-' 13435 set x $ac_cv_host 13436 shift 13437 host_cpu=$1 13438 host_vendor=$2 13439 shift; shift 13440 # Remember, the first character of IFS is used to create $*, 13441 # except with old shells: 13442 host_os=$* 13443 IFS=$ac_save_IFS 13444 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13445 13446 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13448 $as_echo_n "checking target system type... " >&6; } 13449 if ${ac_cv_target+:} false; then : 13450 $as_echo_n "(cached) " >&6 13451 else 13452 if test "x$target_alias" = x; then 13453 ac_cv_target=$ac_cv_host 13454 else 13455 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13456 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13457 fi 13458 13459 fi 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13461 $as_echo "$ac_cv_target" >&6; } 13462 case $ac_cv_target in 13463 *-*-*) ;; 13464 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13465 esac 13466 target=$ac_cv_target 13467 ac_save_IFS=$IFS; IFS='-' 13468 set x $ac_cv_target 13469 shift 13470 target_cpu=$1 13471 target_vendor=$2 13472 shift; shift 13473 # Remember, the first character of IFS is used to create $*, 13474 # except with old shells: 13475 target_os=$* 13476 IFS=$ac_save_IFS 13477 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13478 13479 13480 # The aliases save the names the user supplied, while $host etc. 13481 # will get canonicalized. 13482 test -n "$target_alias" && 13483 test "$program_prefix$program_suffix$program_transform_name" = \ 13484 NONENONEs,x,x, && 13485 program_prefix=${target_alias}- 13486 13487 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13488 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13489 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13490 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13491 # to use the configure naming style. 13492 13493 13494 13495 13496 13497 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13498 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13499 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13500 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13501 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13502 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13503 13504 13505 13506 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13507 13508 case "$build_os" in 13509 *linux*) 13510 VAR_OS=linux 13511 VAR_OS_API=posix 13512 VAR_OS_ENV=linux 13513 ;; 13514 *solaris*) 13515 VAR_OS=solaris 13516 VAR_OS_API=posix 13517 VAR_OS_ENV=solaris 13518 ;; 13519 *darwin*) 13520 VAR_OS=macosx 13521 VAR_OS_API=posix 13522 VAR_OS_ENV=macosx 13523 ;; 13524 *bsd*) 13525 VAR_OS=bsd 13526 VAR_OS_API=posix 13527 VAR_OS_ENV=bsd 13528 ;; 13529 *cygwin*) 13530 VAR_OS=windows 13531 VAR_OS_API=winapi 13532 VAR_OS_ENV=windows.cygwin 13533 ;; 13534 *mingw*) 13535 VAR_OS=windows 13536 VAR_OS_API=winapi 13537 VAR_OS_ENV=windows.msys 13538 ;; 13539 *aix*) 13540 VAR_OS=aix 13541 VAR_OS_API=posix 13542 VAR_OS_ENV=aix 13543 ;; 13544 *) 13545 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13546 ;; 13547 esac 13548 13549 13550 # First argument is the cpu name from the trip/quad 13551 case "$build_cpu" in 13552 x86_64) 13553 VAR_CPU=x86_64 13554 VAR_CPU_ARCH=x86 13555 VAR_CPU_BITS=64 13556 VAR_CPU_ENDIAN=little 13557 ;; 13558 i?86) 13559 VAR_CPU=x86 13560 VAR_CPU_ARCH=x86 13561 VAR_CPU_BITS=32 13562 VAR_CPU_ENDIAN=little 13563 ;; 13564 arm*) 13565 VAR_CPU=arm 13566 VAR_CPU_ARCH=arm 13567 VAR_CPU_BITS=32 13568 VAR_CPU_ENDIAN=little 13569 ;; 13570 powerpc) 13571 VAR_CPU=ppc 13572 VAR_CPU_ARCH=ppc 13573 VAR_CPU_BITS=32 13574 VAR_CPU_ENDIAN=big 13575 ;; 13576 powerpc64) 13577 VAR_CPU=ppc64 13578 VAR_CPU_ARCH=ppc 13579 VAR_CPU_BITS=64 13580 VAR_CPU_ENDIAN=big 13581 ;; 13582 powerpc64le) 13583 VAR_CPU=ppc64 13584 VAR_CPU_ARCH=ppc 13585 VAR_CPU_BITS=64 13586 VAR_CPU_ENDIAN=little 13587 ;; 13588 s390) 13589 VAR_CPU=s390 13590 VAR_CPU_ARCH=s390 13591 VAR_CPU_BITS=32 13592 VAR_CPU_ENDIAN=big 13593 ;; 13594 s390x) 13595 VAR_CPU=s390x 13596 VAR_CPU_ARCH=s390 13597 VAR_CPU_BITS=64 13598 VAR_CPU_ENDIAN=big 13599 ;; 13600 sparc) 13601 VAR_CPU=sparc 13602 VAR_CPU_ARCH=sparc 13603 VAR_CPU_BITS=32 13604 VAR_CPU_ENDIAN=big 13605 ;; 13606 sparcv9|sparc64) 13607 VAR_CPU=sparcv9 13608 VAR_CPU_ARCH=sparc 13609 VAR_CPU_BITS=64 13610 VAR_CPU_ENDIAN=big 13611 ;; 13612 *) 13613 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13614 ;; 13615 esac 13616 13617 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13618 OPENJDK_BUILD_OS="$VAR_OS" 13619 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13620 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13621 OPENJDK_BUILD_CPU="$VAR_CPU" 13622 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13623 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13624 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13625 13626 13627 13628 13629 13630 13631 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13633 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13635 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13636 13637 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13638 13639 case "$host_os" in 13640 *linux*) 13641 VAR_OS=linux 13642 VAR_OS_API=posix 13643 VAR_OS_ENV=linux 13644 ;; 13645 *solaris*) 13646 VAR_OS=solaris 13647 VAR_OS_API=posix 13648 VAR_OS_ENV=solaris 13649 ;; 13650 *darwin*) 13651 VAR_OS=macosx 13652 VAR_OS_API=posix 13653 VAR_OS_ENV=macosx 13654 ;; 13655 *bsd*) 13656 VAR_OS=bsd 13657 VAR_OS_API=posix 13658 VAR_OS_ENV=bsd 13659 ;; 13660 *cygwin*) 13661 VAR_OS=windows 13662 VAR_OS_API=winapi 13663 VAR_OS_ENV=windows.cygwin 13664 ;; 13665 *mingw*) 13666 VAR_OS=windows 13667 VAR_OS_API=winapi 13668 VAR_OS_ENV=windows.msys 13669 ;; 13670 *aix*) 13671 VAR_OS=aix 13672 VAR_OS_API=posix 13673 VAR_OS_ENV=aix 13674 ;; 13675 *) 13676 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13677 ;; 13678 esac 13679 13680 13681 # First argument is the cpu name from the trip/quad 13682 case "$host_cpu" in 13683 x86_64) 13684 VAR_CPU=x86_64 13685 VAR_CPU_ARCH=x86 13686 VAR_CPU_BITS=64 13687 VAR_CPU_ENDIAN=little 13688 ;; 13689 i?86) 13690 VAR_CPU=x86 13691 VAR_CPU_ARCH=x86 13692 VAR_CPU_BITS=32 13693 VAR_CPU_ENDIAN=little 13694 ;; 13695 arm*) 13696 VAR_CPU=arm 13697 VAR_CPU_ARCH=arm 13698 VAR_CPU_BITS=32 13699 VAR_CPU_ENDIAN=little 13700 ;; 13701 powerpc) 13702 VAR_CPU=ppc 13703 VAR_CPU_ARCH=ppc 13704 VAR_CPU_BITS=32 13705 VAR_CPU_ENDIAN=big 13706 ;; 13707 powerpc64) 13708 VAR_CPU=ppc64 13709 VAR_CPU_ARCH=ppc 13710 VAR_CPU_BITS=64 13711 VAR_CPU_ENDIAN=big 13712 ;; 13713 powerpc64le) 13714 VAR_CPU=ppc64 13715 VAR_CPU_ARCH=ppc 13716 VAR_CPU_BITS=64 13717 VAR_CPU_ENDIAN=little 13718 ;; 13719 s390) 13720 VAR_CPU=s390 13721 VAR_CPU_ARCH=s390 13722 VAR_CPU_BITS=32 13723 VAR_CPU_ENDIAN=big 13724 ;; 13725 s390x) 13726 VAR_CPU=s390x 13727 VAR_CPU_ARCH=s390 13728 VAR_CPU_BITS=64 13729 VAR_CPU_ENDIAN=big 13730 ;; 13731 sparc) 13732 VAR_CPU=sparc 13733 VAR_CPU_ARCH=sparc 13734 VAR_CPU_BITS=32 13735 VAR_CPU_ENDIAN=big 13736 ;; 13737 sparcv9|sparc64) 13738 VAR_CPU=sparcv9 13739 VAR_CPU_ARCH=sparc 13740 VAR_CPU_BITS=64 13741 VAR_CPU_ENDIAN=big 13742 ;; 13743 *) 13744 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13745 ;; 13746 esac 13747 13748 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13749 OPENJDK_TARGET_OS="$VAR_OS" 13750 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13751 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13752 OPENJDK_TARGET_CPU="$VAR_CPU" 13753 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13754 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13755 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13756 13757 13758 13759 13760 13761 13762 13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13764 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13766 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13767 13768 13769 13770 # Check whether --with-target-bits was given. 13771 if test "${with_target_bits+set}" = set; then : 13772 withval=$with_target_bits; 13773 fi 13774 13775 13776 # We have three types of compiles: 13777 # native == normal compilation, target system == build system 13778 # cross == traditional cross compilation, target system != build system; special toolchain needed 13779 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13780 # 13781 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13782 # We're doing a proper cross-compilation 13783 COMPILE_TYPE="cross" 13784 else 13785 COMPILE_TYPE="native" 13786 fi 13787 13788 if test "x$with_target_bits" != x; then 13789 if test "x$COMPILE_TYPE" = "xcross"; then 13790 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13791 fi 13792 13793 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13794 # A reduced build is requested 13795 COMPILE_TYPE="reduced" 13796 OPENJDK_TARGET_CPU_BITS=32 13797 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13798 OPENJDK_TARGET_CPU=x86 13799 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13800 OPENJDK_TARGET_CPU=sparc 13801 else 13802 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13803 fi 13804 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13805 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 13806 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13808 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13809 else 13810 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13811 fi 13812 fi 13813 13814 13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13816 $as_echo_n "checking compilation type... " >&6; } 13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13818 $as_echo "$COMPILE_TYPE" >&6; } 13819 13820 13821 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13822 REQUIRED_OS_NAME=SunOS 13823 REQUIRED_OS_VERSION=5.10 13824 fi 13825 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13826 REQUIRED_OS_NAME=Linux 13827 REQUIRED_OS_VERSION=2.6 13828 fi 13829 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13830 REQUIRED_OS_NAME=Windows 13831 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13832 REQUIRED_OS_VERSION=5.2 13833 else 13834 REQUIRED_OS_VERSION=5.1 13835 fi 13836 fi 13837 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13838 REQUIRED_OS_NAME=Darwin 13839 REQUIRED_OS_VERSION=11.2 13840 fi 13841 13842 13843 13844 13845 13846 # Also store the legacy naming of the cpu. 13847 # Ie i586 and amd64 instead of x86 and x86_64 13848 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13849 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13850 OPENJDK_TARGET_CPU_LEGACY="i586" 13851 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13852 # On all platforms except MacOSX replace x86_64 with amd64. 13853 OPENJDK_TARGET_CPU_LEGACY="amd64" 13854 fi 13855 13856 13857 # And the second legacy naming of the cpu. 13858 # Ie i386 and amd64 instead of x86 and x86_64. 13859 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13860 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13861 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13862 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13863 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13864 fi 13865 13866 13867 # This is the name of the cpu (but using i386 and amd64 instead of 13868 # x86 and x86_64, respectively), preceeded by a /, to be used when 13869 # locating libraries. On macosx, it's empty, though. 13870 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13871 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13872 OPENJDK_TARGET_CPU_LIBDIR="" 13873 fi 13874 13875 13876 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13877 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13878 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13879 OPENJDK_TARGET_CPU_ISADIR="" 13880 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13881 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13882 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13883 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13884 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13885 fi 13886 fi 13887 13888 13889 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13890 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13891 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13892 # On linux only, we replace x86 with i386. 13893 OPENJDK_TARGET_CPU_OSARCH="i386" 13894 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13895 # On all platforms except macosx, we replace x86_64 with amd64. 13896 OPENJDK_TARGET_CPU_OSARCH="amd64" 13897 fi 13898 13899 13900 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13901 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13902 OPENJDK_TARGET_CPU_JLI="i386" 13903 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13904 # On all platforms except macosx, we replace x86_64 with amd64. 13905 OPENJDK_TARGET_CPU_JLI="amd64" 13906 fi 13907 # Now setup the -D flags for building libjli. 13908 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13909 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13910 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13911 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13912 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13913 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13914 fi 13915 fi 13916 13917 13918 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 13919 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 13920 OPENJDK_TARGET_OS_API_DIR="solaris" 13921 fi 13922 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 13923 OPENJDK_TARGET_OS_API_DIR="windows" 13924 fi 13925 13926 13927 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13928 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13929 else 13930 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 13931 fi 13932 13933 13934 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13935 A_LP64="LP64:=" 13936 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13937 # unpack200.exe 13938 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13939 ADD_LP64="-D_LP64=1" 13940 fi 13941 fi 13942 LP64=$A_LP64 13943 13944 13945 if test "x$COMPILE_TYPE" = "xcross"; then 13946 # FIXME: ... or should this include reduced builds..? 13947 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13948 else 13949 DEFINE_CROSS_COMPILE_ARCH="" 13950 fi 13951 13952 13953 # ZERO_ARCHDEF is used to enable architecture-specific code 13954 case "${OPENJDK_TARGET_CPU}" in 13955 ppc*) ZERO_ARCHDEF=PPC ;; 13956 s390*) ZERO_ARCHDEF=S390 ;; 13957 sparc*) ZERO_ARCHDEF=SPARC ;; 13958 x86_64*) ZERO_ARCHDEF=AMD64 ;; 13959 x86) ZERO_ARCHDEF=IA32 ;; 13960 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 13961 esac 13962 13963 13964 13965 13966 # Continue setting up basic stuff. Most remaining code require fundamental tools. 13967 13968 # Save the current directory this script was started from 13969 CURDIR="$PWD" 13970 13971 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13972 PATH_SEP=";" 13973 13974 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 13975 if test $SRC_ROOT_LENGTH -gt 100; then 13976 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 13977 fi 13978 13979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 13981 $as_echo_n "checking cygwin release... " >&6; } 13982 CYGWIN_VERSION=`$UNAME -r` 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 13984 $as_echo "$CYGWIN_VERSION" >&6; } 13985 WINDOWS_ENV_VENDOR='cygwin' 13986 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 13987 13988 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 13989 if test "x$CYGWIN_VERSION_OK" = x; then 13990 { $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 13991 $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;} 13992 as_fn_error $? "Cannot continue" "$LINENO" 5 13993 fi 13994 if test "x$CYGPATH" = x; then 13995 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 13996 fi 13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 13998 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 13999 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14000 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 14001 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14002 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14004 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14005 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14006 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14007 if test "x$test_cygdrive_prefix" = x; then 14008 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14009 fi 14010 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14012 $as_echo_n "checking msys release... " >&6; } 14013 MSYS_VERSION=`$UNAME -r` 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14015 $as_echo "$MSYS_VERSION" >&6; } 14016 14017 WINDOWS_ENV_VENDOR='msys' 14018 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14019 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14021 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14022 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14023 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14024 14025 windows_path="$MSYS_ROOT_PATH" 14026 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14027 unix_path=`$CYGPATH -u "$windows_path"` 14028 MSYS_ROOT_PATH="$unix_path" 14029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14030 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14031 MSYS_ROOT_PATH="$unix_path" 14032 fi 14033 14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14035 $as_echo "$MSYS_ROOT_PATH" >&6; } 14036 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14037 else 14038 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14039 fi 14040 14041 # Test if windows or unix (cygwin/msys) find is first in path. 14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14043 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14044 FIND_BINARY_OUTPUT=`find --version 2>&1` 14045 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14047 $as_echo "unix style" >&6; } 14048 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14050 $as_echo "Windows" >&6; } 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14052 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14053 { $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 14054 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14055 as_fn_error $? "Cannot continue" "$LINENO" 5 14056 else 14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14058 $as_echo "unknown" >&6; } 14059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14060 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14061 fi 14062 14063 else 14064 PATH_SEP=":" 14065 fi 14066 14067 14068 # We get the top-level directory from the supporting wrappers. 14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14070 $as_echo_n "checking for top-level directory... " >&6; } 14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14072 $as_echo "$TOPDIR" >&6; } 14073 14074 14075 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14076 14077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14078 14079 # Input might be given as Windows format, start by converting to 14080 # unix format. 14081 path="$CURDIR" 14082 new_path=`$CYGPATH -u "$path"` 14083 14084 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14085 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14086 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14087 # "foo.exe" is OK but "foo" is an error. 14088 # 14089 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14090 # It is also a way to make sure we got the proper file name for the real test later on. 14091 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14092 if test "x$test_shortpath" = x; then 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14094 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14095 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14096 fi 14097 14098 # Call helper function which possibly converts this using DOS-style short mode. 14099 # If so, the updated path is stored in $new_path. 14100 14101 input_path="$new_path" 14102 # Check if we need to convert this using DOS-style short mode. If the path 14103 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14104 # take no chances and rewrite it. 14105 # Note: m4 eats our [], so we need to use [ and ] instead. 14106 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14107 if test "x$has_forbidden_chars" != x; then 14108 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14109 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14110 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14111 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14112 # Going to short mode and back again did indeed matter. Since short mode is 14113 # case insensitive, let's make it lowercase to improve readability. 14114 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14115 # Now convert it back to Unix-stile (cygpath) 14116 input_path=`$CYGPATH -u "$shortmode_path"` 14117 new_path="$input_path" 14118 fi 14119 fi 14120 14121 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14122 if test "x$test_cygdrive_prefix" = x; then 14123 # As a simple fix, exclude /usr/bin since it's not a real path. 14124 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14125 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14126 # a path prefixed by /cygdrive for fixpath to work. 14127 new_path="$CYGWIN_ROOT_PATH$input_path" 14128 fi 14129 fi 14130 14131 14132 if test "x$path" != "x$new_path"; then 14133 CURDIR="$new_path" 14134 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14135 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14136 fi 14137 14138 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14139 14140 path="$CURDIR" 14141 has_colon=`$ECHO $path | $GREP ^.:` 14142 new_path="$path" 14143 if test "x$has_colon" = x; then 14144 # Not in mixed or Windows style, start by that. 14145 new_path=`cmd //c echo $path` 14146 fi 14147 14148 14149 input_path="$new_path" 14150 # Check if we need to convert this using DOS-style short mode. If the path 14151 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14152 # take no chances and rewrite it. 14153 # Note: m4 eats our [], so we need to use [ and ] instead. 14154 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14155 if test "x$has_forbidden_chars" != x; then 14156 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14157 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14158 fi 14159 14160 14161 windows_path="$new_path" 14162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14163 unix_path=`$CYGPATH -u "$windows_path"` 14164 new_path="$unix_path" 14165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14166 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14167 new_path="$unix_path" 14168 fi 14169 14170 if test "x$path" != "x$new_path"; then 14171 CURDIR="$new_path" 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14173 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14174 fi 14175 14176 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14177 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14178 14179 else 14180 # We're on a posix platform. Hooray! :) 14181 path="$CURDIR" 14182 has_space=`$ECHO "$path" | $GREP " "` 14183 if test "x$has_space" != x; then 14184 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14185 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14186 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14187 fi 14188 14189 # Use eval to expand a potential ~ 14190 eval path="$path" 14191 if test ! -f "$path" && test ! -d "$path"; then 14192 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14193 fi 14194 14195 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14196 fi 14197 14198 14199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14200 14201 # Input might be given as Windows format, start by converting to 14202 # unix format. 14203 path="$TOPDIR" 14204 new_path=`$CYGPATH -u "$path"` 14205 14206 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14207 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14208 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14209 # "foo.exe" is OK but "foo" is an error. 14210 # 14211 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14212 # It is also a way to make sure we got the proper file name for the real test later on. 14213 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14214 if test "x$test_shortpath" = x; then 14215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14216 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14217 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14218 fi 14219 14220 # Call helper function which possibly converts this using DOS-style short mode. 14221 # If so, the updated path is stored in $new_path. 14222 14223 input_path="$new_path" 14224 # Check if we need to convert this using DOS-style short mode. If the path 14225 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14226 # take no chances and rewrite it. 14227 # Note: m4 eats our [], so we need to use [ and ] instead. 14228 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14229 if test "x$has_forbidden_chars" != x; then 14230 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14231 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14232 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14233 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14234 # Going to short mode and back again did indeed matter. Since short mode is 14235 # case insensitive, let's make it lowercase to improve readability. 14236 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14237 # Now convert it back to Unix-stile (cygpath) 14238 input_path=`$CYGPATH -u "$shortmode_path"` 14239 new_path="$input_path" 14240 fi 14241 fi 14242 14243 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14244 if test "x$test_cygdrive_prefix" = x; then 14245 # As a simple fix, exclude /usr/bin since it's not a real path. 14246 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14247 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14248 # a path prefixed by /cygdrive for fixpath to work. 14249 new_path="$CYGWIN_ROOT_PATH$input_path" 14250 fi 14251 fi 14252 14253 14254 if test "x$path" != "x$new_path"; then 14255 TOPDIR="$new_path" 14256 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14257 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14258 fi 14259 14260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14261 14262 path="$TOPDIR" 14263 has_colon=`$ECHO $path | $GREP ^.:` 14264 new_path="$path" 14265 if test "x$has_colon" = x; then 14266 # Not in mixed or Windows style, start by that. 14267 new_path=`cmd //c echo $path` 14268 fi 14269 14270 14271 input_path="$new_path" 14272 # Check if we need to convert this using DOS-style short mode. If the path 14273 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14274 # take no chances and rewrite it. 14275 # Note: m4 eats our [], so we need to use [ and ] instead. 14276 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14277 if test "x$has_forbidden_chars" != x; then 14278 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14279 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14280 fi 14281 14282 14283 windows_path="$new_path" 14284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14285 unix_path=`$CYGPATH -u "$windows_path"` 14286 new_path="$unix_path" 14287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14288 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14289 new_path="$unix_path" 14290 fi 14291 14292 if test "x$path" != "x$new_path"; then 14293 TOPDIR="$new_path" 14294 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14295 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14296 fi 14297 14298 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14299 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14300 14301 else 14302 # We're on a posix platform. Hooray! :) 14303 path="$TOPDIR" 14304 has_space=`$ECHO "$path" | $GREP " "` 14305 if test "x$has_space" != x; then 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14307 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14308 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14309 fi 14310 14311 # Use eval to expand a potential ~ 14312 eval path="$path" 14313 if test ! -f "$path" && test ! -d "$path"; then 14314 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14315 fi 14316 14317 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14318 fi 14319 14320 # SRC_ROOT is a traditional alias for TOPDIR. 14321 SRC_ROOT=$TOPDIR 14322 14323 # Locate the directory of this script. 14324 AUTOCONF_DIR=$TOPDIR/common/autoconf 14325 14326 14327 # Setup default logging of stdout and stderr to build.log in the output root. 14328 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14329 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14330 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14331 14332 14333 14334 14335 14336 # Check if it's a pure open build or if custom sources are to be used. 14337 14338 # Check whether --enable-openjdk-only was given. 14339 if test "${enable_openjdk_only+set}" = set; then : 14340 enableval=$enable_openjdk_only; 14341 else 14342 enable_openjdk_only="no" 14343 fi 14344 14345 14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14347 $as_echo_n "checking for presence of closed sources... " >&6; } 14348 if test -d "$SRC_ROOT/jdk/src/closed"; then 14349 CLOSED_SOURCE_PRESENT=yes 14350 else 14351 CLOSED_SOURCE_PRESENT=no 14352 fi 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14354 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14355 14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14357 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14358 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14360 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14361 14362 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14363 OPENJDK=true 14364 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14366 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14367 fi 14368 else 14369 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14370 OPENJDK=true 14371 else 14372 OPENJDK=false 14373 fi 14374 fi 14375 14376 if test "x$OPENJDK" = "xtrue"; then 14377 SET_OPENJDK="OPENJDK=true" 14378 fi 14379 14380 14381 14382 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14383 # the IncludeCustomExtension macro. 14384 14385 14386 # Check whether --with-custom-make-dir was given. 14387 if test "${with_custom_make_dir+set}" = set; then : 14388 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 14389 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14390 fi 14391 14392 14393 14394 14395 # These are needed to be able to create a configuration name (and thus the output directory) 14396 14397 ############################################################################### 14398 # 14399 # Check which variant of the JDK that we want to build. 14400 # Currently we have: 14401 # normal: standard edition 14402 # but the custom make system may add other variants 14403 # 14404 # Effectively the JDK variant gives a name to a specific set of 14405 # modules to compile into the JDK. In the future, these modules 14406 # might even be Jigsaw modules. 14407 # 14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14409 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14410 14411 # Check whether --with-jdk-variant was given. 14412 if test "${with_jdk_variant+set}" = set; then : 14413 withval=$with_jdk_variant; 14414 fi 14415 14416 14417 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14418 JDK_VARIANT="normal" 14419 else 14420 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14421 fi 14422 14423 14424 14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14426 $as_echo "$JDK_VARIANT" >&6; } 14427 14428 14429 ############################################################################### 14430 # 14431 # Check which interpreter of the JVM we want to build. 14432 # Currently we have: 14433 # template: Template interpreter (the default) 14434 # cpp : C++ interpreter 14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14436 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14437 14438 # Check whether --with-jvm-interpreter was given. 14439 if test "${with_jvm_interpreter+set}" = set; then : 14440 withval=$with_jvm_interpreter; 14441 fi 14442 14443 14444 if test "x$with_jvm_interpreter" = x; then 14445 with_jvm_interpreter="template" 14446 fi 14447 14448 JVM_INTERPRETER="$with_jvm_interpreter" 14449 14450 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14451 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14452 fi 14453 14454 14455 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14457 $as_echo "$with_jvm_interpreter" >&6; } 14458 14459 14460 14461 ############################################################################### 14462 # 14463 # Check which variants of the JVM that we want to build. 14464 # Currently we have: 14465 # server: normal interpreter and a tiered C1/C2 compiler 14466 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14467 # minimal1: reduced form of client with optional VM services and features stripped out 14468 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14469 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14470 # zero: no machine code interpreter, no compiler 14471 # zeroshark: zero interpreter and shark/llvm compiler backend 14472 # core: interpreter only, no compiler (only works on some platforms) 14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14474 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14475 14476 # Check whether --with-jvm-variants was given. 14477 if test "${with_jvm_variants+set}" = set; then : 14478 withval=$with_jvm_variants; 14479 fi 14480 14481 14482 if test "x$with_jvm_variants" = x; then 14483 with_jvm_variants="server" 14484 fi 14485 14486 JVM_VARIANTS=",$with_jvm_variants," 14487 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,//'` 14488 14489 if test "x$TEST_VARIANTS" != "x,"; then 14490 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14491 fi 14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14493 $as_echo "$with_jvm_variants" >&6; } 14494 14495 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14496 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14497 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14498 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14499 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14500 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14501 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14502 14503 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14504 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14505 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14506 fi 14507 fi 14508 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14509 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14510 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14511 fi 14512 fi 14513 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14514 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14515 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14516 fi 14517 fi 14518 14519 # Replace the commas with AND for use in the build directory name. 14520 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14521 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/'` 14522 if test "x$COUNT_VARIANTS" != "x,1"; then 14523 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14524 else 14525 BUILDING_MULTIPLE_JVM_VARIANTS=no 14526 fi 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 INCLUDE_SA=true 14538 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14539 INCLUDE_SA=false 14540 fi 14541 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14542 INCLUDE_SA=false 14543 fi 14544 if test "x$OPENJDK_TARGET_OS" = xaix ; then 14545 INCLUDE_SA=false 14546 fi 14547 14548 14549 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14550 MACOSX_UNIVERSAL="true" 14551 fi 14552 14553 14554 14555 14556 ############################################################################### 14557 # 14558 # Set the debug level 14559 # release: no debug information, all optimizations, no asserts. 14560 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 14561 # fastdebug: debug information (-g), all optimizations, all asserts 14562 # slowdebug: debug information (-g), no optimizations, all asserts 14563 # 14564 DEBUG_LEVEL="release" 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14566 $as_echo_n "checking which debug level to use... " >&6; } 14567 # Check whether --enable-debug was given. 14568 if test "${enable_debug+set}" = set; then : 14569 enableval=$enable_debug; 14570 ENABLE_DEBUG="${enableval}" 14571 DEBUG_LEVEL="fastdebug" 14572 14573 else 14574 ENABLE_DEBUG="no" 14575 fi 14576 14577 14578 14579 # Check whether --with-debug-level was given. 14580 if test "${with_debug_level+set}" = set; then : 14581 withval=$with_debug_level; 14582 DEBUG_LEVEL="${withval}" 14583 if test "x$ENABLE_DEBUG" = xyes; then 14584 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14585 fi 14586 14587 fi 14588 14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14590 $as_echo "$DEBUG_LEVEL" >&6; } 14591 14592 if test "x$DEBUG_LEVEL" != xrelease && \ 14593 test "x$DEBUG_LEVEL" != xoptimized && \ 14594 test "x$DEBUG_LEVEL" != xfastdebug && \ 14595 test "x$DEBUG_LEVEL" != xslowdebug; then 14596 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14597 fi 14598 14599 14600 ############################################################################### 14601 # 14602 # Setup legacy vars/targets and new vars to deal with different debug levels. 14603 # 14604 14605 case $DEBUG_LEVEL in 14606 release ) 14607 VARIANT="OPT" 14608 FASTDEBUG="false" 14609 DEBUG_CLASSFILES="false" 14610 BUILD_VARIANT_RELEASE="" 14611 HOTSPOT_DEBUG_LEVEL="product" 14612 HOTSPOT_EXPORT="product" 14613 ;; 14614 fastdebug ) 14615 VARIANT="DBG" 14616 FASTDEBUG="true" 14617 DEBUG_CLASSFILES="true" 14618 BUILD_VARIANT_RELEASE="-fastdebug" 14619 HOTSPOT_DEBUG_LEVEL="fastdebug" 14620 HOTSPOT_EXPORT="fastdebug" 14621 ;; 14622 slowdebug ) 14623 VARIANT="DBG" 14624 FASTDEBUG="false" 14625 DEBUG_CLASSFILES="true" 14626 BUILD_VARIANT_RELEASE="-debug" 14627 HOTSPOT_DEBUG_LEVEL="jvmg" 14628 HOTSPOT_EXPORT="debug" 14629 ;; 14630 optimized ) 14631 VARIANT="OPT" 14632 FASTDEBUG="false" 14633 DEBUG_CLASSFILES="false" 14634 BUILD_VARIANT_RELEASE="-optimized" 14635 HOTSPOT_DEBUG_LEVEL="optimized" 14636 HOTSPOT_EXPORT="optimized" 14637 ;; 14638 esac 14639 14640 # The debug level 'optimized' is a little special because it is currently only 14641 # applicable to the HotSpot build where it means to build a completely 14642 # optimized version of the VM without any debugging code (like for the 14643 # 'release' debug level which is called 'product' in the HotSpot build) but 14644 # with the exception that it can contain additional code which is otherwise 14645 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 14646 # test new and/or experimental features which are not intended for customer 14647 # shipment. Because these new features need to be tested and benchmarked in 14648 # real world scenarios, we want to build the containing JDK at the 'release' 14649 # debug level. 14650 if test "x$DEBUG_LEVEL" = xoptimized; then 14651 DEBUG_LEVEL="release" 14652 fi 14653 14654 ##### 14655 # Generate the legacy makefile targets for hotspot. 14656 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14657 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14658 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14659 # But until then ... 14660 HOTSPOT_TARGET="" 14661 14662 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14663 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14664 fi 14665 14666 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14667 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14668 fi 14669 14670 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14671 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14672 fi 14673 14674 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14675 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14676 fi 14677 14678 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14679 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14680 fi 14681 14682 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14683 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14684 fi 14685 14686 if test "x$JVM_VARIANT_CORE" = xtrue; then 14687 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14688 fi 14689 14690 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14691 14692 # On Macosx universal binaries are produced, but they only contain 14693 # 64 bit intel. This invalidates control of which jvms are built 14694 # from configure, but only server is valid anyway. Fix this 14695 # when hotspot makefiles are rewritten. 14696 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14697 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14698 fi 14699 14700 ##### 14701 14702 14703 14704 14705 14706 14707 14708 14709 # With basic setup done, call the custom early hook. 14710 14711 14712 # Check if we have devkits, extra paths or sysroot set. 14713 14714 14715 # Check whether --with-devkit was given. 14716 if test "${with_devkit+set}" = set; then : 14717 withval=$with_devkit; 14718 14719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14720 14721 # Input might be given as Windows format, start by converting to 14722 # unix format. 14723 path="$with_devkit" 14724 new_path=`$CYGPATH -u "$path"` 14725 14726 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14727 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14728 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14729 # "foo.exe" is OK but "foo" is an error. 14730 # 14731 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14732 # It is also a way to make sure we got the proper file name for the real test later on. 14733 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14734 if test "x$test_shortpath" = x; then 14735 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14736 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14737 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14738 fi 14739 14740 # Call helper function which possibly converts this using DOS-style short mode. 14741 # If so, the updated path is stored in $new_path. 14742 14743 input_path="$new_path" 14744 # Check if we need to convert this using DOS-style short mode. If the path 14745 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14746 # take no chances and rewrite it. 14747 # Note: m4 eats our [], so we need to use [ and ] instead. 14748 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14749 if test "x$has_forbidden_chars" != x; then 14750 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14751 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14752 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14753 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14754 # Going to short mode and back again did indeed matter. Since short mode is 14755 # case insensitive, let's make it lowercase to improve readability. 14756 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14757 # Now convert it back to Unix-stile (cygpath) 14758 input_path=`$CYGPATH -u "$shortmode_path"` 14759 new_path="$input_path" 14760 fi 14761 fi 14762 14763 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14764 if test "x$test_cygdrive_prefix" = x; then 14765 # As a simple fix, exclude /usr/bin since it's not a real path. 14766 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14767 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14768 # a path prefixed by /cygdrive for fixpath to work. 14769 new_path="$CYGWIN_ROOT_PATH$input_path" 14770 fi 14771 fi 14772 14773 14774 if test "x$path" != "x$new_path"; then 14775 with_devkit="$new_path" 14776 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14777 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14778 fi 14779 14780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14781 14782 path="$with_devkit" 14783 has_colon=`$ECHO $path | $GREP ^.:` 14784 new_path="$path" 14785 if test "x$has_colon" = x; then 14786 # Not in mixed or Windows style, start by that. 14787 new_path=`cmd //c echo $path` 14788 fi 14789 14790 14791 input_path="$new_path" 14792 # Check if we need to convert this using DOS-style short mode. If the path 14793 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14794 # take no chances and rewrite it. 14795 # Note: m4 eats our [], so we need to use [ and ] instead. 14796 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14797 if test "x$has_forbidden_chars" != x; then 14798 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14799 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14800 fi 14801 14802 14803 windows_path="$new_path" 14804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14805 unix_path=`$CYGPATH -u "$windows_path"` 14806 new_path="$unix_path" 14807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14808 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14809 new_path="$unix_path" 14810 fi 14811 14812 if test "x$path" != "x$new_path"; then 14813 with_devkit="$new_path" 14814 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14815 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14816 fi 14817 14818 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14819 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14820 14821 else 14822 # We're on a posix platform. Hooray! :) 14823 path="$with_devkit" 14824 has_space=`$ECHO "$path" | $GREP " "` 14825 if test "x$has_space" != x; then 14826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14827 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14828 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14829 fi 14830 14831 # Use eval to expand a potential ~ 14832 eval path="$path" 14833 if test ! -f "$path" && test ! -d "$path"; then 14834 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14835 fi 14836 14837 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14838 fi 14839 14840 DEVKIT_ROOT="$with_devkit" 14841 # Check for a meta data info file in the root of the devkit 14842 if test -f "$DEVKIT_ROOT/devkit.info"; then 14843 # This potentially sets the following: 14844 # DEVKIT_NAME: A descriptive name of the devkit 14845 # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path 14846 # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path 14847 # DEVKIT_SYSROOT: Corresponds to --with-sysroot 14848 . $DEVKIT_ROOT/devkit.info 14849 fi 14850 14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14852 $as_echo_n "checking for devkit... " >&6; } 14853 if test "x$DEVKIT_NAME" != x; then 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14855 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14856 else 14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14858 $as_echo "$DEVKIT_ROOT" >&6; } 14859 fi 14860 14861 if test "x$DEVKIT_EXTRA_PATH" != x; then 14862 14863 if test "x$DEVKIT_EXTRA_PATH" != x; then 14864 if test "x$EXTRA_PATH" = x; then 14865 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14866 else 14867 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14868 fi 14869 fi 14870 14871 fi 14872 14873 # Fallback default of just /bin if DEVKIT_PATH is not defined 14874 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14875 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 14876 fi 14877 14878 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 14879 if test "x$TOOLCHAIN_PATH" = x; then 14880 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 14881 else 14882 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 14883 fi 14884 fi 14885 14886 14887 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 14888 # places for backwards compatiblity. 14889 if test "x$DEVKIT_SYSROOT" != x; then 14890 SYSROOT="$DEVKIT_SYSROOT" 14891 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 14892 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 14893 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 14894 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 14895 fi 14896 14897 14898 fi 14899 14900 14901 # You can force the sysroot if the sysroot encoded into the compiler tools 14902 # is not correct. 14903 14904 # Check whether --with-sys-root was given. 14905 if test "${with_sys_root+set}" = set; then : 14906 withval=$with_sys_root; SYSROOT=$with_sys_root 14907 14908 fi 14909 14910 14911 14912 # Check whether --with-sysroot was given. 14913 if test "${with_sysroot+set}" = set; then : 14914 withval=$with_sysroot; SYSROOT=$with_sysroot 14915 14916 fi 14917 14918 14919 14920 # Check whether --with-tools-dir was given. 14921 if test "${with_tools_dir+set}" = set; then : 14922 withval=$with_tools_dir; 14923 if test "x$with_tools_dir" != x; then 14924 if test "x$TOOLCHAIN_PATH" = x; then 14925 TOOLCHAIN_PATH="$with_tools_dir" 14926 else 14927 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 14928 fi 14929 fi 14930 14931 14932 fi 14933 14934 14935 14936 # Check whether --with-toolchain-path was given. 14937 if test "${with_toolchain_path+set}" = set; then : 14938 withval=$with_toolchain_path; 14939 if test "x$with_toolchain_path" != x; then 14940 if test "x$TOOLCHAIN_PATH" = x; then 14941 TOOLCHAIN_PATH="$with_toolchain_path" 14942 else 14943 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 14944 fi 14945 fi 14946 14947 14948 fi 14949 14950 14951 14952 # Check whether --with-extra-path was given. 14953 if test "${with_extra_path+set}" = set; then : 14954 withval=$with_extra_path; 14955 if test "x$with_extra_path" != x; then 14956 if test "x$EXTRA_PATH" = x; then 14957 EXTRA_PATH="$with_extra_path" 14958 else 14959 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 14960 fi 14961 fi 14962 14963 14964 fi 14965 14966 14967 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 14968 # detect if Xcode is installed by running xcodebuild -version 14969 # if no Xcode installed, xcodebuild exits with 1 14970 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 14971 if /usr/bin/xcodebuild -version >/dev/null 2>&1; then 14972 # We need to use xcodebuild in the toolchain dir provided by the user, this will 14973 # fall back on the stub binary in /usr/bin/xcodebuild 14974 # Extract the first word of "xcodebuild", so it can be a program name with args. 14975 set dummy xcodebuild; ac_word=$2 14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14977 $as_echo_n "checking for $ac_word... " >&6; } 14978 if ${ac_cv_path_XCODEBUILD+:} false; then : 14979 $as_echo_n "(cached) " >&6 14980 else 14981 case $XCODEBUILD in 14982 [\\/]* | ?:[\\/]*) 14983 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 14984 ;; 14985 *) 14986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14987 for as_dir in $TOOLCHAIN_PATH 14988 do 14989 IFS=$as_save_IFS 14990 test -z "$as_dir" && as_dir=. 14991 for ac_exec_ext in '' $ac_executable_extensions; do 14992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14993 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 14994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14995 break 2 14996 fi 14997 done 14998 done 14999 IFS=$as_save_IFS 15000 15001 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 15002 ;; 15003 esac 15004 fi 15005 XCODEBUILD=$ac_cv_path_XCODEBUILD 15006 if test -n "$XCODEBUILD"; then 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 15008 $as_echo "$XCODEBUILD" >&6; } 15009 else 15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15011 $as_echo "no" >&6; } 15012 fi 15013 15014 15015 else 15016 # this should result in SYSROOT being empty, unless --with-sysroot is provided 15017 # when only the command line tools are installed there are no SDKs, so headers 15018 # are copied into the system frameworks 15019 XCODEBUILD= 15020 15021 fi 15022 15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 15024 $as_echo_n "checking for sdk name... " >&6; } 15025 15026 # Check whether --with-sdk-name was given. 15027 if test "${with_sdk_name+set}" = set; then : 15028 withval=$with_sdk_name; SDKNAME=$with_sdk_name 15029 15030 fi 15031 15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 15033 $as_echo "$SDKNAME" >&6; } 15034 15035 # if toolchain path is specified then don't rely on system headers, they may not compile 15036 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 15037 test -z "$TOOLCHAIN_PATH" && \ 15038 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 15039 15040 if test -z "$SYSROOT"; then 15041 if test -n "$XCODEBUILD"; then 15042 # if we don't have system headers, use default SDK name (last resort) 15043 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15044 SDKNAME=${SDKNAME:-macosx} 15045 fi 15046 15047 if test -n "$SDKNAME"; then 15048 # Call xcodebuild to determine SYSROOT 15049 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 15050 fi 15051 else 15052 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15053 as_fn_error $? "No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK" "$LINENO" 5 15054 fi 15055 fi 15056 else 15057 # warn user if --with-sdk-name was also set 15058 if test -n "$with_sdk_name"; then 15059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 15060 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 15061 fi 15062 fi 15063 15064 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 15065 # If no system framework headers, then SYSROOT must be set, or we won't build 15066 as_fn_error $? "Unable to determine SYSROOT and no headers found in /System/Library/Frameworks. Check Xcode configuration, --with-sysroot or --with-sdk-name arguments." "$LINENO" 5 15067 fi 15068 15069 # Perform a basic sanity test 15070 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 15071 if test -z "$SYSROOT"; then 15072 as_fn_error $? "Unable to find required framework headers, provide a path to an SDK via --with-sysroot or --with-sdk-name and be sure Xcode is installed properly" "$LINENO" 5 15073 else 15074 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 15075 fi 15076 fi 15077 15078 # set SDKROOT too, Xcode tools will pick it up 15079 SDKROOT=$SYSROOT 15080 15081 fi 15082 15083 # Prepend the extra path to the global path 15084 15085 if test "x$EXTRA_PATH" != x; then 15086 if test "x$PATH" = x; then 15087 PATH="$EXTRA_PATH" 15088 else 15089 PATH="$EXTRA_PATH:$PATH" 15090 fi 15091 fi 15092 15093 15094 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15095 # Add extra search paths on solaris for utilities like ar and as etc... 15096 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15097 fi 15098 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15100 $as_echo_n "checking for sysroot... " >&6; } 15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15102 $as_echo "$SYSROOT" >&6; } 15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15104 $as_echo_n "checking for toolchain path... " >&6; } 15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15106 $as_echo "$TOOLCHAIN_PATH" >&6; } 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15108 $as_echo_n "checking for extra path... " >&6; } 15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15110 $as_echo "$EXTRA_PATH" >&6; } 15111 15112 15113 # To properly create a configuration name, we need to have the OpenJDK target 15114 # and options (variants and debug level) parsed. 15115 15116 15117 15118 # Check whether --with-conf-name was given. 15119 if test "${with_conf_name+set}" = set; then : 15120 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15121 fi 15122 15123 15124 # Test from where we are running configure, in or outside of src root. 15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15126 $as_echo_n "checking where to store configuration... " >&6; } 15127 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15128 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15129 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15130 # We are running configure from the src root. 15131 # Create a default ./build/target-variant-debuglevel output root. 15132 if test "x${CONF_NAME}" = x; then 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15134 $as_echo "in default location" >&6; } 15135 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15136 else 15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15138 $as_echo "in build directory with custom name" >&6; } 15139 fi 15140 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15141 $MKDIR -p "$OUTPUT_ROOT" 15142 if test ! -d "$OUTPUT_ROOT"; then 15143 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15144 fi 15145 else 15146 # We are running configure from outside of the src dir. 15147 # Then use the current directory as output dir! 15148 # If configuration is situated in normal build directory, just use the build 15149 # directory name as configuration name, otherwise use the complete path. 15150 if test "x${CONF_NAME}" = x; then 15151 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15152 fi 15153 OUTPUT_ROOT="$CURDIR" 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15155 $as_echo "in current directory" >&6; } 15156 15157 # WARNING: This might be a bad thing to do. You need to be sure you want to 15158 # have a configuration in this directory. Do some sanity checks! 15159 15160 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15161 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15162 # other files 15163 files_present=`$LS $OUTPUT_ROOT` 15164 # Configure has already touched config.log and confdefs.h in the current dir when this check 15165 # is performed. 15166 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 15167 | $TR -d '\n'` 15168 if test "x$filtered_files" != x; then 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15170 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15172 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15174 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15175 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15176 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15178 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15179 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15180 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15181 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15182 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15183 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15184 fi 15185 fi 15186 fi 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15188 $as_echo_n "checking what configuration name to use... " >&6; } 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15190 $as_echo "$CONF_NAME" >&6; } 15191 15192 15193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15194 15195 # Input might be given as Windows format, start by converting to 15196 # unix format. 15197 path="$OUTPUT_ROOT" 15198 new_path=`$CYGPATH -u "$path"` 15199 15200 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15201 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15202 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15203 # "foo.exe" is OK but "foo" is an error. 15204 # 15205 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15206 # It is also a way to make sure we got the proper file name for the real test later on. 15207 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15208 if test "x$test_shortpath" = x; then 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15210 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15211 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15212 fi 15213 15214 # Call helper function which possibly converts this using DOS-style short mode. 15215 # If so, the updated path is stored in $new_path. 15216 15217 input_path="$new_path" 15218 # Check if we need to convert this using DOS-style short mode. If the path 15219 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15220 # take no chances and rewrite it. 15221 # Note: m4 eats our [], so we need to use [ and ] instead. 15222 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15223 if test "x$has_forbidden_chars" != x; then 15224 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15225 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15226 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15227 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15228 # Going to short mode and back again did indeed matter. Since short mode is 15229 # case insensitive, let's make it lowercase to improve readability. 15230 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15231 # Now convert it back to Unix-stile (cygpath) 15232 input_path=`$CYGPATH -u "$shortmode_path"` 15233 new_path="$input_path" 15234 fi 15235 fi 15236 15237 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15238 if test "x$test_cygdrive_prefix" = x; then 15239 # As a simple fix, exclude /usr/bin since it's not a real path. 15240 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15241 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15242 # a path prefixed by /cygdrive for fixpath to work. 15243 new_path="$CYGWIN_ROOT_PATH$input_path" 15244 fi 15245 fi 15246 15247 15248 if test "x$path" != "x$new_path"; then 15249 OUTPUT_ROOT="$new_path" 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15251 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15252 fi 15253 15254 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15255 15256 path="$OUTPUT_ROOT" 15257 has_colon=`$ECHO $path | $GREP ^.:` 15258 new_path="$path" 15259 if test "x$has_colon" = x; then 15260 # Not in mixed or Windows style, start by that. 15261 new_path=`cmd //c echo $path` 15262 fi 15263 15264 15265 input_path="$new_path" 15266 # Check if we need to convert this using DOS-style short mode. If the path 15267 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15268 # take no chances and rewrite it. 15269 # Note: m4 eats our [], so we need to use [ and ] instead. 15270 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15271 if test "x$has_forbidden_chars" != x; then 15272 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15273 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15274 fi 15275 15276 15277 windows_path="$new_path" 15278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15279 unix_path=`$CYGPATH -u "$windows_path"` 15280 new_path="$unix_path" 15281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15282 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15283 new_path="$unix_path" 15284 fi 15285 15286 if test "x$path" != "x$new_path"; then 15287 OUTPUT_ROOT="$new_path" 15288 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15289 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15290 fi 15291 15292 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15293 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15294 15295 else 15296 # We're on a posix platform. Hooray! :) 15297 path="$OUTPUT_ROOT" 15298 has_space=`$ECHO "$path" | $GREP " "` 15299 if test "x$has_space" != x; then 15300 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15301 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15302 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15303 fi 15304 15305 # Use eval to expand a potential ~ 15306 eval path="$path" 15307 if test ! -f "$path" && test ! -d "$path"; then 15308 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15309 fi 15310 15311 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15312 fi 15313 15314 15315 SPEC=$OUTPUT_ROOT/spec.gmk 15316 15317 CONF_NAME=$CONF_NAME 15318 15319 OUTPUT_ROOT=$OUTPUT_ROOT 15320 15321 15322 # Most of the probed defines are put into config.h 15323 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 15324 15325 # The spec.gmk file contains all variables for the make system. 15326 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15327 15328 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15329 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15330 15331 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15332 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15333 15334 # The compare.sh is used to compare the build output to other builds. 15335 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15336 15337 # Spec.sh is currently used by compare-objects.sh 15338 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15339 15340 # The generated Makefile knows where the spec.gmk is and where the source is. 15341 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15342 # which will look for generated configurations 15343 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15344 15345 15346 15347 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15348 15349 for ac_prog in apt-get yum port pkgutil pkgadd 15350 do 15351 # Extract the first word of "$ac_prog", so it can be a program name with args. 15352 set dummy $ac_prog; ac_word=$2 15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15354 $as_echo_n "checking for $ac_word... " >&6; } 15355 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15356 $as_echo_n "(cached) " >&6 15357 else 15358 if test -n "$PKGHANDLER"; then 15359 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15360 else 15361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15362 for as_dir in $PATH 15363 do 15364 IFS=$as_save_IFS 15365 test -z "$as_dir" && as_dir=. 15366 for ac_exec_ext in '' $ac_executable_extensions; do 15367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15368 ac_cv_prog_PKGHANDLER="$ac_prog" 15369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15370 break 2 15371 fi 15372 done 15373 done 15374 IFS=$as_save_IFS 15375 15376 fi 15377 fi 15378 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15379 if test -n "$PKGHANDLER"; then 15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15381 $as_echo "$PKGHANDLER" >&6; } 15382 else 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15384 $as_echo "no" >&6; } 15385 fi 15386 15387 15388 test -n "$PKGHANDLER" && break 15389 done 15390 15391 15392 15393 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15394 15395 15396 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15397 if test "x$MAKE" != x; then 15398 # User has supplied a make, test it. 15399 if test ! -f "$MAKE"; then 15400 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15401 fi 15402 15403 MAKE_CANDIDATE=""$MAKE"" 15404 DESCRIPTION="user supplied MAKE=$MAKE" 15405 if test "x$MAKE_CANDIDATE" != x; then 15406 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15407 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15408 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15409 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15410 if test "x$IS_GNU_MAKE" = x; then 15411 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15412 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15413 else 15414 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15415 if test "x$IS_MODERN_MAKE" = x; then 15416 { $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 15417 $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;} 15418 else 15419 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15421 MAKE_EXPECTED_ENV='cygwin' 15422 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15423 MAKE_EXPECTED_ENV='msys' 15424 else 15425 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15426 fi 15427 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15428 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15429 else 15430 # Not relevant for non-Windows 15431 IS_MAKE_CORRECT_ENV=true 15432 fi 15433 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15434 { $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 15435 $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;} 15436 else 15437 FOUND_MAKE=$MAKE_CANDIDATE 15438 15439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15440 15441 # First separate the path from the arguments. This will split at the first 15442 # space. 15443 complete="$FOUND_MAKE" 15444 path="${complete%% *}" 15445 tmp="$complete EOL" 15446 arguments="${tmp#* }" 15447 15448 # Input might be given as Windows format, start by converting to 15449 # unix format. 15450 new_path=`$CYGPATH -u "$path"` 15451 15452 # Now try to locate executable using which 15453 new_path=`$WHICH "$new_path" 2> /dev/null` 15454 # bat and cmd files are not always considered executable in cygwin causing which 15455 # to not find them 15456 if test "x$new_path" = x \ 15457 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15458 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15459 new_path=`$CYGPATH -u "$path"` 15460 fi 15461 if test "x$new_path" = x; then 15462 # Oops. Which didn't find the executable. 15463 # The splitting of arguments from the executable at a space might have been incorrect, 15464 # since paths with space are more likely in Windows. Give it another try with the whole 15465 # argument. 15466 path="$complete" 15467 arguments="EOL" 15468 new_path=`$CYGPATH -u "$path"` 15469 new_path=`$WHICH "$new_path" 2> /dev/null` 15470 # bat and cmd files are not always considered executable in cygwin causing which 15471 # to not find them 15472 if test "x$new_path" = x \ 15473 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15474 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15475 new_path=`$CYGPATH -u "$path"` 15476 fi 15477 if test "x$new_path" = x; then 15478 # It's still not found. Now this is an unrecoverable error. 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15480 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15481 has_space=`$ECHO "$complete" | $GREP " "` 15482 if test "x$has_space" != x; then 15483 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15484 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15485 fi 15486 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15487 fi 15488 fi 15489 15490 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15491 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15492 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15493 # "foo.exe" is OK but "foo" is an error. 15494 # 15495 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15496 # It is also a way to make sure we got the proper file name for the real test later on. 15497 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15498 if test "x$test_shortpath" = x; then 15499 # Short path failed, file does not exist as specified. 15500 # Try adding .exe or .cmd 15501 if test -f "${new_path}.exe"; then 15502 input_to_shortpath="${new_path}.exe" 15503 elif test -f "${new_path}.cmd"; then 15504 input_to_shortpath="${new_path}.cmd" 15505 else 15506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15507 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15508 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15509 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15510 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15511 fi 15512 else 15513 input_to_shortpath="$new_path" 15514 fi 15515 15516 # Call helper function which possibly converts this using DOS-style short mode. 15517 # If so, the updated path is stored in $new_path. 15518 new_path="$input_to_shortpath" 15519 15520 input_path="$input_to_shortpath" 15521 # Check if we need to convert this using DOS-style short mode. If the path 15522 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15523 # take no chances and rewrite it. 15524 # Note: m4 eats our [], so we need to use [ and ] instead. 15525 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15526 if test "x$has_forbidden_chars" != x; then 15527 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15528 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15529 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15530 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15531 # Going to short mode and back again did indeed matter. Since short mode is 15532 # case insensitive, let's make it lowercase to improve readability. 15533 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15534 # Now convert it back to Unix-stile (cygpath) 15535 input_path=`$CYGPATH -u "$shortmode_path"` 15536 new_path="$input_path" 15537 fi 15538 fi 15539 15540 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15541 if test "x$test_cygdrive_prefix" = x; then 15542 # As a simple fix, exclude /usr/bin since it's not a real path. 15543 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15544 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15545 # a path prefixed by /cygdrive for fixpath to work. 15546 new_path="$CYGWIN_ROOT_PATH$input_path" 15547 fi 15548 fi 15549 15550 # remove trailing .exe if any 15551 new_path="${new_path/%.exe/}" 15552 15553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15554 15555 # First separate the path from the arguments. This will split at the first 15556 # space. 15557 complete="$FOUND_MAKE" 15558 path="${complete%% *}" 15559 tmp="$complete EOL" 15560 arguments="${tmp#* }" 15561 15562 # Input might be given as Windows format, start by converting to 15563 # unix format. 15564 new_path="$path" 15565 15566 windows_path="$new_path" 15567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15568 unix_path=`$CYGPATH -u "$windows_path"` 15569 new_path="$unix_path" 15570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15571 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15572 new_path="$unix_path" 15573 fi 15574 15575 15576 # Now try to locate executable using which 15577 new_path=`$WHICH "$new_path" 2> /dev/null` 15578 15579 if test "x$new_path" = x; then 15580 # Oops. Which didn't find the executable. 15581 # The splitting of arguments from the executable at a space might have been incorrect, 15582 # since paths with space are more likely in Windows. Give it another try with the whole 15583 # argument. 15584 path="$complete" 15585 arguments="EOL" 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 new_path=`$WHICH "$new_path" 2> /dev/null` 15599 # bat and cmd files are not always considered executable in MSYS causing which 15600 # to not find them 15601 if test "x$new_path" = x \ 15602 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15603 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15604 new_path="$path" 15605 15606 windows_path="$new_path" 15607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15608 unix_path=`$CYGPATH -u "$windows_path"` 15609 new_path="$unix_path" 15610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15611 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15612 new_path="$unix_path" 15613 fi 15614 15615 fi 15616 15617 if test "x$new_path" = x; then 15618 # It's still not found. Now this is an unrecoverable error. 15619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15620 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15621 has_space=`$ECHO "$complete" | $GREP " "` 15622 if test "x$has_space" != x; then 15623 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15624 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15625 fi 15626 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15627 fi 15628 fi 15629 15630 # Now new_path has a complete unix path to the binary 15631 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15632 # Keep paths in /bin as-is, but remove trailing .exe if any 15633 new_path="${new_path/%.exe/}" 15634 # Do not save /bin paths to all_fixpath_prefixes! 15635 else 15636 # Not in mixed or Windows style, start by that. 15637 new_path=`cmd //c echo $new_path` 15638 15639 input_path="$new_path" 15640 # Check if we need to convert this using DOS-style short mode. If the path 15641 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15642 # take no chances and rewrite it. 15643 # Note: m4 eats our [], so we need to use [ and ] instead. 15644 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15645 if test "x$has_forbidden_chars" != x; then 15646 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15647 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15648 fi 15649 15650 # Output is in $new_path 15651 15652 windows_path="$new_path" 15653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15654 unix_path=`$CYGPATH -u "$windows_path"` 15655 new_path="$unix_path" 15656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15658 new_path="$unix_path" 15659 fi 15660 15661 # remove trailing .exe if any 15662 new_path="${new_path/%.exe/}" 15663 15664 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15665 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15666 fi 15667 15668 else 15669 # We're on a posix platform. Hooray! :) 15670 # First separate the path from the arguments. This will split at the first 15671 # space. 15672 complete="$FOUND_MAKE" 15673 path="${complete%% *}" 15674 tmp="$complete EOL" 15675 arguments="${tmp#* }" 15676 15677 # Cannot rely on the command "which" here since it doesn't always work. 15678 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15679 if test -z "$is_absolute_path"; then 15680 # Path to executable is not absolute. Find it. 15681 IFS_save="$IFS" 15682 IFS=: 15683 for p in $PATH; do 15684 if test -f "$p/$path" && test -x "$p/$path"; then 15685 new_path="$p/$path" 15686 break 15687 fi 15688 done 15689 IFS="$IFS_save" 15690 else 15691 # This is an absolute path, we can use it without further modifications. 15692 new_path="$path" 15693 fi 15694 15695 if test "x$new_path" = x; then 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15697 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15698 has_space=`$ECHO "$complete" | $GREP " "` 15699 if test "x$has_space" != x; then 15700 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15701 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15702 fi 15703 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15704 fi 15705 fi 15706 15707 # Now join together the path and the arguments once again 15708 if test "x$arguments" != xEOL; then 15709 new_complete="$new_path ${arguments% *}" 15710 else 15711 new_complete="$new_path" 15712 fi 15713 15714 if test "x$complete" != "x$new_complete"; then 15715 FOUND_MAKE="$new_complete" 15716 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15717 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15718 fi 15719 15720 fi 15721 fi 15722 fi 15723 fi 15724 15725 if test "x$FOUND_MAKE" = x; then 15726 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15727 fi 15728 else 15729 # Try our hardest to locate a correct version of GNU make 15730 for ac_prog in gmake 15731 do 15732 # Extract the first word of "$ac_prog", so it can be a program name with args. 15733 set dummy $ac_prog; ac_word=$2 15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15735 $as_echo_n "checking for $ac_word... " >&6; } 15736 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15737 $as_echo_n "(cached) " >&6 15738 else 15739 case $CHECK_GMAKE in 15740 [\\/]* | ?:[\\/]*) 15741 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15742 ;; 15743 *) 15744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15745 for as_dir in $PATH 15746 do 15747 IFS=$as_save_IFS 15748 test -z "$as_dir" && as_dir=. 15749 for ac_exec_ext in '' $ac_executable_extensions; do 15750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15751 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15753 break 2 15754 fi 15755 done 15756 done 15757 IFS=$as_save_IFS 15758 15759 ;; 15760 esac 15761 fi 15762 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15763 if test -n "$CHECK_GMAKE"; then 15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15765 $as_echo "$CHECK_GMAKE" >&6; } 15766 else 15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15768 $as_echo "no" >&6; } 15769 fi 15770 15771 15772 test -n "$CHECK_GMAKE" && break 15773 done 15774 15775 15776 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15777 DESCRIPTION="gmake in PATH" 15778 if test "x$MAKE_CANDIDATE" != x; then 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15780 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15781 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15782 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15783 if test "x$IS_GNU_MAKE" = x; then 15784 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15785 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15786 else 15787 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15788 if test "x$IS_MODERN_MAKE" = x; then 15789 { $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 15790 $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;} 15791 else 15792 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15793 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15794 MAKE_EXPECTED_ENV='cygwin' 15795 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15796 MAKE_EXPECTED_ENV='msys' 15797 else 15798 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15799 fi 15800 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15801 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15802 else 15803 # Not relevant for non-Windows 15804 IS_MAKE_CORRECT_ENV=true 15805 fi 15806 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15807 { $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 15808 $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;} 15809 else 15810 FOUND_MAKE=$MAKE_CANDIDATE 15811 15812 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15813 15814 # First separate the path from the arguments. This will split at the first 15815 # space. 15816 complete="$FOUND_MAKE" 15817 path="${complete%% *}" 15818 tmp="$complete EOL" 15819 arguments="${tmp#* }" 15820 15821 # Input might be given as Windows format, start by converting to 15822 # unix format. 15823 new_path=`$CYGPATH -u "$path"` 15824 15825 # Now try to locate executable using which 15826 new_path=`$WHICH "$new_path" 2> /dev/null` 15827 # bat and cmd files are not always considered executable in cygwin causing which 15828 # to not find them 15829 if test "x$new_path" = x \ 15830 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15831 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15832 new_path=`$CYGPATH -u "$path"` 15833 fi 15834 if test "x$new_path" = x; then 15835 # Oops. Which didn't find the executable. 15836 # The splitting of arguments from the executable at a space might have been incorrect, 15837 # since paths with space are more likely in Windows. Give it another try with the whole 15838 # argument. 15839 path="$complete" 15840 arguments="EOL" 15841 new_path=`$CYGPATH -u "$path"` 15842 new_path=`$WHICH "$new_path" 2> /dev/null` 15843 # bat and cmd files are not always considered executable in cygwin causing which 15844 # to not find them 15845 if test "x$new_path" = x \ 15846 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15847 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15848 new_path=`$CYGPATH -u "$path"` 15849 fi 15850 if test "x$new_path" = x; then 15851 # It's still not found. Now this is an unrecoverable error. 15852 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15853 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15854 has_space=`$ECHO "$complete" | $GREP " "` 15855 if test "x$has_space" != x; then 15856 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15857 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15858 fi 15859 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15860 fi 15861 fi 15862 15863 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15864 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15865 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15866 # "foo.exe" is OK but "foo" is an error. 15867 # 15868 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15869 # It is also a way to make sure we got the proper file name for the real test later on. 15870 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15871 if test "x$test_shortpath" = x; then 15872 # Short path failed, file does not exist as specified. 15873 # Try adding .exe or .cmd 15874 if test -f "${new_path}.exe"; then 15875 input_to_shortpath="${new_path}.exe" 15876 elif test -f "${new_path}.cmd"; then 15877 input_to_shortpath="${new_path}.cmd" 15878 else 15879 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15880 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15882 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15883 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15884 fi 15885 else 15886 input_to_shortpath="$new_path" 15887 fi 15888 15889 # Call helper function which possibly converts this using DOS-style short mode. 15890 # If so, the updated path is stored in $new_path. 15891 new_path="$input_to_shortpath" 15892 15893 input_path="$input_to_shortpath" 15894 # Check if we need to convert this using DOS-style short mode. If the path 15895 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15896 # take no chances and rewrite it. 15897 # Note: m4 eats our [], so we need to use [ and ] instead. 15898 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15899 if test "x$has_forbidden_chars" != x; then 15900 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15901 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15902 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15903 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15904 # Going to short mode and back again did indeed matter. Since short mode is 15905 # case insensitive, let's make it lowercase to improve readability. 15906 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15907 # Now convert it back to Unix-stile (cygpath) 15908 input_path=`$CYGPATH -u "$shortmode_path"` 15909 new_path="$input_path" 15910 fi 15911 fi 15912 15913 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15914 if test "x$test_cygdrive_prefix" = x; then 15915 # As a simple fix, exclude /usr/bin since it's not a real path. 15916 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15917 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15918 # a path prefixed by /cygdrive for fixpath to work. 15919 new_path="$CYGWIN_ROOT_PATH$input_path" 15920 fi 15921 fi 15922 15923 # remove trailing .exe if any 15924 new_path="${new_path/%.exe/}" 15925 15926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15927 15928 # First separate the path from the arguments. This will split at the first 15929 # space. 15930 complete="$FOUND_MAKE" 15931 path="${complete%% *}" 15932 tmp="$complete EOL" 15933 arguments="${tmp#* }" 15934 15935 # Input might be given as Windows format, start by converting to 15936 # unix format. 15937 new_path="$path" 15938 15939 windows_path="$new_path" 15940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15941 unix_path=`$CYGPATH -u "$windows_path"` 15942 new_path="$unix_path" 15943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15944 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15945 new_path="$unix_path" 15946 fi 15947 15948 15949 # Now try to locate executable using which 15950 new_path=`$WHICH "$new_path" 2> /dev/null` 15951 15952 if test "x$new_path" = x; then 15953 # Oops. Which didn't find the executable. 15954 # The splitting of arguments from the executable at a space might have been incorrect, 15955 # since paths with space are more likely in Windows. Give it another try with the whole 15956 # argument. 15957 path="$complete" 15958 arguments="EOL" 15959 new_path="$path" 15960 15961 windows_path="$new_path" 15962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15963 unix_path=`$CYGPATH -u "$windows_path"` 15964 new_path="$unix_path" 15965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15967 new_path="$unix_path" 15968 fi 15969 15970 15971 new_path=`$WHICH "$new_path" 2> /dev/null` 15972 # bat and cmd files are not always considered executable in MSYS causing which 15973 # to not find them 15974 if test "x$new_path" = x \ 15975 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15976 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15977 new_path="$path" 15978 15979 windows_path="$new_path" 15980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15981 unix_path=`$CYGPATH -u "$windows_path"` 15982 new_path="$unix_path" 15983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15984 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15985 new_path="$unix_path" 15986 fi 15987 15988 fi 15989 15990 if test "x$new_path" = x; then 15991 # It's still not found. Now this is an unrecoverable error. 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15993 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15994 has_space=`$ECHO "$complete" | $GREP " "` 15995 if test "x$has_space" != x; then 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15997 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15998 fi 15999 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16000 fi 16001 fi 16002 16003 # Now new_path has a complete unix path to the binary 16004 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16005 # Keep paths in /bin as-is, but remove trailing .exe if any 16006 new_path="${new_path/%.exe/}" 16007 # Do not save /bin paths to all_fixpath_prefixes! 16008 else 16009 # Not in mixed or Windows style, start by that. 16010 new_path=`cmd //c echo $new_path` 16011 16012 input_path="$new_path" 16013 # Check if we need to convert this using DOS-style short mode. If the path 16014 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16015 # take no chances and rewrite it. 16016 # Note: m4 eats our [], so we need to use [ and ] instead. 16017 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16018 if test "x$has_forbidden_chars" != x; then 16019 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16020 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16021 fi 16022 16023 # Output is in $new_path 16024 16025 windows_path="$new_path" 16026 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16027 unix_path=`$CYGPATH -u "$windows_path"` 16028 new_path="$unix_path" 16029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16030 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16031 new_path="$unix_path" 16032 fi 16033 16034 # remove trailing .exe if any 16035 new_path="${new_path/%.exe/}" 16036 16037 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16038 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16039 fi 16040 16041 else 16042 # We're on a posix platform. Hooray! :) 16043 # First separate the path from the arguments. This will split at the first 16044 # space. 16045 complete="$FOUND_MAKE" 16046 path="${complete%% *}" 16047 tmp="$complete EOL" 16048 arguments="${tmp#* }" 16049 16050 # Cannot rely on the command "which" here since it doesn't always work. 16051 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16052 if test -z "$is_absolute_path"; then 16053 # Path to executable is not absolute. Find it. 16054 IFS_save="$IFS" 16055 IFS=: 16056 for p in $PATH; do 16057 if test -f "$p/$path" && test -x "$p/$path"; then 16058 new_path="$p/$path" 16059 break 16060 fi 16061 done 16062 IFS="$IFS_save" 16063 else 16064 # This is an absolute path, we can use it without further modifications. 16065 new_path="$path" 16066 fi 16067 16068 if test "x$new_path" = x; then 16069 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16070 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16071 has_space=`$ECHO "$complete" | $GREP " "` 16072 if test "x$has_space" != x; then 16073 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16074 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16075 fi 16076 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16077 fi 16078 fi 16079 16080 # Now join together the path and the arguments once again 16081 if test "x$arguments" != xEOL; then 16082 new_complete="$new_path ${arguments% *}" 16083 else 16084 new_complete="$new_path" 16085 fi 16086 16087 if test "x$complete" != "x$new_complete"; then 16088 FOUND_MAKE="$new_complete" 16089 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16090 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16091 fi 16092 16093 fi 16094 fi 16095 fi 16096 fi 16097 16098 16099 if test "x$FOUND_MAKE" = x; then 16100 for ac_prog in make 16101 do 16102 # Extract the first word of "$ac_prog", so it can be a program name with args. 16103 set dummy $ac_prog; ac_word=$2 16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16105 $as_echo_n "checking for $ac_word... " >&6; } 16106 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16107 $as_echo_n "(cached) " >&6 16108 else 16109 case $CHECK_MAKE in 16110 [\\/]* | ?:[\\/]*) 16111 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16112 ;; 16113 *) 16114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16115 for as_dir in $PATH 16116 do 16117 IFS=$as_save_IFS 16118 test -z "$as_dir" && as_dir=. 16119 for ac_exec_ext in '' $ac_executable_extensions; do 16120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16121 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16123 break 2 16124 fi 16125 done 16126 done 16127 IFS=$as_save_IFS 16128 16129 ;; 16130 esac 16131 fi 16132 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16133 if test -n "$CHECK_MAKE"; then 16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16135 $as_echo "$CHECK_MAKE" >&6; } 16136 else 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16138 $as_echo "no" >&6; } 16139 fi 16140 16141 16142 test -n "$CHECK_MAKE" && break 16143 done 16144 16145 16146 MAKE_CANDIDATE=""$CHECK_MAKE"" 16147 DESCRIPTION="make in PATH" 16148 if test "x$MAKE_CANDIDATE" != x; then 16149 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16150 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16151 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16152 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16153 if test "x$IS_GNU_MAKE" = x; then 16154 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16155 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16156 else 16157 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16158 if test "x$IS_MODERN_MAKE" = x; then 16159 { $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 16160 $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;} 16161 else 16162 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16164 MAKE_EXPECTED_ENV='cygwin' 16165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16166 MAKE_EXPECTED_ENV='msys' 16167 else 16168 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16169 fi 16170 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16171 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16172 else 16173 # Not relevant for non-Windows 16174 IS_MAKE_CORRECT_ENV=true 16175 fi 16176 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16177 { $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 16178 $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;} 16179 else 16180 FOUND_MAKE=$MAKE_CANDIDATE 16181 16182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16183 16184 # First separate the path from the arguments. This will split at the first 16185 # space. 16186 complete="$FOUND_MAKE" 16187 path="${complete%% *}" 16188 tmp="$complete EOL" 16189 arguments="${tmp#* }" 16190 16191 # Input might be given as Windows format, start by converting to 16192 # unix format. 16193 new_path=`$CYGPATH -u "$path"` 16194 16195 # Now try to locate executable using which 16196 new_path=`$WHICH "$new_path" 2> /dev/null` 16197 # bat and cmd files are not always considered executable in cygwin causing which 16198 # to not find them 16199 if test "x$new_path" = x \ 16200 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16201 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16202 new_path=`$CYGPATH -u "$path"` 16203 fi 16204 if test "x$new_path" = x; then 16205 # Oops. Which didn't find the executable. 16206 # The splitting of arguments from the executable at a space might have been incorrect, 16207 # since paths with space are more likely in Windows. Give it another try with the whole 16208 # argument. 16209 path="$complete" 16210 arguments="EOL" 16211 new_path=`$CYGPATH -u "$path"` 16212 new_path=`$WHICH "$new_path" 2> /dev/null` 16213 # bat and cmd files are not always considered executable in cygwin causing which 16214 # to not find them 16215 if test "x$new_path" = x \ 16216 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16217 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16218 new_path=`$CYGPATH -u "$path"` 16219 fi 16220 if test "x$new_path" = x; then 16221 # It's still not found. Now this is an unrecoverable error. 16222 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16223 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16224 has_space=`$ECHO "$complete" | $GREP " "` 16225 if test "x$has_space" != x; then 16226 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16227 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16228 fi 16229 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16230 fi 16231 fi 16232 16233 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16234 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16235 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16236 # "foo.exe" is OK but "foo" is an error. 16237 # 16238 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16239 # It is also a way to make sure we got the proper file name for the real test later on. 16240 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16241 if test "x$test_shortpath" = x; then 16242 # Short path failed, file does not exist as specified. 16243 # Try adding .exe or .cmd 16244 if test -f "${new_path}.exe"; then 16245 input_to_shortpath="${new_path}.exe" 16246 elif test -f "${new_path}.cmd"; then 16247 input_to_shortpath="${new_path}.cmd" 16248 else 16249 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16250 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16251 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16252 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16253 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16254 fi 16255 else 16256 input_to_shortpath="$new_path" 16257 fi 16258 16259 # Call helper function which possibly converts this using DOS-style short mode. 16260 # If so, the updated path is stored in $new_path. 16261 new_path="$input_to_shortpath" 16262 16263 input_path="$input_to_shortpath" 16264 # Check if we need to convert this using DOS-style short mode. If the path 16265 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16266 # take no chances and rewrite it. 16267 # Note: m4 eats our [], so we need to use [ and ] instead. 16268 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16269 if test "x$has_forbidden_chars" != x; then 16270 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16271 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16272 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16273 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16274 # Going to short mode and back again did indeed matter. Since short mode is 16275 # case insensitive, let's make it lowercase to improve readability. 16276 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16277 # Now convert it back to Unix-stile (cygpath) 16278 input_path=`$CYGPATH -u "$shortmode_path"` 16279 new_path="$input_path" 16280 fi 16281 fi 16282 16283 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16284 if test "x$test_cygdrive_prefix" = x; then 16285 # As a simple fix, exclude /usr/bin since it's not a real path. 16286 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16287 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16288 # a path prefixed by /cygdrive for fixpath to work. 16289 new_path="$CYGWIN_ROOT_PATH$input_path" 16290 fi 16291 fi 16292 16293 # remove trailing .exe if any 16294 new_path="${new_path/%.exe/}" 16295 16296 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16297 16298 # First separate the path from the arguments. This will split at the first 16299 # space. 16300 complete="$FOUND_MAKE" 16301 path="${complete%% *}" 16302 tmp="$complete EOL" 16303 arguments="${tmp#* }" 16304 16305 # Input might be given as Windows format, start by converting to 16306 # unix format. 16307 new_path="$path" 16308 16309 windows_path="$new_path" 16310 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16311 unix_path=`$CYGPATH -u "$windows_path"` 16312 new_path="$unix_path" 16313 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16314 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16315 new_path="$unix_path" 16316 fi 16317 16318 16319 # Now try to locate executable using which 16320 new_path=`$WHICH "$new_path" 2> /dev/null` 16321 16322 if test "x$new_path" = x; then 16323 # Oops. Which didn't find the executable. 16324 # The splitting of arguments from the executable at a space might have been incorrect, 16325 # since paths with space are more likely in Windows. Give it another try with the whole 16326 # argument. 16327 path="$complete" 16328 arguments="EOL" 16329 new_path="$path" 16330 16331 windows_path="$new_path" 16332 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16333 unix_path=`$CYGPATH -u "$windows_path"` 16334 new_path="$unix_path" 16335 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16336 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16337 new_path="$unix_path" 16338 fi 16339 16340 16341 new_path=`$WHICH "$new_path" 2> /dev/null` 16342 # bat and cmd files are not always considered executable in MSYS causing which 16343 # to not find them 16344 if test "x$new_path" = x \ 16345 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16346 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16347 new_path="$path" 16348 16349 windows_path="$new_path" 16350 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16351 unix_path=`$CYGPATH -u "$windows_path"` 16352 new_path="$unix_path" 16353 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16354 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16355 new_path="$unix_path" 16356 fi 16357 16358 fi 16359 16360 if test "x$new_path" = x; then 16361 # It's still not found. Now this is an unrecoverable error. 16362 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16363 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16364 has_space=`$ECHO "$complete" | $GREP " "` 16365 if test "x$has_space" != x; then 16366 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16367 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16368 fi 16369 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16370 fi 16371 fi 16372 16373 # Now new_path has a complete unix path to the binary 16374 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16375 # Keep paths in /bin as-is, but remove trailing .exe if any 16376 new_path="${new_path/%.exe/}" 16377 # Do not save /bin paths to all_fixpath_prefixes! 16378 else 16379 # Not in mixed or Windows style, start by that. 16380 new_path=`cmd //c echo $new_path` 16381 16382 input_path="$new_path" 16383 # Check if we need to convert this using DOS-style short mode. If the path 16384 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16385 # take no chances and rewrite it. 16386 # Note: m4 eats our [], so we need to use [ and ] instead. 16387 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16388 if test "x$has_forbidden_chars" != x; then 16389 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16390 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16391 fi 16392 16393 # Output is in $new_path 16394 16395 windows_path="$new_path" 16396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16397 unix_path=`$CYGPATH -u "$windows_path"` 16398 new_path="$unix_path" 16399 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16400 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16401 new_path="$unix_path" 16402 fi 16403 16404 # remove trailing .exe if any 16405 new_path="${new_path/%.exe/}" 16406 16407 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16408 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16409 fi 16410 16411 else 16412 # We're on a posix platform. Hooray! :) 16413 # First separate the path from the arguments. This will split at the first 16414 # space. 16415 complete="$FOUND_MAKE" 16416 path="${complete%% *}" 16417 tmp="$complete EOL" 16418 arguments="${tmp#* }" 16419 16420 # Cannot rely on the command "which" here since it doesn't always work. 16421 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16422 if test -z "$is_absolute_path"; then 16423 # Path to executable is not absolute. Find it. 16424 IFS_save="$IFS" 16425 IFS=: 16426 for p in $PATH; do 16427 if test -f "$p/$path" && test -x "$p/$path"; then 16428 new_path="$p/$path" 16429 break 16430 fi 16431 done 16432 IFS="$IFS_save" 16433 else 16434 # This is an absolute path, we can use it without further modifications. 16435 new_path="$path" 16436 fi 16437 16438 if test "x$new_path" = x; then 16439 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16440 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16441 has_space=`$ECHO "$complete" | $GREP " "` 16442 if test "x$has_space" != x; then 16443 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16444 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16445 fi 16446 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16447 fi 16448 fi 16449 16450 # Now join together the path and the arguments once again 16451 if test "x$arguments" != xEOL; then 16452 new_complete="$new_path ${arguments% *}" 16453 else 16454 new_complete="$new_path" 16455 fi 16456 16457 if test "x$complete" != "x$new_complete"; then 16458 FOUND_MAKE="$new_complete" 16459 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16460 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16461 fi 16462 16463 fi 16464 fi 16465 fi 16466 fi 16467 16468 fi 16469 16470 if test "x$FOUND_MAKE" = x; then 16471 if test "x$TOOLCHAIN_PATH" != x; then 16472 # We have a toolchain path, check that as well before giving up. 16473 OLD_PATH=$PATH 16474 PATH=$TOOLCHAIN_PATH:$PATH 16475 for ac_prog in gmake 16476 do 16477 # Extract the first word of "$ac_prog", so it can be a program name with args. 16478 set dummy $ac_prog; ac_word=$2 16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16480 $as_echo_n "checking for $ac_word... " >&6; } 16481 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16482 $as_echo_n "(cached) " >&6 16483 else 16484 case $CHECK_TOOLSDIR_GMAKE in 16485 [\\/]* | ?:[\\/]*) 16486 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16487 ;; 16488 *) 16489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16490 for as_dir in $PATH 16491 do 16492 IFS=$as_save_IFS 16493 test -z "$as_dir" && as_dir=. 16494 for ac_exec_ext in '' $ac_executable_extensions; do 16495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16496 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16498 break 2 16499 fi 16500 done 16501 done 16502 IFS=$as_save_IFS 16503 16504 ;; 16505 esac 16506 fi 16507 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16508 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16510 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16511 else 16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16513 $as_echo "no" >&6; } 16514 fi 16515 16516 16517 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16518 done 16519 16520 16521 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16522 DESCRIPTION="gmake in tools-dir" 16523 if test "x$MAKE_CANDIDATE" != x; then 16524 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16525 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16526 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16527 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16528 if test "x$IS_GNU_MAKE" = x; then 16529 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16530 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16531 else 16532 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16533 if test "x$IS_MODERN_MAKE" = x; then 16534 { $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 16535 $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;} 16536 else 16537 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16539 MAKE_EXPECTED_ENV='cygwin' 16540 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16541 MAKE_EXPECTED_ENV='msys' 16542 else 16543 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16544 fi 16545 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16546 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16547 else 16548 # Not relevant for non-Windows 16549 IS_MAKE_CORRECT_ENV=true 16550 fi 16551 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16552 { $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 16553 $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;} 16554 else 16555 FOUND_MAKE=$MAKE_CANDIDATE 16556 16557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16558 16559 # First separate the path from the arguments. This will split at the first 16560 # space. 16561 complete="$FOUND_MAKE" 16562 path="${complete%% *}" 16563 tmp="$complete EOL" 16564 arguments="${tmp#* }" 16565 16566 # Input might be given as Windows format, start by converting to 16567 # unix format. 16568 new_path=`$CYGPATH -u "$path"` 16569 16570 # Now try to locate executable using which 16571 new_path=`$WHICH "$new_path" 2> /dev/null` 16572 # bat and cmd files are not always considered executable in cygwin causing which 16573 # to not find them 16574 if test "x$new_path" = x \ 16575 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16576 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16577 new_path=`$CYGPATH -u "$path"` 16578 fi 16579 if test "x$new_path" = x; then 16580 # Oops. Which didn't find the executable. 16581 # The splitting of arguments from the executable at a space might have been incorrect, 16582 # since paths with space are more likely in Windows. Give it another try with the whole 16583 # argument. 16584 path="$complete" 16585 arguments="EOL" 16586 new_path=`$CYGPATH -u "$path"` 16587 new_path=`$WHICH "$new_path" 2> /dev/null` 16588 # bat and cmd files are not always considered executable in cygwin causing which 16589 # to not find them 16590 if test "x$new_path" = x \ 16591 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16592 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16593 new_path=`$CYGPATH -u "$path"` 16594 fi 16595 if test "x$new_path" = x; then 16596 # It's still not found. Now this is an unrecoverable error. 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16598 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16599 has_space=`$ECHO "$complete" | $GREP " "` 16600 if test "x$has_space" != x; then 16601 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16602 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16603 fi 16604 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16605 fi 16606 fi 16607 16608 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16609 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16610 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16611 # "foo.exe" is OK but "foo" is an error. 16612 # 16613 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16614 # It is also a way to make sure we got the proper file name for the real test later on. 16615 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16616 if test "x$test_shortpath" = x; then 16617 # Short path failed, file does not exist as specified. 16618 # Try adding .exe or .cmd 16619 if test -f "${new_path}.exe"; then 16620 input_to_shortpath="${new_path}.exe" 16621 elif test -f "${new_path}.cmd"; then 16622 input_to_shortpath="${new_path}.cmd" 16623 else 16624 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16625 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16626 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16627 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16628 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16629 fi 16630 else 16631 input_to_shortpath="$new_path" 16632 fi 16633 16634 # Call helper function which possibly converts this using DOS-style short mode. 16635 # If so, the updated path is stored in $new_path. 16636 new_path="$input_to_shortpath" 16637 16638 input_path="$input_to_shortpath" 16639 # Check if we need to convert this using DOS-style short mode. If the path 16640 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16641 # take no chances and rewrite it. 16642 # Note: m4 eats our [], so we need to use [ and ] instead. 16643 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16644 if test "x$has_forbidden_chars" != x; then 16645 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16646 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16647 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16648 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16649 # Going to short mode and back again did indeed matter. Since short mode is 16650 # case insensitive, let's make it lowercase to improve readability. 16651 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16652 # Now convert it back to Unix-stile (cygpath) 16653 input_path=`$CYGPATH -u "$shortmode_path"` 16654 new_path="$input_path" 16655 fi 16656 fi 16657 16658 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16659 if test "x$test_cygdrive_prefix" = x; then 16660 # As a simple fix, exclude /usr/bin since it's not a real path. 16661 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16662 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16663 # a path prefixed by /cygdrive for fixpath to work. 16664 new_path="$CYGWIN_ROOT_PATH$input_path" 16665 fi 16666 fi 16667 16668 # remove trailing .exe if any 16669 new_path="${new_path/%.exe/}" 16670 16671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16672 16673 # First separate the path from the arguments. This will split at the first 16674 # space. 16675 complete="$FOUND_MAKE" 16676 path="${complete%% *}" 16677 tmp="$complete EOL" 16678 arguments="${tmp#* }" 16679 16680 # Input might be given as Windows format, start by converting to 16681 # unix format. 16682 new_path="$path" 16683 16684 windows_path="$new_path" 16685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16686 unix_path=`$CYGPATH -u "$windows_path"` 16687 new_path="$unix_path" 16688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16689 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16690 new_path="$unix_path" 16691 fi 16692 16693 16694 # Now try to locate executable using which 16695 new_path=`$WHICH "$new_path" 2> /dev/null` 16696 16697 if test "x$new_path" = x; then 16698 # Oops. Which didn't find the executable. 16699 # The splitting of arguments from the executable at a space might have been incorrect, 16700 # since paths with space are more likely in Windows. Give it another try with the whole 16701 # argument. 16702 path="$complete" 16703 arguments="EOL" 16704 new_path="$path" 16705 16706 windows_path="$new_path" 16707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16708 unix_path=`$CYGPATH -u "$windows_path"` 16709 new_path="$unix_path" 16710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16711 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16712 new_path="$unix_path" 16713 fi 16714 16715 16716 new_path=`$WHICH "$new_path" 2> /dev/null` 16717 # bat and cmd files are not always considered executable in MSYS causing which 16718 # to not find them 16719 if test "x$new_path" = x \ 16720 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16721 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16722 new_path="$path" 16723 16724 windows_path="$new_path" 16725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16726 unix_path=`$CYGPATH -u "$windows_path"` 16727 new_path="$unix_path" 16728 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16729 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16730 new_path="$unix_path" 16731 fi 16732 16733 fi 16734 16735 if test "x$new_path" = x; then 16736 # It's still not found. Now this is an unrecoverable error. 16737 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16738 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16739 has_space=`$ECHO "$complete" | $GREP " "` 16740 if test "x$has_space" != x; then 16741 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16742 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16743 fi 16744 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16745 fi 16746 fi 16747 16748 # Now new_path has a complete unix path to the binary 16749 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16750 # Keep paths in /bin as-is, but remove trailing .exe if any 16751 new_path="${new_path/%.exe/}" 16752 # Do not save /bin paths to all_fixpath_prefixes! 16753 else 16754 # Not in mixed or Windows style, start by that. 16755 new_path=`cmd //c echo $new_path` 16756 16757 input_path="$new_path" 16758 # Check if we need to convert this using DOS-style short mode. If the path 16759 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16760 # take no chances and rewrite it. 16761 # Note: m4 eats our [], so we need to use [ and ] instead. 16762 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16763 if test "x$has_forbidden_chars" != x; then 16764 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16765 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16766 fi 16767 16768 # Output is in $new_path 16769 16770 windows_path="$new_path" 16771 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16772 unix_path=`$CYGPATH -u "$windows_path"` 16773 new_path="$unix_path" 16774 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16775 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16776 new_path="$unix_path" 16777 fi 16778 16779 # remove trailing .exe if any 16780 new_path="${new_path/%.exe/}" 16781 16782 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16783 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16784 fi 16785 16786 else 16787 # We're on a posix platform. Hooray! :) 16788 # First separate the path from the arguments. This will split at the first 16789 # space. 16790 complete="$FOUND_MAKE" 16791 path="${complete%% *}" 16792 tmp="$complete EOL" 16793 arguments="${tmp#* }" 16794 16795 # Cannot rely on the command "which" here since it doesn't always work. 16796 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16797 if test -z "$is_absolute_path"; then 16798 # Path to executable is not absolute. Find it. 16799 IFS_save="$IFS" 16800 IFS=: 16801 for p in $PATH; do 16802 if test -f "$p/$path" && test -x "$p/$path"; then 16803 new_path="$p/$path" 16804 break 16805 fi 16806 done 16807 IFS="$IFS_save" 16808 else 16809 # This is an absolute path, we can use it without further modifications. 16810 new_path="$path" 16811 fi 16812 16813 if test "x$new_path" = x; then 16814 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16815 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16816 has_space=`$ECHO "$complete" | $GREP " "` 16817 if test "x$has_space" != x; then 16818 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16819 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16820 fi 16821 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16822 fi 16823 fi 16824 16825 # Now join together the path and the arguments once again 16826 if test "x$arguments" != xEOL; then 16827 new_complete="$new_path ${arguments% *}" 16828 else 16829 new_complete="$new_path" 16830 fi 16831 16832 if test "x$complete" != "x$new_complete"; then 16833 FOUND_MAKE="$new_complete" 16834 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16835 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16836 fi 16837 16838 fi 16839 fi 16840 fi 16841 fi 16842 16843 if test "x$FOUND_MAKE" = x; then 16844 for ac_prog in make 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_CHECK_TOOLSDIR_MAKE+:} false; then : 16851 $as_echo_n "(cached) " >&6 16852 else 16853 case $CHECK_TOOLSDIR_MAKE in 16854 [\\/]* | ?:[\\/]*) 16855 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # 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_CHECK_TOOLSDIR_MAKE="$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 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16877 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16879 $as_echo "$CHECK_TOOLSDIR_MAKE" >&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 "$CHECK_TOOLSDIR_MAKE" && break 16887 done 16888 16889 16890 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16891 DESCRIPTION="make in tools-dir" 16892 if test "x$MAKE_CANDIDATE" != x; then 16893 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16894 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16895 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16896 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16897 if test "x$IS_GNU_MAKE" = x; then 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16899 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16900 else 16901 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16902 if test "x$IS_MODERN_MAKE" = x; then 16903 { $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 16904 $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;} 16905 else 16906 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16908 MAKE_EXPECTED_ENV='cygwin' 16909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16910 MAKE_EXPECTED_ENV='msys' 16911 else 16912 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16913 fi 16914 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16915 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16916 else 16917 # Not relevant for non-Windows 16918 IS_MAKE_CORRECT_ENV=true 16919 fi 16920 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16921 { $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 16922 $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;} 16923 else 16924 FOUND_MAKE=$MAKE_CANDIDATE 16925 16926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16927 16928 # First separate the path from the arguments. This will split at the first 16929 # space. 16930 complete="$FOUND_MAKE" 16931 path="${complete%% *}" 16932 tmp="$complete EOL" 16933 arguments="${tmp#* }" 16934 16935 # Input might be given as Windows format, start by converting to 16936 # unix format. 16937 new_path=`$CYGPATH -u "$path"` 16938 16939 # Now try to locate executable using which 16940 new_path=`$WHICH "$new_path" 2> /dev/null` 16941 # bat and cmd files are not always considered executable in cygwin causing which 16942 # to not find them 16943 if test "x$new_path" = x \ 16944 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16945 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16946 new_path=`$CYGPATH -u "$path"` 16947 fi 16948 if test "x$new_path" = x; then 16949 # Oops. Which didn't find the executable. 16950 # The splitting of arguments from the executable at a space might have been incorrect, 16951 # since paths with space are more likely in Windows. Give it another try with the whole 16952 # argument. 16953 path="$complete" 16954 arguments="EOL" 16955 new_path=`$CYGPATH -u "$path"` 16956 new_path=`$WHICH "$new_path" 2> /dev/null` 16957 # bat and cmd files are not always considered executable in cygwin causing which 16958 # to not find them 16959 if test "x$new_path" = x \ 16960 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16961 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16962 new_path=`$CYGPATH -u "$path"` 16963 fi 16964 if test "x$new_path" = x; then 16965 # It's still not found. Now this is an unrecoverable error. 16966 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16967 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16968 has_space=`$ECHO "$complete" | $GREP " "` 16969 if test "x$has_space" != x; then 16970 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16971 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16972 fi 16973 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16974 fi 16975 fi 16976 16977 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16978 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16979 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16980 # "foo.exe" is OK but "foo" is an error. 16981 # 16982 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16983 # It is also a way to make sure we got the proper file name for the real test later on. 16984 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16985 if test "x$test_shortpath" = x; then 16986 # Short path failed, file does not exist as specified. 16987 # Try adding .exe or .cmd 16988 if test -f "${new_path}.exe"; then 16989 input_to_shortpath="${new_path}.exe" 16990 elif test -f "${new_path}.cmd"; then 16991 input_to_shortpath="${new_path}.cmd" 16992 else 16993 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16994 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16995 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16996 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16997 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16998 fi 16999 else 17000 input_to_shortpath="$new_path" 17001 fi 17002 17003 # Call helper function which possibly converts this using DOS-style short mode. 17004 # If so, the updated path is stored in $new_path. 17005 new_path="$input_to_shortpath" 17006 17007 input_path="$input_to_shortpath" 17008 # Check if we need to convert this using DOS-style short mode. If the path 17009 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17010 # take no chances and rewrite it. 17011 # Note: m4 eats our [], so we need to use [ and ] instead. 17012 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17013 if test "x$has_forbidden_chars" != x; then 17014 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17015 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17016 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17017 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17018 # Going to short mode and back again did indeed matter. Since short mode is 17019 # case insensitive, let's make it lowercase to improve readability. 17020 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17021 # Now convert it back to Unix-stile (cygpath) 17022 input_path=`$CYGPATH -u "$shortmode_path"` 17023 new_path="$input_path" 17024 fi 17025 fi 17026 17027 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17028 if test "x$test_cygdrive_prefix" = x; then 17029 # As a simple fix, exclude /usr/bin since it's not a real path. 17030 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17031 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17032 # a path prefixed by /cygdrive for fixpath to work. 17033 new_path="$CYGWIN_ROOT_PATH$input_path" 17034 fi 17035 fi 17036 17037 # remove trailing .exe if any 17038 new_path="${new_path/%.exe/}" 17039 17040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17041 17042 # First separate the path from the arguments. This will split at the first 17043 # space. 17044 complete="$FOUND_MAKE" 17045 path="${complete%% *}" 17046 tmp="$complete EOL" 17047 arguments="${tmp#* }" 17048 17049 # Input might be given as Windows format, start by converting to 17050 # unix format. 17051 new_path="$path" 17052 17053 windows_path="$new_path" 17054 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17055 unix_path=`$CYGPATH -u "$windows_path"` 17056 new_path="$unix_path" 17057 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17058 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17059 new_path="$unix_path" 17060 fi 17061 17062 17063 # Now try to locate executable using which 17064 new_path=`$WHICH "$new_path" 2> /dev/null` 17065 17066 if test "x$new_path" = x; then 17067 # Oops. Which didn't find the executable. 17068 # The splitting of arguments from the executable at a space might have been incorrect, 17069 # since paths with space are more likely in Windows. Give it another try with the whole 17070 # argument. 17071 path="$complete" 17072 arguments="EOL" 17073 new_path="$path" 17074 17075 windows_path="$new_path" 17076 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17077 unix_path=`$CYGPATH -u "$windows_path"` 17078 new_path="$unix_path" 17079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17080 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17081 new_path="$unix_path" 17082 fi 17083 17084 17085 new_path=`$WHICH "$new_path" 2> /dev/null` 17086 # bat and cmd files are not always considered executable in MSYS causing which 17087 # to not find them 17088 if test "x$new_path" = x \ 17089 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17090 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17091 new_path="$path" 17092 17093 windows_path="$new_path" 17094 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17095 unix_path=`$CYGPATH -u "$windows_path"` 17096 new_path="$unix_path" 17097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17098 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17099 new_path="$unix_path" 17100 fi 17101 17102 fi 17103 17104 if test "x$new_path" = x; then 17105 # It's still not found. Now this is an unrecoverable error. 17106 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17107 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17108 has_space=`$ECHO "$complete" | $GREP " "` 17109 if test "x$has_space" != x; then 17110 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17111 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17112 fi 17113 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17114 fi 17115 fi 17116 17117 # Now new_path has a complete unix path to the binary 17118 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17119 # Keep paths in /bin as-is, but remove trailing .exe if any 17120 new_path="${new_path/%.exe/}" 17121 # Do not save /bin paths to all_fixpath_prefixes! 17122 else 17123 # Not in mixed or Windows style, start by that. 17124 new_path=`cmd //c echo $new_path` 17125 17126 input_path="$new_path" 17127 # Check if we need to convert this using DOS-style short mode. If the path 17128 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17129 # take no chances and rewrite it. 17130 # Note: m4 eats our [], so we need to use [ and ] instead. 17131 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17132 if test "x$has_forbidden_chars" != x; then 17133 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17134 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17135 fi 17136 17137 # Output is in $new_path 17138 17139 windows_path="$new_path" 17140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17141 unix_path=`$CYGPATH -u "$windows_path"` 17142 new_path="$unix_path" 17143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17144 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17145 new_path="$unix_path" 17146 fi 17147 17148 # remove trailing .exe if any 17149 new_path="${new_path/%.exe/}" 17150 17151 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17152 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17153 fi 17154 17155 else 17156 # We're on a posix platform. Hooray! :) 17157 # First separate the path from the arguments. This will split at the first 17158 # space. 17159 complete="$FOUND_MAKE" 17160 path="${complete%% *}" 17161 tmp="$complete EOL" 17162 arguments="${tmp#* }" 17163 17164 # Cannot rely on the command "which" here since it doesn't always work. 17165 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17166 if test -z "$is_absolute_path"; then 17167 # Path to executable is not absolute. Find it. 17168 IFS_save="$IFS" 17169 IFS=: 17170 for p in $PATH; do 17171 if test -f "$p/$path" && test -x "$p/$path"; then 17172 new_path="$p/$path" 17173 break 17174 fi 17175 done 17176 IFS="$IFS_save" 17177 else 17178 # This is an absolute path, we can use it without further modifications. 17179 new_path="$path" 17180 fi 17181 17182 if test "x$new_path" = x; then 17183 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17184 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17185 has_space=`$ECHO "$complete" | $GREP " "` 17186 if test "x$has_space" != x; then 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17188 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17189 fi 17190 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17191 fi 17192 fi 17193 17194 # Now join together the path and the arguments once again 17195 if test "x$arguments" != xEOL; then 17196 new_complete="$new_path ${arguments% *}" 17197 else 17198 new_complete="$new_path" 17199 fi 17200 17201 if test "x$complete" != "x$new_complete"; then 17202 FOUND_MAKE="$new_complete" 17203 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17204 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17205 fi 17206 17207 fi 17208 fi 17209 fi 17210 fi 17211 17212 fi 17213 PATH=$OLD_PATH 17214 fi 17215 fi 17216 17217 if test "x$FOUND_MAKE" = x; then 17218 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 17219 fi 17220 fi 17221 17222 MAKE=$FOUND_MAKE 17223 17224 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17225 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17226 17227 17228 17229 # Test if find supports -delete 17230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17231 $as_echo_n "checking if find supports -delete... " >&6; } 17232 FIND_DELETE="-delete" 17233 17234 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17235 17236 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17237 17238 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17239 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17240 # No, it does not. 17241 rm $DELETEDIR/TestIfFindSupportsDelete 17242 FIND_DELETE="-exec rm \{\} \+" 17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17244 $as_echo "no" >&6; } 17245 else 17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17247 $as_echo "yes" >&6; } 17248 fi 17249 rmdir $DELETEDIR 17250 17251 17252 17253 # These tools might not be installed by default, 17254 # need hint on how to install them. 17255 17256 17257 17258 # Publish this variable in the help. 17259 17260 17261 if test "x$UNZIP" = x; then 17262 # The variable is not set by user, try to locate tool using the code snippet 17263 for ac_prog in unzip 17264 do 17265 # Extract the first word of "$ac_prog", so it can be a program name with args. 17266 set dummy $ac_prog; ac_word=$2 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17268 $as_echo_n "checking for $ac_word... " >&6; } 17269 if ${ac_cv_path_UNZIP+:} false; then : 17270 $as_echo_n "(cached) " >&6 17271 else 17272 case $UNZIP in 17273 [\\/]* | ?:[\\/]*) 17274 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17275 ;; 17276 *) 17277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17278 for as_dir in $PATH 17279 do 17280 IFS=$as_save_IFS 17281 test -z "$as_dir" && as_dir=. 17282 for ac_exec_ext in '' $ac_executable_extensions; do 17283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17284 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17286 break 2 17287 fi 17288 done 17289 done 17290 IFS=$as_save_IFS 17291 17292 ;; 17293 esac 17294 fi 17295 UNZIP=$ac_cv_path_UNZIP 17296 if test -n "$UNZIP"; then 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17298 $as_echo "$UNZIP" >&6; } 17299 else 17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17301 $as_echo "no" >&6; } 17302 fi 17303 17304 17305 test -n "$UNZIP" && break 17306 done 17307 17308 else 17309 # The variable is set, but is it from the command line or the environment? 17310 17311 # Try to remove the string !UNZIP! from our list. 17312 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17313 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17314 # If it failed, the variable was not from the command line. Ignore it, 17315 # but warn the user (except for BASH, which is always set by the calling BASH). 17316 if test "xUNZIP" != xBASH; then 17317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17318 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17319 fi 17320 # Try to locate tool using the code snippet 17321 for ac_prog in unzip 17322 do 17323 # Extract the first word of "$ac_prog", so it can be a program name with args. 17324 set dummy $ac_prog; ac_word=$2 17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17326 $as_echo_n "checking for $ac_word... " >&6; } 17327 if ${ac_cv_path_UNZIP+:} false; then : 17328 $as_echo_n "(cached) " >&6 17329 else 17330 case $UNZIP in 17331 [\\/]* | ?:[\\/]*) 17332 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17333 ;; 17334 *) 17335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17336 for as_dir in $PATH 17337 do 17338 IFS=$as_save_IFS 17339 test -z "$as_dir" && as_dir=. 17340 for ac_exec_ext in '' $ac_executable_extensions; do 17341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17342 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17344 break 2 17345 fi 17346 done 17347 done 17348 IFS=$as_save_IFS 17349 17350 ;; 17351 esac 17352 fi 17353 UNZIP=$ac_cv_path_UNZIP 17354 if test -n "$UNZIP"; then 17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17356 $as_echo "$UNZIP" >&6; } 17357 else 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17359 $as_echo "no" >&6; } 17360 fi 17361 17362 17363 test -n "$UNZIP" && break 17364 done 17365 17366 else 17367 # If it succeeded, then it was overridden by the user. We will use it 17368 # for the tool. 17369 17370 # First remove it from the list of overridden variables, so we can test 17371 # for unknown variables in the end. 17372 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17373 17374 # Check if the provided tool contains a complete path. 17375 tool_specified="$UNZIP" 17376 tool_basename="${tool_specified##*/}" 17377 if test "x$tool_basename" = "x$tool_specified"; then 17378 # A command without a complete path is provided, search $PATH. 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17380 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17381 # Extract the first word of "$tool_basename", so it can be a program name with args. 17382 set dummy $tool_basename; ac_word=$2 17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17384 $as_echo_n "checking for $ac_word... " >&6; } 17385 if ${ac_cv_path_UNZIP+:} false; then : 17386 $as_echo_n "(cached) " >&6 17387 else 17388 case $UNZIP in 17389 [\\/]* | ?:[\\/]*) 17390 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17391 ;; 17392 *) 17393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17394 for as_dir in $PATH 17395 do 17396 IFS=$as_save_IFS 17397 test -z "$as_dir" && as_dir=. 17398 for ac_exec_ext in '' $ac_executable_extensions; do 17399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17400 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17402 break 2 17403 fi 17404 done 17405 done 17406 IFS=$as_save_IFS 17407 17408 ;; 17409 esac 17410 fi 17411 UNZIP=$ac_cv_path_UNZIP 17412 if test -n "$UNZIP"; then 17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17414 $as_echo "$UNZIP" >&6; } 17415 else 17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17417 $as_echo "no" >&6; } 17418 fi 17419 17420 17421 if test "x$UNZIP" = x; then 17422 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17423 fi 17424 else 17425 # Otherwise we believe it is a complete path. Use it as it is. 17426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17427 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17429 $as_echo_n "checking for UNZIP... " >&6; } 17430 if test ! -x "$tool_specified"; then 17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17432 $as_echo "not found" >&6; } 17433 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17434 fi 17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17436 $as_echo "$tool_specified" >&6; } 17437 fi 17438 fi 17439 fi 17440 17441 17442 17443 if test "x$UNZIP" = x; then 17444 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17445 fi 17446 17447 17448 17449 17450 17451 # Publish this variable in the help. 17452 17453 17454 if test "x$ZIP" = x; then 17455 # The variable is not set by user, try to locate tool using the code snippet 17456 for ac_prog in zip 17457 do 17458 # Extract the first word of "$ac_prog", so it can be a program name with args. 17459 set dummy $ac_prog; ac_word=$2 17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17461 $as_echo_n "checking for $ac_word... " >&6; } 17462 if ${ac_cv_path_ZIP+:} false; then : 17463 $as_echo_n "(cached) " >&6 17464 else 17465 case $ZIP in 17466 [\\/]* | ?:[\\/]*) 17467 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17468 ;; 17469 *) 17470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17471 for as_dir in $PATH 17472 do 17473 IFS=$as_save_IFS 17474 test -z "$as_dir" && as_dir=. 17475 for ac_exec_ext in '' $ac_executable_extensions; do 17476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17477 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17479 break 2 17480 fi 17481 done 17482 done 17483 IFS=$as_save_IFS 17484 17485 ;; 17486 esac 17487 fi 17488 ZIP=$ac_cv_path_ZIP 17489 if test -n "$ZIP"; then 17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17491 $as_echo "$ZIP" >&6; } 17492 else 17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17494 $as_echo "no" >&6; } 17495 fi 17496 17497 17498 test -n "$ZIP" && break 17499 done 17500 17501 else 17502 # The variable is set, but is it from the command line or the environment? 17503 17504 # Try to remove the string !ZIP! from our list. 17505 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17506 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17507 # If it failed, the variable was not from the command line. Ignore it, 17508 # but warn the user (except for BASH, which is always set by the calling BASH). 17509 if test "xZIP" != xBASH; then 17510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17511 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17512 fi 17513 # Try to locate tool using the code snippet 17514 for ac_prog in zip 17515 do 17516 # Extract the first word of "$ac_prog", so it can be a program name with args. 17517 set dummy $ac_prog; ac_word=$2 17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17519 $as_echo_n "checking for $ac_word... " >&6; } 17520 if ${ac_cv_path_ZIP+:} false; then : 17521 $as_echo_n "(cached) " >&6 17522 else 17523 case $ZIP in 17524 [\\/]* | ?:[\\/]*) 17525 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17526 ;; 17527 *) 17528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17529 for as_dir in $PATH 17530 do 17531 IFS=$as_save_IFS 17532 test -z "$as_dir" && as_dir=. 17533 for ac_exec_ext in '' $ac_executable_extensions; do 17534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17535 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17537 break 2 17538 fi 17539 done 17540 done 17541 IFS=$as_save_IFS 17542 17543 ;; 17544 esac 17545 fi 17546 ZIP=$ac_cv_path_ZIP 17547 if test -n "$ZIP"; then 17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17549 $as_echo "$ZIP" >&6; } 17550 else 17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17552 $as_echo "no" >&6; } 17553 fi 17554 17555 17556 test -n "$ZIP" && break 17557 done 17558 17559 else 17560 # If it succeeded, then it was overridden by the user. We will use it 17561 # for the tool. 17562 17563 # First remove it from the list of overridden variables, so we can test 17564 # for unknown variables in the end. 17565 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17566 17567 # Check if the provided tool contains a complete path. 17568 tool_specified="$ZIP" 17569 tool_basename="${tool_specified##*/}" 17570 if test "x$tool_basename" = "x$tool_specified"; then 17571 # A command without a complete path is provided, search $PATH. 17572 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17573 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17574 # Extract the first word of "$tool_basename", so it can be a program name with args. 17575 set dummy $tool_basename; ac_word=$2 17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17577 $as_echo_n "checking for $ac_word... " >&6; } 17578 if ${ac_cv_path_ZIP+:} false; then : 17579 $as_echo_n "(cached) " >&6 17580 else 17581 case $ZIP in 17582 [\\/]* | ?:[\\/]*) 17583 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17584 ;; 17585 *) 17586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17587 for as_dir in $PATH 17588 do 17589 IFS=$as_save_IFS 17590 test -z "$as_dir" && as_dir=. 17591 for ac_exec_ext in '' $ac_executable_extensions; do 17592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17593 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17595 break 2 17596 fi 17597 done 17598 done 17599 IFS=$as_save_IFS 17600 17601 ;; 17602 esac 17603 fi 17604 ZIP=$ac_cv_path_ZIP 17605 if test -n "$ZIP"; then 17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17607 $as_echo "$ZIP" >&6; } 17608 else 17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17610 $as_echo "no" >&6; } 17611 fi 17612 17613 17614 if test "x$ZIP" = x; then 17615 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17616 fi 17617 else 17618 # Otherwise we believe it is a complete path. Use it as it is. 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17620 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17622 $as_echo_n "checking for ZIP... " >&6; } 17623 if test ! -x "$tool_specified"; then 17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17625 $as_echo "not found" >&6; } 17626 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17627 fi 17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17629 $as_echo "$tool_specified" >&6; } 17630 fi 17631 fi 17632 fi 17633 17634 17635 17636 if test "x$ZIP" = x; then 17637 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17638 fi 17639 17640 17641 17642 # Non-required basic tools 17643 17644 17645 17646 # Publish this variable in the help. 17647 17648 17649 if test "x$LDD" = x; then 17650 # The variable is not set by user, try to locate tool using the code snippet 17651 for ac_prog in ldd 17652 do 17653 # Extract the first word of "$ac_prog", so it can be a program name with args. 17654 set dummy $ac_prog; ac_word=$2 17655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17656 $as_echo_n "checking for $ac_word... " >&6; } 17657 if ${ac_cv_path_LDD+:} false; then : 17658 $as_echo_n "(cached) " >&6 17659 else 17660 case $LDD in 17661 [\\/]* | ?:[\\/]*) 17662 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17663 ;; 17664 *) 17665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17666 for as_dir in $PATH 17667 do 17668 IFS=$as_save_IFS 17669 test -z "$as_dir" && as_dir=. 17670 for ac_exec_ext in '' $ac_executable_extensions; do 17671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17672 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17674 break 2 17675 fi 17676 done 17677 done 17678 IFS=$as_save_IFS 17679 17680 ;; 17681 esac 17682 fi 17683 LDD=$ac_cv_path_LDD 17684 if test -n "$LDD"; then 17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17686 $as_echo "$LDD" >&6; } 17687 else 17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17689 $as_echo "no" >&6; } 17690 fi 17691 17692 17693 test -n "$LDD" && break 17694 done 17695 17696 else 17697 # The variable is set, but is it from the command line or the environment? 17698 17699 # Try to remove the string !LDD! from our list. 17700 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17701 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17702 # If it failed, the variable was not from the command line. Ignore it, 17703 # but warn the user (except for BASH, which is always set by the calling BASH). 17704 if test "xLDD" != xBASH; then 17705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17706 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17707 fi 17708 # Try to locate tool using the code snippet 17709 for ac_prog in ldd 17710 do 17711 # Extract the first word of "$ac_prog", so it can be a program name with args. 17712 set dummy $ac_prog; ac_word=$2 17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17714 $as_echo_n "checking for $ac_word... " >&6; } 17715 if ${ac_cv_path_LDD+:} false; then : 17716 $as_echo_n "(cached) " >&6 17717 else 17718 case $LDD in 17719 [\\/]* | ?:[\\/]*) 17720 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17721 ;; 17722 *) 17723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17724 for as_dir in $PATH 17725 do 17726 IFS=$as_save_IFS 17727 test -z "$as_dir" && as_dir=. 17728 for ac_exec_ext in '' $ac_executable_extensions; do 17729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17730 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17732 break 2 17733 fi 17734 done 17735 done 17736 IFS=$as_save_IFS 17737 17738 ;; 17739 esac 17740 fi 17741 LDD=$ac_cv_path_LDD 17742 if test -n "$LDD"; then 17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17744 $as_echo "$LDD" >&6; } 17745 else 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17747 $as_echo "no" >&6; } 17748 fi 17749 17750 17751 test -n "$LDD" && break 17752 done 17753 17754 else 17755 # If it succeeded, then it was overridden by the user. We will use it 17756 # for the tool. 17757 17758 # First remove it from the list of overridden variables, so we can test 17759 # for unknown variables in the end. 17760 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17761 17762 # Check if the provided tool contains a complete path. 17763 tool_specified="$LDD" 17764 tool_basename="${tool_specified##*/}" 17765 if test "x$tool_basename" = "x$tool_specified"; then 17766 # A command without a complete path is provided, search $PATH. 17767 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17768 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17769 # Extract the first word of "$tool_basename", so it can be a program name with args. 17770 set dummy $tool_basename; ac_word=$2 17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17772 $as_echo_n "checking for $ac_word... " >&6; } 17773 if ${ac_cv_path_LDD+:} false; then : 17774 $as_echo_n "(cached) " >&6 17775 else 17776 case $LDD in 17777 [\\/]* | ?:[\\/]*) 17778 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17779 ;; 17780 *) 17781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17782 for as_dir in $PATH 17783 do 17784 IFS=$as_save_IFS 17785 test -z "$as_dir" && as_dir=. 17786 for ac_exec_ext in '' $ac_executable_extensions; do 17787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17788 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17790 break 2 17791 fi 17792 done 17793 done 17794 IFS=$as_save_IFS 17795 17796 ;; 17797 esac 17798 fi 17799 LDD=$ac_cv_path_LDD 17800 if test -n "$LDD"; then 17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17802 $as_echo "$LDD" >&6; } 17803 else 17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17805 $as_echo "no" >&6; } 17806 fi 17807 17808 17809 if test "x$LDD" = x; then 17810 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17811 fi 17812 else 17813 # Otherwise we believe it is a complete path. Use it as it is. 17814 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17815 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17817 $as_echo_n "checking for LDD... " >&6; } 17818 if test ! -x "$tool_specified"; then 17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17820 $as_echo "not found" >&6; } 17821 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17822 fi 17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17824 $as_echo "$tool_specified" >&6; } 17825 fi 17826 fi 17827 fi 17828 17829 17830 if test "x$LDD" = "x"; then 17831 # List shared lib dependencies is used for 17832 # debug output and checking for forbidden dependencies. 17833 # We can build without it. 17834 LDD="true" 17835 fi 17836 17837 17838 # Publish this variable in the help. 17839 17840 17841 if test "x$OTOOL" = x; then 17842 # The variable is not set by user, try to locate tool using the code snippet 17843 for ac_prog in otool 17844 do 17845 # Extract the first word of "$ac_prog", so it can be a program name with args. 17846 set dummy $ac_prog; ac_word=$2 17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17848 $as_echo_n "checking for $ac_word... " >&6; } 17849 if ${ac_cv_path_OTOOL+:} false; then : 17850 $as_echo_n "(cached) " >&6 17851 else 17852 case $OTOOL in 17853 [\\/]* | ?:[\\/]*) 17854 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17855 ;; 17856 *) 17857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17858 for as_dir in $PATH 17859 do 17860 IFS=$as_save_IFS 17861 test -z "$as_dir" && as_dir=. 17862 for ac_exec_ext in '' $ac_executable_extensions; do 17863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17864 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17866 break 2 17867 fi 17868 done 17869 done 17870 IFS=$as_save_IFS 17871 17872 ;; 17873 esac 17874 fi 17875 OTOOL=$ac_cv_path_OTOOL 17876 if test -n "$OTOOL"; then 17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17878 $as_echo "$OTOOL" >&6; } 17879 else 17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17881 $as_echo "no" >&6; } 17882 fi 17883 17884 17885 test -n "$OTOOL" && break 17886 done 17887 17888 else 17889 # The variable is set, but is it from the command line or the environment? 17890 17891 # Try to remove the string !OTOOL! from our list. 17892 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 17893 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17894 # If it failed, the variable was not from the command line. Ignore it, 17895 # but warn the user (except for BASH, which is always set by the calling BASH). 17896 if test "xOTOOL" != xBASH; then 17897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 17898 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 17899 fi 17900 # Try to locate tool using the code snippet 17901 for ac_prog in otool 17902 do 17903 # Extract the first word of "$ac_prog", so it can be a program name with args. 17904 set dummy $ac_prog; ac_word=$2 17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17906 $as_echo_n "checking for $ac_word... " >&6; } 17907 if ${ac_cv_path_OTOOL+:} false; then : 17908 $as_echo_n "(cached) " >&6 17909 else 17910 case $OTOOL in 17911 [\\/]* | ?:[\\/]*) 17912 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17913 ;; 17914 *) 17915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17916 for as_dir in $PATH 17917 do 17918 IFS=$as_save_IFS 17919 test -z "$as_dir" && as_dir=. 17920 for ac_exec_ext in '' $ac_executable_extensions; do 17921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17922 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17924 break 2 17925 fi 17926 done 17927 done 17928 IFS=$as_save_IFS 17929 17930 ;; 17931 esac 17932 fi 17933 OTOOL=$ac_cv_path_OTOOL 17934 if test -n "$OTOOL"; then 17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17936 $as_echo "$OTOOL" >&6; } 17937 else 17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17939 $as_echo "no" >&6; } 17940 fi 17941 17942 17943 test -n "$OTOOL" && break 17944 done 17945 17946 else 17947 # If it succeeded, then it was overridden by the user. We will use it 17948 # for the tool. 17949 17950 # First remove it from the list of overridden variables, so we can test 17951 # for unknown variables in the end. 17952 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17953 17954 # Check if the provided tool contains a complete path. 17955 tool_specified="$OTOOL" 17956 tool_basename="${tool_specified##*/}" 17957 if test "x$tool_basename" = "x$tool_specified"; then 17958 # A command without a complete path is provided, search $PATH. 17959 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 17960 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 17961 # Extract the first word of "$tool_basename", so it can be a program name with args. 17962 set dummy $tool_basename; ac_word=$2 17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17964 $as_echo_n "checking for $ac_word... " >&6; } 17965 if ${ac_cv_path_OTOOL+:} false; then : 17966 $as_echo_n "(cached) " >&6 17967 else 17968 case $OTOOL in 17969 [\\/]* | ?:[\\/]*) 17970 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17971 ;; 17972 *) 17973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17974 for as_dir in $PATH 17975 do 17976 IFS=$as_save_IFS 17977 test -z "$as_dir" && as_dir=. 17978 for ac_exec_ext in '' $ac_executable_extensions; do 17979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17980 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17982 break 2 17983 fi 17984 done 17985 done 17986 IFS=$as_save_IFS 17987 17988 ;; 17989 esac 17990 fi 17991 OTOOL=$ac_cv_path_OTOOL 17992 if test -n "$OTOOL"; then 17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17994 $as_echo "$OTOOL" >&6; } 17995 else 17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17997 $as_echo "no" >&6; } 17998 fi 17999 18000 18001 if test "x$OTOOL" = x; then 18002 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18003 fi 18004 else 18005 # Otherwise we believe it is a complete path. Use it as it is. 18006 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 18007 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 18009 $as_echo_n "checking for OTOOL... " >&6; } 18010 if test ! -x "$tool_specified"; then 18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18012 $as_echo "not found" >&6; } 18013 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 18014 fi 18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18016 $as_echo "$tool_specified" >&6; } 18017 fi 18018 fi 18019 fi 18020 18021 18022 if test "x$OTOOL" = "x"; then 18023 OTOOL="true" 18024 fi 18025 18026 18027 # Publish this variable in the help. 18028 18029 18030 if test "x$READELF" = x; then 18031 # The variable is not set by user, try to locate tool using the code snippet 18032 for ac_prog in greadelf readelf 18033 do 18034 # Extract the first word of "$ac_prog", so it can be a program name with args. 18035 set dummy $ac_prog; ac_word=$2 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18037 $as_echo_n "checking for $ac_word... " >&6; } 18038 if ${ac_cv_path_READELF+:} false; then : 18039 $as_echo_n "(cached) " >&6 18040 else 18041 case $READELF in 18042 [\\/]* | ?:[\\/]*) 18043 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18044 ;; 18045 *) 18046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18047 for as_dir in $PATH 18048 do 18049 IFS=$as_save_IFS 18050 test -z "$as_dir" && as_dir=. 18051 for ac_exec_ext in '' $ac_executable_extensions; do 18052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18053 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18055 break 2 18056 fi 18057 done 18058 done 18059 IFS=$as_save_IFS 18060 18061 ;; 18062 esac 18063 fi 18064 READELF=$ac_cv_path_READELF 18065 if test -n "$READELF"; then 18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18067 $as_echo "$READELF" >&6; } 18068 else 18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18070 $as_echo "no" >&6; } 18071 fi 18072 18073 18074 test -n "$READELF" && break 18075 done 18076 18077 else 18078 # The variable is set, but is it from the command line or the environment? 18079 18080 # Try to remove the string !READELF! from our list. 18081 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 18082 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18083 # If it failed, the variable was not from the command line. Ignore it, 18084 # but warn the user (except for BASH, which is always set by the calling BASH). 18085 if test "xREADELF" != xBASH; then 18086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 18087 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 18088 fi 18089 # Try to locate tool using the code snippet 18090 for ac_prog in greadelf readelf 18091 do 18092 # Extract the first word of "$ac_prog", so it can be a program name with args. 18093 set dummy $ac_prog; ac_word=$2 18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18095 $as_echo_n "checking for $ac_word... " >&6; } 18096 if ${ac_cv_path_READELF+:} false; then : 18097 $as_echo_n "(cached) " >&6 18098 else 18099 case $READELF in 18100 [\\/]* | ?:[\\/]*) 18101 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18102 ;; 18103 *) 18104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18105 for as_dir in $PATH 18106 do 18107 IFS=$as_save_IFS 18108 test -z "$as_dir" && as_dir=. 18109 for ac_exec_ext in '' $ac_executable_extensions; do 18110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18111 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18113 break 2 18114 fi 18115 done 18116 done 18117 IFS=$as_save_IFS 18118 18119 ;; 18120 esac 18121 fi 18122 READELF=$ac_cv_path_READELF 18123 if test -n "$READELF"; then 18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18125 $as_echo "$READELF" >&6; } 18126 else 18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18128 $as_echo "no" >&6; } 18129 fi 18130 18131 18132 test -n "$READELF" && break 18133 done 18134 18135 else 18136 # If it succeeded, then it was overridden by the user. We will use it 18137 # for the tool. 18138 18139 # First remove it from the list of overridden variables, so we can test 18140 # for unknown variables in the end. 18141 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18142 18143 # Check if the provided tool contains a complete path. 18144 tool_specified="$READELF" 18145 tool_basename="${tool_specified##*/}" 18146 if test "x$tool_basename" = "x$tool_specified"; then 18147 # A command without a complete path is provided, search $PATH. 18148 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 18149 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 18150 # Extract the first word of "$tool_basename", so it can be a program name with args. 18151 set dummy $tool_basename; ac_word=$2 18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18153 $as_echo_n "checking for $ac_word... " >&6; } 18154 if ${ac_cv_path_READELF+:} false; then : 18155 $as_echo_n "(cached) " >&6 18156 else 18157 case $READELF in 18158 [\\/]* | ?:[\\/]*) 18159 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18160 ;; 18161 *) 18162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18163 for as_dir in $PATH 18164 do 18165 IFS=$as_save_IFS 18166 test -z "$as_dir" && as_dir=. 18167 for ac_exec_ext in '' $ac_executable_extensions; do 18168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18169 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18171 break 2 18172 fi 18173 done 18174 done 18175 IFS=$as_save_IFS 18176 18177 ;; 18178 esac 18179 fi 18180 READELF=$ac_cv_path_READELF 18181 if test -n "$READELF"; then 18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18183 $as_echo "$READELF" >&6; } 18184 else 18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18186 $as_echo "no" >&6; } 18187 fi 18188 18189 18190 if test "x$READELF" = x; then 18191 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18192 fi 18193 else 18194 # Otherwise we believe it is a complete path. Use it as it is. 18195 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18196 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18198 $as_echo_n "checking for READELF... " >&6; } 18199 if test ! -x "$tool_specified"; then 18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18201 $as_echo "not found" >&6; } 18202 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18203 fi 18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18205 $as_echo "$tool_specified" >&6; } 18206 fi 18207 fi 18208 fi 18209 18210 18211 18212 18213 # Publish this variable in the help. 18214 18215 18216 if test "x$HG" = x; then 18217 # The variable is not set by user, try to locate tool using the code snippet 18218 for ac_prog in hg 18219 do 18220 # Extract the first word of "$ac_prog", so it can be a program name with args. 18221 set dummy $ac_prog; ac_word=$2 18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18223 $as_echo_n "checking for $ac_word... " >&6; } 18224 if ${ac_cv_path_HG+:} false; then : 18225 $as_echo_n "(cached) " >&6 18226 else 18227 case $HG in 18228 [\\/]* | ?:[\\/]*) 18229 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18230 ;; 18231 *) 18232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18233 for as_dir in $PATH 18234 do 18235 IFS=$as_save_IFS 18236 test -z "$as_dir" && as_dir=. 18237 for ac_exec_ext in '' $ac_executable_extensions; do 18238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18239 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18241 break 2 18242 fi 18243 done 18244 done 18245 IFS=$as_save_IFS 18246 18247 ;; 18248 esac 18249 fi 18250 HG=$ac_cv_path_HG 18251 if test -n "$HG"; then 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18253 $as_echo "$HG" >&6; } 18254 else 18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18256 $as_echo "no" >&6; } 18257 fi 18258 18259 18260 test -n "$HG" && break 18261 done 18262 18263 else 18264 # The variable is set, but is it from the command line or the environment? 18265 18266 # Try to remove the string !HG! from our list. 18267 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18268 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18269 # If it failed, the variable was not from the command line. Ignore it, 18270 # but warn the user (except for BASH, which is always set by the calling BASH). 18271 if test "xHG" != xBASH; then 18272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18273 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18274 fi 18275 # Try to locate tool using the code snippet 18276 for ac_prog in hg 18277 do 18278 # Extract the first word of "$ac_prog", so it can be a program name with args. 18279 set dummy $ac_prog; ac_word=$2 18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18281 $as_echo_n "checking for $ac_word... " >&6; } 18282 if ${ac_cv_path_HG+:} false; then : 18283 $as_echo_n "(cached) " >&6 18284 else 18285 case $HG in 18286 [\\/]* | ?:[\\/]*) 18287 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18288 ;; 18289 *) 18290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18291 for as_dir in $PATH 18292 do 18293 IFS=$as_save_IFS 18294 test -z "$as_dir" && as_dir=. 18295 for ac_exec_ext in '' $ac_executable_extensions; do 18296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18297 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18299 break 2 18300 fi 18301 done 18302 done 18303 IFS=$as_save_IFS 18304 18305 ;; 18306 esac 18307 fi 18308 HG=$ac_cv_path_HG 18309 if test -n "$HG"; then 18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18311 $as_echo "$HG" >&6; } 18312 else 18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18314 $as_echo "no" >&6; } 18315 fi 18316 18317 18318 test -n "$HG" && break 18319 done 18320 18321 else 18322 # If it succeeded, then it was overridden by the user. We will use it 18323 # for the tool. 18324 18325 # First remove it from the list of overridden variables, so we can test 18326 # for unknown variables in the end. 18327 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18328 18329 # Check if the provided tool contains a complete path. 18330 tool_specified="$HG" 18331 tool_basename="${tool_specified##*/}" 18332 if test "x$tool_basename" = "x$tool_specified"; then 18333 # A command without a complete path is provided, search $PATH. 18334 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18335 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18336 # Extract the first word of "$tool_basename", so it can be a program name with args. 18337 set dummy $tool_basename; ac_word=$2 18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18339 $as_echo_n "checking for $ac_word... " >&6; } 18340 if ${ac_cv_path_HG+:} false; then : 18341 $as_echo_n "(cached) " >&6 18342 else 18343 case $HG in 18344 [\\/]* | ?:[\\/]*) 18345 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18346 ;; 18347 *) 18348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18349 for as_dir in $PATH 18350 do 18351 IFS=$as_save_IFS 18352 test -z "$as_dir" && as_dir=. 18353 for ac_exec_ext in '' $ac_executable_extensions; do 18354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18355 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18357 break 2 18358 fi 18359 done 18360 done 18361 IFS=$as_save_IFS 18362 18363 ;; 18364 esac 18365 fi 18366 HG=$ac_cv_path_HG 18367 if test -n "$HG"; then 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18369 $as_echo "$HG" >&6; } 18370 else 18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18372 $as_echo "no" >&6; } 18373 fi 18374 18375 18376 if test "x$HG" = x; then 18377 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18378 fi 18379 else 18380 # Otherwise we believe it is a complete path. Use it as it is. 18381 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18382 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18384 $as_echo_n "checking for HG... " >&6; } 18385 if test ! -x "$tool_specified"; then 18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18387 $as_echo "not found" >&6; } 18388 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18389 fi 18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18391 $as_echo "$tool_specified" >&6; } 18392 fi 18393 fi 18394 fi 18395 18396 18397 18398 18399 # Publish this variable in the help. 18400 18401 18402 if test "x$STAT" = x; then 18403 # The variable is not set by user, try to locate tool using the code snippet 18404 for ac_prog in stat 18405 do 18406 # Extract the first word of "$ac_prog", so it can be a program name with args. 18407 set dummy $ac_prog; ac_word=$2 18408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18409 $as_echo_n "checking for $ac_word... " >&6; } 18410 if ${ac_cv_path_STAT+:} false; then : 18411 $as_echo_n "(cached) " >&6 18412 else 18413 case $STAT in 18414 [\\/]* | ?:[\\/]*) 18415 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18416 ;; 18417 *) 18418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18419 for as_dir in $PATH 18420 do 18421 IFS=$as_save_IFS 18422 test -z "$as_dir" && as_dir=. 18423 for ac_exec_ext in '' $ac_executable_extensions; do 18424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18425 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18427 break 2 18428 fi 18429 done 18430 done 18431 IFS=$as_save_IFS 18432 18433 ;; 18434 esac 18435 fi 18436 STAT=$ac_cv_path_STAT 18437 if test -n "$STAT"; then 18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18439 $as_echo "$STAT" >&6; } 18440 else 18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18442 $as_echo "no" >&6; } 18443 fi 18444 18445 18446 test -n "$STAT" && break 18447 done 18448 18449 else 18450 # The variable is set, but is it from the command line or the environment? 18451 18452 # Try to remove the string !STAT! from our list. 18453 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18454 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18455 # If it failed, the variable was not from the command line. Ignore it, 18456 # but warn the user (except for BASH, which is always set by the calling BASH). 18457 if test "xSTAT" != xBASH; then 18458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18459 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18460 fi 18461 # Try to locate tool using the code snippet 18462 for ac_prog in stat 18463 do 18464 # Extract the first word of "$ac_prog", so it can be a program name with args. 18465 set dummy $ac_prog; ac_word=$2 18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18467 $as_echo_n "checking for $ac_word... " >&6; } 18468 if ${ac_cv_path_STAT+:} false; then : 18469 $as_echo_n "(cached) " >&6 18470 else 18471 case $STAT in 18472 [\\/]* | ?:[\\/]*) 18473 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18474 ;; 18475 *) 18476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18477 for as_dir in $PATH 18478 do 18479 IFS=$as_save_IFS 18480 test -z "$as_dir" && as_dir=. 18481 for ac_exec_ext in '' $ac_executable_extensions; do 18482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18483 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18485 break 2 18486 fi 18487 done 18488 done 18489 IFS=$as_save_IFS 18490 18491 ;; 18492 esac 18493 fi 18494 STAT=$ac_cv_path_STAT 18495 if test -n "$STAT"; then 18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18497 $as_echo "$STAT" >&6; } 18498 else 18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18500 $as_echo "no" >&6; } 18501 fi 18502 18503 18504 test -n "$STAT" && break 18505 done 18506 18507 else 18508 # If it succeeded, then it was overridden by the user. We will use it 18509 # for the tool. 18510 18511 # First remove it from the list of overridden variables, so we can test 18512 # for unknown variables in the end. 18513 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18514 18515 # Check if the provided tool contains a complete path. 18516 tool_specified="$STAT" 18517 tool_basename="${tool_specified##*/}" 18518 if test "x$tool_basename" = "x$tool_specified"; then 18519 # A command without a complete path is provided, search $PATH. 18520 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18521 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18522 # Extract the first word of "$tool_basename", so it can be a program name with args. 18523 set dummy $tool_basename; ac_word=$2 18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18525 $as_echo_n "checking for $ac_word... " >&6; } 18526 if ${ac_cv_path_STAT+:} false; then : 18527 $as_echo_n "(cached) " >&6 18528 else 18529 case $STAT in 18530 [\\/]* | ?:[\\/]*) 18531 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18532 ;; 18533 *) 18534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18535 for as_dir in $PATH 18536 do 18537 IFS=$as_save_IFS 18538 test -z "$as_dir" && as_dir=. 18539 for ac_exec_ext in '' $ac_executable_extensions; do 18540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18541 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18543 break 2 18544 fi 18545 done 18546 done 18547 IFS=$as_save_IFS 18548 18549 ;; 18550 esac 18551 fi 18552 STAT=$ac_cv_path_STAT 18553 if test -n "$STAT"; then 18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18555 $as_echo "$STAT" >&6; } 18556 else 18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18558 $as_echo "no" >&6; } 18559 fi 18560 18561 18562 if test "x$STAT" = x; then 18563 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18564 fi 18565 else 18566 # Otherwise we believe it is a complete path. Use it as it is. 18567 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18568 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18570 $as_echo_n "checking for STAT... " >&6; } 18571 if test ! -x "$tool_specified"; then 18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18573 $as_echo "not found" >&6; } 18574 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18575 fi 18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18577 $as_echo "$tool_specified" >&6; } 18578 fi 18579 fi 18580 fi 18581 18582 18583 18584 18585 # Publish this variable in the help. 18586 18587 18588 if test "x$TIME" = x; then 18589 # The variable is not set by user, try to locate tool using the code snippet 18590 for ac_prog in time 18591 do 18592 # Extract the first word of "$ac_prog", so it can be a program name with args. 18593 set dummy $ac_prog; ac_word=$2 18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18595 $as_echo_n "checking for $ac_word... " >&6; } 18596 if ${ac_cv_path_TIME+:} false; then : 18597 $as_echo_n "(cached) " >&6 18598 else 18599 case $TIME in 18600 [\\/]* | ?:[\\/]*) 18601 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18602 ;; 18603 *) 18604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18605 for as_dir in $PATH 18606 do 18607 IFS=$as_save_IFS 18608 test -z "$as_dir" && as_dir=. 18609 for ac_exec_ext in '' $ac_executable_extensions; do 18610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18611 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18613 break 2 18614 fi 18615 done 18616 done 18617 IFS=$as_save_IFS 18618 18619 ;; 18620 esac 18621 fi 18622 TIME=$ac_cv_path_TIME 18623 if test -n "$TIME"; then 18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18625 $as_echo "$TIME" >&6; } 18626 else 18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18628 $as_echo "no" >&6; } 18629 fi 18630 18631 18632 test -n "$TIME" && break 18633 done 18634 18635 else 18636 # The variable is set, but is it from the command line or the environment? 18637 18638 # Try to remove the string !TIME! from our list. 18639 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18640 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18641 # If it failed, the variable was not from the command line. Ignore it, 18642 # but warn the user (except for BASH, which is always set by the calling BASH). 18643 if test "xTIME" != xBASH; then 18644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18645 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18646 fi 18647 # Try to locate tool using the code snippet 18648 for ac_prog in time 18649 do 18650 # Extract the first word of "$ac_prog", so it can be a program name with args. 18651 set dummy $ac_prog; ac_word=$2 18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18653 $as_echo_n "checking for $ac_word... " >&6; } 18654 if ${ac_cv_path_TIME+:} false; then : 18655 $as_echo_n "(cached) " >&6 18656 else 18657 case $TIME in 18658 [\\/]* | ?:[\\/]*) 18659 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18660 ;; 18661 *) 18662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18663 for as_dir in $PATH 18664 do 18665 IFS=$as_save_IFS 18666 test -z "$as_dir" && as_dir=. 18667 for ac_exec_ext in '' $ac_executable_extensions; do 18668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18669 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18671 break 2 18672 fi 18673 done 18674 done 18675 IFS=$as_save_IFS 18676 18677 ;; 18678 esac 18679 fi 18680 TIME=$ac_cv_path_TIME 18681 if test -n "$TIME"; then 18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18683 $as_echo "$TIME" >&6; } 18684 else 18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18686 $as_echo "no" >&6; } 18687 fi 18688 18689 18690 test -n "$TIME" && break 18691 done 18692 18693 else 18694 # If it succeeded, then it was overridden by the user. We will use it 18695 # for the tool. 18696 18697 # First remove it from the list of overridden variables, so we can test 18698 # for unknown variables in the end. 18699 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18700 18701 # Check if the provided tool contains a complete path. 18702 tool_specified="$TIME" 18703 tool_basename="${tool_specified##*/}" 18704 if test "x$tool_basename" = "x$tool_specified"; then 18705 # A command without a complete path is provided, search $PATH. 18706 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18707 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18708 # Extract the first word of "$tool_basename", so it can be a program name with args. 18709 set dummy $tool_basename; ac_word=$2 18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18711 $as_echo_n "checking for $ac_word... " >&6; } 18712 if ${ac_cv_path_TIME+:} false; then : 18713 $as_echo_n "(cached) " >&6 18714 else 18715 case $TIME in 18716 [\\/]* | ?:[\\/]*) 18717 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18718 ;; 18719 *) 18720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18721 for as_dir in $PATH 18722 do 18723 IFS=$as_save_IFS 18724 test -z "$as_dir" && as_dir=. 18725 for ac_exec_ext in '' $ac_executable_extensions; do 18726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18727 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18729 break 2 18730 fi 18731 done 18732 done 18733 IFS=$as_save_IFS 18734 18735 ;; 18736 esac 18737 fi 18738 TIME=$ac_cv_path_TIME 18739 if test -n "$TIME"; then 18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18741 $as_echo "$TIME" >&6; } 18742 else 18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18744 $as_echo "no" >&6; } 18745 fi 18746 18747 18748 if test "x$TIME" = x; then 18749 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18750 fi 18751 else 18752 # Otherwise we believe it is a complete path. Use it as it is. 18753 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18754 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18756 $as_echo_n "checking for TIME... " >&6; } 18757 if test ! -x "$tool_specified"; then 18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18759 $as_echo "not found" >&6; } 18760 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18761 fi 18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18763 $as_echo "$tool_specified" >&6; } 18764 fi 18765 fi 18766 fi 18767 18768 18769 # Check if it's GNU time 18770 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18771 if test "x$IS_GNU_TIME" != x; then 18772 IS_GNU_TIME=yes 18773 else 18774 IS_GNU_TIME=no 18775 fi 18776 18777 18778 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18779 18780 18781 18782 # Publish this variable in the help. 18783 18784 18785 if test "x$COMM" = x; then 18786 # The variable is not set by user, try to locate tool using the code snippet 18787 for ac_prog in comm 18788 do 18789 # Extract the first word of "$ac_prog", so it can be a program name with args. 18790 set dummy $ac_prog; ac_word=$2 18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18792 $as_echo_n "checking for $ac_word... " >&6; } 18793 if ${ac_cv_path_COMM+:} false; then : 18794 $as_echo_n "(cached) " >&6 18795 else 18796 case $COMM in 18797 [\\/]* | ?:[\\/]*) 18798 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18799 ;; 18800 *) 18801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18802 for as_dir in $PATH 18803 do 18804 IFS=$as_save_IFS 18805 test -z "$as_dir" && as_dir=. 18806 for ac_exec_ext in '' $ac_executable_extensions; do 18807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18808 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18810 break 2 18811 fi 18812 done 18813 done 18814 IFS=$as_save_IFS 18815 18816 ;; 18817 esac 18818 fi 18819 COMM=$ac_cv_path_COMM 18820 if test -n "$COMM"; then 18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18822 $as_echo "$COMM" >&6; } 18823 else 18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18825 $as_echo "no" >&6; } 18826 fi 18827 18828 18829 test -n "$COMM" && break 18830 done 18831 18832 else 18833 # The variable is set, but is it from the command line or the environment? 18834 18835 # Try to remove the string !COMM! from our list. 18836 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18837 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18838 # If it failed, the variable was not from the command line. Ignore it, 18839 # but warn the user (except for BASH, which is always set by the calling BASH). 18840 if test "xCOMM" != xBASH; then 18841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18842 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18843 fi 18844 # Try to locate tool using the code snippet 18845 for ac_prog in comm 18846 do 18847 # Extract the first word of "$ac_prog", so it can be a program name with args. 18848 set dummy $ac_prog; ac_word=$2 18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18850 $as_echo_n "checking for $ac_word... " >&6; } 18851 if ${ac_cv_path_COMM+:} false; then : 18852 $as_echo_n "(cached) " >&6 18853 else 18854 case $COMM in 18855 [\\/]* | ?:[\\/]*) 18856 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18857 ;; 18858 *) 18859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18860 for as_dir in $PATH 18861 do 18862 IFS=$as_save_IFS 18863 test -z "$as_dir" && as_dir=. 18864 for ac_exec_ext in '' $ac_executable_extensions; do 18865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18866 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18868 break 2 18869 fi 18870 done 18871 done 18872 IFS=$as_save_IFS 18873 18874 ;; 18875 esac 18876 fi 18877 COMM=$ac_cv_path_COMM 18878 if test -n "$COMM"; then 18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18880 $as_echo "$COMM" >&6; } 18881 else 18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18883 $as_echo "no" >&6; } 18884 fi 18885 18886 18887 test -n "$COMM" && break 18888 done 18889 18890 else 18891 # If it succeeded, then it was overridden by the user. We will use it 18892 # for the tool. 18893 18894 # First remove it from the list of overridden variables, so we can test 18895 # for unknown variables in the end. 18896 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18897 18898 # Check if the provided tool contains a complete path. 18899 tool_specified="$COMM" 18900 tool_basename="${tool_specified##*/}" 18901 if test "x$tool_basename" = "x$tool_specified"; then 18902 # A command without a complete path is provided, search $PATH. 18903 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18904 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18905 # Extract the first word of "$tool_basename", so it can be a program name with args. 18906 set dummy $tool_basename; ac_word=$2 18907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18908 $as_echo_n "checking for $ac_word... " >&6; } 18909 if ${ac_cv_path_COMM+:} false; then : 18910 $as_echo_n "(cached) " >&6 18911 else 18912 case $COMM in 18913 [\\/]* | ?:[\\/]*) 18914 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18915 ;; 18916 *) 18917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18918 for as_dir in $PATH 18919 do 18920 IFS=$as_save_IFS 18921 test -z "$as_dir" && as_dir=. 18922 for ac_exec_ext in '' $ac_executable_extensions; do 18923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18924 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18926 break 2 18927 fi 18928 done 18929 done 18930 IFS=$as_save_IFS 18931 18932 ;; 18933 esac 18934 fi 18935 COMM=$ac_cv_path_COMM 18936 if test -n "$COMM"; then 18937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18938 $as_echo "$COMM" >&6; } 18939 else 18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18941 $as_echo "no" >&6; } 18942 fi 18943 18944 18945 if test "x$COMM" = x; then 18946 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18947 fi 18948 else 18949 # Otherwise we believe it is a complete path. Use it as it is. 18950 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 18951 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 18952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 18953 $as_echo_n "checking for COMM... " >&6; } 18954 if test ! -x "$tool_specified"; then 18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18956 $as_echo "not found" >&6; } 18957 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 18958 fi 18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18960 $as_echo "$tool_specified" >&6; } 18961 fi 18962 fi 18963 fi 18964 18965 18966 18967 if test "x$COMM" = x; then 18968 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 18969 fi 18970 18971 18972 fi 18973 18974 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18975 18976 18977 18978 # Publish this variable in the help. 18979 18980 18981 if test "x$DSYMUTIL" = x; then 18982 # The variable is not set by user, try to locate tool using the code snippet 18983 for ac_prog in dsymutil 18984 do 18985 # Extract the first word of "$ac_prog", so it can be a program name with args. 18986 set dummy $ac_prog; ac_word=$2 18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18988 $as_echo_n "checking for $ac_word... " >&6; } 18989 if ${ac_cv_path_DSYMUTIL+:} false; then : 18990 $as_echo_n "(cached) " >&6 18991 else 18992 case $DSYMUTIL in 18993 [\\/]* | ?:[\\/]*) 18994 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18995 ;; 18996 *) 18997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18998 for as_dir in $PATH 18999 do 19000 IFS=$as_save_IFS 19001 test -z "$as_dir" && as_dir=. 19002 for ac_exec_ext in '' $ac_executable_extensions; do 19003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19004 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19006 break 2 19007 fi 19008 done 19009 done 19010 IFS=$as_save_IFS 19011 19012 ;; 19013 esac 19014 fi 19015 DSYMUTIL=$ac_cv_path_DSYMUTIL 19016 if test -n "$DSYMUTIL"; then 19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19018 $as_echo "$DSYMUTIL" >&6; } 19019 else 19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19021 $as_echo "no" >&6; } 19022 fi 19023 19024 19025 test -n "$DSYMUTIL" && break 19026 done 19027 19028 else 19029 # The variable is set, but is it from the command line or the environment? 19030 19031 # Try to remove the string !DSYMUTIL! from our list. 19032 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 19033 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19034 # If it failed, the variable was not from the command line. Ignore it, 19035 # but warn the user (except for BASH, which is always set by the calling BASH). 19036 if test "xDSYMUTIL" != xBASH; then 19037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 19038 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 19039 fi 19040 # Try to locate tool using the code snippet 19041 for ac_prog in dsymutil 19042 do 19043 # Extract the first word of "$ac_prog", so it can be a program name with args. 19044 set dummy $ac_prog; ac_word=$2 19045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19046 $as_echo_n "checking for $ac_word... " >&6; } 19047 if ${ac_cv_path_DSYMUTIL+:} false; then : 19048 $as_echo_n "(cached) " >&6 19049 else 19050 case $DSYMUTIL in 19051 [\\/]* | ?:[\\/]*) 19052 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19053 ;; 19054 *) 19055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19056 for as_dir in $PATH 19057 do 19058 IFS=$as_save_IFS 19059 test -z "$as_dir" && as_dir=. 19060 for ac_exec_ext in '' $ac_executable_extensions; do 19061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19062 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19064 break 2 19065 fi 19066 done 19067 done 19068 IFS=$as_save_IFS 19069 19070 ;; 19071 esac 19072 fi 19073 DSYMUTIL=$ac_cv_path_DSYMUTIL 19074 if test -n "$DSYMUTIL"; then 19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19076 $as_echo "$DSYMUTIL" >&6; } 19077 else 19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19079 $as_echo "no" >&6; } 19080 fi 19081 19082 19083 test -n "$DSYMUTIL" && break 19084 done 19085 19086 else 19087 # If it succeeded, then it was overridden by the user. We will use it 19088 # for the tool. 19089 19090 # First remove it from the list of overridden variables, so we can test 19091 # for unknown variables in the end. 19092 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19093 19094 # Check if the provided tool contains a complete path. 19095 tool_specified="$DSYMUTIL" 19096 tool_basename="${tool_specified##*/}" 19097 if test "x$tool_basename" = "x$tool_specified"; then 19098 # A command without a complete path is provided, search $PATH. 19099 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 19100 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 19101 # Extract the first word of "$tool_basename", so it can be a program name with args. 19102 set dummy $tool_basename; ac_word=$2 19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19104 $as_echo_n "checking for $ac_word... " >&6; } 19105 if ${ac_cv_path_DSYMUTIL+:} false; then : 19106 $as_echo_n "(cached) " >&6 19107 else 19108 case $DSYMUTIL in 19109 [\\/]* | ?:[\\/]*) 19110 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19111 ;; 19112 *) 19113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19114 for as_dir in $PATH 19115 do 19116 IFS=$as_save_IFS 19117 test -z "$as_dir" && as_dir=. 19118 for ac_exec_ext in '' $ac_executable_extensions; do 19119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19120 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19122 break 2 19123 fi 19124 done 19125 done 19126 IFS=$as_save_IFS 19127 19128 ;; 19129 esac 19130 fi 19131 DSYMUTIL=$ac_cv_path_DSYMUTIL 19132 if test -n "$DSYMUTIL"; then 19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19134 $as_echo "$DSYMUTIL" >&6; } 19135 else 19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19137 $as_echo "no" >&6; } 19138 fi 19139 19140 19141 if test "x$DSYMUTIL" = x; then 19142 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19143 fi 19144 else 19145 # Otherwise we believe it is a complete path. Use it as it is. 19146 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 19147 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 19149 $as_echo_n "checking for DSYMUTIL... " >&6; } 19150 if test ! -x "$tool_specified"; then 19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19152 $as_echo "not found" >&6; } 19153 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 19154 fi 19155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19156 $as_echo "$tool_specified" >&6; } 19157 fi 19158 fi 19159 fi 19160 19161 19162 19163 if test "x$DSYMUTIL" = x; then 19164 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19165 fi 19166 19167 19168 19169 19170 19171 # Publish this variable in the help. 19172 19173 19174 if test "x$XATTR" = x; then 19175 # The variable is not set by user, try to locate tool using the code snippet 19176 for ac_prog in xattr 19177 do 19178 # Extract the first word of "$ac_prog", so it can be a program name with args. 19179 set dummy $ac_prog; ac_word=$2 19180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19181 $as_echo_n "checking for $ac_word... " >&6; } 19182 if ${ac_cv_path_XATTR+:} false; then : 19183 $as_echo_n "(cached) " >&6 19184 else 19185 case $XATTR in 19186 [\\/]* | ?:[\\/]*) 19187 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19188 ;; 19189 *) 19190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19191 for as_dir in $PATH 19192 do 19193 IFS=$as_save_IFS 19194 test -z "$as_dir" && as_dir=. 19195 for ac_exec_ext in '' $ac_executable_extensions; do 19196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19197 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19199 break 2 19200 fi 19201 done 19202 done 19203 IFS=$as_save_IFS 19204 19205 ;; 19206 esac 19207 fi 19208 XATTR=$ac_cv_path_XATTR 19209 if test -n "$XATTR"; then 19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19211 $as_echo "$XATTR" >&6; } 19212 else 19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19214 $as_echo "no" >&6; } 19215 fi 19216 19217 19218 test -n "$XATTR" && break 19219 done 19220 19221 else 19222 # The variable is set, but is it from the command line or the environment? 19223 19224 # Try to remove the string !XATTR! from our list. 19225 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19226 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19227 # If it failed, the variable was not from the command line. Ignore it, 19228 # but warn the user (except for BASH, which is always set by the calling BASH). 19229 if test "xXATTR" != xBASH; then 19230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19231 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19232 fi 19233 # Try to locate tool using the code snippet 19234 for ac_prog in xattr 19235 do 19236 # Extract the first word of "$ac_prog", so it can be a program name with args. 19237 set dummy $ac_prog; ac_word=$2 19238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19239 $as_echo_n "checking for $ac_word... " >&6; } 19240 if ${ac_cv_path_XATTR+:} false; then : 19241 $as_echo_n "(cached) " >&6 19242 else 19243 case $XATTR in 19244 [\\/]* | ?:[\\/]*) 19245 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19246 ;; 19247 *) 19248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19249 for as_dir in $PATH 19250 do 19251 IFS=$as_save_IFS 19252 test -z "$as_dir" && as_dir=. 19253 for ac_exec_ext in '' $ac_executable_extensions; do 19254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19255 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19257 break 2 19258 fi 19259 done 19260 done 19261 IFS=$as_save_IFS 19262 19263 ;; 19264 esac 19265 fi 19266 XATTR=$ac_cv_path_XATTR 19267 if test -n "$XATTR"; then 19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19269 $as_echo "$XATTR" >&6; } 19270 else 19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19272 $as_echo "no" >&6; } 19273 fi 19274 19275 19276 test -n "$XATTR" && break 19277 done 19278 19279 else 19280 # If it succeeded, then it was overridden by the user. We will use it 19281 # for the tool. 19282 19283 # First remove it from the list of overridden variables, so we can test 19284 # for unknown variables in the end. 19285 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19286 19287 # Check if the provided tool contains a complete path. 19288 tool_specified="$XATTR" 19289 tool_basename="${tool_specified##*/}" 19290 if test "x$tool_basename" = "x$tool_specified"; then 19291 # A command without a complete path is provided, search $PATH. 19292 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19293 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19294 # Extract the first word of "$tool_basename", so it can be a program name with args. 19295 set dummy $tool_basename; ac_word=$2 19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19297 $as_echo_n "checking for $ac_word... " >&6; } 19298 if ${ac_cv_path_XATTR+:} false; then : 19299 $as_echo_n "(cached) " >&6 19300 else 19301 case $XATTR in 19302 [\\/]* | ?:[\\/]*) 19303 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19304 ;; 19305 *) 19306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19307 for as_dir in $PATH 19308 do 19309 IFS=$as_save_IFS 19310 test -z "$as_dir" && as_dir=. 19311 for ac_exec_ext in '' $ac_executable_extensions; do 19312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19313 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19315 break 2 19316 fi 19317 done 19318 done 19319 IFS=$as_save_IFS 19320 19321 ;; 19322 esac 19323 fi 19324 XATTR=$ac_cv_path_XATTR 19325 if test -n "$XATTR"; then 19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19327 $as_echo "$XATTR" >&6; } 19328 else 19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19330 $as_echo "no" >&6; } 19331 fi 19332 19333 19334 if test "x$XATTR" = x; then 19335 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19336 fi 19337 else 19338 # Otherwise we believe it is a complete path. Use it as it is. 19339 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19340 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19342 $as_echo_n "checking for XATTR... " >&6; } 19343 if test ! -x "$tool_specified"; then 19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19345 $as_echo "not found" >&6; } 19346 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19347 fi 19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19349 $as_echo "$tool_specified" >&6; } 19350 fi 19351 fi 19352 fi 19353 19354 19355 19356 if test "x$XATTR" = x; then 19357 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19358 fi 19359 19360 19361 19362 19363 # Publish this variable in the help. 19364 19365 19366 if test "x$CODESIGN" = x; then 19367 # The variable is not set by user, try to locate tool using the code snippet 19368 for ac_prog in codesign 19369 do 19370 # Extract the first word of "$ac_prog", so it can be a program name with args. 19371 set dummy $ac_prog; ac_word=$2 19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19373 $as_echo_n "checking for $ac_word... " >&6; } 19374 if ${ac_cv_path_CODESIGN+:} false; then : 19375 $as_echo_n "(cached) " >&6 19376 else 19377 case $CODESIGN in 19378 [\\/]* | ?:[\\/]*) 19379 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19380 ;; 19381 *) 19382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19383 for as_dir in $PATH 19384 do 19385 IFS=$as_save_IFS 19386 test -z "$as_dir" && as_dir=. 19387 for ac_exec_ext in '' $ac_executable_extensions; do 19388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19389 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19391 break 2 19392 fi 19393 done 19394 done 19395 IFS=$as_save_IFS 19396 19397 ;; 19398 esac 19399 fi 19400 CODESIGN=$ac_cv_path_CODESIGN 19401 if test -n "$CODESIGN"; then 19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19403 $as_echo "$CODESIGN" >&6; } 19404 else 19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19406 $as_echo "no" >&6; } 19407 fi 19408 19409 19410 test -n "$CODESIGN" && break 19411 done 19412 19413 else 19414 # The variable is set, but is it from the command line or the environment? 19415 19416 # Try to remove the string !CODESIGN! from our list. 19417 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19418 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19419 # If it failed, the variable was not from the command line. Ignore it, 19420 # but warn the user (except for BASH, which is always set by the calling BASH). 19421 if test "xCODESIGN" != xBASH; then 19422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19423 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19424 fi 19425 # Try to locate tool using the code snippet 19426 for ac_prog in codesign 19427 do 19428 # Extract the first word of "$ac_prog", so it can be a program name with args. 19429 set dummy $ac_prog; ac_word=$2 19430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19431 $as_echo_n "checking for $ac_word... " >&6; } 19432 if ${ac_cv_path_CODESIGN+:} false; then : 19433 $as_echo_n "(cached) " >&6 19434 else 19435 case $CODESIGN in 19436 [\\/]* | ?:[\\/]*) 19437 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19438 ;; 19439 *) 19440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19441 for as_dir in $PATH 19442 do 19443 IFS=$as_save_IFS 19444 test -z "$as_dir" && as_dir=. 19445 for ac_exec_ext in '' $ac_executable_extensions; do 19446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19447 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19449 break 2 19450 fi 19451 done 19452 done 19453 IFS=$as_save_IFS 19454 19455 ;; 19456 esac 19457 fi 19458 CODESIGN=$ac_cv_path_CODESIGN 19459 if test -n "$CODESIGN"; then 19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19461 $as_echo "$CODESIGN" >&6; } 19462 else 19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19464 $as_echo "no" >&6; } 19465 fi 19466 19467 19468 test -n "$CODESIGN" && break 19469 done 19470 19471 else 19472 # If it succeeded, then it was overridden by the user. We will use it 19473 # for the tool. 19474 19475 # First remove it from the list of overridden variables, so we can test 19476 # for unknown variables in the end. 19477 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19478 19479 # Check if the provided tool contains a complete path. 19480 tool_specified="$CODESIGN" 19481 tool_basename="${tool_specified##*/}" 19482 if test "x$tool_basename" = "x$tool_specified"; then 19483 # A command without a complete path is provided, search $PATH. 19484 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19485 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19486 # Extract the first word of "$tool_basename", so it can be a program name with args. 19487 set dummy $tool_basename; ac_word=$2 19488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19489 $as_echo_n "checking for $ac_word... " >&6; } 19490 if ${ac_cv_path_CODESIGN+:} false; then : 19491 $as_echo_n "(cached) " >&6 19492 else 19493 case $CODESIGN in 19494 [\\/]* | ?:[\\/]*) 19495 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19496 ;; 19497 *) 19498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19499 for as_dir in $PATH 19500 do 19501 IFS=$as_save_IFS 19502 test -z "$as_dir" && as_dir=. 19503 for ac_exec_ext in '' $ac_executable_extensions; do 19504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19505 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19507 break 2 19508 fi 19509 done 19510 done 19511 IFS=$as_save_IFS 19512 19513 ;; 19514 esac 19515 fi 19516 CODESIGN=$ac_cv_path_CODESIGN 19517 if test -n "$CODESIGN"; then 19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19519 $as_echo "$CODESIGN" >&6; } 19520 else 19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19522 $as_echo "no" >&6; } 19523 fi 19524 19525 19526 if test "x$CODESIGN" = x; then 19527 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19528 fi 19529 else 19530 # Otherwise we believe it is a complete path. Use it as it is. 19531 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19532 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19534 $as_echo_n "checking for CODESIGN... " >&6; } 19535 if test ! -x "$tool_specified"; then 19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19537 $as_echo "not found" >&6; } 19538 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19539 fi 19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19541 $as_echo "$tool_specified" >&6; } 19542 fi 19543 fi 19544 fi 19545 19546 19547 if test "x$CODESIGN" != "x"; then 19548 # Verify that the openjdk_codesign certificate is present 19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19550 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19551 rm -f codesign-testfile 19552 touch codesign-testfile 19553 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19554 rm -f codesign-testfile 19555 if test "x$CODESIGN" = x; then 19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19557 $as_echo "no" >&6; } 19558 else 19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19560 $as_echo "yes" >&6; } 19561 fi 19562 fi 19563 fi 19564 19565 19566 # Check if pkg-config is available. 19567 19568 19569 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19570 if test -n "$ac_tool_prefix"; then 19571 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19572 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19574 $as_echo_n "checking for $ac_word... " >&6; } 19575 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19576 $as_echo_n "(cached) " >&6 19577 else 19578 case $PKG_CONFIG in 19579 [\\/]* | ?:[\\/]*) 19580 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19581 ;; 19582 *) 19583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19584 for as_dir in $PATH 19585 do 19586 IFS=$as_save_IFS 19587 test -z "$as_dir" && as_dir=. 19588 for ac_exec_ext in '' $ac_executable_extensions; do 19589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19590 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19592 break 2 19593 fi 19594 done 19595 done 19596 IFS=$as_save_IFS 19597 19598 ;; 19599 esac 19600 fi 19601 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19602 if test -n "$PKG_CONFIG"; then 19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19604 $as_echo "$PKG_CONFIG" >&6; } 19605 else 19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19607 $as_echo "no" >&6; } 19608 fi 19609 19610 19611 fi 19612 if test -z "$ac_cv_path_PKG_CONFIG"; then 19613 ac_pt_PKG_CONFIG=$PKG_CONFIG 19614 # Extract the first word of "pkg-config", so it can be a program name with args. 19615 set dummy pkg-config; ac_word=$2 19616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19617 $as_echo_n "checking for $ac_word... " >&6; } 19618 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19619 $as_echo_n "(cached) " >&6 19620 else 19621 case $ac_pt_PKG_CONFIG in 19622 [\\/]* | ?:[\\/]*) 19623 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19624 ;; 19625 *) 19626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19627 for as_dir in $PATH 19628 do 19629 IFS=$as_save_IFS 19630 test -z "$as_dir" && as_dir=. 19631 for ac_exec_ext in '' $ac_executable_extensions; do 19632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19633 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19635 break 2 19636 fi 19637 done 19638 done 19639 IFS=$as_save_IFS 19640 19641 ;; 19642 esac 19643 fi 19644 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19645 if test -n "$ac_pt_PKG_CONFIG"; then 19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19647 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19648 else 19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19650 $as_echo "no" >&6; } 19651 fi 19652 19653 if test "x$ac_pt_PKG_CONFIG" = x; then 19654 PKG_CONFIG="" 19655 else 19656 case $cross_compiling:$ac_tool_warned in 19657 yes:) 19658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19660 ac_tool_warned=yes ;; 19661 esac 19662 PKG_CONFIG=$ac_pt_PKG_CONFIG 19663 fi 19664 else 19665 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19666 fi 19667 19668 fi 19669 if test -n "$PKG_CONFIG"; then 19670 _pkg_min_version=0.9.0 19671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19672 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19673 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19675 $as_echo "yes" >&6; } 19676 else 19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19678 $as_echo "no" >&6; } 19679 PKG_CONFIG="" 19680 fi 19681 19682 fi 19683 19684 # After basic tools have been setup, we can check build os specific details. 19685 19686 ############################################################################### 19687 19688 # Note that this is the build platform OS version! 19689 19690 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19691 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19692 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19693 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19694 19695 19696 19697 19698 19699 # Setup builddeps, for automatic downloading of tools we need. 19700 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19701 # boot-jdk setup, but we need to have basic tools setup first. 19702 19703 19704 # Check whether --with-builddeps-conf was given. 19705 if test "${with_builddeps_conf+set}" = set; then : 19706 withval=$with_builddeps_conf; 19707 fi 19708 19709 19710 19711 # Check whether --with-builddeps-server was given. 19712 if test "${with_builddeps_server+set}" = set; then : 19713 withval=$with_builddeps_server; 19714 fi 19715 19716 19717 19718 # Check whether --with-builddeps-dir was given. 19719 if test "${with_builddeps_dir+set}" = set; then : 19720 withval=$with_builddeps_dir; 19721 else 19722 with_builddeps_dir=/localhome/builddeps 19723 fi 19724 19725 19726 19727 # Check whether --with-builddeps-group was given. 19728 if test "${with_builddeps_group+set}" = set; then : 19729 withval=$with_builddeps_group; 19730 fi 19731 19732 19733 19734 19735 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19736 if test "x$with_builddeps_conf" != x; then 19737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19738 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19739 builddepsfile=$with_builddeps_conf 19740 if test -s $builddepsfile; then 19741 . $builddepsfile 19742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19743 $as_echo "loaded!" >&6; } 19744 else 19745 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19746 fi 19747 else 19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19749 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19750 builddepsfile=`mktemp` 19751 touch $builddepsfile 19752 # Put all found confs into a single file. 19753 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19754 # Source the file to acquire the variables 19755 if test -s $builddepsfile; then 19756 . $builddepsfile 19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19758 $as_echo "found at least one!" >&6; } 19759 else 19760 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19761 fi 19762 fi 19763 # Create build and target names that use _ instead of "-" and ".". 19764 # This is necessary to use them in variable names. 19765 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19766 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19767 # Extract rewrite information for build and target 19768 eval rewritten_build=\${REWRITE_${build_var}} 19769 if test "x$rewritten_build" = x; then 19770 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19771 echo Build stays the same $rewritten_build 19772 else 19773 echo Rewriting build for builddeps into $rewritten_build 19774 fi 19775 eval rewritten_target=\${REWRITE_${target_var}} 19776 if test "x$rewritten_target" = x; then 19777 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19778 echo Target stays the same $rewritten_target 19779 else 19780 echo Rewriting target for builddeps into $rewritten_target 19781 fi 19782 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19783 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19784 fi 19785 for ac_prog in 7z unzip 19786 do 19787 # Extract the first word of "$ac_prog", so it can be a program name with args. 19788 set dummy $ac_prog; ac_word=$2 19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19790 $as_echo_n "checking for $ac_word... " >&6; } 19791 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19792 $as_echo_n "(cached) " >&6 19793 else 19794 if test -n "$BDEPS_UNZIP"; then 19795 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19796 else 19797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19798 for as_dir in $PATH 19799 do 19800 IFS=$as_save_IFS 19801 test -z "$as_dir" && as_dir=. 19802 for ac_exec_ext in '' $ac_executable_extensions; do 19803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19804 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19806 break 2 19807 fi 19808 done 19809 done 19810 IFS=$as_save_IFS 19811 19812 fi 19813 fi 19814 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19815 if test -n "$BDEPS_UNZIP"; then 19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19817 $as_echo "$BDEPS_UNZIP" >&6; } 19818 else 19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19820 $as_echo "no" >&6; } 19821 fi 19822 19823 19824 test -n "$BDEPS_UNZIP" && break 19825 done 19826 19827 if test "x$BDEPS_UNZIP" = x7z; then 19828 BDEPS_UNZIP="7z x" 19829 fi 19830 19831 for ac_prog in wget lftp ftp 19832 do 19833 # Extract the first word of "$ac_prog", so it can be a program name with args. 19834 set dummy $ac_prog; ac_word=$2 19835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19836 $as_echo_n "checking for $ac_word... " >&6; } 19837 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19838 $as_echo_n "(cached) " >&6 19839 else 19840 if test -n "$BDEPS_FTP"; then 19841 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19842 else 19843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19844 for as_dir in $PATH 19845 do 19846 IFS=$as_save_IFS 19847 test -z "$as_dir" && as_dir=. 19848 for ac_exec_ext in '' $ac_executable_extensions; do 19849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19850 ac_cv_prog_BDEPS_FTP="$ac_prog" 19851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19852 break 2 19853 fi 19854 done 19855 done 19856 IFS=$as_save_IFS 19857 19858 fi 19859 fi 19860 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19861 if test -n "$BDEPS_FTP"; then 19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19863 $as_echo "$BDEPS_FTP" >&6; } 19864 else 19865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19866 $as_echo "no" >&6; } 19867 fi 19868 19869 19870 test -n "$BDEPS_FTP" && break 19871 done 19872 19873 19874 19875 ############################################################################### 19876 # 19877 # Determine OpenJDK variants, options and version numbers. 19878 # 19879 ############################################################################### 19880 19881 # We need build & target for this. 19882 19883 19884 ############################################################################### 19885 # 19886 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19887 # We always build headless support. 19888 # 19889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19890 $as_echo_n "checking headful support... " >&6; } 19891 # Check whether --enable-headful was given. 19892 if test "${enable_headful+set}" = set; then : 19893 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19894 else 19895 SUPPORT_HEADFUL=yes 19896 fi 19897 19898 19899 SUPPORT_HEADLESS=yes 19900 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19901 19902 if test "x$SUPPORT_HEADFUL" = xyes; then 19903 # We are building both headful and headless. 19904 headful_msg="include support for both headful and headless" 19905 fi 19906 19907 if test "x$SUPPORT_HEADFUL" = xno; then 19908 # Thus we are building headless only. 19909 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19910 headful_msg="headless only" 19911 fi 19912 19913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19914 $as_echo "$headful_msg" >&6; } 19915 19916 19917 19918 19919 19920 # Control wether Hotspot runs Queens test after build. 19921 # Check whether --enable-hotspot-test-in-build was given. 19922 if test "${enable_hotspot_test_in_build+set}" = set; then : 19923 enableval=$enable_hotspot_test_in_build; 19924 else 19925 enable_hotspot_test_in_build=no 19926 fi 19927 19928 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19929 TEST_IN_BUILD=true 19930 else 19931 TEST_IN_BUILD=false 19932 fi 19933 19934 19935 ############################################################################### 19936 # 19937 # Choose cacerts source file 19938 # 19939 19940 # Check whether --with-cacerts-file was given. 19941 if test "${with_cacerts_file+set}" = set; then : 19942 withval=$with_cacerts_file; 19943 fi 19944 19945 if test "x$with_cacerts_file" != x; then 19946 CACERTS_FILE=$with_cacerts_file 19947 else 19948 CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts 19949 fi 19950 19951 19952 ############################################################################### 19953 # 19954 # Enable or disable unlimited crypto 19955 # 19956 # Check whether --enable-unlimited-crypto was given. 19957 if test "${enable_unlimited_crypto+set}" = set; then : 19958 enableval=$enable_unlimited_crypto; 19959 else 19960 enable_unlimited_crypto=no 19961 fi 19962 19963 if test "x$enable_unlimited_crypto" = "xyes"; then 19964 UNLIMITED_CRYPTO=true 19965 else 19966 UNLIMITED_CRYPTO=false 19967 fi 19968 19969 19970 ############################################################################### 19971 # 19972 # Enable or disable the elliptic curve crypto implementation 19973 # 19974 19975 19976 ############################################################################### 19977 # 19978 # --enable-rmiconnector-iiop 19979 # 19980 # Check whether --enable-rmiconnector-iiop was given. 19981 if test "${enable_rmiconnector_iiop+set}" = set; then : 19982 enableval=$enable_rmiconnector_iiop; 19983 fi 19984 19985 if test "x$enable_rmiconnector_iiop" = "xyes"; then 19986 RMICONNECTOR_IIOP=true 19987 else 19988 RMICONNECTOR_IIOP=false 19989 fi 19990 19991 19992 ############################################################################### 19993 # 19994 # Compress jars 19995 # 19996 COMPRESS_JARS=false 19997 19998 19999 20000 20001 # Source the version numbers 20002 . $AUTOCONF_DIR/version-numbers 20003 20004 # Get the settings from parameters 20005 20006 # Check whether --with-milestone was given. 20007 if test "${with_milestone+set}" = set; then : 20008 withval=$with_milestone; 20009 fi 20010 20011 if test "x$with_milestone" = xyes; then 20012 as_fn_error $? "Milestone must have a value" "$LINENO" 5 20013 elif test "x$with_milestone" != x; then 20014 MILESTONE="$with_milestone" 20015 fi 20016 if test "x$MILESTONE" = x; then 20017 MILESTONE=internal 20018 fi 20019 20020 20021 # Check whether --with-update-version was given. 20022 if test "${with_update_version+set}" = set; then : 20023 withval=$with_update_version; 20024 fi 20025 20026 if test "x$with_update_version" = xyes; then 20027 as_fn_error $? "Update version must have a value" "$LINENO" 5 20028 elif test "x$with_update_version" != x; then 20029 JDK_UPDATE_VERSION="$with_update_version" 20030 # On macosx 10.7, it's not possible to set --with-update-version=0X due 20031 # to a bug in expr (which reduces it to just X). To work around this, we 20032 # always add a 0 to one digit update versions. 20033 if test "${#JDK_UPDATE_VERSION}" = "1"; then 20034 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 20035 fi 20036 fi 20037 20038 20039 # Check whether --with-user-release-suffix was given. 20040 if test "${with_user_release_suffix+set}" = set; then : 20041 withval=$with_user_release_suffix; 20042 fi 20043 20044 if test "x$with_user_release_suffix" = xyes; then 20045 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 20046 elif test "x$with_user_release_suffix" != x; then 20047 USER_RELEASE_SUFFIX="$with_user_release_suffix" 20048 fi 20049 20050 20051 # Check whether --with-build-number was given. 20052 if test "${with_build_number+set}" = set; then : 20053 withval=$with_build_number; 20054 fi 20055 20056 if test "x$with_build_number" = xyes; then 20057 as_fn_error $? "Build number must have a value" "$LINENO" 5 20058 elif test "x$with_build_number" != x; then 20059 JDK_BUILD_NUMBER="$with_build_number" 20060 fi 20061 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 20062 if test "x$JDK_BUILD_NUMBER" = x; then 20063 JDK_BUILD_NUMBER=b00 20064 if test "x$USER_RELEASE_SUFFIX" = x; then 20065 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 20066 # Avoid [:alnum:] since it depends on the locale. 20067 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 20068 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20069 fi 20070 fi 20071 20072 # Now set the JDK version, milestone, build number etc. 20073 20074 20075 20076 20077 20078 20079 20080 20081 20082 20083 20084 20085 20086 20087 20088 COPYRIGHT_YEAR=`date +'%Y'` 20089 20090 20091 if test "x$JDK_UPDATE_VERSION" != x; then 20092 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 20093 else 20094 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 20095 fi 20096 20097 20098 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 20099 20100 20101 20102 ############################################################################### 20103 # 20104 # Setup BootJDK, used to bootstrap the build. 20105 # 20106 ############################################################################### 20107 20108 20109 BOOT_JDK_FOUND=no 20110 20111 # Check whether --with-boot-jdk was given. 20112 if test "${with_boot_jdk+set}" = set; then : 20113 withval=$with_boot_jdk; 20114 fi 20115 20116 20117 # We look for the Boot JDK through various means, going from more certain to 20118 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20119 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20120 # must check if this is indeed valid; otherwise we'll continue looking. 20121 20122 # Test: Is bootjdk explicitely set by command line arguments? 20123 20124 if test "x$BOOT_JDK_FOUND" = xno; then 20125 # Now execute the test 20126 20127 if test "x$with_boot_jdk" != x; then 20128 BOOT_JDK=$with_boot_jdk 20129 BOOT_JDK_FOUND=maybe 20130 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20131 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20132 fi 20133 20134 20135 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20136 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20137 # Do we have a bin/java? 20138 if test ! -x "$BOOT_JDK/bin/java"; then 20139 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20140 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20141 BOOT_JDK_FOUND=no 20142 else 20143 # Do we have a bin/javac? 20144 if test ! -x "$BOOT_JDK/bin/javac"; then 20145 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20146 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20147 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20148 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20149 BOOT_JDK_FOUND=no 20150 else 20151 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20152 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20153 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20154 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20155 BOOT_JDK_FOUND=no 20156 else 20157 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20158 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20159 20160 # Extra M4 quote needed to protect [] in grep expression. 20161 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20162 if test "x$FOUND_CORRECT_VERSION" = x; then 20163 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20164 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20165 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20166 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20167 BOOT_JDK_FOUND=no 20168 else 20169 # We're done! :-) 20170 BOOT_JDK_FOUND=yes 20171 20172 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20173 20174 # Input might be given as Windows format, start by converting to 20175 # unix format. 20176 path="$BOOT_JDK" 20177 new_path=`$CYGPATH -u "$path"` 20178 20179 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20180 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20181 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20182 # "foo.exe" is OK but "foo" is an error. 20183 # 20184 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20185 # It is also a way to make sure we got the proper file name for the real test later on. 20186 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20187 if test "x$test_shortpath" = x; then 20188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20189 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20190 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20191 fi 20192 20193 # Call helper function which possibly converts this using DOS-style short mode. 20194 # If so, the updated path is stored in $new_path. 20195 20196 input_path="$new_path" 20197 # Check if we need to convert this using DOS-style short mode. If the path 20198 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20199 # take no chances and rewrite it. 20200 # Note: m4 eats our [], so we need to use [ and ] instead. 20201 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20202 if test "x$has_forbidden_chars" != x; then 20203 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20204 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20205 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20206 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20207 # Going to short mode and back again did indeed matter. Since short mode is 20208 # case insensitive, let's make it lowercase to improve readability. 20209 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20210 # Now convert it back to Unix-stile (cygpath) 20211 input_path=`$CYGPATH -u "$shortmode_path"` 20212 new_path="$input_path" 20213 fi 20214 fi 20215 20216 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20217 if test "x$test_cygdrive_prefix" = x; then 20218 # As a simple fix, exclude /usr/bin since it's not a real path. 20219 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20220 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20221 # a path prefixed by /cygdrive for fixpath to work. 20222 new_path="$CYGWIN_ROOT_PATH$input_path" 20223 fi 20224 fi 20225 20226 20227 if test "x$path" != "x$new_path"; then 20228 BOOT_JDK="$new_path" 20229 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20230 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20231 fi 20232 20233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20234 20235 path="$BOOT_JDK" 20236 has_colon=`$ECHO $path | $GREP ^.:` 20237 new_path="$path" 20238 if test "x$has_colon" = x; then 20239 # Not in mixed or Windows style, start by that. 20240 new_path=`cmd //c echo $path` 20241 fi 20242 20243 20244 input_path="$new_path" 20245 # Check if we need to convert this using DOS-style short mode. If the path 20246 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20247 # take no chances and rewrite it. 20248 # Note: m4 eats our [], so we need to use [ and ] instead. 20249 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20250 if test "x$has_forbidden_chars" != x; then 20251 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20252 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20253 fi 20254 20255 20256 windows_path="$new_path" 20257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20258 unix_path=`$CYGPATH -u "$windows_path"` 20259 new_path="$unix_path" 20260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20261 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20262 new_path="$unix_path" 20263 fi 20264 20265 if test "x$path" != "x$new_path"; then 20266 BOOT_JDK="$new_path" 20267 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20268 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20269 fi 20270 20271 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20272 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20273 20274 else 20275 # We're on a posix platform. Hooray! :) 20276 path="$BOOT_JDK" 20277 has_space=`$ECHO "$path" | $GREP " "` 20278 if test "x$has_space" != x; then 20279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20280 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20281 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20282 fi 20283 20284 # Use eval to expand a potential ~ 20285 eval path="$path" 20286 if test ! -f "$path" && test ! -d "$path"; then 20287 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20288 fi 20289 20290 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20291 fi 20292 20293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20294 $as_echo_n "checking for Boot JDK... " >&6; } 20295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20296 $as_echo "$BOOT_JDK" >&6; } 20297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20298 $as_echo_n "checking Boot JDK version... " >&6; } 20299 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20301 $as_echo "$BOOT_JDK_VERSION" >&6; } 20302 fi # end check jdk version 20303 fi # end check rt.jar 20304 fi # end check javac 20305 fi # end check java 20306 fi # end check boot jdk found 20307 fi 20308 20309 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20310 # Having specified an argument which is incorrect will produce an instant failure; 20311 # we should not go on looking 20312 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20313 fi 20314 20315 # Test: Is bootjdk available from builddeps? 20316 20317 if test "x$BOOT_JDK_FOUND" = xno; then 20318 # Now execute the test 20319 20320 20321 20322 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20323 # Source the builddeps file again, to make sure it uses the latest variables! 20324 . $builddepsfile 20325 # Look for a target and build machine specific resource! 20326 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20327 if test "x$resource" = x; then 20328 # Ok, lets instead look for a target specific resource 20329 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20330 fi 20331 if test "x$resource" = x; then 20332 # Ok, lets instead look for a build specific resource 20333 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20334 fi 20335 if test "x$resource" = x; then 20336 # Ok, lets instead look for a generic resource 20337 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20338 resource=${builddep_bootjdk} 20339 fi 20340 if test "x$resource" != x; then 20341 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20342 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20343 # If the resource in the builddeps.conf file is an existing directory, 20344 # for example /java/linux/cups 20345 if test -d ${resource}; then 20346 depdir=${resource} 20347 else 20348 20349 # bootjdk is for example mymodule 20350 # $resource is for example libs/general/libmymod_1_2_3.zip 20351 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20352 # $with_builddeps_dir is for example /localhome/builddeps 20353 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20354 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20355 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20356 filename=`basename $resource` 20357 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20358 filebase=${filename%%.*} 20359 extension=${filename#*.} 20360 installdir=$with_builddeps_dir/$filebase 20361 if test ! -f $installdir/$filename.unpacked; then 20362 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20363 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20364 if test ! -d $installdir; then 20365 mkdir -p $installdir 20366 fi 20367 if test ! -d $installdir; then 20368 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20369 fi 20370 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20371 touch $tmpfile 20372 if test ! -f $tmpfile; then 20373 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20374 fi 20375 20376 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20377 # $tmpfile is the local file name for the downloaded file. 20378 VALID_TOOL=no 20379 if test "x$BDEPS_FTP" = xwget; then 20380 VALID_TOOL=yes 20381 wget -O $tmpfile $with_builddeps_server/$resource 20382 fi 20383 if test "x$BDEPS_FTP" = xlftp; then 20384 VALID_TOOL=yes 20385 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20386 fi 20387 if test "x$BDEPS_FTP" = xftp; then 20388 VALID_TOOL=yes 20389 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20390 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20391 FTPUSERPWD=${FTPSERVER%%@*} 20392 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20393 FTPUSER=${userpwd%%:*} 20394 FTPPWD=${userpwd#*@} 20395 FTPSERVER=${FTPSERVER#*@} 20396 else 20397 FTPUSER=ftp 20398 FTPPWD=ftp 20399 fi 20400 # the "pass" command does not work on some 20401 # ftp clients (read ftp.exe) but if it works, 20402 # passive mode is better! 20403 ( \ 20404 echo "user $FTPUSER $FTPPWD" ; \ 20405 echo "pass" ; \ 20406 echo "bin" ; \ 20407 echo "get $FTPPATH $tmpfile" ; \ 20408 ) | ftp -in $FTPSERVER 20409 fi 20410 if test "x$VALID_TOOL" != xyes; then 20411 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20412 fi 20413 20414 mv $tmpfile $installdir/$filename 20415 if test ! -s $installdir/$filename; then 20416 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20417 fi 20418 case "$extension" in 20419 zip) echo "Unzipping $installdir/$filename..." 20420 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20421 ;; 20422 tar.gz) echo "Untaring $installdir/$filename..." 20423 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20424 ;; 20425 tgz) echo "Untaring $installdir/$filename..." 20426 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20427 ;; 20428 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20429 ;; 20430 esac 20431 fi 20432 if test -f $installdir/$filename.unpacked; then 20433 depdir=$installdir 20434 fi 20435 20436 fi 20437 # Source the builddeps file again, because in the previous command, the depdir 20438 # was updated to point at the current build dependency install directory. 20439 . $builddepsfile 20440 # Now extract variables from the builddeps.conf files. 20441 theroot=${builddep_bootjdk_ROOT} 20442 thecflags=${builddep_bootjdk_CFLAGS} 20443 thelibs=${builddep_bootjdk_LIBS} 20444 if test "x$depdir" = x; then 20445 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20446 fi 20447 BOOT_JDK=$depdir 20448 if test "x$theroot" != x; then 20449 BOOT_JDK="$theroot" 20450 fi 20451 if test "x$thecflags" != x; then 20452 BOOT_JDK_CFLAGS="$thecflags" 20453 fi 20454 if test "x$thelibs" != x; then 20455 BOOT_JDK_LIBS="$thelibs" 20456 fi 20457 BOOT_JDK_FOUND=maybe 20458 else BOOT_JDK_FOUND=no 20459 20460 fi 20461 else BOOT_JDK_FOUND=no 20462 20463 fi 20464 20465 20466 20467 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20468 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20469 # Do we have a bin/java? 20470 if test ! -x "$BOOT_JDK/bin/java"; then 20471 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20472 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20473 BOOT_JDK_FOUND=no 20474 else 20475 # Do we have a bin/javac? 20476 if test ! -x "$BOOT_JDK/bin/javac"; then 20477 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20478 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20479 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20480 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20481 BOOT_JDK_FOUND=no 20482 else 20483 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20484 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20485 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20486 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20487 BOOT_JDK_FOUND=no 20488 else 20489 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20490 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20491 20492 # Extra M4 quote needed to protect [] in grep expression. 20493 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20494 if test "x$FOUND_CORRECT_VERSION" = x; then 20495 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20496 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20497 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20498 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20499 BOOT_JDK_FOUND=no 20500 else 20501 # We're done! :-) 20502 BOOT_JDK_FOUND=yes 20503 20504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20505 20506 # Input might be given as Windows format, start by converting to 20507 # unix format. 20508 path="$BOOT_JDK" 20509 new_path=`$CYGPATH -u "$path"` 20510 20511 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20512 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20513 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20514 # "foo.exe" is OK but "foo" is an error. 20515 # 20516 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20517 # It is also a way to make sure we got the proper file name for the real test later on. 20518 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20519 if test "x$test_shortpath" = x; then 20520 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20521 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20522 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20523 fi 20524 20525 # Call helper function which possibly converts this using DOS-style short mode. 20526 # If so, the updated path is stored in $new_path. 20527 20528 input_path="$new_path" 20529 # Check if we need to convert this using DOS-style short mode. If the path 20530 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20531 # take no chances and rewrite it. 20532 # Note: m4 eats our [], so we need to use [ and ] instead. 20533 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20534 if test "x$has_forbidden_chars" != x; then 20535 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20536 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20537 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20538 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20539 # Going to short mode and back again did indeed matter. Since short mode is 20540 # case insensitive, let's make it lowercase to improve readability. 20541 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20542 # Now convert it back to Unix-stile (cygpath) 20543 input_path=`$CYGPATH -u "$shortmode_path"` 20544 new_path="$input_path" 20545 fi 20546 fi 20547 20548 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20549 if test "x$test_cygdrive_prefix" = x; then 20550 # As a simple fix, exclude /usr/bin since it's not a real path. 20551 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20552 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20553 # a path prefixed by /cygdrive for fixpath to work. 20554 new_path="$CYGWIN_ROOT_PATH$input_path" 20555 fi 20556 fi 20557 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 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20566 20567 path="$BOOT_JDK" 20568 has_colon=`$ECHO $path | $GREP ^.:` 20569 new_path="$path" 20570 if test "x$has_colon" = x; then 20571 # Not in mixed or Windows style, start by that. 20572 new_path=`cmd //c echo $path` 20573 fi 20574 20575 20576 input_path="$new_path" 20577 # Check if we need to convert this using DOS-style short mode. If the path 20578 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20579 # take no chances and rewrite it. 20580 # Note: m4 eats our [], so we need to use [ and ] instead. 20581 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20582 if test "x$has_forbidden_chars" != x; then 20583 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20584 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20585 fi 20586 20587 20588 windows_path="$new_path" 20589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20590 unix_path=`$CYGPATH -u "$windows_path"` 20591 new_path="$unix_path" 20592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20594 new_path="$unix_path" 20595 fi 20596 20597 if test "x$path" != "x$new_path"; then 20598 BOOT_JDK="$new_path" 20599 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20600 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20601 fi 20602 20603 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20604 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20605 20606 else 20607 # We're on a posix platform. Hooray! :) 20608 path="$BOOT_JDK" 20609 has_space=`$ECHO "$path" | $GREP " "` 20610 if test "x$has_space" != x; then 20611 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20612 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20613 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20614 fi 20615 20616 # Use eval to expand a potential ~ 20617 eval path="$path" 20618 if test ! -f "$path" && test ! -d "$path"; then 20619 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20620 fi 20621 20622 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20623 fi 20624 20625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20626 $as_echo_n "checking for Boot JDK... " >&6; } 20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20628 $as_echo "$BOOT_JDK" >&6; } 20629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20630 $as_echo_n "checking Boot JDK version... " >&6; } 20631 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20633 $as_echo "$BOOT_JDK_VERSION" >&6; } 20634 fi # end check jdk version 20635 fi # end check rt.jar 20636 fi # end check javac 20637 fi # end check java 20638 fi # end check boot jdk found 20639 fi 20640 20641 20642 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20643 20644 if test "x$BOOT_JDK_FOUND" = xno; then 20645 # Now execute the test 20646 20647 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20648 # First check at user selected default 20649 20650 if test "x$BOOT_JDK_FOUND" = xno; then 20651 # Now execute the test 20652 20653 if test -x /usr/libexec/java_home; then 20654 BOOT_JDK=`/usr/libexec/java_home ` 20655 BOOT_JDK_FOUND=maybe 20656 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20657 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20658 fi 20659 20660 20661 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20662 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20663 # Do we have a bin/java? 20664 if test ! -x "$BOOT_JDK/bin/java"; then 20665 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20666 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20667 BOOT_JDK_FOUND=no 20668 else 20669 # Do we have a bin/javac? 20670 if test ! -x "$BOOT_JDK/bin/javac"; then 20671 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20672 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20673 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20674 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20675 BOOT_JDK_FOUND=no 20676 else 20677 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20678 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20679 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20680 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20681 BOOT_JDK_FOUND=no 20682 else 20683 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20684 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20685 20686 # Extra M4 quote needed to protect [] in grep expression. 20687 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20688 if test "x$FOUND_CORRECT_VERSION" = x; then 20689 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20690 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20691 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20692 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20693 BOOT_JDK_FOUND=no 20694 else 20695 # We're done! :-) 20696 BOOT_JDK_FOUND=yes 20697 20698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20699 20700 # Input might be given as Windows format, start by converting to 20701 # unix format. 20702 path="$BOOT_JDK" 20703 new_path=`$CYGPATH -u "$path"` 20704 20705 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20706 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20707 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20708 # "foo.exe" is OK but "foo" is an error. 20709 # 20710 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20711 # It is also a way to make sure we got the proper file name for the real test later on. 20712 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20713 if test "x$test_shortpath" = x; then 20714 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20715 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20716 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20717 fi 20718 20719 # Call helper function which possibly converts this using DOS-style short mode. 20720 # If so, the updated path is stored in $new_path. 20721 20722 input_path="$new_path" 20723 # Check if we need to convert this using DOS-style short mode. If the path 20724 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20725 # take no chances and rewrite it. 20726 # Note: m4 eats our [], so we need to use [ and ] instead. 20727 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20728 if test "x$has_forbidden_chars" != x; then 20729 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20730 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20731 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20732 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20733 # Going to short mode and back again did indeed matter. Since short mode is 20734 # case insensitive, let's make it lowercase to improve readability. 20735 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20736 # Now convert it back to Unix-stile (cygpath) 20737 input_path=`$CYGPATH -u "$shortmode_path"` 20738 new_path="$input_path" 20739 fi 20740 fi 20741 20742 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20743 if test "x$test_cygdrive_prefix" = x; then 20744 # As a simple fix, exclude /usr/bin since it's not a real path. 20745 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20746 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20747 # a path prefixed by /cygdrive for fixpath to work. 20748 new_path="$CYGWIN_ROOT_PATH$input_path" 20749 fi 20750 fi 20751 20752 20753 if test "x$path" != "x$new_path"; then 20754 BOOT_JDK="$new_path" 20755 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20756 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20757 fi 20758 20759 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20760 20761 path="$BOOT_JDK" 20762 has_colon=`$ECHO $path | $GREP ^.:` 20763 new_path="$path" 20764 if test "x$has_colon" = x; then 20765 # Not in mixed or Windows style, start by that. 20766 new_path=`cmd //c echo $path` 20767 fi 20768 20769 20770 input_path="$new_path" 20771 # Check if we need to convert this using DOS-style short mode. If the path 20772 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20773 # take no chances and rewrite it. 20774 # Note: m4 eats our [], so we need to use [ and ] instead. 20775 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20776 if test "x$has_forbidden_chars" != x; then 20777 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20778 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20779 fi 20780 20781 20782 windows_path="$new_path" 20783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20784 unix_path=`$CYGPATH -u "$windows_path"` 20785 new_path="$unix_path" 20786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20787 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20788 new_path="$unix_path" 20789 fi 20790 20791 if test "x$path" != "x$new_path"; then 20792 BOOT_JDK="$new_path" 20793 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20794 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20795 fi 20796 20797 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20798 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20799 20800 else 20801 # We're on a posix platform. Hooray! :) 20802 path="$BOOT_JDK" 20803 has_space=`$ECHO "$path" | $GREP " "` 20804 if test "x$has_space" != x; then 20805 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20806 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20807 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20808 fi 20809 20810 # Use eval to expand a potential ~ 20811 eval path="$path" 20812 if test ! -f "$path" && test ! -d "$path"; then 20813 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20814 fi 20815 20816 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20817 fi 20818 20819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20820 $as_echo_n "checking for Boot JDK... " >&6; } 20821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20822 $as_echo "$BOOT_JDK" >&6; } 20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20824 $as_echo_n "checking Boot JDK version... " >&6; } 20825 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20827 $as_echo "$BOOT_JDK_VERSION" >&6; } 20828 fi # end check jdk version 20829 fi # end check rt.jar 20830 fi # end check javac 20831 fi # end check java 20832 fi # end check boot jdk found 20833 fi 20834 20835 # If that did not work out (e.g. too old), try explicit versions instead 20836 20837 if test "x$BOOT_JDK_FOUND" = xno; then 20838 # Now execute the test 20839 20840 if test -x /usr/libexec/java_home; then 20841 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20842 BOOT_JDK_FOUND=maybe 20843 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20844 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20845 fi 20846 20847 20848 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20849 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20850 # Do we have a bin/java? 20851 if test ! -x "$BOOT_JDK/bin/java"; then 20852 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20853 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20854 BOOT_JDK_FOUND=no 20855 else 20856 # Do we have a bin/javac? 20857 if test ! -x "$BOOT_JDK/bin/javac"; then 20858 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20859 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20860 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20861 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20862 BOOT_JDK_FOUND=no 20863 else 20864 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20865 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20866 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20867 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20868 BOOT_JDK_FOUND=no 20869 else 20870 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20871 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20872 20873 # Extra M4 quote needed to protect [] in grep expression. 20874 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20875 if test "x$FOUND_CORRECT_VERSION" = x; then 20876 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20877 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20878 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20879 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20880 BOOT_JDK_FOUND=no 20881 else 20882 # We're done! :-) 20883 BOOT_JDK_FOUND=yes 20884 20885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20886 20887 # Input might be given as Windows format, start by converting to 20888 # unix format. 20889 path="$BOOT_JDK" 20890 new_path=`$CYGPATH -u "$path"` 20891 20892 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20893 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20894 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20895 # "foo.exe" is OK but "foo" is an error. 20896 # 20897 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20898 # It is also a way to make sure we got the proper file name for the real test later on. 20899 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20900 if test "x$test_shortpath" = x; then 20901 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20902 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20903 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20904 fi 20905 20906 # Call helper function which possibly converts this using DOS-style short mode. 20907 # If so, the updated path is stored in $new_path. 20908 20909 input_path="$new_path" 20910 # Check if we need to convert this using DOS-style short mode. If the path 20911 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20912 # take no chances and rewrite it. 20913 # Note: m4 eats our [], so we need to use [ and ] instead. 20914 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20915 if test "x$has_forbidden_chars" != x; then 20916 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20917 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20918 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20919 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20920 # Going to short mode and back again did indeed matter. Since short mode is 20921 # case insensitive, let's make it lowercase to improve readability. 20922 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20923 # Now convert it back to Unix-stile (cygpath) 20924 input_path=`$CYGPATH -u "$shortmode_path"` 20925 new_path="$input_path" 20926 fi 20927 fi 20928 20929 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20930 if test "x$test_cygdrive_prefix" = x; then 20931 # As a simple fix, exclude /usr/bin since it's not a real path. 20932 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20933 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20934 # a path prefixed by /cygdrive for fixpath to work. 20935 new_path="$CYGWIN_ROOT_PATH$input_path" 20936 fi 20937 fi 20938 20939 20940 if test "x$path" != "x$new_path"; then 20941 BOOT_JDK="$new_path" 20942 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20943 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20944 fi 20945 20946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20947 20948 path="$BOOT_JDK" 20949 has_colon=`$ECHO $path | $GREP ^.:` 20950 new_path="$path" 20951 if test "x$has_colon" = x; then 20952 # Not in mixed or Windows style, start by that. 20953 new_path=`cmd //c echo $path` 20954 fi 20955 20956 20957 input_path="$new_path" 20958 # Check if we need to convert this using DOS-style short mode. If the path 20959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20960 # take no chances and rewrite it. 20961 # Note: m4 eats our [], so we need to use [ and ] instead. 20962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20963 if test "x$has_forbidden_chars" != x; then 20964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20965 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20966 fi 20967 20968 20969 windows_path="$new_path" 20970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20971 unix_path=`$CYGPATH -u "$windows_path"` 20972 new_path="$unix_path" 20973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20975 new_path="$unix_path" 20976 fi 20977 20978 if test "x$path" != "x$new_path"; then 20979 BOOT_JDK="$new_path" 20980 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20981 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20982 fi 20983 20984 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20985 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20986 20987 else 20988 # We're on a posix platform. Hooray! :) 20989 path="$BOOT_JDK" 20990 has_space=`$ECHO "$path" | $GREP " "` 20991 if test "x$has_space" != x; then 20992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20993 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20994 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20995 fi 20996 20997 # Use eval to expand a potential ~ 20998 eval path="$path" 20999 if test ! -f "$path" && test ! -d "$path"; then 21000 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21001 fi 21002 21003 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21004 fi 21005 21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21007 $as_echo_n "checking for Boot JDK... " >&6; } 21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21009 $as_echo "$BOOT_JDK" >&6; } 21010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21011 $as_echo_n "checking Boot JDK version... " >&6; } 21012 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21014 $as_echo "$BOOT_JDK_VERSION" >&6; } 21015 fi # end check jdk version 21016 fi # end check rt.jar 21017 fi # end check javac 21018 fi # end check java 21019 fi # end check boot jdk found 21020 fi 21021 21022 21023 if test "x$BOOT_JDK_FOUND" = xno; then 21024 # Now execute the test 21025 21026 if test -x /usr/libexec/java_home; then 21027 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 21028 BOOT_JDK_FOUND=maybe 21029 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 21030 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 21031 fi 21032 21033 21034 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21035 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21036 # Do we have a bin/java? 21037 if test ! -x "$BOOT_JDK/bin/java"; then 21038 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21039 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21040 BOOT_JDK_FOUND=no 21041 else 21042 # Do we have a bin/javac? 21043 if test ! -x "$BOOT_JDK/bin/javac"; then 21044 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21045 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21046 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21047 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21048 BOOT_JDK_FOUND=no 21049 else 21050 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21051 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21052 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21053 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21054 BOOT_JDK_FOUND=no 21055 else 21056 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21057 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21058 21059 # Extra M4 quote needed to protect [] in grep expression. 21060 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21061 if test "x$FOUND_CORRECT_VERSION" = x; then 21062 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21063 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21064 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21065 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21066 BOOT_JDK_FOUND=no 21067 else 21068 # We're done! :-) 21069 BOOT_JDK_FOUND=yes 21070 21071 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21072 21073 # Input might be given as Windows format, start by converting to 21074 # unix format. 21075 path="$BOOT_JDK" 21076 new_path=`$CYGPATH -u "$path"` 21077 21078 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21079 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21080 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21081 # "foo.exe" is OK but "foo" is an error. 21082 # 21083 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21084 # It is also a way to make sure we got the proper file name for the real test later on. 21085 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21086 if test "x$test_shortpath" = x; then 21087 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21088 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21089 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21090 fi 21091 21092 # Call helper function which possibly converts this using DOS-style short mode. 21093 # If so, the updated path is stored in $new_path. 21094 21095 input_path="$new_path" 21096 # Check if we need to convert this using DOS-style short mode. If the path 21097 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21098 # take no chances and rewrite it. 21099 # Note: m4 eats our [], so we need to use [ and ] instead. 21100 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21101 if test "x$has_forbidden_chars" != x; then 21102 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21103 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21104 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21105 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21106 # Going to short mode and back again did indeed matter. Since short mode is 21107 # case insensitive, let's make it lowercase to improve readability. 21108 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21109 # Now convert it back to Unix-stile (cygpath) 21110 input_path=`$CYGPATH -u "$shortmode_path"` 21111 new_path="$input_path" 21112 fi 21113 fi 21114 21115 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21116 if test "x$test_cygdrive_prefix" = x; then 21117 # As a simple fix, exclude /usr/bin since it's not a real path. 21118 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21119 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21120 # a path prefixed by /cygdrive for fixpath to work. 21121 new_path="$CYGWIN_ROOT_PATH$input_path" 21122 fi 21123 fi 21124 21125 21126 if test "x$path" != "x$new_path"; then 21127 BOOT_JDK="$new_path" 21128 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21129 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21130 fi 21131 21132 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21133 21134 path="$BOOT_JDK" 21135 has_colon=`$ECHO $path | $GREP ^.:` 21136 new_path="$path" 21137 if test "x$has_colon" = x; then 21138 # Not in mixed or Windows style, start by that. 21139 new_path=`cmd //c echo $path` 21140 fi 21141 21142 21143 input_path="$new_path" 21144 # Check if we need to convert this using DOS-style short mode. If the path 21145 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21146 # take no chances and rewrite it. 21147 # Note: m4 eats our [], so we need to use [ and ] instead. 21148 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21149 if test "x$has_forbidden_chars" != x; then 21150 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21151 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21152 fi 21153 21154 21155 windows_path="$new_path" 21156 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21157 unix_path=`$CYGPATH -u "$windows_path"` 21158 new_path="$unix_path" 21159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21160 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21161 new_path="$unix_path" 21162 fi 21163 21164 if test "x$path" != "x$new_path"; then 21165 BOOT_JDK="$new_path" 21166 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21167 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21168 fi 21169 21170 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21171 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21172 21173 else 21174 # We're on a posix platform. Hooray! :) 21175 path="$BOOT_JDK" 21176 has_space=`$ECHO "$path" | $GREP " "` 21177 if test "x$has_space" != x; then 21178 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21179 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21180 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21181 fi 21182 21183 # Use eval to expand a potential ~ 21184 eval path="$path" 21185 if test ! -f "$path" && test ! -d "$path"; then 21186 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21187 fi 21188 21189 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21190 fi 21191 21192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21193 $as_echo_n "checking for Boot JDK... " >&6; } 21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21195 $as_echo "$BOOT_JDK" >&6; } 21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21197 $as_echo_n "checking Boot JDK version... " >&6; } 21198 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21200 $as_echo "$BOOT_JDK_VERSION" >&6; } 21201 fi # end check jdk version 21202 fi # end check rt.jar 21203 fi # end check javac 21204 fi # end check java 21205 fi # end check boot jdk found 21206 fi 21207 21208 21209 if test "x$BOOT_JDK_FOUND" = xno; then 21210 # Now execute the test 21211 21212 if test -x /usr/libexec/java_home; then 21213 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 21214 BOOT_JDK_FOUND=maybe 21215 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 21216 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 21217 fi 21218 21219 21220 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21221 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21222 # Do we have a bin/java? 21223 if test ! -x "$BOOT_JDK/bin/java"; then 21224 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21225 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21226 BOOT_JDK_FOUND=no 21227 else 21228 # Do we have a bin/javac? 21229 if test ! -x "$BOOT_JDK/bin/javac"; then 21230 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21232 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21233 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21234 BOOT_JDK_FOUND=no 21235 else 21236 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21237 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21238 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21239 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21240 BOOT_JDK_FOUND=no 21241 else 21242 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21243 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21244 21245 # Extra M4 quote needed to protect [] in grep expression. 21246 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21247 if test "x$FOUND_CORRECT_VERSION" = x; then 21248 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21249 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21250 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21251 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21252 BOOT_JDK_FOUND=no 21253 else 21254 # We're done! :-) 21255 BOOT_JDK_FOUND=yes 21256 21257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21258 21259 # Input might be given as Windows format, start by converting to 21260 # unix format. 21261 path="$BOOT_JDK" 21262 new_path=`$CYGPATH -u "$path"` 21263 21264 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21265 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21266 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21267 # "foo.exe" is OK but "foo" is an error. 21268 # 21269 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21270 # It is also a way to make sure we got the proper file name for the real test later on. 21271 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21272 if test "x$test_shortpath" = x; then 21273 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21274 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21275 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21276 fi 21277 21278 # Call helper function which possibly converts this using DOS-style short mode. 21279 # If so, the updated path is stored in $new_path. 21280 21281 input_path="$new_path" 21282 # Check if we need to convert this using DOS-style short mode. If the path 21283 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21284 # take no chances and rewrite it. 21285 # Note: m4 eats our [], so we need to use [ and ] instead. 21286 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21287 if test "x$has_forbidden_chars" != x; then 21288 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21289 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21290 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21291 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21292 # Going to short mode and back again did indeed matter. Since short mode is 21293 # case insensitive, let's make it lowercase to improve readability. 21294 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21295 # Now convert it back to Unix-stile (cygpath) 21296 input_path=`$CYGPATH -u "$shortmode_path"` 21297 new_path="$input_path" 21298 fi 21299 fi 21300 21301 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21302 if test "x$test_cygdrive_prefix" = x; then 21303 # As a simple fix, exclude /usr/bin since it's not a real path. 21304 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21305 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21306 # a path prefixed by /cygdrive for fixpath to work. 21307 new_path="$CYGWIN_ROOT_PATH$input_path" 21308 fi 21309 fi 21310 21311 21312 if test "x$path" != "x$new_path"; then 21313 BOOT_JDK="$new_path" 21314 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21315 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21316 fi 21317 21318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21319 21320 path="$BOOT_JDK" 21321 has_colon=`$ECHO $path | $GREP ^.:` 21322 new_path="$path" 21323 if test "x$has_colon" = x; then 21324 # Not in mixed or Windows style, start by that. 21325 new_path=`cmd //c echo $path` 21326 fi 21327 21328 21329 input_path="$new_path" 21330 # Check if we need to convert this using DOS-style short mode. If the path 21331 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21332 # take no chances and rewrite it. 21333 # Note: m4 eats our [], so we need to use [ and ] instead. 21334 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21335 if test "x$has_forbidden_chars" != x; then 21336 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21337 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21338 fi 21339 21340 21341 windows_path="$new_path" 21342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21343 unix_path=`$CYGPATH -u "$windows_path"` 21344 new_path="$unix_path" 21345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21347 new_path="$unix_path" 21348 fi 21349 21350 if test "x$path" != "x$new_path"; then 21351 BOOT_JDK="$new_path" 21352 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21353 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21354 fi 21355 21356 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21357 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21358 21359 else 21360 # We're on a posix platform. Hooray! :) 21361 path="$BOOT_JDK" 21362 has_space=`$ECHO "$path" | $GREP " "` 21363 if test "x$has_space" != x; then 21364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21365 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21366 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21367 fi 21368 21369 # Use eval to expand a potential ~ 21370 eval path="$path" 21371 if test ! -f "$path" && test ! -d "$path"; then 21372 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21373 fi 21374 21375 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21376 fi 21377 21378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21379 $as_echo_n "checking for Boot JDK... " >&6; } 21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21381 $as_echo "$BOOT_JDK" >&6; } 21382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21383 $as_echo_n "checking Boot JDK version... " >&6; } 21384 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21386 $as_echo "$BOOT_JDK_VERSION" >&6; } 21387 fi # end check jdk version 21388 fi # end check rt.jar 21389 fi # end check javac 21390 fi # end check java 21391 fi # end check boot jdk found 21392 fi 21393 21394 fi 21395 21396 21397 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21398 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21399 # Do we have a bin/java? 21400 if test ! -x "$BOOT_JDK/bin/java"; then 21401 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21402 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21403 BOOT_JDK_FOUND=no 21404 else 21405 # Do we have a bin/javac? 21406 if test ! -x "$BOOT_JDK/bin/javac"; then 21407 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21408 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21409 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21410 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21411 BOOT_JDK_FOUND=no 21412 else 21413 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21414 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21415 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21416 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21417 BOOT_JDK_FOUND=no 21418 else 21419 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21420 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21421 21422 # Extra M4 quote needed to protect [] in grep expression. 21423 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21424 if test "x$FOUND_CORRECT_VERSION" = x; then 21425 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21426 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21427 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21428 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21429 BOOT_JDK_FOUND=no 21430 else 21431 # We're done! :-) 21432 BOOT_JDK_FOUND=yes 21433 21434 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21435 21436 # Input might be given as Windows format, start by converting to 21437 # unix format. 21438 path="$BOOT_JDK" 21439 new_path=`$CYGPATH -u "$path"` 21440 21441 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21442 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21443 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21444 # "foo.exe" is OK but "foo" is an error. 21445 # 21446 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21447 # It is also a way to make sure we got the proper file name for the real test later on. 21448 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21449 if test "x$test_shortpath" = x; then 21450 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21451 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21452 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21453 fi 21454 21455 # Call helper function which possibly converts this using DOS-style short mode. 21456 # If so, the updated path is stored in $new_path. 21457 21458 input_path="$new_path" 21459 # Check if we need to convert this using DOS-style short mode. If the path 21460 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21461 # take no chances and rewrite it. 21462 # Note: m4 eats our [], so we need to use [ and ] instead. 21463 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21464 if test "x$has_forbidden_chars" != x; then 21465 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21466 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21467 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21468 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21469 # Going to short mode and back again did indeed matter. Since short mode is 21470 # case insensitive, let's make it lowercase to improve readability. 21471 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21472 # Now convert it back to Unix-stile (cygpath) 21473 input_path=`$CYGPATH -u "$shortmode_path"` 21474 new_path="$input_path" 21475 fi 21476 fi 21477 21478 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21479 if test "x$test_cygdrive_prefix" = x; then 21480 # As a simple fix, exclude /usr/bin since it's not a real path. 21481 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21482 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21483 # a path prefixed by /cygdrive for fixpath to work. 21484 new_path="$CYGWIN_ROOT_PATH$input_path" 21485 fi 21486 fi 21487 21488 21489 if test "x$path" != "x$new_path"; then 21490 BOOT_JDK="$new_path" 21491 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21492 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21493 fi 21494 21495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21496 21497 path="$BOOT_JDK" 21498 has_colon=`$ECHO $path | $GREP ^.:` 21499 new_path="$path" 21500 if test "x$has_colon" = x; then 21501 # Not in mixed or Windows style, start by that. 21502 new_path=`cmd //c echo $path` 21503 fi 21504 21505 21506 input_path="$new_path" 21507 # Check if we need to convert this using DOS-style short mode. If the path 21508 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21509 # take no chances and rewrite it. 21510 # Note: m4 eats our [], so we need to use [ and ] instead. 21511 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21512 if test "x$has_forbidden_chars" != x; then 21513 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21514 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21515 fi 21516 21517 21518 windows_path="$new_path" 21519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21520 unix_path=`$CYGPATH -u "$windows_path"` 21521 new_path="$unix_path" 21522 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21523 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21524 new_path="$unix_path" 21525 fi 21526 21527 if test "x$path" != "x$new_path"; then 21528 BOOT_JDK="$new_path" 21529 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21530 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21531 fi 21532 21533 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21534 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21535 21536 else 21537 # We're on a posix platform. Hooray! :) 21538 path="$BOOT_JDK" 21539 has_space=`$ECHO "$path" | $GREP " "` 21540 if test "x$has_space" != x; then 21541 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21542 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21543 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21544 fi 21545 21546 # Use eval to expand a potential ~ 21547 eval path="$path" 21548 if test ! -f "$path" && test ! -d "$path"; then 21549 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21550 fi 21551 21552 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21553 fi 21554 21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21556 $as_echo_n "checking for Boot JDK... " >&6; } 21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21558 $as_echo "$BOOT_JDK" >&6; } 21559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21560 $as_echo_n "checking Boot JDK version... " >&6; } 21561 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21563 $as_echo "$BOOT_JDK_VERSION" >&6; } 21564 fi # end check jdk version 21565 fi # end check rt.jar 21566 fi # end check javac 21567 fi # end check java 21568 fi # end check boot jdk found 21569 fi 21570 21571 21572 # Test: Is $JAVA_HOME set? 21573 21574 if test "x$BOOT_JDK_FOUND" = xno; then 21575 # Now execute the test 21576 21577 if test "x$JAVA_HOME" != x; then 21578 JAVA_HOME_PROCESSED="$JAVA_HOME" 21579 21580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21581 21582 # Input might be given as Windows format, start by converting to 21583 # unix format. 21584 path="$JAVA_HOME_PROCESSED" 21585 new_path=`$CYGPATH -u "$path"` 21586 21587 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21588 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21589 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21590 # "foo.exe" is OK but "foo" is an error. 21591 # 21592 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21593 # It is also a way to make sure we got the proper file name for the real test later on. 21594 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21595 if test "x$test_shortpath" = x; then 21596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21597 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21598 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21599 fi 21600 21601 # Call helper function which possibly converts this using DOS-style short mode. 21602 # If so, the updated path is stored in $new_path. 21603 21604 input_path="$new_path" 21605 # Check if we need to convert this using DOS-style short mode. If the path 21606 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21607 # take no chances and rewrite it. 21608 # Note: m4 eats our [], so we need to use [ and ] instead. 21609 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21610 if test "x$has_forbidden_chars" != x; then 21611 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21612 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21613 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21614 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21615 # Going to short mode and back again did indeed matter. Since short mode is 21616 # case insensitive, let's make it lowercase to improve readability. 21617 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21618 # Now convert it back to Unix-stile (cygpath) 21619 input_path=`$CYGPATH -u "$shortmode_path"` 21620 new_path="$input_path" 21621 fi 21622 fi 21623 21624 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21625 if test "x$test_cygdrive_prefix" = x; then 21626 # As a simple fix, exclude /usr/bin since it's not a real path. 21627 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21628 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21629 # a path prefixed by /cygdrive for fixpath to work. 21630 new_path="$CYGWIN_ROOT_PATH$input_path" 21631 fi 21632 fi 21633 21634 21635 if test "x$path" != "x$new_path"; then 21636 JAVA_HOME_PROCESSED="$new_path" 21637 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21638 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21639 fi 21640 21641 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21642 21643 path="$JAVA_HOME_PROCESSED" 21644 has_colon=`$ECHO $path | $GREP ^.:` 21645 new_path="$path" 21646 if test "x$has_colon" = x; then 21647 # Not in mixed or Windows style, start by that. 21648 new_path=`cmd //c echo $path` 21649 fi 21650 21651 21652 input_path="$new_path" 21653 # Check if we need to convert this using DOS-style short mode. If the path 21654 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21655 # take no chances and rewrite it. 21656 # Note: m4 eats our [], so we need to use [ and ] instead. 21657 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21658 if test "x$has_forbidden_chars" != x; then 21659 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21660 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21661 fi 21662 21663 21664 windows_path="$new_path" 21665 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21666 unix_path=`$CYGPATH -u "$windows_path"` 21667 new_path="$unix_path" 21668 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21669 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21670 new_path="$unix_path" 21671 fi 21672 21673 if test "x$path" != "x$new_path"; then 21674 JAVA_HOME_PROCESSED="$new_path" 21675 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21676 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21677 fi 21678 21679 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21680 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21681 21682 else 21683 # We're on a posix platform. Hooray! :) 21684 path="$JAVA_HOME_PROCESSED" 21685 has_space=`$ECHO "$path" | $GREP " "` 21686 if test "x$has_space" != x; then 21687 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21688 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21689 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21690 fi 21691 21692 # Use eval to expand a potential ~ 21693 eval path="$path" 21694 if test ! -f "$path" && test ! -d "$path"; then 21695 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21696 fi 21697 21698 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21699 fi 21700 21701 if test ! -d "$JAVA_HOME_PROCESSED"; then 21702 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21703 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21704 else 21705 # Aha, the user has set a JAVA_HOME 21706 # let us use that as the Boot JDK. 21707 BOOT_JDK="$JAVA_HOME_PROCESSED" 21708 BOOT_JDK_FOUND=maybe 21709 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21710 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21711 fi 21712 fi 21713 21714 21715 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21716 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21717 # Do we have a bin/java? 21718 if test ! -x "$BOOT_JDK/bin/java"; then 21719 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21720 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21721 BOOT_JDK_FOUND=no 21722 else 21723 # Do we have a bin/javac? 21724 if test ! -x "$BOOT_JDK/bin/javac"; then 21725 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21726 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21727 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21728 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21729 BOOT_JDK_FOUND=no 21730 else 21731 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21732 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21733 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21734 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21735 BOOT_JDK_FOUND=no 21736 else 21737 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21738 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21739 21740 # Extra M4 quote needed to protect [] in grep expression. 21741 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21742 if test "x$FOUND_CORRECT_VERSION" = x; then 21743 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21744 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21745 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21746 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21747 BOOT_JDK_FOUND=no 21748 else 21749 # We're done! :-) 21750 BOOT_JDK_FOUND=yes 21751 21752 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21753 21754 # Input might be given as Windows format, start by converting to 21755 # unix format. 21756 path="$BOOT_JDK" 21757 new_path=`$CYGPATH -u "$path"` 21758 21759 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21760 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21761 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21762 # "foo.exe" is OK but "foo" is an error. 21763 # 21764 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21765 # It is also a way to make sure we got the proper file name for the real test later on. 21766 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21767 if test "x$test_shortpath" = 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 $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21771 fi 21772 21773 # Call helper function which possibly converts this using DOS-style short mode. 21774 # If so, the updated path is stored in $new_path. 21775 21776 input_path="$new_path" 21777 # Check if we need to convert this using DOS-style short mode. If the path 21778 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21779 # take no chances and rewrite it. 21780 # Note: m4 eats our [], so we need to use [ and ] instead. 21781 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21782 if test "x$has_forbidden_chars" != x; then 21783 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21784 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21785 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21786 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21787 # Going to short mode and back again did indeed matter. Since short mode is 21788 # case insensitive, let's make it lowercase to improve readability. 21789 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21790 # Now convert it back to Unix-stile (cygpath) 21791 input_path=`$CYGPATH -u "$shortmode_path"` 21792 new_path="$input_path" 21793 fi 21794 fi 21795 21796 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21797 if test "x$test_cygdrive_prefix" = x; then 21798 # As a simple fix, exclude /usr/bin since it's not a real path. 21799 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21800 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21801 # a path prefixed by /cygdrive for fixpath to work. 21802 new_path="$CYGWIN_ROOT_PATH$input_path" 21803 fi 21804 fi 21805 21806 21807 if test "x$path" != "x$new_path"; then 21808 BOOT_JDK="$new_path" 21809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21810 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21811 fi 21812 21813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21814 21815 path="$BOOT_JDK" 21816 has_colon=`$ECHO $path | $GREP ^.:` 21817 new_path="$path" 21818 if test "x$has_colon" = x; then 21819 # Not in mixed or Windows style, start by that. 21820 new_path=`cmd //c echo $path` 21821 fi 21822 21823 21824 input_path="$new_path" 21825 # Check if we need to convert this using DOS-style short mode. If the path 21826 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21827 # take no chances and rewrite it. 21828 # Note: m4 eats our [], so we need to use [ and ] instead. 21829 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21830 if test "x$has_forbidden_chars" != x; then 21831 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21832 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21833 fi 21834 21835 21836 windows_path="$new_path" 21837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21838 unix_path=`$CYGPATH -u "$windows_path"` 21839 new_path="$unix_path" 21840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21841 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21842 new_path="$unix_path" 21843 fi 21844 21845 if test "x$path" != "x$new_path"; then 21846 BOOT_JDK="$new_path" 21847 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21848 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21849 fi 21850 21851 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21852 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21853 21854 else 21855 # We're on a posix platform. Hooray! :) 21856 path="$BOOT_JDK" 21857 has_space=`$ECHO "$path" | $GREP " "` 21858 if test "x$has_space" != x; then 21859 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21860 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21861 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21862 fi 21863 21864 # Use eval to expand a potential ~ 21865 eval path="$path" 21866 if test ! -f "$path" && test ! -d "$path"; then 21867 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21868 fi 21869 21870 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21871 fi 21872 21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21874 $as_echo_n "checking for Boot JDK... " >&6; } 21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21876 $as_echo "$BOOT_JDK" >&6; } 21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21878 $as_echo_n "checking Boot JDK version... " >&6; } 21879 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21881 $as_echo "$BOOT_JDK_VERSION" >&6; } 21882 fi # end check jdk version 21883 fi # end check rt.jar 21884 fi # end check javac 21885 fi # end check java 21886 fi # end check boot jdk found 21887 fi 21888 21889 21890 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21891 21892 if test "x$BOOT_JDK_FOUND" = xno; then 21893 # Now execute the test 21894 21895 # Extract the first word of "javac", so it can be a program name with args. 21896 set dummy javac; ac_word=$2 21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21898 $as_echo_n "checking for $ac_word... " >&6; } 21899 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21900 $as_echo_n "(cached) " >&6 21901 else 21902 case $JAVAC_CHECK in 21903 [\\/]* | ?:[\\/]*) 21904 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21905 ;; 21906 *) 21907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21908 for as_dir in $PATH 21909 do 21910 IFS=$as_save_IFS 21911 test -z "$as_dir" && as_dir=. 21912 for ac_exec_ext in '' $ac_executable_extensions; do 21913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21914 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21916 break 2 21917 fi 21918 done 21919 done 21920 IFS=$as_save_IFS 21921 21922 ;; 21923 esac 21924 fi 21925 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21926 if test -n "$JAVAC_CHECK"; then 21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21928 $as_echo "$JAVAC_CHECK" >&6; } 21929 else 21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21931 $as_echo "no" >&6; } 21932 fi 21933 21934 21935 # Extract the first word of "java", so it can be a program name with args. 21936 set dummy java; ac_word=$2 21937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21938 $as_echo_n "checking for $ac_word... " >&6; } 21939 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21940 $as_echo_n "(cached) " >&6 21941 else 21942 case $JAVA_CHECK in 21943 [\\/]* | ?:[\\/]*) 21944 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21945 ;; 21946 *) 21947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21948 for as_dir in $PATH 21949 do 21950 IFS=$as_save_IFS 21951 test -z "$as_dir" && as_dir=. 21952 for ac_exec_ext in '' $ac_executable_extensions; do 21953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21954 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21956 break 2 21957 fi 21958 done 21959 done 21960 IFS=$as_save_IFS 21961 21962 ;; 21963 esac 21964 fi 21965 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21966 if test -n "$JAVA_CHECK"; then 21967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21968 $as_echo "$JAVA_CHECK" >&6; } 21969 else 21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21971 $as_echo "no" >&6; } 21972 fi 21973 21974 21975 BINARY="$JAVAC_CHECK" 21976 if test "x$JAVAC_CHECK" = x; then 21977 BINARY="$JAVA_CHECK" 21978 fi 21979 if test "x$BINARY" != x; then 21980 # So there is a java(c) binary, it might be part of a JDK. 21981 # Lets find the JDK/JRE directory by following symbolic links. 21982 # Linux/GNU systems often have links from /usr/bin/java to 21983 # /etc/alternatives/java to the real JDK binary. 21984 21985 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21986 # Follow a chain of symbolic links. Use readlink 21987 # where it exists, else fall back to horribly 21988 # complicated shell code. 21989 if test "x$READLINK_TESTED" != yes; then 21990 # On MacOSX there is a readlink tool with a different 21991 # purpose than the GNU readlink tool. Check the found readlink. 21992 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21993 if test "x$ISGNU" = x; then 21994 # A readlink that we do not know how to use. 21995 # Are there other non-GNU readlinks out there? 21996 READLINK_TESTED=yes 21997 READLINK= 21998 fi 21999 fi 22000 22001 if test "x$READLINK" != x; then 22002 BINARY=`$READLINK -f $BINARY` 22003 else 22004 # Save the current directory for restoring afterwards 22005 STARTDIR=$PWD 22006 COUNTER=0 22007 sym_link_dir=`$DIRNAME $BINARY` 22008 sym_link_file=`$BASENAME $BINARY` 22009 cd $sym_link_dir 22010 # Use -P flag to resolve symlinks in directories. 22011 cd `$THEPWDCMD -P` 22012 sym_link_dir=`$THEPWDCMD -P` 22013 # Resolve file symlinks 22014 while test $COUNTER -lt 20; do 22015 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 22016 if test "x$ISLINK" == x; then 22017 # This is not a symbolic link! We are done! 22018 break 22019 fi 22020 # Again resolve directory symlinks since the target of the just found 22021 # link could be in a different directory 22022 cd `$DIRNAME $ISLINK` 22023 sym_link_dir=`$THEPWDCMD -P` 22024 sym_link_file=`$BASENAME $ISLINK` 22025 let COUNTER=COUNTER+1 22026 done 22027 cd $STARTDIR 22028 BINARY=$sym_link_dir/$sym_link_file 22029 fi 22030 fi 22031 22032 BOOT_JDK=`dirname "$BINARY"` 22033 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 22034 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 22035 # Looks like we found ourselves an JDK 22036 BOOT_JDK_FOUND=maybe 22037 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 22038 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 22039 fi 22040 fi 22041 22042 22043 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22044 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22045 # Do we have a bin/java? 22046 if test ! -x "$BOOT_JDK/bin/java"; then 22047 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22048 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22049 BOOT_JDK_FOUND=no 22050 else 22051 # Do we have a bin/javac? 22052 if test ! -x "$BOOT_JDK/bin/javac"; then 22053 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22054 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22055 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22056 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22057 BOOT_JDK_FOUND=no 22058 else 22059 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22060 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22061 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22062 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22063 BOOT_JDK_FOUND=no 22064 else 22065 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22066 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22067 22068 # Extra M4 quote needed to protect [] in grep expression. 22069 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22070 if test "x$FOUND_CORRECT_VERSION" = x; then 22071 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22072 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22073 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22074 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22075 BOOT_JDK_FOUND=no 22076 else 22077 # We're done! :-) 22078 BOOT_JDK_FOUND=yes 22079 22080 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22081 22082 # Input might be given as Windows format, start by converting to 22083 # unix format. 22084 path="$BOOT_JDK" 22085 new_path=`$CYGPATH -u "$path"` 22086 22087 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22088 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22089 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22090 # "foo.exe" is OK but "foo" is an error. 22091 # 22092 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22093 # It is also a way to make sure we got the proper file name for the real test later on. 22094 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22095 if test "x$test_shortpath" = x; then 22096 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22097 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22098 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22099 fi 22100 22101 # Call helper function which possibly converts this using DOS-style short mode. 22102 # If so, the updated path is stored in $new_path. 22103 22104 input_path="$new_path" 22105 # Check if we need to convert this using DOS-style short mode. If the path 22106 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22107 # take no chances and rewrite it. 22108 # Note: m4 eats our [], so we need to use [ and ] instead. 22109 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22110 if test "x$has_forbidden_chars" != x; then 22111 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22112 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22113 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22114 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22115 # Going to short mode and back again did indeed matter. Since short mode is 22116 # case insensitive, let's make it lowercase to improve readability. 22117 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22118 # Now convert it back to Unix-stile (cygpath) 22119 input_path=`$CYGPATH -u "$shortmode_path"` 22120 new_path="$input_path" 22121 fi 22122 fi 22123 22124 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22125 if test "x$test_cygdrive_prefix" = x; then 22126 # As a simple fix, exclude /usr/bin since it's not a real path. 22127 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22128 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22129 # a path prefixed by /cygdrive for fixpath to work. 22130 new_path="$CYGWIN_ROOT_PATH$input_path" 22131 fi 22132 fi 22133 22134 22135 if test "x$path" != "x$new_path"; then 22136 BOOT_JDK="$new_path" 22137 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22138 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22139 fi 22140 22141 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22142 22143 path="$BOOT_JDK" 22144 has_colon=`$ECHO $path | $GREP ^.:` 22145 new_path="$path" 22146 if test "x$has_colon" = x; then 22147 # Not in mixed or Windows style, start by that. 22148 new_path=`cmd //c echo $path` 22149 fi 22150 22151 22152 input_path="$new_path" 22153 # Check if we need to convert this using DOS-style short mode. If the path 22154 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22155 # take no chances and rewrite it. 22156 # Note: m4 eats our [], so we need to use [ and ] instead. 22157 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22158 if test "x$has_forbidden_chars" != x; then 22159 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22160 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22161 fi 22162 22163 22164 windows_path="$new_path" 22165 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22166 unix_path=`$CYGPATH -u "$windows_path"` 22167 new_path="$unix_path" 22168 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22169 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22170 new_path="$unix_path" 22171 fi 22172 22173 if test "x$path" != "x$new_path"; then 22174 BOOT_JDK="$new_path" 22175 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22176 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22177 fi 22178 22179 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22180 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22181 22182 else 22183 # We're on a posix platform. Hooray! :) 22184 path="$BOOT_JDK" 22185 has_space=`$ECHO "$path" | $GREP " "` 22186 if test "x$has_space" != x; then 22187 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22188 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22189 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22190 fi 22191 22192 # Use eval to expand a potential ~ 22193 eval path="$path" 22194 if test ! -f "$path" && test ! -d "$path"; then 22195 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22196 fi 22197 22198 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22199 fi 22200 22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22202 $as_echo_n "checking for Boot JDK... " >&6; } 22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22204 $as_echo "$BOOT_JDK" >&6; } 22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22206 $as_echo_n "checking Boot JDK version... " >&6; } 22207 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22209 $as_echo "$BOOT_JDK_VERSION" >&6; } 22210 fi # end check jdk version 22211 fi # end check rt.jar 22212 fi # end check javac 22213 fi # end check java 22214 fi # end check boot jdk found 22215 fi 22216 22217 22218 # Test: Is there a JDK installed in default, well-known locations? 22219 22220 if test "x$BOOT_JDK_FOUND" = xno; then 22221 # Now execute the test 22222 22223 if test "x$OPENJDK_TARGET_OS" = xwindows; then 22224 22225 if test "x$BOOT_JDK_FOUND" = xno; then 22226 # Now execute the test 22227 22228 if test "x$ProgramW6432" != x; then 22229 VIRTUAL_DIR="$ProgramW6432/Java" 22230 22231 windows_path="$VIRTUAL_DIR" 22232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22233 unix_path=`$CYGPATH -u "$windows_path"` 22234 VIRTUAL_DIR="$unix_path" 22235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22236 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22237 VIRTUAL_DIR="$unix_path" 22238 fi 22239 22240 22241 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22242 BOOT_JDK_SUFFIX="" 22243 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22244 if test "x$ALL_JDKS_FOUND" != x; then 22245 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22246 22247 if test "x$BOOT_JDK_FOUND" = xno; then 22248 # Now execute the test 22249 22250 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22251 if test -d "$BOOT_JDK"; then 22252 BOOT_JDK_FOUND=maybe 22253 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22254 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22255 fi 22256 22257 22258 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22259 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22260 # Do we have a bin/java? 22261 if test ! -x "$BOOT_JDK/bin/java"; then 22262 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22263 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22264 BOOT_JDK_FOUND=no 22265 else 22266 # Do we have a bin/javac? 22267 if test ! -x "$BOOT_JDK/bin/javac"; then 22268 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22269 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22270 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22271 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22272 BOOT_JDK_FOUND=no 22273 else 22274 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22275 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22276 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22277 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22278 BOOT_JDK_FOUND=no 22279 else 22280 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22281 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22282 22283 # Extra M4 quote needed to protect [] in grep expression. 22284 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22285 if test "x$FOUND_CORRECT_VERSION" = x; then 22286 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22287 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22288 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22289 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22290 BOOT_JDK_FOUND=no 22291 else 22292 # We're done! :-) 22293 BOOT_JDK_FOUND=yes 22294 22295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22296 22297 # Input might be given as Windows format, start by converting to 22298 # unix format. 22299 path="$BOOT_JDK" 22300 new_path=`$CYGPATH -u "$path"` 22301 22302 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22303 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22304 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22305 # "foo.exe" is OK but "foo" is an error. 22306 # 22307 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22308 # It is also a way to make sure we got the proper file name for the real test later on. 22309 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22310 if test "x$test_shortpath" = x; then 22311 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22312 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22313 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22314 fi 22315 22316 # Call helper function which possibly converts this using DOS-style short mode. 22317 # If so, the updated path is stored in $new_path. 22318 22319 input_path="$new_path" 22320 # Check if we need to convert this using DOS-style short mode. If the path 22321 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22322 # take no chances and rewrite it. 22323 # Note: m4 eats our [], so we need to use [ and ] instead. 22324 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22325 if test "x$has_forbidden_chars" != x; then 22326 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22327 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22328 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22329 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22330 # Going to short mode and back again did indeed matter. Since short mode is 22331 # case insensitive, let's make it lowercase to improve readability. 22332 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22333 # Now convert it back to Unix-stile (cygpath) 22334 input_path=`$CYGPATH -u "$shortmode_path"` 22335 new_path="$input_path" 22336 fi 22337 fi 22338 22339 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22340 if test "x$test_cygdrive_prefix" = x; then 22341 # As a simple fix, exclude /usr/bin since it's not a real path. 22342 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22343 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22344 # a path prefixed by /cygdrive for fixpath to work. 22345 new_path="$CYGWIN_ROOT_PATH$input_path" 22346 fi 22347 fi 22348 22349 22350 if test "x$path" != "x$new_path"; then 22351 BOOT_JDK="$new_path" 22352 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22353 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22354 fi 22355 22356 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22357 22358 path="$BOOT_JDK" 22359 has_colon=`$ECHO $path | $GREP ^.:` 22360 new_path="$path" 22361 if test "x$has_colon" = x; then 22362 # Not in mixed or Windows style, start by that. 22363 new_path=`cmd //c echo $path` 22364 fi 22365 22366 22367 input_path="$new_path" 22368 # Check if we need to convert this using DOS-style short mode. If the path 22369 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22370 # take no chances and rewrite it. 22371 # Note: m4 eats our [], so we need to use [ and ] instead. 22372 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22373 if test "x$has_forbidden_chars" != x; then 22374 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22375 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22376 fi 22377 22378 22379 windows_path="$new_path" 22380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22381 unix_path=`$CYGPATH -u "$windows_path"` 22382 new_path="$unix_path" 22383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22384 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22385 new_path="$unix_path" 22386 fi 22387 22388 if test "x$path" != "x$new_path"; then 22389 BOOT_JDK="$new_path" 22390 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22391 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22392 fi 22393 22394 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22395 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22396 22397 else 22398 # We're on a posix platform. Hooray! :) 22399 path="$BOOT_JDK" 22400 has_space=`$ECHO "$path" | $GREP " "` 22401 if test "x$has_space" != x; then 22402 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22403 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22404 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22405 fi 22406 22407 # Use eval to expand a potential ~ 22408 eval path="$path" 22409 if test ! -f "$path" && test ! -d "$path"; then 22410 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22411 fi 22412 22413 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22414 fi 22415 22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22417 $as_echo_n "checking for Boot JDK... " >&6; } 22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22419 $as_echo "$BOOT_JDK" >&6; } 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22421 $as_echo_n "checking Boot JDK version... " >&6; } 22422 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22424 $as_echo "$BOOT_JDK_VERSION" >&6; } 22425 fi # end check jdk version 22426 fi # end check rt.jar 22427 fi # end check javac 22428 fi # end check java 22429 fi # end check boot jdk found 22430 fi 22431 22432 done 22433 fi 22434 22435 fi 22436 22437 22438 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22439 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22440 # Do we have a bin/java? 22441 if test ! -x "$BOOT_JDK/bin/java"; then 22442 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22443 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22444 BOOT_JDK_FOUND=no 22445 else 22446 # Do we have a bin/javac? 22447 if test ! -x "$BOOT_JDK/bin/javac"; then 22448 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22449 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22450 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22451 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22452 BOOT_JDK_FOUND=no 22453 else 22454 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22455 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22456 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22457 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22458 BOOT_JDK_FOUND=no 22459 else 22460 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22461 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22462 22463 # Extra M4 quote needed to protect [] in grep expression. 22464 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22465 if test "x$FOUND_CORRECT_VERSION" = x; then 22466 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22467 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22468 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22469 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22470 BOOT_JDK_FOUND=no 22471 else 22472 # We're done! :-) 22473 BOOT_JDK_FOUND=yes 22474 22475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22476 22477 # Input might be given as Windows format, start by converting to 22478 # unix format. 22479 path="$BOOT_JDK" 22480 new_path=`$CYGPATH -u "$path"` 22481 22482 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22483 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22484 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22485 # "foo.exe" is OK but "foo" is an error. 22486 # 22487 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22488 # It is also a way to make sure we got the proper file name for the real test later on. 22489 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22490 if test "x$test_shortpath" = x; then 22491 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22492 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22493 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22494 fi 22495 22496 # Call helper function which possibly converts this using DOS-style short mode. 22497 # If so, the updated path is stored in $new_path. 22498 22499 input_path="$new_path" 22500 # Check if we need to convert this using DOS-style short mode. If the path 22501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22502 # take no chances and rewrite it. 22503 # Note: m4 eats our [], so we need to use [ and ] instead. 22504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22505 if test "x$has_forbidden_chars" != x; then 22506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22507 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22508 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22509 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22510 # Going to short mode and back again did indeed matter. Since short mode is 22511 # case insensitive, let's make it lowercase to improve readability. 22512 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22513 # Now convert it back to Unix-stile (cygpath) 22514 input_path=`$CYGPATH -u "$shortmode_path"` 22515 new_path="$input_path" 22516 fi 22517 fi 22518 22519 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22520 if test "x$test_cygdrive_prefix" = x; then 22521 # As a simple fix, exclude /usr/bin since it's not a real path. 22522 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22523 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22524 # a path prefixed by /cygdrive for fixpath to work. 22525 new_path="$CYGWIN_ROOT_PATH$input_path" 22526 fi 22527 fi 22528 22529 22530 if test "x$path" != "x$new_path"; then 22531 BOOT_JDK="$new_path" 22532 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22533 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22534 fi 22535 22536 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22537 22538 path="$BOOT_JDK" 22539 has_colon=`$ECHO $path | $GREP ^.:` 22540 new_path="$path" 22541 if test "x$has_colon" = x; then 22542 # Not in mixed or Windows style, start by that. 22543 new_path=`cmd //c echo $path` 22544 fi 22545 22546 22547 input_path="$new_path" 22548 # Check if we need to convert this using DOS-style short mode. If the path 22549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22550 # take no chances and rewrite it. 22551 # Note: m4 eats our [], so we need to use [ and ] instead. 22552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22553 if test "x$has_forbidden_chars" != x; then 22554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22555 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22556 fi 22557 22558 22559 windows_path="$new_path" 22560 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22561 unix_path=`$CYGPATH -u "$windows_path"` 22562 new_path="$unix_path" 22563 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22564 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22565 new_path="$unix_path" 22566 fi 22567 22568 if test "x$path" != "x$new_path"; then 22569 BOOT_JDK="$new_path" 22570 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22571 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22572 fi 22573 22574 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22575 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22576 22577 else 22578 # We're on a posix platform. Hooray! :) 22579 path="$BOOT_JDK" 22580 has_space=`$ECHO "$path" | $GREP " "` 22581 if test "x$has_space" != x; then 22582 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22583 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22584 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22585 fi 22586 22587 # Use eval to expand a potential ~ 22588 eval path="$path" 22589 if test ! -f "$path" && test ! -d "$path"; then 22590 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22591 fi 22592 22593 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22594 fi 22595 22596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22597 $as_echo_n "checking for Boot JDK... " >&6; } 22598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22599 $as_echo "$BOOT_JDK" >&6; } 22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22601 $as_echo_n "checking Boot JDK version... " >&6; } 22602 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22604 $as_echo "$BOOT_JDK_VERSION" >&6; } 22605 fi # end check jdk version 22606 fi # end check rt.jar 22607 fi # end check javac 22608 fi # end check java 22609 fi # end check boot jdk found 22610 fi 22611 22612 22613 if test "x$BOOT_JDK_FOUND" = xno; then 22614 # Now execute the test 22615 22616 if test "x$PROGRAMW6432" != x; then 22617 VIRTUAL_DIR="$PROGRAMW6432/Java" 22618 22619 windows_path="$VIRTUAL_DIR" 22620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22621 unix_path=`$CYGPATH -u "$windows_path"` 22622 VIRTUAL_DIR="$unix_path" 22623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22625 VIRTUAL_DIR="$unix_path" 22626 fi 22627 22628 22629 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22630 BOOT_JDK_SUFFIX="" 22631 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22632 if test "x$ALL_JDKS_FOUND" != x; then 22633 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22634 22635 if test "x$BOOT_JDK_FOUND" = xno; then 22636 # Now execute the test 22637 22638 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22639 if test -d "$BOOT_JDK"; then 22640 BOOT_JDK_FOUND=maybe 22641 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22642 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22643 fi 22644 22645 22646 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22647 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22648 # Do we have a bin/java? 22649 if test ! -x "$BOOT_JDK/bin/java"; then 22650 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22651 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22652 BOOT_JDK_FOUND=no 22653 else 22654 # Do we have a bin/javac? 22655 if test ! -x "$BOOT_JDK/bin/javac"; then 22656 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22657 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22658 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22659 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22660 BOOT_JDK_FOUND=no 22661 else 22662 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22663 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22664 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22665 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22666 BOOT_JDK_FOUND=no 22667 else 22668 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22669 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22670 22671 # Extra M4 quote needed to protect [] in grep expression. 22672 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22673 if test "x$FOUND_CORRECT_VERSION" = x; then 22674 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22675 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22676 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22677 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22678 BOOT_JDK_FOUND=no 22679 else 22680 # We're done! :-) 22681 BOOT_JDK_FOUND=yes 22682 22683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22684 22685 # Input might be given as Windows format, start by converting to 22686 # unix format. 22687 path="$BOOT_JDK" 22688 new_path=`$CYGPATH -u "$path"` 22689 22690 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22691 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22692 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22693 # "foo.exe" is OK but "foo" is an error. 22694 # 22695 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22696 # It is also a way to make sure we got the proper file name for the real test later on. 22697 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22698 if test "x$test_shortpath" = x; then 22699 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22700 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22701 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22702 fi 22703 22704 # Call helper function which possibly converts this using DOS-style short mode. 22705 # If so, the updated path is stored in $new_path. 22706 22707 input_path="$new_path" 22708 # Check if we need to convert this using DOS-style short mode. If the path 22709 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22710 # take no chances and rewrite it. 22711 # Note: m4 eats our [], so we need to use [ and ] instead. 22712 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22713 if test "x$has_forbidden_chars" != x; then 22714 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22715 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22716 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22717 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22718 # Going to short mode and back again did indeed matter. Since short mode is 22719 # case insensitive, let's make it lowercase to improve readability. 22720 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22721 # Now convert it back to Unix-stile (cygpath) 22722 input_path=`$CYGPATH -u "$shortmode_path"` 22723 new_path="$input_path" 22724 fi 22725 fi 22726 22727 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22728 if test "x$test_cygdrive_prefix" = x; then 22729 # As a simple fix, exclude /usr/bin since it's not a real path. 22730 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22731 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22732 # a path prefixed by /cygdrive for fixpath to work. 22733 new_path="$CYGWIN_ROOT_PATH$input_path" 22734 fi 22735 fi 22736 22737 22738 if test "x$path" != "x$new_path"; then 22739 BOOT_JDK="$new_path" 22740 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22741 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22742 fi 22743 22744 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22745 22746 path="$BOOT_JDK" 22747 has_colon=`$ECHO $path | $GREP ^.:` 22748 new_path="$path" 22749 if test "x$has_colon" = x; then 22750 # Not in mixed or Windows style, start by that. 22751 new_path=`cmd //c echo $path` 22752 fi 22753 22754 22755 input_path="$new_path" 22756 # Check if we need to convert this using DOS-style short mode. If the path 22757 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22758 # take no chances and rewrite it. 22759 # Note: m4 eats our [], so we need to use [ and ] instead. 22760 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22761 if test "x$has_forbidden_chars" != x; then 22762 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22763 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22764 fi 22765 22766 22767 windows_path="$new_path" 22768 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22769 unix_path=`$CYGPATH -u "$windows_path"` 22770 new_path="$unix_path" 22771 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22772 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22773 new_path="$unix_path" 22774 fi 22775 22776 if test "x$path" != "x$new_path"; then 22777 BOOT_JDK="$new_path" 22778 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22779 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22780 fi 22781 22782 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22783 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22784 22785 else 22786 # We're on a posix platform. Hooray! :) 22787 path="$BOOT_JDK" 22788 has_space=`$ECHO "$path" | $GREP " "` 22789 if test "x$has_space" != x; then 22790 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22791 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22792 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22793 fi 22794 22795 # Use eval to expand a potential ~ 22796 eval path="$path" 22797 if test ! -f "$path" && test ! -d "$path"; then 22798 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22799 fi 22800 22801 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22802 fi 22803 22804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22805 $as_echo_n "checking for Boot JDK... " >&6; } 22806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22807 $as_echo "$BOOT_JDK" >&6; } 22808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22809 $as_echo_n "checking Boot JDK version... " >&6; } 22810 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22812 $as_echo "$BOOT_JDK_VERSION" >&6; } 22813 fi # end check jdk version 22814 fi # end check rt.jar 22815 fi # end check javac 22816 fi # end check java 22817 fi # end check boot jdk found 22818 fi 22819 22820 done 22821 fi 22822 22823 fi 22824 22825 22826 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22827 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22828 # Do we have a bin/java? 22829 if test ! -x "$BOOT_JDK/bin/java"; then 22830 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22831 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22832 BOOT_JDK_FOUND=no 22833 else 22834 # Do we have a bin/javac? 22835 if test ! -x "$BOOT_JDK/bin/javac"; then 22836 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22837 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22838 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22839 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22840 BOOT_JDK_FOUND=no 22841 else 22842 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22843 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22844 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22845 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22846 BOOT_JDK_FOUND=no 22847 else 22848 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22849 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22850 22851 # Extra M4 quote needed to protect [] in grep expression. 22852 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22853 if test "x$FOUND_CORRECT_VERSION" = x; then 22854 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22855 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22856 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22857 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22858 BOOT_JDK_FOUND=no 22859 else 22860 # We're done! :-) 22861 BOOT_JDK_FOUND=yes 22862 22863 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22864 22865 # Input might be given as Windows format, start by converting to 22866 # unix format. 22867 path="$BOOT_JDK" 22868 new_path=`$CYGPATH -u "$path"` 22869 22870 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22871 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22872 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22873 # "foo.exe" is OK but "foo" is an error. 22874 # 22875 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22876 # It is also a way to make sure we got the proper file name for the real test later on. 22877 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22878 if test "x$test_shortpath" = x; then 22879 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22880 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22881 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22882 fi 22883 22884 # Call helper function which possibly converts this using DOS-style short mode. 22885 # If so, the updated path is stored in $new_path. 22886 22887 input_path="$new_path" 22888 # Check if we need to convert this using DOS-style short mode. If the path 22889 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22890 # take no chances and rewrite it. 22891 # Note: m4 eats our [], so we need to use [ and ] instead. 22892 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22893 if test "x$has_forbidden_chars" != x; then 22894 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22895 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22896 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22897 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22898 # Going to short mode and back again did indeed matter. Since short mode is 22899 # case insensitive, let's make it lowercase to improve readability. 22900 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22901 # Now convert it back to Unix-stile (cygpath) 22902 input_path=`$CYGPATH -u "$shortmode_path"` 22903 new_path="$input_path" 22904 fi 22905 fi 22906 22907 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22908 if test "x$test_cygdrive_prefix" = x; then 22909 # As a simple fix, exclude /usr/bin since it's not a real path. 22910 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22911 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22912 # a path prefixed by /cygdrive for fixpath to work. 22913 new_path="$CYGWIN_ROOT_PATH$input_path" 22914 fi 22915 fi 22916 22917 22918 if test "x$path" != "x$new_path"; then 22919 BOOT_JDK="$new_path" 22920 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22921 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22922 fi 22923 22924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22925 22926 path="$BOOT_JDK" 22927 has_colon=`$ECHO $path | $GREP ^.:` 22928 new_path="$path" 22929 if test "x$has_colon" = x; then 22930 # Not in mixed or Windows style, start by that. 22931 new_path=`cmd //c echo $path` 22932 fi 22933 22934 22935 input_path="$new_path" 22936 # Check if we need to convert this using DOS-style short mode. If the path 22937 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22938 # take no chances and rewrite it. 22939 # Note: m4 eats our [], so we need to use [ and ] instead. 22940 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22941 if test "x$has_forbidden_chars" != x; then 22942 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22943 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22944 fi 22945 22946 22947 windows_path="$new_path" 22948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22949 unix_path=`$CYGPATH -u "$windows_path"` 22950 new_path="$unix_path" 22951 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22952 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22953 new_path="$unix_path" 22954 fi 22955 22956 if test "x$path" != "x$new_path"; then 22957 BOOT_JDK="$new_path" 22958 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22959 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22960 fi 22961 22962 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22963 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22964 22965 else 22966 # We're on a posix platform. Hooray! :) 22967 path="$BOOT_JDK" 22968 has_space=`$ECHO "$path" | $GREP " "` 22969 if test "x$has_space" != x; then 22970 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22971 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22972 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22973 fi 22974 22975 # Use eval to expand a potential ~ 22976 eval path="$path" 22977 if test ! -f "$path" && test ! -d "$path"; then 22978 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22979 fi 22980 22981 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22982 fi 22983 22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22985 $as_echo_n "checking for Boot JDK... " >&6; } 22986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22987 $as_echo "$BOOT_JDK" >&6; } 22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22989 $as_echo_n "checking Boot JDK version... " >&6; } 22990 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22992 $as_echo "$BOOT_JDK_VERSION" >&6; } 22993 fi # end check jdk version 22994 fi # end check rt.jar 22995 fi # end check javac 22996 fi # end check java 22997 fi # end check boot jdk found 22998 fi 22999 23000 23001 if test "x$BOOT_JDK_FOUND" = xno; then 23002 # Now execute the test 23003 23004 if test "x$PROGRAMFILES" != x; then 23005 VIRTUAL_DIR="$PROGRAMFILES/Java" 23006 23007 windows_path="$VIRTUAL_DIR" 23008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23009 unix_path=`$CYGPATH -u "$windows_path"` 23010 VIRTUAL_DIR="$unix_path" 23011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23012 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23013 VIRTUAL_DIR="$unix_path" 23014 fi 23015 23016 23017 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23018 BOOT_JDK_SUFFIX="" 23019 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23020 if test "x$ALL_JDKS_FOUND" != x; then 23021 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23022 23023 if test "x$BOOT_JDK_FOUND" = xno; then 23024 # Now execute the test 23025 23026 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23027 if test -d "$BOOT_JDK"; then 23028 BOOT_JDK_FOUND=maybe 23029 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23030 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23031 fi 23032 23033 23034 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23035 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23036 # Do we have a bin/java? 23037 if test ! -x "$BOOT_JDK/bin/java"; then 23038 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23039 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23040 BOOT_JDK_FOUND=no 23041 else 23042 # Do we have a bin/javac? 23043 if test ! -x "$BOOT_JDK/bin/javac"; then 23044 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23045 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23046 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23047 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23048 BOOT_JDK_FOUND=no 23049 else 23050 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23051 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23052 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23053 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23054 BOOT_JDK_FOUND=no 23055 else 23056 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23057 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23058 23059 # Extra M4 quote needed to protect [] in grep expression. 23060 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23061 if test "x$FOUND_CORRECT_VERSION" = x; then 23062 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23063 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23064 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23065 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23066 BOOT_JDK_FOUND=no 23067 else 23068 # We're done! :-) 23069 BOOT_JDK_FOUND=yes 23070 23071 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23072 23073 # Input might be given as Windows format, start by converting to 23074 # unix format. 23075 path="$BOOT_JDK" 23076 new_path=`$CYGPATH -u "$path"` 23077 23078 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23079 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23080 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23081 # "foo.exe" is OK but "foo" is an error. 23082 # 23083 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23084 # It is also a way to make sure we got the proper file name for the real test later on. 23085 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23086 if test "x$test_shortpath" = x; then 23087 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23088 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23089 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23090 fi 23091 23092 # Call helper function which possibly converts this using DOS-style short mode. 23093 # If so, the updated path is stored in $new_path. 23094 23095 input_path="$new_path" 23096 # Check if we need to convert this using DOS-style short mode. If the path 23097 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23098 # take no chances and rewrite it. 23099 # Note: m4 eats our [], so we need to use [ and ] instead. 23100 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23101 if test "x$has_forbidden_chars" != x; then 23102 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23103 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23104 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23105 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23106 # Going to short mode and back again did indeed matter. Since short mode is 23107 # case insensitive, let's make it lowercase to improve readability. 23108 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23109 # Now convert it back to Unix-stile (cygpath) 23110 input_path=`$CYGPATH -u "$shortmode_path"` 23111 new_path="$input_path" 23112 fi 23113 fi 23114 23115 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23116 if test "x$test_cygdrive_prefix" = x; then 23117 # As a simple fix, exclude /usr/bin since it's not a real path. 23118 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23119 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23120 # a path prefixed by /cygdrive for fixpath to work. 23121 new_path="$CYGWIN_ROOT_PATH$input_path" 23122 fi 23123 fi 23124 23125 23126 if test "x$path" != "x$new_path"; then 23127 BOOT_JDK="$new_path" 23128 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23129 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23130 fi 23131 23132 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23133 23134 path="$BOOT_JDK" 23135 has_colon=`$ECHO $path | $GREP ^.:` 23136 new_path="$path" 23137 if test "x$has_colon" = x; then 23138 # Not in mixed or Windows style, start by that. 23139 new_path=`cmd //c echo $path` 23140 fi 23141 23142 23143 input_path="$new_path" 23144 # Check if we need to convert this using DOS-style short mode. If the path 23145 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23146 # take no chances and rewrite it. 23147 # Note: m4 eats our [], so we need to use [ and ] instead. 23148 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23149 if test "x$has_forbidden_chars" != x; then 23150 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23151 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23152 fi 23153 23154 23155 windows_path="$new_path" 23156 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23157 unix_path=`$CYGPATH -u "$windows_path"` 23158 new_path="$unix_path" 23159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23160 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23161 new_path="$unix_path" 23162 fi 23163 23164 if test "x$path" != "x$new_path"; then 23165 BOOT_JDK="$new_path" 23166 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23167 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23168 fi 23169 23170 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23171 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23172 23173 else 23174 # We're on a posix platform. Hooray! :) 23175 path="$BOOT_JDK" 23176 has_space=`$ECHO "$path" | $GREP " "` 23177 if test "x$has_space" != x; then 23178 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23179 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23180 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23181 fi 23182 23183 # Use eval to expand a potential ~ 23184 eval path="$path" 23185 if test ! -f "$path" && test ! -d "$path"; then 23186 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23187 fi 23188 23189 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23190 fi 23191 23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23193 $as_echo_n "checking for Boot JDK... " >&6; } 23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23195 $as_echo "$BOOT_JDK" >&6; } 23196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23197 $as_echo_n "checking Boot JDK version... " >&6; } 23198 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23200 $as_echo "$BOOT_JDK_VERSION" >&6; } 23201 fi # end check jdk version 23202 fi # end check rt.jar 23203 fi # end check javac 23204 fi # end check java 23205 fi # end check boot jdk found 23206 fi 23207 23208 done 23209 fi 23210 23211 fi 23212 23213 23214 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23215 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23216 # Do we have a bin/java? 23217 if test ! -x "$BOOT_JDK/bin/java"; then 23218 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23219 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23220 BOOT_JDK_FOUND=no 23221 else 23222 # Do we have a bin/javac? 23223 if test ! -x "$BOOT_JDK/bin/javac"; then 23224 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23225 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23226 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23227 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23228 BOOT_JDK_FOUND=no 23229 else 23230 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23231 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23232 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23233 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23234 BOOT_JDK_FOUND=no 23235 else 23236 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23237 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23238 23239 # Extra M4 quote needed to protect [] in grep expression. 23240 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23241 if test "x$FOUND_CORRECT_VERSION" = x; then 23242 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23243 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23244 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23245 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23246 BOOT_JDK_FOUND=no 23247 else 23248 # We're done! :-) 23249 BOOT_JDK_FOUND=yes 23250 23251 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23252 23253 # Input might be given as Windows format, start by converting to 23254 # unix format. 23255 path="$BOOT_JDK" 23256 new_path=`$CYGPATH -u "$path"` 23257 23258 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23259 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23260 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23261 # "foo.exe" is OK but "foo" is an error. 23262 # 23263 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23264 # It is also a way to make sure we got the proper file name for the real test later on. 23265 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23266 if test "x$test_shortpath" = x; then 23267 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23268 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23269 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23270 fi 23271 23272 # Call helper function which possibly converts this using DOS-style short mode. 23273 # If so, the updated path is stored in $new_path. 23274 23275 input_path="$new_path" 23276 # Check if we need to convert this using DOS-style short mode. If the path 23277 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23278 # take no chances and rewrite it. 23279 # Note: m4 eats our [], so we need to use [ and ] instead. 23280 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23281 if test "x$has_forbidden_chars" != x; then 23282 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23283 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23284 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23285 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23286 # Going to short mode and back again did indeed matter. Since short mode is 23287 # case insensitive, let's make it lowercase to improve readability. 23288 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23289 # Now convert it back to Unix-stile (cygpath) 23290 input_path=`$CYGPATH -u "$shortmode_path"` 23291 new_path="$input_path" 23292 fi 23293 fi 23294 23295 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23296 if test "x$test_cygdrive_prefix" = x; then 23297 # As a simple fix, exclude /usr/bin since it's not a real path. 23298 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23299 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23300 # a path prefixed by /cygdrive for fixpath to work. 23301 new_path="$CYGWIN_ROOT_PATH$input_path" 23302 fi 23303 fi 23304 23305 23306 if test "x$path" != "x$new_path"; then 23307 BOOT_JDK="$new_path" 23308 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23309 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23310 fi 23311 23312 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23313 23314 path="$BOOT_JDK" 23315 has_colon=`$ECHO $path | $GREP ^.:` 23316 new_path="$path" 23317 if test "x$has_colon" = x; then 23318 # Not in mixed or Windows style, start by that. 23319 new_path=`cmd //c echo $path` 23320 fi 23321 23322 23323 input_path="$new_path" 23324 # Check if we need to convert this using DOS-style short mode. If the path 23325 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23326 # take no chances and rewrite it. 23327 # Note: m4 eats our [], so we need to use [ and ] instead. 23328 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23329 if test "x$has_forbidden_chars" != x; then 23330 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23331 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23332 fi 23333 23334 23335 windows_path="$new_path" 23336 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23337 unix_path=`$CYGPATH -u "$windows_path"` 23338 new_path="$unix_path" 23339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23340 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23341 new_path="$unix_path" 23342 fi 23343 23344 if test "x$path" != "x$new_path"; then 23345 BOOT_JDK="$new_path" 23346 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23347 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23348 fi 23349 23350 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23351 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23352 23353 else 23354 # We're on a posix platform. Hooray! :) 23355 path="$BOOT_JDK" 23356 has_space=`$ECHO "$path" | $GREP " "` 23357 if test "x$has_space" != x; then 23358 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23359 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23360 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23361 fi 23362 23363 # Use eval to expand a potential ~ 23364 eval path="$path" 23365 if test ! -f "$path" && test ! -d "$path"; then 23366 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23367 fi 23368 23369 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23370 fi 23371 23372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23373 $as_echo_n "checking for Boot JDK... " >&6; } 23374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23375 $as_echo "$BOOT_JDK" >&6; } 23376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23377 $as_echo_n "checking Boot JDK version... " >&6; } 23378 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23380 $as_echo "$BOOT_JDK_VERSION" >&6; } 23381 fi # end check jdk version 23382 fi # end check rt.jar 23383 fi # end check javac 23384 fi # end check java 23385 fi # end check boot jdk found 23386 fi 23387 23388 23389 if test "x$BOOT_JDK_FOUND" = xno; then 23390 # Now execute the test 23391 23392 if test "x$ProgramFiles" != x; then 23393 VIRTUAL_DIR="$ProgramFiles/Java" 23394 23395 windows_path="$VIRTUAL_DIR" 23396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23397 unix_path=`$CYGPATH -u "$windows_path"` 23398 VIRTUAL_DIR="$unix_path" 23399 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23400 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23401 VIRTUAL_DIR="$unix_path" 23402 fi 23403 23404 23405 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23406 BOOT_JDK_SUFFIX="" 23407 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23408 if test "x$ALL_JDKS_FOUND" != x; then 23409 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23410 23411 if test "x$BOOT_JDK_FOUND" = xno; then 23412 # Now execute the test 23413 23414 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23415 if test -d "$BOOT_JDK"; then 23416 BOOT_JDK_FOUND=maybe 23417 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23418 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23419 fi 23420 23421 23422 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23423 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23424 # Do we have a bin/java? 23425 if test ! -x "$BOOT_JDK/bin/java"; then 23426 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23427 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23428 BOOT_JDK_FOUND=no 23429 else 23430 # Do we have a bin/javac? 23431 if test ! -x "$BOOT_JDK/bin/javac"; then 23432 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23433 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23434 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23435 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23436 BOOT_JDK_FOUND=no 23437 else 23438 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23439 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23440 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23441 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23442 BOOT_JDK_FOUND=no 23443 else 23444 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23445 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23446 23447 # Extra M4 quote needed to protect [] in grep expression. 23448 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23449 if test "x$FOUND_CORRECT_VERSION" = x; then 23450 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23451 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23452 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23453 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23454 BOOT_JDK_FOUND=no 23455 else 23456 # We're done! :-) 23457 BOOT_JDK_FOUND=yes 23458 23459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23460 23461 # Input might be given as Windows format, start by converting to 23462 # unix format. 23463 path="$BOOT_JDK" 23464 new_path=`$CYGPATH -u "$path"` 23465 23466 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23467 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23468 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23469 # "foo.exe" is OK but "foo" is an error. 23470 # 23471 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23472 # It is also a way to make sure we got the proper file name for the real test later on. 23473 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23474 if test "x$test_shortpath" = x; then 23475 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23476 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23477 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23478 fi 23479 23480 # Call helper function which possibly converts this using DOS-style short mode. 23481 # If so, the updated path is stored in $new_path. 23482 23483 input_path="$new_path" 23484 # Check if we need to convert this using DOS-style short mode. If the path 23485 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23486 # take no chances and rewrite it. 23487 # Note: m4 eats our [], so we need to use [ and ] instead. 23488 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23489 if test "x$has_forbidden_chars" != x; then 23490 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23491 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23492 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23493 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23494 # Going to short mode and back again did indeed matter. Since short mode is 23495 # case insensitive, let's make it lowercase to improve readability. 23496 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23497 # Now convert it back to Unix-stile (cygpath) 23498 input_path=`$CYGPATH -u "$shortmode_path"` 23499 new_path="$input_path" 23500 fi 23501 fi 23502 23503 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23504 if test "x$test_cygdrive_prefix" = x; then 23505 # As a simple fix, exclude /usr/bin since it's not a real path. 23506 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23507 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23508 # a path prefixed by /cygdrive for fixpath to work. 23509 new_path="$CYGWIN_ROOT_PATH$input_path" 23510 fi 23511 fi 23512 23513 23514 if test "x$path" != "x$new_path"; then 23515 BOOT_JDK="$new_path" 23516 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23517 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23518 fi 23519 23520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23521 23522 path="$BOOT_JDK" 23523 has_colon=`$ECHO $path | $GREP ^.:` 23524 new_path="$path" 23525 if test "x$has_colon" = x; then 23526 # Not in mixed or Windows style, start by that. 23527 new_path=`cmd //c echo $path` 23528 fi 23529 23530 23531 input_path="$new_path" 23532 # Check if we need to convert this using DOS-style short mode. If the path 23533 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23534 # take no chances and rewrite it. 23535 # Note: m4 eats our [], so we need to use [ and ] instead. 23536 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23537 if test "x$has_forbidden_chars" != x; then 23538 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23539 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23540 fi 23541 23542 23543 windows_path="$new_path" 23544 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23545 unix_path=`$CYGPATH -u "$windows_path"` 23546 new_path="$unix_path" 23547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23548 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23549 new_path="$unix_path" 23550 fi 23551 23552 if test "x$path" != "x$new_path"; then 23553 BOOT_JDK="$new_path" 23554 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23555 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23556 fi 23557 23558 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23559 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23560 23561 else 23562 # We're on a posix platform. Hooray! :) 23563 path="$BOOT_JDK" 23564 has_space=`$ECHO "$path" | $GREP " "` 23565 if test "x$has_space" != x; then 23566 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23567 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23568 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23569 fi 23570 23571 # Use eval to expand a potential ~ 23572 eval path="$path" 23573 if test ! -f "$path" && test ! -d "$path"; then 23574 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23575 fi 23576 23577 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23578 fi 23579 23580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23581 $as_echo_n "checking for Boot JDK... " >&6; } 23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23583 $as_echo "$BOOT_JDK" >&6; } 23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23585 $as_echo_n "checking Boot JDK version... " >&6; } 23586 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23588 $as_echo "$BOOT_JDK_VERSION" >&6; } 23589 fi # end check jdk version 23590 fi # end check rt.jar 23591 fi # end check javac 23592 fi # end check java 23593 fi # end check boot jdk found 23594 fi 23595 23596 done 23597 fi 23598 23599 fi 23600 23601 23602 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23603 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23604 # Do we have a bin/java? 23605 if test ! -x "$BOOT_JDK/bin/java"; then 23606 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23607 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23608 BOOT_JDK_FOUND=no 23609 else 23610 # Do we have a bin/javac? 23611 if test ! -x "$BOOT_JDK/bin/javac"; then 23612 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23613 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23614 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23615 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23616 BOOT_JDK_FOUND=no 23617 else 23618 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23619 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23620 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23621 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23622 BOOT_JDK_FOUND=no 23623 else 23624 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23625 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23626 23627 # Extra M4 quote needed to protect [] in grep expression. 23628 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23629 if test "x$FOUND_CORRECT_VERSION" = x; then 23630 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23631 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23632 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23633 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23634 BOOT_JDK_FOUND=no 23635 else 23636 # We're done! :-) 23637 BOOT_JDK_FOUND=yes 23638 23639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23640 23641 # Input might be given as Windows format, start by converting to 23642 # unix format. 23643 path="$BOOT_JDK" 23644 new_path=`$CYGPATH -u "$path"` 23645 23646 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23647 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23648 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23649 # "foo.exe" is OK but "foo" is an error. 23650 # 23651 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23652 # It is also a way to make sure we got the proper file name for the real test later on. 23653 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23654 if test "x$test_shortpath" = x; then 23655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23656 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23657 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23658 fi 23659 23660 # Call helper function which possibly converts this using DOS-style short mode. 23661 # If so, the updated path is stored in $new_path. 23662 23663 input_path="$new_path" 23664 # Check if we need to convert this using DOS-style short mode. If the path 23665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23666 # take no chances and rewrite it. 23667 # Note: m4 eats our [], so we need to use [ and ] instead. 23668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23669 if test "x$has_forbidden_chars" != x; then 23670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23671 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23672 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23673 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23674 # Going to short mode and back again did indeed matter. Since short mode is 23675 # case insensitive, let's make it lowercase to improve readability. 23676 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23677 # Now convert it back to Unix-stile (cygpath) 23678 input_path=`$CYGPATH -u "$shortmode_path"` 23679 new_path="$input_path" 23680 fi 23681 fi 23682 23683 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23684 if test "x$test_cygdrive_prefix" = x; then 23685 # As a simple fix, exclude /usr/bin since it's not a real path. 23686 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23687 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23688 # a path prefixed by /cygdrive for fixpath to work. 23689 new_path="$CYGWIN_ROOT_PATH$input_path" 23690 fi 23691 fi 23692 23693 23694 if test "x$path" != "x$new_path"; then 23695 BOOT_JDK="$new_path" 23696 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23697 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23698 fi 23699 23700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23701 23702 path="$BOOT_JDK" 23703 has_colon=`$ECHO $path | $GREP ^.:` 23704 new_path="$path" 23705 if test "x$has_colon" = x; then 23706 # Not in mixed or Windows style, start by that. 23707 new_path=`cmd //c echo $path` 23708 fi 23709 23710 23711 input_path="$new_path" 23712 # Check if we need to convert this using DOS-style short mode. If the path 23713 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23714 # take no chances and rewrite it. 23715 # Note: m4 eats our [], so we need to use [ and ] instead. 23716 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23717 if test "x$has_forbidden_chars" != x; then 23718 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23719 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23720 fi 23721 23722 23723 windows_path="$new_path" 23724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23725 unix_path=`$CYGPATH -u "$windows_path"` 23726 new_path="$unix_path" 23727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23728 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23729 new_path="$unix_path" 23730 fi 23731 23732 if test "x$path" != "x$new_path"; then 23733 BOOT_JDK="$new_path" 23734 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23735 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23736 fi 23737 23738 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23739 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23740 23741 else 23742 # We're on a posix platform. Hooray! :) 23743 path="$BOOT_JDK" 23744 has_space=`$ECHO "$path" | $GREP " "` 23745 if test "x$has_space" != x; then 23746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23747 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23748 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23749 fi 23750 23751 # Use eval to expand a potential ~ 23752 eval path="$path" 23753 if test ! -f "$path" && test ! -d "$path"; then 23754 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23755 fi 23756 23757 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23758 fi 23759 23760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23761 $as_echo_n "checking for Boot JDK... " >&6; } 23762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23763 $as_echo "$BOOT_JDK" >&6; } 23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23765 $as_echo_n "checking Boot JDK version... " >&6; } 23766 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23768 $as_echo "$BOOT_JDK_VERSION" >&6; } 23769 fi # end check jdk version 23770 fi # end check rt.jar 23771 fi # end check javac 23772 fi # end check java 23773 fi # end check boot jdk found 23774 fi 23775 23776 23777 if test "x$BOOT_JDK_FOUND" = xno; then 23778 # Now execute the test 23779 23780 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23781 BOOT_JDK_SUFFIX="" 23782 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23783 if test "x$ALL_JDKS_FOUND" != x; then 23784 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23785 23786 if test "x$BOOT_JDK_FOUND" = xno; then 23787 # Now execute the test 23788 23789 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23790 if test -d "$BOOT_JDK"; then 23791 BOOT_JDK_FOUND=maybe 23792 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23793 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23794 fi 23795 23796 23797 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23798 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23799 # Do we have a bin/java? 23800 if test ! -x "$BOOT_JDK/bin/java"; then 23801 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23802 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23803 BOOT_JDK_FOUND=no 23804 else 23805 # Do we have a bin/javac? 23806 if test ! -x "$BOOT_JDK/bin/javac"; then 23807 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23808 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23809 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23810 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23811 BOOT_JDK_FOUND=no 23812 else 23813 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23814 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23815 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23816 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23817 BOOT_JDK_FOUND=no 23818 else 23819 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23820 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23821 23822 # Extra M4 quote needed to protect [] in grep expression. 23823 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23824 if test "x$FOUND_CORRECT_VERSION" = x; then 23825 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23826 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23827 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23828 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23829 BOOT_JDK_FOUND=no 23830 else 23831 # We're done! :-) 23832 BOOT_JDK_FOUND=yes 23833 23834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23835 23836 # Input might be given as Windows format, start by converting to 23837 # unix format. 23838 path="$BOOT_JDK" 23839 new_path=`$CYGPATH -u "$path"` 23840 23841 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23842 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23843 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23844 # "foo.exe" is OK but "foo" is an error. 23845 # 23846 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23847 # It is also a way to make sure we got the proper file name for the real test later on. 23848 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23849 if test "x$test_shortpath" = x; then 23850 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23851 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23852 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23853 fi 23854 23855 # Call helper function which possibly converts this using DOS-style short mode. 23856 # If so, the updated path is stored in $new_path. 23857 23858 input_path="$new_path" 23859 # Check if we need to convert this using DOS-style short mode. If the path 23860 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23861 # take no chances and rewrite it. 23862 # Note: m4 eats our [], so we need to use [ and ] instead. 23863 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23864 if test "x$has_forbidden_chars" != x; then 23865 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23866 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23867 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23868 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23869 # Going to short mode and back again did indeed matter. Since short mode is 23870 # case insensitive, let's make it lowercase to improve readability. 23871 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23872 # Now convert it back to Unix-stile (cygpath) 23873 input_path=`$CYGPATH -u "$shortmode_path"` 23874 new_path="$input_path" 23875 fi 23876 fi 23877 23878 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23879 if test "x$test_cygdrive_prefix" = x; then 23880 # As a simple fix, exclude /usr/bin since it's not a real path. 23881 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23882 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23883 # a path prefixed by /cygdrive for fixpath to work. 23884 new_path="$CYGWIN_ROOT_PATH$input_path" 23885 fi 23886 fi 23887 23888 23889 if test "x$path" != "x$new_path"; then 23890 BOOT_JDK="$new_path" 23891 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23892 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23893 fi 23894 23895 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23896 23897 path="$BOOT_JDK" 23898 has_colon=`$ECHO $path | $GREP ^.:` 23899 new_path="$path" 23900 if test "x$has_colon" = x; then 23901 # Not in mixed or Windows style, start by that. 23902 new_path=`cmd //c echo $path` 23903 fi 23904 23905 23906 input_path="$new_path" 23907 # Check if we need to convert this using DOS-style short mode. If the path 23908 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23909 # take no chances and rewrite it. 23910 # Note: m4 eats our [], so we need to use [ and ] instead. 23911 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23912 if test "x$has_forbidden_chars" != x; then 23913 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23914 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23915 fi 23916 23917 23918 windows_path="$new_path" 23919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23920 unix_path=`$CYGPATH -u "$windows_path"` 23921 new_path="$unix_path" 23922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23923 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23924 new_path="$unix_path" 23925 fi 23926 23927 if test "x$path" != "x$new_path"; then 23928 BOOT_JDK="$new_path" 23929 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23930 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23931 fi 23932 23933 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23934 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23935 23936 else 23937 # We're on a posix platform. Hooray! :) 23938 path="$BOOT_JDK" 23939 has_space=`$ECHO "$path" | $GREP " "` 23940 if test "x$has_space" != x; then 23941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23942 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23943 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23944 fi 23945 23946 # Use eval to expand a potential ~ 23947 eval path="$path" 23948 if test ! -f "$path" && test ! -d "$path"; then 23949 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23950 fi 23951 23952 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23953 fi 23954 23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23956 $as_echo_n "checking for Boot JDK... " >&6; } 23957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23958 $as_echo "$BOOT_JDK" >&6; } 23959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23960 $as_echo_n "checking Boot JDK version... " >&6; } 23961 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23963 $as_echo "$BOOT_JDK_VERSION" >&6; } 23964 fi # end check jdk version 23965 fi # end check rt.jar 23966 fi # end check javac 23967 fi # end check java 23968 fi # end check boot jdk found 23969 fi 23970 23971 done 23972 fi 23973 23974 23975 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23976 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23977 # Do we have a bin/java? 23978 if test ! -x "$BOOT_JDK/bin/java"; then 23979 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23980 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23981 BOOT_JDK_FOUND=no 23982 else 23983 # Do we have a bin/javac? 23984 if test ! -x "$BOOT_JDK/bin/javac"; then 23985 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23986 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23987 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23988 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23989 BOOT_JDK_FOUND=no 23990 else 23991 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23992 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23993 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23994 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23995 BOOT_JDK_FOUND=no 23996 else 23997 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23998 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23999 24000 # Extra M4 quote needed to protect [] in grep expression. 24001 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24002 if test "x$FOUND_CORRECT_VERSION" = x; then 24003 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24004 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24005 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24006 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24007 BOOT_JDK_FOUND=no 24008 else 24009 # We're done! :-) 24010 BOOT_JDK_FOUND=yes 24011 24012 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24013 24014 # Input might be given as Windows format, start by converting to 24015 # unix format. 24016 path="$BOOT_JDK" 24017 new_path=`$CYGPATH -u "$path"` 24018 24019 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24020 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24021 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24022 # "foo.exe" is OK but "foo" is an error. 24023 # 24024 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24025 # It is also a way to make sure we got the proper file name for the real test later on. 24026 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24027 if test "x$test_shortpath" = x; then 24028 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24029 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24030 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24031 fi 24032 24033 # Call helper function which possibly converts this using DOS-style short mode. 24034 # If so, the updated path is stored in $new_path. 24035 24036 input_path="$new_path" 24037 # Check if we need to convert this using DOS-style short mode. If the path 24038 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24039 # take no chances and rewrite it. 24040 # Note: m4 eats our [], so we need to use [ and ] instead. 24041 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24042 if test "x$has_forbidden_chars" != x; then 24043 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24044 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24045 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24046 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24047 # Going to short mode and back again did indeed matter. Since short mode is 24048 # case insensitive, let's make it lowercase to improve readability. 24049 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24050 # Now convert it back to Unix-stile (cygpath) 24051 input_path=`$CYGPATH -u "$shortmode_path"` 24052 new_path="$input_path" 24053 fi 24054 fi 24055 24056 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24057 if test "x$test_cygdrive_prefix" = x; then 24058 # As a simple fix, exclude /usr/bin since it's not a real path. 24059 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24060 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24061 # a path prefixed by /cygdrive for fixpath to work. 24062 new_path="$CYGWIN_ROOT_PATH$input_path" 24063 fi 24064 fi 24065 24066 24067 if test "x$path" != "x$new_path"; then 24068 BOOT_JDK="$new_path" 24069 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24070 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24071 fi 24072 24073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24074 24075 path="$BOOT_JDK" 24076 has_colon=`$ECHO $path | $GREP ^.:` 24077 new_path="$path" 24078 if test "x$has_colon" = x; then 24079 # Not in mixed or Windows style, start by that. 24080 new_path=`cmd //c echo $path` 24081 fi 24082 24083 24084 input_path="$new_path" 24085 # Check if we need to convert this using DOS-style short mode. If the path 24086 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24087 # take no chances and rewrite it. 24088 # Note: m4 eats our [], so we need to use [ and ] instead. 24089 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24090 if test "x$has_forbidden_chars" != x; then 24091 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24092 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24093 fi 24094 24095 24096 windows_path="$new_path" 24097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24098 unix_path=`$CYGPATH -u "$windows_path"` 24099 new_path="$unix_path" 24100 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24101 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24102 new_path="$unix_path" 24103 fi 24104 24105 if test "x$path" != "x$new_path"; then 24106 BOOT_JDK="$new_path" 24107 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24108 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24109 fi 24110 24111 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24112 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24113 24114 else 24115 # We're on a posix platform. Hooray! :) 24116 path="$BOOT_JDK" 24117 has_space=`$ECHO "$path" | $GREP " "` 24118 if test "x$has_space" != x; then 24119 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24120 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24121 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24122 fi 24123 24124 # Use eval to expand a potential ~ 24125 eval path="$path" 24126 if test ! -f "$path" && test ! -d "$path"; then 24127 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24128 fi 24129 24130 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24131 fi 24132 24133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24134 $as_echo_n "checking for Boot JDK... " >&6; } 24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24136 $as_echo "$BOOT_JDK" >&6; } 24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24138 $as_echo_n "checking Boot JDK version... " >&6; } 24139 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24141 $as_echo "$BOOT_JDK_VERSION" >&6; } 24142 fi # end check jdk version 24143 fi # end check rt.jar 24144 fi # end check javac 24145 fi # end check java 24146 fi # end check boot jdk found 24147 fi 24148 24149 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 24150 24151 if test "x$BOOT_JDK_FOUND" = xno; then 24152 # Now execute the test 24153 24154 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 24155 BOOT_JDK_SUFFIX="/Contents/Home" 24156 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24157 if test "x$ALL_JDKS_FOUND" != x; then 24158 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24159 24160 if test "x$BOOT_JDK_FOUND" = xno; then 24161 # Now execute the test 24162 24163 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24164 if test -d "$BOOT_JDK"; then 24165 BOOT_JDK_FOUND=maybe 24166 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24167 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24168 fi 24169 24170 24171 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24172 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24173 # Do we have a bin/java? 24174 if test ! -x "$BOOT_JDK/bin/java"; then 24175 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24176 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24177 BOOT_JDK_FOUND=no 24178 else 24179 # Do we have a bin/javac? 24180 if test ! -x "$BOOT_JDK/bin/javac"; then 24181 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24182 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24183 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24184 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24185 BOOT_JDK_FOUND=no 24186 else 24187 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24188 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24189 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24190 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24191 BOOT_JDK_FOUND=no 24192 else 24193 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24194 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24195 24196 # Extra M4 quote needed to protect [] in grep expression. 24197 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24198 if test "x$FOUND_CORRECT_VERSION" = x; then 24199 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24200 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24201 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24202 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24203 BOOT_JDK_FOUND=no 24204 else 24205 # We're done! :-) 24206 BOOT_JDK_FOUND=yes 24207 24208 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24209 24210 # Input might be given as Windows format, start by converting to 24211 # unix format. 24212 path="$BOOT_JDK" 24213 new_path=`$CYGPATH -u "$path"` 24214 24215 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24216 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24217 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24218 # "foo.exe" is OK but "foo" is an error. 24219 # 24220 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24221 # It is also a way to make sure we got the proper file name for the real test later on. 24222 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24223 if test "x$test_shortpath" = x; then 24224 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24225 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24226 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24227 fi 24228 24229 # Call helper function which possibly converts this using DOS-style short mode. 24230 # If so, the updated path is stored in $new_path. 24231 24232 input_path="$new_path" 24233 # Check if we need to convert this using DOS-style short mode. If the path 24234 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24235 # take no chances and rewrite it. 24236 # Note: m4 eats our [], so we need to use [ and ] instead. 24237 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24238 if test "x$has_forbidden_chars" != x; then 24239 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24240 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24241 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24242 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24243 # Going to short mode and back again did indeed matter. Since short mode is 24244 # case insensitive, let's make it lowercase to improve readability. 24245 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24246 # Now convert it back to Unix-stile (cygpath) 24247 input_path=`$CYGPATH -u "$shortmode_path"` 24248 new_path="$input_path" 24249 fi 24250 fi 24251 24252 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24253 if test "x$test_cygdrive_prefix" = x; then 24254 # As a simple fix, exclude /usr/bin since it's not a real path. 24255 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24256 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24257 # a path prefixed by /cygdrive for fixpath to work. 24258 new_path="$CYGWIN_ROOT_PATH$input_path" 24259 fi 24260 fi 24261 24262 24263 if test "x$path" != "x$new_path"; then 24264 BOOT_JDK="$new_path" 24265 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24266 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24267 fi 24268 24269 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24270 24271 path="$BOOT_JDK" 24272 has_colon=`$ECHO $path | $GREP ^.:` 24273 new_path="$path" 24274 if test "x$has_colon" = x; then 24275 # Not in mixed or Windows style, start by that. 24276 new_path=`cmd //c echo $path` 24277 fi 24278 24279 24280 input_path="$new_path" 24281 # Check if we need to convert this using DOS-style short mode. If the path 24282 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24283 # take no chances and rewrite it. 24284 # Note: m4 eats our [], so we need to use [ and ] instead. 24285 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24286 if test "x$has_forbidden_chars" != x; then 24287 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24288 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24289 fi 24290 24291 24292 windows_path="$new_path" 24293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24294 unix_path=`$CYGPATH -u "$windows_path"` 24295 new_path="$unix_path" 24296 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24297 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24298 new_path="$unix_path" 24299 fi 24300 24301 if test "x$path" != "x$new_path"; then 24302 BOOT_JDK="$new_path" 24303 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24304 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24305 fi 24306 24307 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24308 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24309 24310 else 24311 # We're on a posix platform. Hooray! :) 24312 path="$BOOT_JDK" 24313 has_space=`$ECHO "$path" | $GREP " "` 24314 if test "x$has_space" != x; then 24315 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24316 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24317 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24318 fi 24319 24320 # Use eval to expand a potential ~ 24321 eval path="$path" 24322 if test ! -f "$path" && test ! -d "$path"; then 24323 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24324 fi 24325 24326 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24327 fi 24328 24329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24330 $as_echo_n "checking for Boot JDK... " >&6; } 24331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24332 $as_echo "$BOOT_JDK" >&6; } 24333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24334 $as_echo_n "checking Boot JDK version... " >&6; } 24335 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24337 $as_echo "$BOOT_JDK_VERSION" >&6; } 24338 fi # end check jdk version 24339 fi # end check rt.jar 24340 fi # end check javac 24341 fi # end check java 24342 fi # end check boot jdk found 24343 fi 24344 24345 done 24346 fi 24347 24348 24349 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24350 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24351 # Do we have a bin/java? 24352 if test ! -x "$BOOT_JDK/bin/java"; then 24353 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24354 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24355 BOOT_JDK_FOUND=no 24356 else 24357 # Do we have a bin/javac? 24358 if test ! -x "$BOOT_JDK/bin/javac"; then 24359 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24360 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24361 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24362 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24363 BOOT_JDK_FOUND=no 24364 else 24365 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24366 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24367 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24368 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24369 BOOT_JDK_FOUND=no 24370 else 24371 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24372 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24373 24374 # Extra M4 quote needed to protect [] in grep expression. 24375 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24376 if test "x$FOUND_CORRECT_VERSION" = x; then 24377 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24378 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24379 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24380 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24381 BOOT_JDK_FOUND=no 24382 else 24383 # We're done! :-) 24384 BOOT_JDK_FOUND=yes 24385 24386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24387 24388 # Input might be given as Windows format, start by converting to 24389 # unix format. 24390 path="$BOOT_JDK" 24391 new_path=`$CYGPATH -u "$path"` 24392 24393 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24394 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24395 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24396 # "foo.exe" is OK but "foo" is an error. 24397 # 24398 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24399 # It is also a way to make sure we got the proper file name for the real test later on. 24400 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24401 if test "x$test_shortpath" = x; then 24402 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24403 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24404 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24405 fi 24406 24407 # Call helper function which possibly converts this using DOS-style short mode. 24408 # If so, the updated path is stored in $new_path. 24409 24410 input_path="$new_path" 24411 # Check if we need to convert this using DOS-style short mode. If the path 24412 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24413 # take no chances and rewrite it. 24414 # Note: m4 eats our [], so we need to use [ and ] instead. 24415 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24416 if test "x$has_forbidden_chars" != x; then 24417 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24418 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24419 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24420 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24421 # Going to short mode and back again did indeed matter. Since short mode is 24422 # case insensitive, let's make it lowercase to improve readability. 24423 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24424 # Now convert it back to Unix-stile (cygpath) 24425 input_path=`$CYGPATH -u "$shortmode_path"` 24426 new_path="$input_path" 24427 fi 24428 fi 24429 24430 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24431 if test "x$test_cygdrive_prefix" = x; then 24432 # As a simple fix, exclude /usr/bin since it's not a real path. 24433 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24434 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24435 # a path prefixed by /cygdrive for fixpath to work. 24436 new_path="$CYGWIN_ROOT_PATH$input_path" 24437 fi 24438 fi 24439 24440 24441 if test "x$path" != "x$new_path"; then 24442 BOOT_JDK="$new_path" 24443 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24444 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24445 fi 24446 24447 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24448 24449 path="$BOOT_JDK" 24450 has_colon=`$ECHO $path | $GREP ^.:` 24451 new_path="$path" 24452 if test "x$has_colon" = x; then 24453 # Not in mixed or Windows style, start by that. 24454 new_path=`cmd //c echo $path` 24455 fi 24456 24457 24458 input_path="$new_path" 24459 # Check if we need to convert this using DOS-style short mode. If the path 24460 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24461 # take no chances and rewrite it. 24462 # Note: m4 eats our [], so we need to use [ and ] instead. 24463 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24464 if test "x$has_forbidden_chars" != x; then 24465 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24466 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24467 fi 24468 24469 24470 windows_path="$new_path" 24471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24472 unix_path=`$CYGPATH -u "$windows_path"` 24473 new_path="$unix_path" 24474 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24475 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24476 new_path="$unix_path" 24477 fi 24478 24479 if test "x$path" != "x$new_path"; then 24480 BOOT_JDK="$new_path" 24481 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24482 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24483 fi 24484 24485 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24486 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24487 24488 else 24489 # We're on a posix platform. Hooray! :) 24490 path="$BOOT_JDK" 24491 has_space=`$ECHO "$path" | $GREP " "` 24492 if test "x$has_space" != x; then 24493 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24494 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24495 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24496 fi 24497 24498 # Use eval to expand a potential ~ 24499 eval path="$path" 24500 if test ! -f "$path" && test ! -d "$path"; then 24501 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24502 fi 24503 24504 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24505 fi 24506 24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24508 $as_echo_n "checking for Boot JDK... " >&6; } 24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24510 $as_echo "$BOOT_JDK" >&6; } 24511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24512 $as_echo_n "checking Boot JDK version... " >&6; } 24513 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24515 $as_echo "$BOOT_JDK_VERSION" >&6; } 24516 fi # end check jdk version 24517 fi # end check rt.jar 24518 fi # end check javac 24519 fi # end check java 24520 fi # end check boot jdk found 24521 fi 24522 24523 24524 if test "x$BOOT_JDK_FOUND" = xno; then 24525 # Now execute the test 24526 24527 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24528 BOOT_JDK_SUFFIX="/Contents/Home" 24529 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24530 if test "x$ALL_JDKS_FOUND" != x; then 24531 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24532 24533 if test "x$BOOT_JDK_FOUND" = xno; then 24534 # Now execute the test 24535 24536 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24537 if test -d "$BOOT_JDK"; then 24538 BOOT_JDK_FOUND=maybe 24539 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24540 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24541 fi 24542 24543 24544 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24545 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24546 # Do we have a bin/java? 24547 if test ! -x "$BOOT_JDK/bin/java"; then 24548 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24549 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24550 BOOT_JDK_FOUND=no 24551 else 24552 # Do we have a bin/javac? 24553 if test ! -x "$BOOT_JDK/bin/javac"; then 24554 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24555 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24556 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24557 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24558 BOOT_JDK_FOUND=no 24559 else 24560 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24561 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24562 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24563 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24564 BOOT_JDK_FOUND=no 24565 else 24566 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24567 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24568 24569 # Extra M4 quote needed to protect [] in grep expression. 24570 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24571 if test "x$FOUND_CORRECT_VERSION" = x; then 24572 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24573 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24574 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24575 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24576 BOOT_JDK_FOUND=no 24577 else 24578 # We're done! :-) 24579 BOOT_JDK_FOUND=yes 24580 24581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24582 24583 # Input might be given as Windows format, start by converting to 24584 # unix format. 24585 path="$BOOT_JDK" 24586 new_path=`$CYGPATH -u "$path"` 24587 24588 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24589 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24590 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24591 # "foo.exe" is OK but "foo" is an error. 24592 # 24593 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24594 # It is also a way to make sure we got the proper file name for the real test later on. 24595 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24596 if test "x$test_shortpath" = x; then 24597 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24598 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24599 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24600 fi 24601 24602 # Call helper function which possibly converts this using DOS-style short mode. 24603 # If so, the updated path is stored in $new_path. 24604 24605 input_path="$new_path" 24606 # Check if we need to convert this using DOS-style short mode. If the path 24607 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24608 # take no chances and rewrite it. 24609 # Note: m4 eats our [], so we need to use [ and ] instead. 24610 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24611 if test "x$has_forbidden_chars" != x; then 24612 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24613 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24614 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24615 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24616 # Going to short mode and back again did indeed matter. Since short mode is 24617 # case insensitive, let's make it lowercase to improve readability. 24618 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24619 # Now convert it back to Unix-stile (cygpath) 24620 input_path=`$CYGPATH -u "$shortmode_path"` 24621 new_path="$input_path" 24622 fi 24623 fi 24624 24625 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24626 if test "x$test_cygdrive_prefix" = x; then 24627 # As a simple fix, exclude /usr/bin since it's not a real path. 24628 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24629 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24630 # a path prefixed by /cygdrive for fixpath to work. 24631 new_path="$CYGWIN_ROOT_PATH$input_path" 24632 fi 24633 fi 24634 24635 24636 if test "x$path" != "x$new_path"; then 24637 BOOT_JDK="$new_path" 24638 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24639 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24640 fi 24641 24642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24643 24644 path="$BOOT_JDK" 24645 has_colon=`$ECHO $path | $GREP ^.:` 24646 new_path="$path" 24647 if test "x$has_colon" = x; then 24648 # Not in mixed or Windows style, start by that. 24649 new_path=`cmd //c echo $path` 24650 fi 24651 24652 24653 input_path="$new_path" 24654 # Check if we need to convert this using DOS-style short mode. If the path 24655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24656 # take no chances and rewrite it. 24657 # Note: m4 eats our [], so we need to use [ and ] instead. 24658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24659 if test "x$has_forbidden_chars" != x; then 24660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24661 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24662 fi 24663 24664 24665 windows_path="$new_path" 24666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24667 unix_path=`$CYGPATH -u "$windows_path"` 24668 new_path="$unix_path" 24669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24670 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24671 new_path="$unix_path" 24672 fi 24673 24674 if test "x$path" != "x$new_path"; then 24675 BOOT_JDK="$new_path" 24676 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24677 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24678 fi 24679 24680 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24681 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24682 24683 else 24684 # We're on a posix platform. Hooray! :) 24685 path="$BOOT_JDK" 24686 has_space=`$ECHO "$path" | $GREP " "` 24687 if test "x$has_space" != x; then 24688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24689 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24690 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24691 fi 24692 24693 # Use eval to expand a potential ~ 24694 eval path="$path" 24695 if test ! -f "$path" && test ! -d "$path"; then 24696 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24697 fi 24698 24699 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24700 fi 24701 24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24703 $as_echo_n "checking for Boot JDK... " >&6; } 24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24705 $as_echo "$BOOT_JDK" >&6; } 24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24707 $as_echo_n "checking Boot JDK version... " >&6; } 24708 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24710 $as_echo "$BOOT_JDK_VERSION" >&6; } 24711 fi # end check jdk version 24712 fi # end check rt.jar 24713 fi # end check javac 24714 fi # end check java 24715 fi # end check boot jdk found 24716 fi 24717 24718 done 24719 fi 24720 24721 24722 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24723 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24724 # Do we have a bin/java? 24725 if test ! -x "$BOOT_JDK/bin/java"; then 24726 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24727 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24728 BOOT_JDK_FOUND=no 24729 else 24730 # Do we have a bin/javac? 24731 if test ! -x "$BOOT_JDK/bin/javac"; then 24732 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24733 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24734 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24735 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24736 BOOT_JDK_FOUND=no 24737 else 24738 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24739 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24740 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24741 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24742 BOOT_JDK_FOUND=no 24743 else 24744 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24745 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24746 24747 # Extra M4 quote needed to protect [] in grep expression. 24748 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24749 if test "x$FOUND_CORRECT_VERSION" = x; then 24750 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24751 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24752 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24753 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24754 BOOT_JDK_FOUND=no 24755 else 24756 # We're done! :-) 24757 BOOT_JDK_FOUND=yes 24758 24759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24760 24761 # Input might be given as Windows format, start by converting to 24762 # unix format. 24763 path="$BOOT_JDK" 24764 new_path=`$CYGPATH -u "$path"` 24765 24766 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24767 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24768 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24769 # "foo.exe" is OK but "foo" is an error. 24770 # 24771 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24772 # It is also a way to make sure we got the proper file name for the real test later on. 24773 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24774 if test "x$test_shortpath" = x; then 24775 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24776 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24777 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24778 fi 24779 24780 # Call helper function which possibly converts this using DOS-style short mode. 24781 # If so, the updated path is stored in $new_path. 24782 24783 input_path="$new_path" 24784 # Check if we need to convert this using DOS-style short mode. If the path 24785 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24786 # take no chances and rewrite it. 24787 # Note: m4 eats our [], so we need to use [ and ] instead. 24788 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24789 if test "x$has_forbidden_chars" != x; then 24790 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24791 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24792 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24793 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24794 # Going to short mode and back again did indeed matter. Since short mode is 24795 # case insensitive, let's make it lowercase to improve readability. 24796 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24797 # Now convert it back to Unix-stile (cygpath) 24798 input_path=`$CYGPATH -u "$shortmode_path"` 24799 new_path="$input_path" 24800 fi 24801 fi 24802 24803 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24804 if test "x$test_cygdrive_prefix" = x; then 24805 # As a simple fix, exclude /usr/bin since it's not a real path. 24806 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24807 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24808 # a path prefixed by /cygdrive for fixpath to work. 24809 new_path="$CYGWIN_ROOT_PATH$input_path" 24810 fi 24811 fi 24812 24813 24814 if test "x$path" != "x$new_path"; then 24815 BOOT_JDK="$new_path" 24816 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24817 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24818 fi 24819 24820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24821 24822 path="$BOOT_JDK" 24823 has_colon=`$ECHO $path | $GREP ^.:` 24824 new_path="$path" 24825 if test "x$has_colon" = x; then 24826 # Not in mixed or Windows style, start by that. 24827 new_path=`cmd //c echo $path` 24828 fi 24829 24830 24831 input_path="$new_path" 24832 # Check if we need to convert this using DOS-style short mode. If the path 24833 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24834 # take no chances and rewrite it. 24835 # Note: m4 eats our [], so we need to use [ and ] instead. 24836 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24837 if test "x$has_forbidden_chars" != x; then 24838 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24839 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24840 fi 24841 24842 24843 windows_path="$new_path" 24844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24845 unix_path=`$CYGPATH -u "$windows_path"` 24846 new_path="$unix_path" 24847 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24848 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24849 new_path="$unix_path" 24850 fi 24851 24852 if test "x$path" != "x$new_path"; then 24853 BOOT_JDK="$new_path" 24854 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24855 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24856 fi 24857 24858 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24859 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24860 24861 else 24862 # We're on a posix platform. Hooray! :) 24863 path="$BOOT_JDK" 24864 has_space=`$ECHO "$path" | $GREP " "` 24865 if test "x$has_space" != x; then 24866 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24867 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24868 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24869 fi 24870 24871 # Use eval to expand a potential ~ 24872 eval path="$path" 24873 if test ! -f "$path" && test ! -d "$path"; then 24874 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24875 fi 24876 24877 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24878 fi 24879 24880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24881 $as_echo_n "checking for Boot JDK... " >&6; } 24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24883 $as_echo "$BOOT_JDK" >&6; } 24884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24885 $as_echo_n "checking Boot JDK version... " >&6; } 24886 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24888 $as_echo "$BOOT_JDK_VERSION" >&6; } 24889 fi # end check jdk version 24890 fi # end check rt.jar 24891 fi # end check javac 24892 fi # end check java 24893 fi # end check boot jdk found 24894 fi 24895 24896 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24897 24898 if test "x$BOOT_JDK_FOUND" = xno; then 24899 # Now execute the test 24900 24901 BOOT_JDK_PREFIX="/usr/lib/jvm" 24902 BOOT_JDK_SUFFIX="" 24903 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24904 if test "x$ALL_JDKS_FOUND" != x; then 24905 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24906 24907 if test "x$BOOT_JDK_FOUND" = xno; then 24908 # Now execute the test 24909 24910 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24911 if test -d "$BOOT_JDK"; then 24912 BOOT_JDK_FOUND=maybe 24913 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24914 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24915 fi 24916 24917 24918 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24919 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24920 # Do we have a bin/java? 24921 if test ! -x "$BOOT_JDK/bin/java"; then 24922 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24923 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24924 BOOT_JDK_FOUND=no 24925 else 24926 # Do we have a bin/javac? 24927 if test ! -x "$BOOT_JDK/bin/javac"; then 24928 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24929 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24930 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24931 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24932 BOOT_JDK_FOUND=no 24933 else 24934 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24935 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24936 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24937 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24938 BOOT_JDK_FOUND=no 24939 else 24940 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24941 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24942 24943 # Extra M4 quote needed to protect [] in grep expression. 24944 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24945 if test "x$FOUND_CORRECT_VERSION" = x; then 24946 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24947 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24948 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24949 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24950 BOOT_JDK_FOUND=no 24951 else 24952 # We're done! :-) 24953 BOOT_JDK_FOUND=yes 24954 24955 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24956 24957 # Input might be given as Windows format, start by converting to 24958 # unix format. 24959 path="$BOOT_JDK" 24960 new_path=`$CYGPATH -u "$path"` 24961 24962 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24963 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24964 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24965 # "foo.exe" is OK but "foo" is an error. 24966 # 24967 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24968 # It is also a way to make sure we got the proper file name for the real test later on. 24969 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24970 if test "x$test_shortpath" = x; then 24971 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24972 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24973 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24974 fi 24975 24976 # Call helper function which possibly converts this using DOS-style short mode. 24977 # If so, the updated path is stored in $new_path. 24978 24979 input_path="$new_path" 24980 # Check if we need to convert this using DOS-style short mode. If the path 24981 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24982 # take no chances and rewrite it. 24983 # Note: m4 eats our [], so we need to use [ and ] instead. 24984 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24985 if test "x$has_forbidden_chars" != x; then 24986 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24987 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24988 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24989 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24990 # Going to short mode and back again did indeed matter. Since short mode is 24991 # case insensitive, let's make it lowercase to improve readability. 24992 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24993 # Now convert it back to Unix-stile (cygpath) 24994 input_path=`$CYGPATH -u "$shortmode_path"` 24995 new_path="$input_path" 24996 fi 24997 fi 24998 24999 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25000 if test "x$test_cygdrive_prefix" = x; then 25001 # As a simple fix, exclude /usr/bin since it's not a real path. 25002 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25003 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25004 # a path prefixed by /cygdrive for fixpath to work. 25005 new_path="$CYGWIN_ROOT_PATH$input_path" 25006 fi 25007 fi 25008 25009 25010 if test "x$path" != "x$new_path"; then 25011 BOOT_JDK="$new_path" 25012 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25013 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25014 fi 25015 25016 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25017 25018 path="$BOOT_JDK" 25019 has_colon=`$ECHO $path | $GREP ^.:` 25020 new_path="$path" 25021 if test "x$has_colon" = x; then 25022 # Not in mixed or Windows style, start by that. 25023 new_path=`cmd //c echo $path` 25024 fi 25025 25026 25027 input_path="$new_path" 25028 # Check if we need to convert this using DOS-style short mode. If the path 25029 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25030 # take no chances and rewrite it. 25031 # Note: m4 eats our [], so we need to use [ and ] instead. 25032 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25033 if test "x$has_forbidden_chars" != x; then 25034 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25035 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25036 fi 25037 25038 25039 windows_path="$new_path" 25040 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25041 unix_path=`$CYGPATH -u "$windows_path"` 25042 new_path="$unix_path" 25043 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25044 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25045 new_path="$unix_path" 25046 fi 25047 25048 if test "x$path" != "x$new_path"; then 25049 BOOT_JDK="$new_path" 25050 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25051 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25052 fi 25053 25054 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25055 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25056 25057 else 25058 # We're on a posix platform. Hooray! :) 25059 path="$BOOT_JDK" 25060 has_space=`$ECHO "$path" | $GREP " "` 25061 if test "x$has_space" != x; then 25062 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25063 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25064 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25065 fi 25066 25067 # Use eval to expand a potential ~ 25068 eval path="$path" 25069 if test ! -f "$path" && test ! -d "$path"; then 25070 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25071 fi 25072 25073 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25074 fi 25075 25076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25077 $as_echo_n "checking for Boot JDK... " >&6; } 25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25079 $as_echo "$BOOT_JDK" >&6; } 25080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25081 $as_echo_n "checking Boot JDK version... " >&6; } 25082 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25084 $as_echo "$BOOT_JDK_VERSION" >&6; } 25085 fi # end check jdk version 25086 fi # end check rt.jar 25087 fi # end check javac 25088 fi # end check java 25089 fi # end check boot jdk found 25090 fi 25091 25092 done 25093 fi 25094 25095 25096 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25097 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25098 # Do we have a bin/java? 25099 if test ! -x "$BOOT_JDK/bin/java"; then 25100 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25101 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25102 BOOT_JDK_FOUND=no 25103 else 25104 # Do we have a bin/javac? 25105 if test ! -x "$BOOT_JDK/bin/javac"; then 25106 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25107 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25108 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25109 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25110 BOOT_JDK_FOUND=no 25111 else 25112 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 25113 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 25114 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 25115 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 25116 BOOT_JDK_FOUND=no 25117 else 25118 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25119 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25120 25121 # Extra M4 quote needed to protect [] in grep expression. 25122 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25123 if test "x$FOUND_CORRECT_VERSION" = x; then 25124 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25125 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25126 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25127 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25128 BOOT_JDK_FOUND=no 25129 else 25130 # We're done! :-) 25131 BOOT_JDK_FOUND=yes 25132 25133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25134 25135 # Input might be given as Windows format, start by converting to 25136 # unix format. 25137 path="$BOOT_JDK" 25138 new_path=`$CYGPATH -u "$path"` 25139 25140 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25141 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25142 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25143 # "foo.exe" is OK but "foo" is an error. 25144 # 25145 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25146 # It is also a way to make sure we got the proper file name for the real test later on. 25147 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25148 if test "x$test_shortpath" = x; then 25149 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25150 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25151 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25152 fi 25153 25154 # Call helper function which possibly converts this using DOS-style short mode. 25155 # If so, the updated path is stored in $new_path. 25156 25157 input_path="$new_path" 25158 # Check if we need to convert this using DOS-style short mode. If the path 25159 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25160 # take no chances and rewrite it. 25161 # Note: m4 eats our [], so we need to use [ and ] instead. 25162 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25163 if test "x$has_forbidden_chars" != x; then 25164 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25165 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25166 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25167 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25168 # Going to short mode and back again did indeed matter. Since short mode is 25169 # case insensitive, let's make it lowercase to improve readability. 25170 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25171 # Now convert it back to Unix-stile (cygpath) 25172 input_path=`$CYGPATH -u "$shortmode_path"` 25173 new_path="$input_path" 25174 fi 25175 fi 25176 25177 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25178 if test "x$test_cygdrive_prefix" = x; then 25179 # As a simple fix, exclude /usr/bin since it's not a real path. 25180 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25181 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25182 # a path prefixed by /cygdrive for fixpath to work. 25183 new_path="$CYGWIN_ROOT_PATH$input_path" 25184 fi 25185 fi 25186 25187 25188 if test "x$path" != "x$new_path"; then 25189 BOOT_JDK="$new_path" 25190 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25191 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25192 fi 25193 25194 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25195 25196 path="$BOOT_JDK" 25197 has_colon=`$ECHO $path | $GREP ^.:` 25198 new_path="$path" 25199 if test "x$has_colon" = x; then 25200 # Not in mixed or Windows style, start by that. 25201 new_path=`cmd //c echo $path` 25202 fi 25203 25204 25205 input_path="$new_path" 25206 # Check if we need to convert this using DOS-style short mode. If the path 25207 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25208 # take no chances and rewrite it. 25209 # Note: m4 eats our [], so we need to use [ and ] instead. 25210 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25211 if test "x$has_forbidden_chars" != x; then 25212 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25213 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25214 fi 25215 25216 25217 windows_path="$new_path" 25218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25219 unix_path=`$CYGPATH -u "$windows_path"` 25220 new_path="$unix_path" 25221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25222 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25223 new_path="$unix_path" 25224 fi 25225 25226 if test "x$path" != "x$new_path"; then 25227 BOOT_JDK="$new_path" 25228 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25229 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25230 fi 25231 25232 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25233 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25234 25235 else 25236 # We're on a posix platform. Hooray! :) 25237 path="$BOOT_JDK" 25238 has_space=`$ECHO "$path" | $GREP " "` 25239 if test "x$has_space" != x; then 25240 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25241 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25242 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25243 fi 25244 25245 # Use eval to expand a potential ~ 25246 eval path="$path" 25247 if test ! -f "$path" && test ! -d "$path"; then 25248 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25249 fi 25250 25251 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25252 fi 25253 25254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25255 $as_echo_n "checking for Boot JDK... " >&6; } 25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25257 $as_echo "$BOOT_JDK" >&6; } 25258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25259 $as_echo_n "checking Boot JDK version... " >&6; } 25260 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25262 $as_echo "$BOOT_JDK_VERSION" >&6; } 25263 fi # end check jdk version 25264 fi # end check rt.jar 25265 fi # end check javac 25266 fi # end check java 25267 fi # end check boot jdk found 25268 fi 25269 25270 fi 25271 25272 25273 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25274 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25275 # Do we have a bin/java? 25276 if test ! -x "$BOOT_JDK/bin/java"; then 25277 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25278 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25279 BOOT_JDK_FOUND=no 25280 else 25281 # Do we have a bin/javac? 25282 if test ! -x "$BOOT_JDK/bin/javac"; then 25283 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25284 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25285 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25286 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25287 BOOT_JDK_FOUND=no 25288 else 25289 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 25290 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 25291 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 25292 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 25293 BOOT_JDK_FOUND=no 25294 else 25295 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25296 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25297 25298 # Extra M4 quote needed to protect [] in grep expression. 25299 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25300 if test "x$FOUND_CORRECT_VERSION" = x; then 25301 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25302 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25303 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25304 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25305 BOOT_JDK_FOUND=no 25306 else 25307 # We're done! :-) 25308 BOOT_JDK_FOUND=yes 25309 25310 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25311 25312 # Input might be given as Windows format, start by converting to 25313 # unix format. 25314 path="$BOOT_JDK" 25315 new_path=`$CYGPATH -u "$path"` 25316 25317 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25318 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25319 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25320 # "foo.exe" is OK but "foo" is an error. 25321 # 25322 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25323 # It is also a way to make sure we got the proper file name for the real test later on. 25324 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25325 if test "x$test_shortpath" = x; then 25326 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25327 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25328 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25329 fi 25330 25331 # Call helper function which possibly converts this using DOS-style short mode. 25332 # If so, the updated path is stored in $new_path. 25333 25334 input_path="$new_path" 25335 # Check if we need to convert this using DOS-style short mode. If the path 25336 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25337 # take no chances and rewrite it. 25338 # Note: m4 eats our [], so we need to use [ and ] instead. 25339 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25340 if test "x$has_forbidden_chars" != x; then 25341 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25342 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25343 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25344 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25345 # Going to short mode and back again did indeed matter. Since short mode is 25346 # case insensitive, let's make it lowercase to improve readability. 25347 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25348 # Now convert it back to Unix-stile (cygpath) 25349 input_path=`$CYGPATH -u "$shortmode_path"` 25350 new_path="$input_path" 25351 fi 25352 fi 25353 25354 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25355 if test "x$test_cygdrive_prefix" = x; then 25356 # As a simple fix, exclude /usr/bin since it's not a real path. 25357 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25358 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25359 # a path prefixed by /cygdrive for fixpath to work. 25360 new_path="$CYGWIN_ROOT_PATH$input_path" 25361 fi 25362 fi 25363 25364 25365 if test "x$path" != "x$new_path"; then 25366 BOOT_JDK="$new_path" 25367 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25368 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25369 fi 25370 25371 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25372 25373 path="$BOOT_JDK" 25374 has_colon=`$ECHO $path | $GREP ^.:` 25375 new_path="$path" 25376 if test "x$has_colon" = x; then 25377 # Not in mixed or Windows style, start by that. 25378 new_path=`cmd //c echo $path` 25379 fi 25380 25381 25382 input_path="$new_path" 25383 # Check if we need to convert this using DOS-style short mode. If the path 25384 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25385 # take no chances and rewrite it. 25386 # Note: m4 eats our [], so we need to use [ and ] instead. 25387 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25388 if test "x$has_forbidden_chars" != x; then 25389 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25390 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25391 fi 25392 25393 25394 windows_path="$new_path" 25395 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25396 unix_path=`$CYGPATH -u "$windows_path"` 25397 new_path="$unix_path" 25398 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25399 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25400 new_path="$unix_path" 25401 fi 25402 25403 if test "x$path" != "x$new_path"; then 25404 BOOT_JDK="$new_path" 25405 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25406 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25407 fi 25408 25409 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25410 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25411 25412 else 25413 # We're on a posix platform. Hooray! :) 25414 path="$BOOT_JDK" 25415 has_space=`$ECHO "$path" | $GREP " "` 25416 if test "x$has_space" != x; then 25417 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25418 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25419 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25420 fi 25421 25422 # Use eval to expand a potential ~ 25423 eval path="$path" 25424 if test ! -f "$path" && test ! -d "$path"; then 25425 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25426 fi 25427 25428 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25429 fi 25430 25431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25432 $as_echo_n "checking for Boot JDK... " >&6; } 25433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25434 $as_echo "$BOOT_JDK" >&6; } 25435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25436 $as_echo_n "checking Boot JDK version... " >&6; } 25437 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25439 $as_echo "$BOOT_JDK_VERSION" >&6; } 25440 fi # end check jdk version 25441 fi # end check rt.jar 25442 fi # end check javac 25443 fi # end check java 25444 fi # end check boot jdk found 25445 fi 25446 25447 25448 # If we haven't found anything yet, we've truly lost. Give up. 25449 if test "x$BOOT_JDK_FOUND" = xno; then 25450 25451 # Print a helpful message on how to acquire the necessary build dependency. 25452 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25453 MISSING_DEPENDENCY=openjdk 25454 25455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25456 cygwin_help $MISSING_DEPENDENCY 25457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25458 msys_help $MISSING_DEPENDENCY 25459 else 25460 PKGHANDLER_COMMAND= 25461 25462 case $PKGHANDLER in 25463 apt-get) 25464 apt_help $MISSING_DEPENDENCY ;; 25465 yum) 25466 yum_help $MISSING_DEPENDENCY ;; 25467 port) 25468 port_help $MISSING_DEPENDENCY ;; 25469 pkgutil) 25470 pkgutil_help $MISSING_DEPENDENCY ;; 25471 pkgadd) 25472 pkgadd_help $MISSING_DEPENDENCY ;; 25473 esac 25474 25475 if test "x$PKGHANDLER_COMMAND" != x; then 25476 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25477 fi 25478 fi 25479 25480 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25481 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25482 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25483 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25484 as_fn_error $? "Cannot continue" "$LINENO" 5 25485 fi 25486 25487 # Setup proper paths for what we found 25488 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 25489 if test ! -f "$BOOT_RTJAR"; then 25490 # On MacOSX it is called classes.jar 25491 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 25492 if test -f "$BOOT_RTJAR"; then 25493 # Remove the .. 25494 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 25495 fi 25496 fi 25497 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 25498 BOOT_JDK="$BOOT_JDK" 25499 25500 25501 25502 25503 # Setup tools from the Boot JDK. 25504 25505 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25506 25507 # Publish this variable in the help. 25508 25509 25510 if test "x$JAVA" = x; then 25511 # The variable is not set by user, try to locate tool using the code snippet 25512 25513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25514 $as_echo_n "checking for java in Boot JDK... " >&6; } 25515 JAVA=$BOOT_JDK/bin/java 25516 if test ! -x $JAVA; then 25517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25518 $as_echo "not found" >&6; } 25519 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25520 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25521 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25522 fi 25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25524 $as_echo "ok" >&6; } 25525 25526 25527 else 25528 # The variable is set, but is it from the command line or the environment? 25529 25530 # Try to remove the string !JAVA! from our list. 25531 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 25532 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25533 # If it failed, the variable was not from the command line. Ignore it, 25534 # but warn the user (except for BASH, which is always set by the calling BASH). 25535 if test "xJAVA" != xBASH; then 25536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 25537 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 25538 fi 25539 # Try to locate tool using the code snippet 25540 25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25542 $as_echo_n "checking for java in Boot JDK... " >&6; } 25543 JAVA=$BOOT_JDK/bin/java 25544 if test ! -x $JAVA; then 25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25546 $as_echo "not found" >&6; } 25547 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25548 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25549 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25550 fi 25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25552 $as_echo "ok" >&6; } 25553 25554 25555 else 25556 # If it succeeded, then it was overridden by the user. We will use it 25557 # for the tool. 25558 25559 # First remove it from the list of overridden variables, so we can test 25560 # for unknown variables in the end. 25561 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25562 25563 # Check if the provided tool contains a complete path. 25564 tool_specified="$JAVA" 25565 tool_basename="${tool_specified##*/}" 25566 if test "x$tool_basename" = "x$tool_specified"; then 25567 # A command without a complete path is provided, search $PATH. 25568 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 25569 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 25570 # Extract the first word of "$tool_basename", so it can be a program name with args. 25571 set dummy $tool_basename; ac_word=$2 25572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25573 $as_echo_n "checking for $ac_word... " >&6; } 25574 if ${ac_cv_path_JAVA+:} false; then : 25575 $as_echo_n "(cached) " >&6 25576 else 25577 case $JAVA in 25578 [\\/]* | ?:[\\/]*) 25579 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 25580 ;; 25581 *) 25582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25583 for as_dir in $PATH 25584 do 25585 IFS=$as_save_IFS 25586 test -z "$as_dir" && as_dir=. 25587 for ac_exec_ext in '' $ac_executable_extensions; do 25588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25589 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25591 break 2 25592 fi 25593 done 25594 done 25595 IFS=$as_save_IFS 25596 25597 ;; 25598 esac 25599 fi 25600 JAVA=$ac_cv_path_JAVA 25601 if test -n "$JAVA"; then 25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25603 $as_echo "$JAVA" >&6; } 25604 else 25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25606 $as_echo "no" >&6; } 25607 fi 25608 25609 25610 if test "x$JAVA" = x; then 25611 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25612 fi 25613 else 25614 # Otherwise we believe it is a complete path. Use it as it is. 25615 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25616 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25618 $as_echo_n "checking for JAVA... " >&6; } 25619 if test ! -x "$tool_specified"; then 25620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25621 $as_echo "not found" >&6; } 25622 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25623 fi 25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25625 $as_echo "$tool_specified" >&6; } 25626 fi 25627 fi 25628 fi 25629 25630 25631 25632 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25633 25634 # Publish this variable in the help. 25635 25636 25637 if test "x$JAVAC" = x; then 25638 # The variable is not set by user, try to locate tool using the code snippet 25639 25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25641 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25642 JAVAC=$BOOT_JDK/bin/javac 25643 if test ! -x $JAVAC; then 25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25645 $as_echo "not found" >&6; } 25646 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25647 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25648 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25649 fi 25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25651 $as_echo "ok" >&6; } 25652 25653 25654 else 25655 # The variable is set, but is it from the command line or the environment? 25656 25657 # Try to remove the string !JAVAC! from our list. 25658 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25659 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25660 # If it failed, the variable was not from the command line. Ignore it, 25661 # but warn the user (except for BASH, which is always set by the calling BASH). 25662 if test "xJAVAC" != xBASH; then 25663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25664 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25665 fi 25666 # Try to locate tool using the code snippet 25667 25668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25669 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25670 JAVAC=$BOOT_JDK/bin/javac 25671 if test ! -x $JAVAC; then 25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25673 $as_echo "not found" >&6; } 25674 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25675 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25676 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25677 fi 25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25679 $as_echo "ok" >&6; } 25680 25681 25682 else 25683 # If it succeeded, then it was overridden by the user. We will use it 25684 # for the tool. 25685 25686 # First remove it from the list of overridden variables, so we can test 25687 # for unknown variables in the end. 25688 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25689 25690 # Check if the provided tool contains a complete path. 25691 tool_specified="$JAVAC" 25692 tool_basename="${tool_specified##*/}" 25693 if test "x$tool_basename" = "x$tool_specified"; then 25694 # A command without a complete path is provided, search $PATH. 25695 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25696 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25697 # Extract the first word of "$tool_basename", so it can be a program name with args. 25698 set dummy $tool_basename; ac_word=$2 25699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25700 $as_echo_n "checking for $ac_word... " >&6; } 25701 if ${ac_cv_path_JAVAC+:} false; then : 25702 $as_echo_n "(cached) " >&6 25703 else 25704 case $JAVAC in 25705 [\\/]* | ?:[\\/]*) 25706 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25707 ;; 25708 *) 25709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25710 for as_dir in $PATH 25711 do 25712 IFS=$as_save_IFS 25713 test -z "$as_dir" && as_dir=. 25714 for ac_exec_ext in '' $ac_executable_extensions; do 25715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25716 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25718 break 2 25719 fi 25720 done 25721 done 25722 IFS=$as_save_IFS 25723 25724 ;; 25725 esac 25726 fi 25727 JAVAC=$ac_cv_path_JAVAC 25728 if test -n "$JAVAC"; then 25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25730 $as_echo "$JAVAC" >&6; } 25731 else 25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25733 $as_echo "no" >&6; } 25734 fi 25735 25736 25737 if test "x$JAVAC" = x; then 25738 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25739 fi 25740 else 25741 # Otherwise we believe it is a complete path. Use it as it is. 25742 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25743 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25745 $as_echo_n "checking for JAVAC... " >&6; } 25746 if test ! -x "$tool_specified"; then 25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25748 $as_echo "not found" >&6; } 25749 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25750 fi 25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25752 $as_echo "$tool_specified" >&6; } 25753 fi 25754 fi 25755 fi 25756 25757 25758 25759 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25760 25761 # Publish this variable in the help. 25762 25763 25764 if test "x$JAVAH" = x; then 25765 # The variable is not set by user, try to locate tool using the code snippet 25766 25767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25768 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25769 JAVAH=$BOOT_JDK/bin/javah 25770 if test ! -x $JAVAH; then 25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25772 $as_echo "not found" >&6; } 25773 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25774 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25775 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25776 fi 25777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25778 $as_echo "ok" >&6; } 25779 25780 25781 else 25782 # The variable is set, but is it from the command line or the environment? 25783 25784 # Try to remove the string !JAVAH! from our list. 25785 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25786 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25787 # If it failed, the variable was not from the command line. Ignore it, 25788 # but warn the user (except for BASH, which is always set by the calling BASH). 25789 if test "xJAVAH" != xBASH; then 25790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25791 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25792 fi 25793 # Try to locate tool using the code snippet 25794 25795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25796 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25797 JAVAH=$BOOT_JDK/bin/javah 25798 if test ! -x $JAVAH; then 25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25800 $as_echo "not found" >&6; } 25801 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25802 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25803 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25804 fi 25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25806 $as_echo "ok" >&6; } 25807 25808 25809 else 25810 # If it succeeded, then it was overridden by the user. We will use it 25811 # for the tool. 25812 25813 # First remove it from the list of overridden variables, so we can test 25814 # for unknown variables in the end. 25815 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25816 25817 # Check if the provided tool contains a complete path. 25818 tool_specified="$JAVAH" 25819 tool_basename="${tool_specified##*/}" 25820 if test "x$tool_basename" = "x$tool_specified"; then 25821 # A command without a complete path is provided, search $PATH. 25822 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25823 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25824 # Extract the first word of "$tool_basename", so it can be a program name with args. 25825 set dummy $tool_basename; ac_word=$2 25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25827 $as_echo_n "checking for $ac_word... " >&6; } 25828 if ${ac_cv_path_JAVAH+:} false; then : 25829 $as_echo_n "(cached) " >&6 25830 else 25831 case $JAVAH in 25832 [\\/]* | ?:[\\/]*) 25833 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25834 ;; 25835 *) 25836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25837 for as_dir in $PATH 25838 do 25839 IFS=$as_save_IFS 25840 test -z "$as_dir" && as_dir=. 25841 for ac_exec_ext in '' $ac_executable_extensions; do 25842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25843 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25845 break 2 25846 fi 25847 done 25848 done 25849 IFS=$as_save_IFS 25850 25851 ;; 25852 esac 25853 fi 25854 JAVAH=$ac_cv_path_JAVAH 25855 if test -n "$JAVAH"; then 25856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25857 $as_echo "$JAVAH" >&6; } 25858 else 25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25860 $as_echo "no" >&6; } 25861 fi 25862 25863 25864 if test "x$JAVAH" = x; then 25865 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25866 fi 25867 else 25868 # Otherwise we believe it is a complete path. Use it as it is. 25869 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25870 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25872 $as_echo_n "checking for JAVAH... " >&6; } 25873 if test ! -x "$tool_specified"; then 25874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25875 $as_echo "not found" >&6; } 25876 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25877 fi 25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25879 $as_echo "$tool_specified" >&6; } 25880 fi 25881 fi 25882 fi 25883 25884 25885 25886 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25887 25888 # Publish this variable in the help. 25889 25890 25891 if test "x$JAR" = x; then 25892 # The variable is not set by user, try to locate tool using the code snippet 25893 25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25895 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25896 JAR=$BOOT_JDK/bin/jar 25897 if test ! -x $JAR; then 25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25899 $as_echo "not found" >&6; } 25900 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25901 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25902 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25903 fi 25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25905 $as_echo "ok" >&6; } 25906 25907 25908 else 25909 # The variable is set, but is it from the command line or the environment? 25910 25911 # Try to remove the string !JAR! from our list. 25912 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25913 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25914 # If it failed, the variable was not from the command line. Ignore it, 25915 # but warn the user (except for BASH, which is always set by the calling BASH). 25916 if test "xJAR" != xBASH; then 25917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25918 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25919 fi 25920 # Try to locate tool using the code snippet 25921 25922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25923 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25924 JAR=$BOOT_JDK/bin/jar 25925 if test ! -x $JAR; then 25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25927 $as_echo "not found" >&6; } 25928 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25929 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25930 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25931 fi 25932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25933 $as_echo "ok" >&6; } 25934 25935 25936 else 25937 # If it succeeded, then it was overridden by the user. We will use it 25938 # for the tool. 25939 25940 # First remove it from the list of overridden variables, so we can test 25941 # for unknown variables in the end. 25942 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25943 25944 # Check if the provided tool contains a complete path. 25945 tool_specified="$JAR" 25946 tool_basename="${tool_specified##*/}" 25947 if test "x$tool_basename" = "x$tool_specified"; then 25948 # A command without a complete path is provided, search $PATH. 25949 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 25950 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 25951 # Extract the first word of "$tool_basename", so it can be a program name with args. 25952 set dummy $tool_basename; ac_word=$2 25953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25954 $as_echo_n "checking for $ac_word... " >&6; } 25955 if ${ac_cv_path_JAR+:} false; then : 25956 $as_echo_n "(cached) " >&6 25957 else 25958 case $JAR in 25959 [\\/]* | ?:[\\/]*) 25960 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 25961 ;; 25962 *) 25963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25964 for as_dir in $PATH 25965 do 25966 IFS=$as_save_IFS 25967 test -z "$as_dir" && as_dir=. 25968 for ac_exec_ext in '' $ac_executable_extensions; do 25969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25970 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 25971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25972 break 2 25973 fi 25974 done 25975 done 25976 IFS=$as_save_IFS 25977 25978 ;; 25979 esac 25980 fi 25981 JAR=$ac_cv_path_JAR 25982 if test -n "$JAR"; then 25983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 25984 $as_echo "$JAR" >&6; } 25985 else 25986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25987 $as_echo "no" >&6; } 25988 fi 25989 25990 25991 if test "x$JAR" = x; then 25992 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25993 fi 25994 else 25995 # Otherwise we believe it is a complete path. Use it as it is. 25996 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 25997 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 25998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 25999 $as_echo_n "checking for JAR... " >&6; } 26000 if test ! -x "$tool_specified"; then 26001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26002 $as_echo "not found" >&6; } 26003 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 26004 fi 26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26006 $as_echo "$tool_specified" >&6; } 26007 fi 26008 fi 26009 fi 26010 26011 26012 26013 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26014 26015 # Publish this variable in the help. 26016 26017 26018 if test "x$NATIVE2ASCII" = x; then 26019 # The variable is not set by user, try to locate tool using the code snippet 26020 26021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 26022 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 26023 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 26024 if test ! -x $NATIVE2ASCII; then 26025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26026 $as_echo "not found" >&6; } 26027 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26028 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26029 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 26030 fi 26031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26032 $as_echo "ok" >&6; } 26033 26034 26035 else 26036 # The variable is set, but is it from the command line or the environment? 26037 26038 # Try to remove the string !NATIVE2ASCII! from our list. 26039 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 26040 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26041 # If it failed, the variable was not from the command line. Ignore it, 26042 # but warn the user (except for BASH, which is always set by the calling BASH). 26043 if test "xNATIVE2ASCII" != xBASH; then 26044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 26045 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 26046 fi 26047 # Try to locate tool using the code snippet 26048 26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 26050 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 26051 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 26052 if test ! -x $NATIVE2ASCII; then 26053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26054 $as_echo "not found" >&6; } 26055 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26056 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26057 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 26058 fi 26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26060 $as_echo "ok" >&6; } 26061 26062 26063 else 26064 # If it succeeded, then it was overridden by the user. We will use it 26065 # for the tool. 26066 26067 # First remove it from the list of overridden variables, so we can test 26068 # for unknown variables in the end. 26069 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26070 26071 # Check if the provided tool contains a complete path. 26072 tool_specified="$NATIVE2ASCII" 26073 tool_basename="${tool_specified##*/}" 26074 if test "x$tool_basename" = "x$tool_specified"; then 26075 # A command without a complete path is provided, search $PATH. 26076 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 26077 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 26078 # Extract the first word of "$tool_basename", so it can be a program name with args. 26079 set dummy $tool_basename; ac_word=$2 26080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26081 $as_echo_n "checking for $ac_word... " >&6; } 26082 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 26083 $as_echo_n "(cached) " >&6 26084 else 26085 case $NATIVE2ASCII in 26086 [\\/]* | ?:[\\/]*) 26087 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 26088 ;; 26089 *) 26090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26091 for as_dir in $PATH 26092 do 26093 IFS=$as_save_IFS 26094 test -z "$as_dir" && as_dir=. 26095 for ac_exec_ext in '' $ac_executable_extensions; do 26096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26097 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 26098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26099 break 2 26100 fi 26101 done 26102 done 26103 IFS=$as_save_IFS 26104 26105 ;; 26106 esac 26107 fi 26108 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 26109 if test -n "$NATIVE2ASCII"; then 26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 26111 $as_echo "$NATIVE2ASCII" >&6; } 26112 else 26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26114 $as_echo "no" >&6; } 26115 fi 26116 26117 26118 if test "x$NATIVE2ASCII" = x; then 26119 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26120 fi 26121 else 26122 # Otherwise we believe it is a complete path. Use it as it is. 26123 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 26124 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 26125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 26126 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 26127 if test ! -x "$tool_specified"; then 26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26129 $as_echo "not found" >&6; } 26130 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 26131 fi 26132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26133 $as_echo "$tool_specified" >&6; } 26134 fi 26135 fi 26136 fi 26137 26138 26139 26140 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26141 26142 # Publish this variable in the help. 26143 26144 26145 if test "x$JARSIGNER" = x; then 26146 # The variable is not set by user, try to locate tool using the code snippet 26147 26148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26149 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26150 JARSIGNER=$BOOT_JDK/bin/jarsigner 26151 if test ! -x $JARSIGNER; then 26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26153 $as_echo "not found" >&6; } 26154 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26155 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26156 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26157 fi 26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26159 $as_echo "ok" >&6; } 26160 26161 26162 else 26163 # The variable is set, but is it from the command line or the environment? 26164 26165 # Try to remove the string !JARSIGNER! from our list. 26166 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 26167 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26168 # If it failed, the variable was not from the command line. Ignore it, 26169 # but warn the user (except for BASH, which is always set by the calling BASH). 26170 if test "xJARSIGNER" != xBASH; then 26171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 26172 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 26173 fi 26174 # Try to locate tool using the code snippet 26175 26176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26177 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26178 JARSIGNER=$BOOT_JDK/bin/jarsigner 26179 if test ! -x $JARSIGNER; then 26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26181 $as_echo "not found" >&6; } 26182 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26183 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26184 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26185 fi 26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26187 $as_echo "ok" >&6; } 26188 26189 26190 else 26191 # If it succeeded, then it was overridden by the user. We will use it 26192 # for the tool. 26193 26194 # First remove it from the list of overridden variables, so we can test 26195 # for unknown variables in the end. 26196 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26197 26198 # Check if the provided tool contains a complete path. 26199 tool_specified="$JARSIGNER" 26200 tool_basename="${tool_specified##*/}" 26201 if test "x$tool_basename" = "x$tool_specified"; then 26202 # A command without a complete path is provided, search $PATH. 26203 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 26204 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 26205 # Extract the first word of "$tool_basename", so it can be a program name with args. 26206 set dummy $tool_basename; ac_word=$2 26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26208 $as_echo_n "checking for $ac_word... " >&6; } 26209 if ${ac_cv_path_JARSIGNER+:} false; then : 26210 $as_echo_n "(cached) " >&6 26211 else 26212 case $JARSIGNER in 26213 [\\/]* | ?:[\\/]*) 26214 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 26215 ;; 26216 *) 26217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26218 for as_dir in $PATH 26219 do 26220 IFS=$as_save_IFS 26221 test -z "$as_dir" && as_dir=. 26222 for ac_exec_ext in '' $ac_executable_extensions; do 26223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26224 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 26225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26226 break 2 26227 fi 26228 done 26229 done 26230 IFS=$as_save_IFS 26231 26232 ;; 26233 esac 26234 fi 26235 JARSIGNER=$ac_cv_path_JARSIGNER 26236 if test -n "$JARSIGNER"; then 26237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 26238 $as_echo "$JARSIGNER" >&6; } 26239 else 26240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26241 $as_echo "no" >&6; } 26242 fi 26243 26244 26245 if test "x$JARSIGNER" = x; then 26246 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26247 fi 26248 else 26249 # Otherwise we believe it is a complete path. Use it as it is. 26250 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 26251 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 26252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 26253 $as_echo_n "checking for JARSIGNER... " >&6; } 26254 if test ! -x "$tool_specified"; then 26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26256 $as_echo "not found" >&6; } 26257 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 26258 fi 26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26260 $as_echo "$tool_specified" >&6; } 26261 fi 26262 fi 26263 fi 26264 26265 26266 26267 # Finally, set some other options... 26268 26269 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 26270 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 26271 26272 26273 26274 26275 ############################################################################## 26276 # 26277 # Specify jvm options for anything that is run with the Boot JDK. 26278 # Not all JVM:s accept the same arguments on the command line. 26279 # 26280 26281 # Check whether --with-boot-jdk-jvmargs was given. 26282 if test "${with_boot_jdk_jvmargs+set}" = set; then : 26283 withval=$with_boot_jdk_jvmargs; 26284 fi 26285 26286 26287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 26288 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 26289 26290 # Disable special log output when a debug build is used as Boot JDK... 26291 26292 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 26293 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 26294 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 26295 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26296 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26297 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26298 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 26299 JVM_ARG_OK=true 26300 else 26301 $ECHO "Arg failed:" >&5 26302 $ECHO "$OUTPUT" >&5 26303 JVM_ARG_OK=false 26304 fi 26305 26306 26307 # Apply user provided options. 26308 26309 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 26310 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 26311 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 26312 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26313 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26314 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26315 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 26316 JVM_ARG_OK=true 26317 else 26318 $ECHO "Arg failed:" >&5 26319 $ECHO "$OUTPUT" >&5 26320 JVM_ARG_OK=false 26321 fi 26322 26323 26324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 26325 $as_echo "$boot_jdk_jvmargs" >&6; } 26326 26327 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 26328 JAVA_FLAGS=$boot_jdk_jvmargs 26329 26330 26331 26332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 26333 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 26334 26335 # Starting amount of heap memory. 26336 26337 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 26338 $ECHO "Command: $JAVA -Xms64M -version" >&5 26339 OUTPUT=`$JAVA -Xms64M -version 2>&1` 26340 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26341 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26342 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26343 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 26344 JVM_ARG_OK=true 26345 else 26346 $ECHO "Arg failed:" >&5 26347 $ECHO "$OUTPUT" >&5 26348 JVM_ARG_OK=false 26349 fi 26350 26351 26352 # Maximum amount of heap memory. 26353 # Maximum stack size. 26354 if test "x$BUILD_NUM_BITS" = x32; then 26355 JVM_MAX_HEAP=1100M 26356 STACK_SIZE=768 26357 else 26358 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 26359 # pointers are used. Apparently, we need to increase the heap and stack 26360 # space for the jvm. More specifically, when running javac to build huge 26361 # jdk batch 26362 JVM_MAX_HEAP=1600M 26363 STACK_SIZE=1536 26364 fi 26365 26366 $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5 26367 $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5 26368 OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1` 26369 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26370 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26371 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26372 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP" 26373 JVM_ARG_OK=true 26374 else 26375 $ECHO "Arg failed:" >&5 26376 $ECHO "$OUTPUT" >&5 26377 JVM_ARG_OK=false 26378 fi 26379 26380 26381 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 26382 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 26383 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 26384 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26385 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26386 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26387 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 26388 JVM_ARG_OK=true 26389 else 26390 $ECHO "Arg failed:" >&5 26391 $ECHO "$OUTPUT" >&5 26392 JVM_ARG_OK=false 26393 fi 26394 26395 26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 26397 $as_echo "$boot_jdk_jvmargs_big" >&6; } 26398 26399 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 26400 26401 26402 26403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 26404 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 26405 26406 # Use serial gc for small short lived tools if possible 26407 26408 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 26409 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 26410 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 26411 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26412 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26413 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26414 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 26415 JVM_ARG_OK=true 26416 else 26417 $ECHO "Arg failed:" >&5 26418 $ECHO "$OUTPUT" >&5 26419 JVM_ARG_OK=false 26420 fi 26421 26422 26423 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 26424 $ECHO "Command: $JAVA -Xms32M -version" >&5 26425 OUTPUT=`$JAVA -Xms32M -version 2>&1` 26426 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26427 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26428 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26429 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 26430 JVM_ARG_OK=true 26431 else 26432 $ECHO "Arg failed:" >&5 26433 $ECHO "$OUTPUT" >&5 26434 JVM_ARG_OK=false 26435 fi 26436 26437 26438 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 26439 $ECHO "Command: $JAVA -Xmx512M -version" >&5 26440 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 26441 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26442 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26443 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26444 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 26445 JVM_ARG_OK=true 26446 else 26447 $ECHO "Arg failed:" >&5 26448 $ECHO "$OUTPUT" >&5 26449 JVM_ARG_OK=false 26450 fi 26451 26452 26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 26454 $as_echo "$boot_jdk_jvmargs_small" >&6; } 26455 26456 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 26457 26458 26459 26460 ############################################################################### 26461 # 26462 # Configure the sources to use. We can add or override individual directories. 26463 # 26464 ############################################################################### 26465 26466 26467 # Where are the sources. Any of these can be overridden 26468 # using --with-override-corba and the likes. 26469 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26470 CORBA_TOPDIR="$SRC_ROOT/corba" 26471 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26472 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26473 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26474 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26475 JDK_TOPDIR="$SRC_ROOT/jdk" 26476 26477 26478 26479 26480 26481 26482 26483 26484 26485 26486 ############################################################################### 26487 # 26488 # Pickup additional source for a component from outside of the source root 26489 # or override source for a component. 26490 # 26491 26492 # Check whether --with-add-source-root was given. 26493 if test "${with_add_source_root+set}" = set; then : 26494 withval=$with_add_source_root; 26495 fi 26496 26497 26498 26499 # Check whether --with-override-source-root was given. 26500 if test "${with_override_source_root+set}" = set; then : 26501 withval=$with_override_source_root; 26502 fi 26503 26504 26505 26506 # Check whether --with-adds-and-overrides was given. 26507 if test "${with_adds_and_overrides+set}" = set; then : 26508 withval=$with_adds_and_overrides; 26509 fi 26510 26511 26512 if test "x$with_adds_and_overrides" != x; then 26513 with_add_source_root="$with_adds_and_overrides/adds" 26514 with_override_source_root="$with_adds_and_overrides/overrides" 26515 fi 26516 26517 if test "x$with_add_source_root" != x; then 26518 if ! test -d $with_add_source_root; then 26519 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26520 fi 26521 CURDIR="$PWD" 26522 cd "$with_add_source_root" 26523 ADD_SRC_ROOT="`pwd`" 26524 cd "$CURDIR" 26525 # Verify that the addon source root does not have any root makefiles. 26526 # If it does, then it is usually an error, prevent this. 26527 if test -f $with_add_source_root/langtools/make/Makefile; then 26528 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 26529 fi 26530 if test -f $with_add_source_root/corba/make/Makefile; then 26531 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 26532 fi 26533 if test -f $with_add_source_root/jaxp/make/Makefile; then 26534 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 26535 fi 26536 if test -f $with_add_source_root/jaxws/make/Makefile; then 26537 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 26538 fi 26539 if test -f $with_add_source_root/hotspot/make/Makefile; then 26540 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 26541 fi 26542 if test -f $with_add_source_root/nashorn/make/Makefile; then 26543 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 26544 fi 26545 if test -f $with_add_source_root/jdk/make/Makefile; then 26546 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 26547 fi 26548 fi 26549 26550 26551 if test "x$with_override_source_root" != x; then 26552 if ! test -d $with_override_source_root; then 26553 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26554 fi 26555 CURDIR="$PWD" 26556 cd "$with_override_source_root" 26557 OVERRIDE_SRC_ROOT="`pwd`" 26558 cd "$CURDIR" 26559 if test -f $with_override_source_root/langtools/make/Makefile; then 26560 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 26561 fi 26562 if test -f $with_override_source_root/corba/make/Makefile; then 26563 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 26564 fi 26565 if test -f $with_override_source_root/jaxp/make/Makefile; then 26566 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 26567 fi 26568 if test -f $with_override_source_root/jaxws/make/Makefile; then 26569 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 26570 fi 26571 if test -f $with_override_source_root/hotspot/make/Makefile; then 26572 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 26573 fi 26574 if test -f $with_override_source_root/nashorn/make/Makefile; then 26575 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 26576 fi 26577 if test -f $with_override_source_root/jdk/make/Makefile; then 26578 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 26579 fi 26580 fi 26581 26582 26583 ############################################################################### 26584 # 26585 # Override a repo completely, this is used for example when you have 3 small 26586 # development sandboxes of the langtools sources and want to avoid having 3 full 26587 # OpenJDK sources checked out on disk. 26588 # 26589 # Assuming that the 3 langtools sandboxes are located here: 26590 # /home/fredrik/sandbox1/langtools 26591 # /home/fredrik/sandbox2/langtools 26592 # /home/fredrik/sandbox3/langtools 26593 # 26594 # From the source root you create build subdirs manually: 26595 # mkdir -p build1 build2 build3 26596 # in each build directory run: 26597 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26598 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26599 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26600 # 26601 26602 26603 # Check whether --with-override-langtools was given. 26604 if test "${with_override_langtools+set}" = set; then : 26605 withval=$with_override_langtools; 26606 fi 26607 26608 26609 26610 # Check whether --with-override-corba was given. 26611 if test "${with_override_corba+set}" = set; then : 26612 withval=$with_override_corba; 26613 fi 26614 26615 26616 26617 # Check whether --with-override-jaxp was given. 26618 if test "${with_override_jaxp+set}" = set; then : 26619 withval=$with_override_jaxp; 26620 fi 26621 26622 26623 26624 # Check whether --with-override-jaxws was given. 26625 if test "${with_override_jaxws+set}" = set; then : 26626 withval=$with_override_jaxws; 26627 fi 26628 26629 26630 26631 # Check whether --with-override-hotspot was given. 26632 if test "${with_override_hotspot+set}" = set; then : 26633 withval=$with_override_hotspot; 26634 fi 26635 26636 26637 26638 # Check whether --with-override-nashorn was given. 26639 if test "${with_override_nashorn+set}" = set; then : 26640 withval=$with_override_nashorn; 26641 fi 26642 26643 26644 26645 # Check whether --with-override-jdk was given. 26646 if test "${with_override_jdk+set}" = set; then : 26647 withval=$with_override_jdk; 26648 fi 26649 26650 26651 if test "x$with_override_langtools" != x; then 26652 CURDIR="$PWD" 26653 cd "$with_override_langtools" 26654 LANGTOOLS_TOPDIR="`pwd`" 26655 cd "$CURDIR" 26656 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26657 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26658 fi 26659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26660 $as_echo_n "checking if langtools should be overridden... " >&6; } 26661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26662 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26663 fi 26664 if test "x$with_override_corba" != x; then 26665 CURDIR="$PWD" 26666 cd "$with_override_corba" 26667 CORBA_TOPDIR="`pwd`" 26668 cd "$CURDIR" 26669 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26670 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26671 fi 26672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26673 $as_echo_n "checking if corba should be overridden... " >&6; } 26674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26675 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26676 fi 26677 if test "x$with_override_jaxp" != x; then 26678 CURDIR="$PWD" 26679 cd "$with_override_jaxp" 26680 JAXP_TOPDIR="`pwd`" 26681 cd "$CURDIR" 26682 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26683 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26684 fi 26685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26686 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26688 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26689 fi 26690 if test "x$with_override_jaxws" != x; then 26691 CURDIR="$PWD" 26692 cd "$with_override_jaxws" 26693 JAXWS_TOPDIR="`pwd`" 26694 cd "$CURDIR" 26695 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26696 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26697 fi 26698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26699 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26701 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26702 fi 26703 if test "x$with_override_hotspot" != x; then 26704 CURDIR="$PWD" 26705 cd "$with_override_hotspot" 26706 HOTSPOT_TOPDIR="`pwd`" 26707 cd "$CURDIR" 26708 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26709 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26710 fi 26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26712 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26714 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26715 fi 26716 if test "x$with_override_nashorn" != x; then 26717 CURDIR="$PWD" 26718 cd "$with_override_nashorn" 26719 NASHORN_TOPDIR="`pwd`" 26720 cd "$CURDIR" 26721 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26722 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26723 fi 26724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26725 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26727 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26728 fi 26729 if test "x$with_override_jdk" != x; then 26730 CURDIR="$PWD" 26731 cd "$with_override_jdk" 26732 JDK_TOPDIR="`pwd`" 26733 cd "$CURDIR" 26734 if ! test -f $JDK_TOPDIR/make/Makefile; then 26735 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26736 fi 26737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26738 $as_echo_n "checking if JDK should be overridden... " >&6; } 26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26740 $as_echo "yes with $JDK_TOPDIR" >&6; } 26741 fi 26742 26743 26744 BUILD_OUTPUT="$OUTPUT_ROOT" 26745 26746 26747 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26748 BUILD_HOTSPOT=true 26749 26750 26751 26752 # Check whether --with-import-hotspot was given. 26753 if test "${with_import_hotspot+set}" = set; then : 26754 withval=$with_import_hotspot; 26755 fi 26756 26757 if test "x$with_import_hotspot" != x; then 26758 CURDIR="$PWD" 26759 cd "$with_import_hotspot" 26760 HOTSPOT_DIST="`pwd`" 26761 cd "$CURDIR" 26762 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26763 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26764 fi 26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26766 $as_echo_n "checking if hotspot should be imported... " >&6; } 26767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26768 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26769 BUILD_HOTSPOT=false 26770 fi 26771 26772 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26773 26774 26775 ############################################################################### 26776 # 26777 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26778 # native code. 26779 # 26780 ############################################################################### 26781 26782 # First determine the toolchain type (compiler family) 26783 26784 26785 # Check whether --with-toolchain-type was given. 26786 if test "${with_toolchain_type+set}" = set; then : 26787 withval=$with_toolchain_type; 26788 fi 26789 26790 26791 # Use indirect variable referencing 26792 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26793 VALID_TOOLCHAINS=${!toolchain_var_name} 26794 26795 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26796 if test -n "$XCODEBUILD"; then 26797 # On Mac OS X, default toolchain to clang after Xcode 5 26798 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 26799 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26800 if test $? -ne 0; then 26801 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26802 fi 26803 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26804 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26805 $CUT -f 1 -d .` 26806 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26807 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26808 if test $XCODE_MAJOR_VERSION -ge 5; then 26809 DEFAULT_TOOLCHAIN="clang" 26810 else 26811 DEFAULT_TOOLCHAIN="gcc" 26812 fi 26813 else 26814 # If Xcode is not installed, but the command line tools are 26815 # then we can't run xcodebuild. On these systems we should 26816 # default to clang 26817 DEFAULT_TOOLCHAIN="clang" 26818 fi 26819 else 26820 # First toolchain type in the list is the default 26821 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26822 fi 26823 26824 if test "x$with_toolchain_type" = xlist; then 26825 # List all toolchains 26826 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26827 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26828 for toolchain in $VALID_TOOLCHAINS; do 26829 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 26830 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26831 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 26832 done 26833 26834 exit 0 26835 elif test "x$with_toolchain_type" != x; then 26836 # User override; check that it is valid 26837 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 26838 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 26839 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 26840 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 26841 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 26842 as_fn_error $? "Cannot continue." "$LINENO" 5 26843 fi 26844 TOOLCHAIN_TYPE=$with_toolchain_type 26845 else 26846 # No flag given, use default 26847 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 26848 fi 26849 26850 26851 TOOLCHAIN_CC_BINARY_clang="clang" 26852 TOOLCHAIN_CC_BINARY_gcc="gcc" 26853 TOOLCHAIN_CC_BINARY_microsoft="cl" 26854 TOOLCHAIN_CC_BINARY_solstudio="cc" 26855 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 26856 26857 TOOLCHAIN_CXX_BINARY_clang="clang++" 26858 TOOLCHAIN_CXX_BINARY_gcc="g++" 26859 TOOLCHAIN_CXX_BINARY_microsoft="cl" 26860 TOOLCHAIN_CXX_BINARY_solstudio="CC" 26861 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 26862 26863 # Use indirect variable referencing 26864 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 26865 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26866 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 26867 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 26868 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 26869 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 26870 26871 26872 # Define filename patterns 26873 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26874 LIBRARY_PREFIX= 26875 SHARED_LIBRARY_SUFFIX='.dll' 26876 STATIC_LIBRARY_SUFFIX='.lib' 26877 SHARED_LIBRARY='$1.dll' 26878 STATIC_LIBRARY='$1.lib' 26879 OBJ_SUFFIX='.obj' 26880 EXE_SUFFIX='.exe' 26881 else 26882 LIBRARY_PREFIX=lib 26883 SHARED_LIBRARY_SUFFIX='.so' 26884 STATIC_LIBRARY_SUFFIX='.a' 26885 SHARED_LIBRARY='lib$1.so' 26886 STATIC_LIBRARY='lib$1.a' 26887 OBJ_SUFFIX='.o' 26888 EXE_SUFFIX='' 26889 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26890 SHARED_LIBRARY='lib$1.dylib' 26891 SHARED_LIBRARY_SUFFIX='.dylib' 26892 fi 26893 fi 26894 26895 26896 26897 26898 26899 26900 26901 26902 26903 26904 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 26905 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 26906 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 26907 else 26908 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 26909 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 26910 fi 26911 26912 26913 # Then detect the actual binaries needed 26914 26915 # FIXME: Is this needed? 26916 ac_ext=cpp 26917 ac_cpp='$CXXCPP $CPPFLAGS' 26918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26921 26922 26923 # Store the CFLAGS etc passed to the configure script. 26924 ORG_CFLAGS="$CFLAGS" 26925 ORG_CXXFLAGS="$CXXFLAGS" 26926 ORG_OBJCFLAGS="$OBJCFLAGS" 26927 26928 # On Windows, we need to detect the visual studio installation first. 26929 # This will change the PATH, but we need to keep that new PATH even 26930 # after toolchain detection is done, since the compiler (on x86) uses 26931 # it for DLL resolution in runtime. 26932 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 26933 26934 # Store path to cygwin link.exe to help excluding it when searching for 26935 # VS linker. This must be done before changing the PATH when looking for VS. 26936 # Extract the first word of "link", so it can be a program name with args. 26937 set dummy link; ac_word=$2 26938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26939 $as_echo_n "checking for $ac_word... " >&6; } 26940 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26941 $as_echo_n "(cached) " >&6 26942 else 26943 case $CYGWIN_LINK in 26944 [\\/]* | ?:[\\/]*) 26945 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26946 ;; 26947 *) 26948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26949 for as_dir in $PATH 26950 do 26951 IFS=$as_save_IFS 26952 test -z "$as_dir" && as_dir=. 26953 for ac_exec_ext in '' $ac_executable_extensions; do 26954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26955 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26957 break 2 26958 fi 26959 done 26960 done 26961 IFS=$as_save_IFS 26962 26963 ;; 26964 esac 26965 fi 26966 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26967 if test -n "$CYGWIN_LINK"; then 26968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26969 $as_echo "$CYGWIN_LINK" >&6; } 26970 else 26971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26972 $as_echo "no" >&6; } 26973 fi 26974 26975 26976 if test "x$CYGWIN_LINK" != x; then 26977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26978 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26979 "$CYGWIN_LINK" --version > /dev/null 26980 if test $? -eq 0 ; then 26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26982 $as_echo "yes" >&6; } 26983 else 26984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26985 $as_echo "no" >&6; } 26986 # This might be the VS linker. Don't exclude it later on. 26987 CYGWIN_LINK="" 26988 fi 26989 fi 26990 26991 # First-hand choice is to locate and run the vsvars bat file. 26992 26993 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26994 VCVARSFILE="vc/bin/vcvars32.bat" 26995 else 26996 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26997 fi 26998 26999 VS_ENV_CMD="" 27000 VS_ENV_ARGS="" 27001 if test "x$with_toolsdir" != x; then 27002 27003 if test "x$VS_ENV_CMD" = x; then 27004 VS100BASE="$with_toolsdir/../.." 27005 METHOD="--with-tools-dir" 27006 27007 windows_path="$VS100BASE" 27008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27009 unix_path=`$CYGPATH -u "$windows_path"` 27010 VS100BASE="$unix_path" 27011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27012 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27013 VS100BASE="$unix_path" 27014 fi 27015 27016 if test -d "$VS100BASE"; then 27017 if test -f "$VS100BASE/$VCVARSFILE"; then 27018 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27019 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27020 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 27021 else 27022 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27023 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27024 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27025 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27026 fi 27027 fi 27028 fi 27029 27030 fi 27031 27032 if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 27033 # Having specified an argument which is incorrect will produce an instant failure; 27034 # we should not go on looking 27035 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 27036 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 27037 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 27038 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 27039 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 27040 fi 27041 27042 if test "x$VS100COMNTOOLS" != x; then 27043 27044 if test "x$VS_ENV_CMD" = x; then 27045 VS100BASE="$VS100COMNTOOLS/../.." 27046 METHOD="VS100COMNTOOLS variable" 27047 27048 windows_path="$VS100BASE" 27049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27050 unix_path=`$CYGPATH -u "$windows_path"` 27051 VS100BASE="$unix_path" 27052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27053 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27054 VS100BASE="$unix_path" 27055 fi 27056 27057 if test -d "$VS100BASE"; then 27058 if test -f "$VS100BASE/$VCVARSFILE"; then 27059 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27060 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27061 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 27062 else 27063 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27064 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27065 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27066 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27067 fi 27068 fi 27069 fi 27070 27071 fi 27072 if test "x$PROGRAMFILES" != x; then 27073 27074 if test "x$VS_ENV_CMD" = x; then 27075 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 27076 METHOD="well-known name" 27077 27078 windows_path="$VS100BASE" 27079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27080 unix_path=`$CYGPATH -u "$windows_path"` 27081 VS100BASE="$unix_path" 27082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27083 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27084 VS100BASE="$unix_path" 27085 fi 27086 27087 if test -d "$VS100BASE"; then 27088 if test -f "$VS100BASE/$VCVARSFILE"; then 27089 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27090 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27091 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 27092 else 27093 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27094 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27095 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27096 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27097 fi 27098 fi 27099 fi 27100 27101 fi 27102 27103 if test "x$VS_ENV_CMD" = x; then 27104 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 27105 METHOD="well-known name" 27106 27107 windows_path="$VS100BASE" 27108 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27109 unix_path=`$CYGPATH -u "$windows_path"` 27110 VS100BASE="$unix_path" 27111 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27112 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27113 VS100BASE="$unix_path" 27114 fi 27115 27116 if test -d "$VS100BASE"; then 27117 if test -f "$VS100BASE/$VCVARSFILE"; then 27118 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27119 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27120 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 27121 else 27122 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27123 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27124 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27125 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27126 fi 27127 fi 27128 fi 27129 27130 27131 if test "x$VS_ENV_CMD" = x; then 27132 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 27133 METHOD="well-known name" 27134 27135 windows_path="$VS100BASE" 27136 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27137 unix_path=`$CYGPATH -u "$windows_path"` 27138 VS100BASE="$unix_path" 27139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27140 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27141 VS100BASE="$unix_path" 27142 fi 27143 27144 if test -d "$VS100BASE"; then 27145 if test -f "$VS100BASE/$VCVARSFILE"; then 27146 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27147 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27148 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 27149 else 27150 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 27151 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 27152 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27153 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27154 fi 27155 fi 27156 fi 27157 27158 27159 if test "x$ProgramW6432" != x; then 27160 27161 if test "x$VS_ENV_CMD" = x; then 27162 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 27163 METHOD="well-known name" 27164 27165 windows_path="$WIN_SDK_BASE" 27166 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27167 unix_path=`$CYGPATH -u "$windows_path"` 27168 WIN_SDK_BASE="$unix_path" 27169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27170 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27171 WIN_SDK_BASE="$unix_path" 27172 fi 27173 27174 if test -d "$WIN_SDK_BASE"; then 27175 # There have been cases of partial or broken SDK installations. A missing 27176 # lib dir is not going to work. 27177 if test ! -d "$WIN_SDK_BASE/../lib"; then 27178 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27179 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27180 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27181 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27182 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27183 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27184 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27185 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27186 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27187 VS_ENV_ARGS="/x86" 27188 else 27189 VS_ENV_ARGS="/x64" 27190 fi 27191 else 27192 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27193 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27194 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27195 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27196 fi 27197 fi 27198 fi 27199 27200 fi 27201 if test "x$PROGRAMW6432" != x; then 27202 27203 if test "x$VS_ENV_CMD" = x; then 27204 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 27205 METHOD="well-known name" 27206 27207 windows_path="$WIN_SDK_BASE" 27208 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27209 unix_path=`$CYGPATH -u "$windows_path"` 27210 WIN_SDK_BASE="$unix_path" 27211 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27212 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27213 WIN_SDK_BASE="$unix_path" 27214 fi 27215 27216 if test -d "$WIN_SDK_BASE"; then 27217 # There have been cases of partial or broken SDK installations. A missing 27218 # lib dir is not going to work. 27219 if test ! -d "$WIN_SDK_BASE/../lib"; then 27220 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27221 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27222 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27223 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27224 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27225 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27226 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27227 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27228 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27229 VS_ENV_ARGS="/x86" 27230 else 27231 VS_ENV_ARGS="/x64" 27232 fi 27233 else 27234 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27235 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27236 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27237 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27238 fi 27239 fi 27240 fi 27241 27242 fi 27243 if test "x$PROGRAMFILES" != x; then 27244 27245 if test "x$VS_ENV_CMD" = x; then 27246 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 27247 METHOD="well-known name" 27248 27249 windows_path="$WIN_SDK_BASE" 27250 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27251 unix_path=`$CYGPATH -u "$windows_path"` 27252 WIN_SDK_BASE="$unix_path" 27253 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27254 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27255 WIN_SDK_BASE="$unix_path" 27256 fi 27257 27258 if test -d "$WIN_SDK_BASE"; then 27259 # There have been cases of partial or broken SDK installations. A missing 27260 # lib dir is not going to work. 27261 if test ! -d "$WIN_SDK_BASE/../lib"; then 27262 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27263 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27264 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27265 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27266 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27267 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27268 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27269 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27270 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27271 VS_ENV_ARGS="/x86" 27272 else 27273 VS_ENV_ARGS="/x64" 27274 fi 27275 else 27276 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27277 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27278 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27279 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27280 fi 27281 fi 27282 fi 27283 27284 fi 27285 27286 if test "x$VS_ENV_CMD" = x; then 27287 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 27288 METHOD="well-known name" 27289 27290 windows_path="$WIN_SDK_BASE" 27291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27292 unix_path=`$CYGPATH -u "$windows_path"` 27293 WIN_SDK_BASE="$unix_path" 27294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27295 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27296 WIN_SDK_BASE="$unix_path" 27297 fi 27298 27299 if test -d "$WIN_SDK_BASE"; then 27300 # There have been cases of partial or broken SDK installations. A missing 27301 # lib dir is not going to work. 27302 if test ! -d "$WIN_SDK_BASE/../lib"; then 27303 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27304 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27305 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27306 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27307 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27308 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27309 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27310 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27311 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27312 VS_ENV_ARGS="/x86" 27313 else 27314 VS_ENV_ARGS="/x64" 27315 fi 27316 else 27317 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27318 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27319 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27320 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27321 fi 27322 fi 27323 fi 27324 27325 27326 if test "x$VS_ENV_CMD" = x; then 27327 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 27328 METHOD="well-known name" 27329 27330 windows_path="$WIN_SDK_BASE" 27331 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27332 unix_path=`$CYGPATH -u "$windows_path"` 27333 WIN_SDK_BASE="$unix_path" 27334 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27335 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27336 WIN_SDK_BASE="$unix_path" 27337 fi 27338 27339 if test -d "$WIN_SDK_BASE"; then 27340 # There have been cases of partial or broken SDK installations. A missing 27341 # lib dir is not going to work. 27342 if test ! -d "$WIN_SDK_BASE/../lib"; then 27343 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27344 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27345 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27346 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27347 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 27348 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27349 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27350 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 27351 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27352 VS_ENV_ARGS="/x86" 27353 else 27354 VS_ENV_ARGS="/x64" 27355 fi 27356 else 27357 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27358 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27359 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27360 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27361 fi 27362 fi 27363 fi 27364 27365 27366 if test "x$VS_ENV_CMD" != x; then 27367 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 27368 27369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27370 27371 # First separate the path from the arguments. This will split at the first 27372 # space. 27373 complete="$VS_ENV_CMD" 27374 path="${complete%% *}" 27375 tmp="$complete EOL" 27376 arguments="${tmp#* }" 27377 27378 # Input might be given as Windows format, start by converting to 27379 # unix format. 27380 new_path=`$CYGPATH -u "$path"` 27381 27382 # Now try to locate executable using which 27383 new_path=`$WHICH "$new_path" 2> /dev/null` 27384 # bat and cmd files are not always considered executable in cygwin causing which 27385 # to not find them 27386 if test "x$new_path" = x \ 27387 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27388 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27389 new_path=`$CYGPATH -u "$path"` 27390 fi 27391 if test "x$new_path" = x; then 27392 # Oops. Which didn't find the executable. 27393 # The splitting of arguments from the executable at a space might have been incorrect, 27394 # since paths with space are more likely in Windows. Give it another try with the whole 27395 # argument. 27396 path="$complete" 27397 arguments="EOL" 27398 new_path=`$CYGPATH -u "$path"` 27399 new_path=`$WHICH "$new_path" 2> /dev/null` 27400 # bat and cmd files are not always considered executable in cygwin causing which 27401 # to not find them 27402 if test "x$new_path" = x \ 27403 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27404 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27405 new_path=`$CYGPATH -u "$path"` 27406 fi 27407 if test "x$new_path" = x; then 27408 # It's still not found. Now this is an unrecoverable error. 27409 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27410 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27411 has_space=`$ECHO "$complete" | $GREP " "` 27412 if test "x$has_space" != x; then 27413 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27414 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27415 fi 27416 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27417 fi 27418 fi 27419 27420 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27421 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27422 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27423 # "foo.exe" is OK but "foo" is an error. 27424 # 27425 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27426 # It is also a way to make sure we got the proper file name for the real test later on. 27427 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27428 if test "x$test_shortpath" = x; then 27429 # Short path failed, file does not exist as specified. 27430 # Try adding .exe or .cmd 27431 if test -f "${new_path}.exe"; then 27432 input_to_shortpath="${new_path}.exe" 27433 elif test -f "${new_path}.cmd"; then 27434 input_to_shortpath="${new_path}.cmd" 27435 else 27436 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27437 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27438 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27439 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27440 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27441 fi 27442 else 27443 input_to_shortpath="$new_path" 27444 fi 27445 27446 # Call helper function which possibly converts this using DOS-style short mode. 27447 # If so, the updated path is stored in $new_path. 27448 new_path="$input_to_shortpath" 27449 27450 input_path="$input_to_shortpath" 27451 # Check if we need to convert this using DOS-style short mode. If the path 27452 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27453 # take no chances and rewrite it. 27454 # Note: m4 eats our [], so we need to use [ and ] instead. 27455 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27456 if test "x$has_forbidden_chars" != x; then 27457 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27458 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27459 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27460 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27461 # Going to short mode and back again did indeed matter. Since short mode is 27462 # case insensitive, let's make it lowercase to improve readability. 27463 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27464 # Now convert it back to Unix-stile (cygpath) 27465 input_path=`$CYGPATH -u "$shortmode_path"` 27466 new_path="$input_path" 27467 fi 27468 fi 27469 27470 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27471 if test "x$test_cygdrive_prefix" = x; then 27472 # As a simple fix, exclude /usr/bin since it's not a real path. 27473 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27474 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27475 # a path prefixed by /cygdrive for fixpath to work. 27476 new_path="$CYGWIN_ROOT_PATH$input_path" 27477 fi 27478 fi 27479 27480 # remove trailing .exe if any 27481 new_path="${new_path/%.exe/}" 27482 27483 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27484 27485 # First separate the path from the arguments. This will split at the first 27486 # space. 27487 complete="$VS_ENV_CMD" 27488 path="${complete%% *}" 27489 tmp="$complete EOL" 27490 arguments="${tmp#* }" 27491 27492 # Input might be given as Windows format, start by converting to 27493 # unix format. 27494 new_path="$path" 27495 27496 windows_path="$new_path" 27497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27498 unix_path=`$CYGPATH -u "$windows_path"` 27499 new_path="$unix_path" 27500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27501 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27502 new_path="$unix_path" 27503 fi 27504 27505 27506 # Now try to locate executable using which 27507 new_path=`$WHICH "$new_path" 2> /dev/null` 27508 27509 if test "x$new_path" = x; then 27510 # Oops. Which didn't find the executable. 27511 # The splitting of arguments from the executable at a space might have been incorrect, 27512 # since paths with space are more likely in Windows. Give it another try with the whole 27513 # argument. 27514 path="$complete" 27515 arguments="EOL" 27516 new_path="$path" 27517 27518 windows_path="$new_path" 27519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27520 unix_path=`$CYGPATH -u "$windows_path"` 27521 new_path="$unix_path" 27522 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27523 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27524 new_path="$unix_path" 27525 fi 27526 27527 27528 new_path=`$WHICH "$new_path" 2> /dev/null` 27529 # bat and cmd files are not always considered executable in MSYS causing which 27530 # to not find them 27531 if test "x$new_path" = x \ 27532 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27533 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27534 new_path="$path" 27535 27536 windows_path="$new_path" 27537 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27538 unix_path=`$CYGPATH -u "$windows_path"` 27539 new_path="$unix_path" 27540 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27541 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27542 new_path="$unix_path" 27543 fi 27544 27545 fi 27546 27547 if test "x$new_path" = x; then 27548 # It's still not found. Now this is an unrecoverable error. 27549 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27550 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27551 has_space=`$ECHO "$complete" | $GREP " "` 27552 if test "x$has_space" != x; then 27553 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27554 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27555 fi 27556 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27557 fi 27558 fi 27559 27560 # Now new_path has a complete unix path to the binary 27561 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27562 # Keep paths in /bin as-is, but remove trailing .exe if any 27563 new_path="${new_path/%.exe/}" 27564 # Do not save /bin paths to all_fixpath_prefixes! 27565 else 27566 # Not in mixed or Windows style, start by that. 27567 new_path=`cmd //c echo $new_path` 27568 27569 input_path="$new_path" 27570 # Check if we need to convert this using DOS-style short mode. If the path 27571 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27572 # take no chances and rewrite it. 27573 # Note: m4 eats our [], so we need to use [ and ] instead. 27574 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27575 if test "x$has_forbidden_chars" != x; then 27576 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27577 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27578 fi 27579 27580 # Output is in $new_path 27581 27582 windows_path="$new_path" 27583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27584 unix_path=`$CYGPATH -u "$windows_path"` 27585 new_path="$unix_path" 27586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27587 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27588 new_path="$unix_path" 27589 fi 27590 27591 # remove trailing .exe if any 27592 new_path="${new_path/%.exe/}" 27593 27594 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27595 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27596 fi 27597 27598 else 27599 # We're on a posix platform. Hooray! :) 27600 # First separate the path from the arguments. This will split at the first 27601 # space. 27602 complete="$VS_ENV_CMD" 27603 path="${complete%% *}" 27604 tmp="$complete EOL" 27605 arguments="${tmp#* }" 27606 27607 # Cannot rely on the command "which" here since it doesn't always work. 27608 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27609 if test -z "$is_absolute_path"; then 27610 # Path to executable is not absolute. Find it. 27611 IFS_save="$IFS" 27612 IFS=: 27613 for p in $PATH; do 27614 if test -f "$p/$path" && test -x "$p/$path"; then 27615 new_path="$p/$path" 27616 break 27617 fi 27618 done 27619 IFS="$IFS_save" 27620 else 27621 # This is an absolute path, we can use it without further modifications. 27622 new_path="$path" 27623 fi 27624 27625 if test "x$new_path" = x; then 27626 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27627 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27628 has_space=`$ECHO "$complete" | $GREP " "` 27629 if test "x$has_space" != x; then 27630 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27631 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27632 fi 27633 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27634 fi 27635 fi 27636 27637 # Now join together the path and the arguments once again 27638 if test "x$arguments" != xEOL; then 27639 new_complete="$new_path ${arguments% *}" 27640 else 27641 new_complete="$new_path" 27642 fi 27643 27644 if test "x$complete" != "x$new_complete"; then 27645 VS_ENV_CMD="$new_complete" 27646 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 27647 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 27648 fi 27649 27650 27651 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 27652 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 27653 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 27654 27655 # We need to create a couple of temporary files. 27656 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" 27657 $MKDIR -p $VS_ENV_TMP_DIR 27658 27659 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 27660 # Instead create a shell script which will set the relevant variables when run. 27661 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 27662 27663 unix_path="$WINPATH_VS_ENV_CMD" 27664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27665 windows_path=`$CYGPATH -m "$unix_path"` 27666 WINPATH_VS_ENV_CMD="$windows_path" 27667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27668 windows_path=`cmd //c echo $unix_path` 27669 WINPATH_VS_ENV_CMD="$windows_path" 27670 fi 27671 27672 WINPATH_BASH="$BASH" 27673 27674 unix_path="$WINPATH_BASH" 27675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27676 windows_path=`$CYGPATH -m "$unix_path"` 27677 WINPATH_BASH="$windows_path" 27678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27679 windows_path=`cmd //c echo $unix_path` 27680 WINPATH_BASH="$windows_path" 27681 fi 27682 27683 27684 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 27685 # script (executable by bash) that will setup the important variables. 27686 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 27687 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 27688 # This will end up something like: 27689 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 27690 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 27691 # These will end up something like: 27692 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 27693 # The trailing space for everyone except PATH is no typo, but is needed due 27694 # to trailing \ in the Windows paths. These will be stripped later. 27695 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27696 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27697 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27698 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27699 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27700 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27701 27702 # Now execute the newly created bat file. 27703 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 27704 # Change directory so we don't need to mess with Windows paths in redirects. 27705 cd $VS_ENV_TMP_DIR 27706 cmd /c extract-vs-env.bat | $CAT 27707 cd $CURDIR 27708 27709 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 27710 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 27711 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 27712 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27713 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27714 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27715 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27716 as_fn_error $? "Cannot continue" "$LINENO" 5 27717 fi 27718 27719 # Now set all paths and other env variables. This will allow the rest of 27720 # the configure script to find and run the compiler in the proper way. 27721 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 27722 $as_echo "$as_me: Setting extracted environment variables" >&6;} 27723 . $VS_ENV_TMP_DIR/set-vs-env.sh 27724 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 27725 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 27726 else 27727 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 27728 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 27729 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 27730 fi 27731 27732 # At this point, we should have correct variables in the environment, or we can't continue. 27733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 27734 $as_echo_n "checking for Visual Studio variables... " >&6; } 27735 27736 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 27737 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 27739 $as_echo "present but broken" >&6; } 27740 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 27741 else 27742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27743 $as_echo "ok" >&6; } 27744 # Remove any trailing "\" and " " from the variables. 27745 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED 's/\\\\* *$//'` 27746 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\* *$//'` 27747 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 27748 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 27749 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 27750 # Remove any paths containing # (typically F#) as that messes up make. This 27751 # is needed if visual studio was installed with F# support. 27752 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 27753 27754 27755 27756 27757 fi 27758 else 27759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27760 $as_echo "not found" >&6; } 27761 27762 if test "x$VS_ENV_CMD" = x; then 27763 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 27764 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 27765 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 27766 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 27767 else 27768 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 27769 $as_echo "$as_me: Running the extraction script failed." >&6;} 27770 fi 27771 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27772 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27773 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27774 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27775 as_fn_error $? "Cannot continue" "$LINENO" 5 27776 fi 27777 27778 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 27779 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 27780 PATH="$VS_PATH" 27781 # The microsoft toolchain also requires INCLUDE and LIB to be set. 27782 export INCLUDE="$VS_INCLUDE" 27783 export LIB="$VS_LIB" 27784 fi 27785 27786 # autoconf magic only relies on PATH, so update it if tools dir is specified 27787 OLD_PATH="$PATH" 27788 27789 # For solaris we really need solaris tools, and not the GNU equivalent. 27790 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 27791 # so add that to path before starting to probe. 27792 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 27793 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 27794 PATH="/usr/ccs/bin:$PATH" 27795 fi 27796 27797 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 27798 # override all other locations. 27799 if test "x$TOOLCHAIN_PATH" != x; then 27800 PATH=$TOOLCHAIN_PATH:$PATH 27801 fi 27802 27803 27804 # 27805 # Setup the compilers (CC and CXX) 27806 # 27807 27808 COMPILER_NAME=C 27809 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 27810 27811 if test "x$CC" != x; then 27812 # User has supplied compiler name already, always let that override. 27813 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 27814 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 27815 if test "x`basename $CC`" = "x$CC"; then 27816 # A command without a complete path is provided, search $PATH. 27817 27818 for ac_prog in $CC 27819 do 27820 # Extract the first word of "$ac_prog", so it can be a program name with args. 27821 set dummy $ac_prog; ac_word=$2 27822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27823 $as_echo_n "checking for $ac_word... " >&6; } 27824 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27825 $as_echo_n "(cached) " >&6 27826 else 27827 case $POTENTIAL_CC in 27828 [\\/]* | ?:[\\/]*) 27829 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27830 ;; 27831 *) 27832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27833 for as_dir in $PATH 27834 do 27835 IFS=$as_save_IFS 27836 test -z "$as_dir" && as_dir=. 27837 for ac_exec_ext in '' $ac_executable_extensions; do 27838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27839 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27841 break 2 27842 fi 27843 done 27844 done 27845 IFS=$as_save_IFS 27846 27847 ;; 27848 esac 27849 fi 27850 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27851 if test -n "$POTENTIAL_CC"; then 27852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27853 $as_echo "$POTENTIAL_CC" >&6; } 27854 else 27855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27856 $as_echo "no" >&6; } 27857 fi 27858 27859 27860 test -n "$POTENTIAL_CC" && break 27861 done 27862 27863 if test "x$POTENTIAL_CC" != x; then 27864 CC=$POTENTIAL_CC 27865 else 27866 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 27867 fi 27868 else 27869 # Otherwise it might already be a complete path 27870 if test ! -x "$CC"; then 27871 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 27872 fi 27873 fi 27874 else 27875 # No user supplied value. Locate compiler ourselves. 27876 27877 # If we are cross compiling, assume cross compilation tools follows the 27878 # cross compilation standard where they are prefixed with the autoconf 27879 # standard name for the target. For example the binary 27880 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 27881 # If we are not cross compiling, then the default compiler name will be 27882 # used. 27883 27884 CC= 27885 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 27886 # before checking the rest of the PATH. 27887 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 27888 # step, this should not be necessary. 27889 if test -n "$TOOLCHAIN_PATH"; then 27890 PATH_save="$PATH" 27891 PATH="$TOOLCHAIN_PATH" 27892 for ac_prog in $SEARCH_LIST 27893 do 27894 # Extract the first word of "$ac_prog", so it can be a program name with args. 27895 set dummy $ac_prog; ac_word=$2 27896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27897 $as_echo_n "checking for $ac_word... " >&6; } 27898 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 27899 $as_echo_n "(cached) " >&6 27900 else 27901 case $TOOLCHAIN_PATH_CC in 27902 [\\/]* | ?:[\\/]*) 27903 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 27904 ;; 27905 *) 27906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27907 for as_dir in $PATH 27908 do 27909 IFS=$as_save_IFS 27910 test -z "$as_dir" && as_dir=. 27911 for ac_exec_ext in '' $ac_executable_extensions; do 27912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27913 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 27914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27915 break 2 27916 fi 27917 done 27918 done 27919 IFS=$as_save_IFS 27920 27921 ;; 27922 esac 27923 fi 27924 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 27925 if test -n "$TOOLCHAIN_PATH_CC"; then 27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 27927 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 27928 else 27929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27930 $as_echo "no" >&6; } 27931 fi 27932 27933 27934 test -n "$TOOLCHAIN_PATH_CC" && break 27935 done 27936 27937 CC=$TOOLCHAIN_PATH_CC 27938 PATH="$PATH_save" 27939 fi 27940 27941 # AC_PATH_PROGS can't be run multiple times with the same variable, 27942 # so create a new name for this run. 27943 if test "x$CC" = x; then 27944 for ac_prog in $SEARCH_LIST 27945 do 27946 # Extract the first word of "$ac_prog", so it can be a program name with args. 27947 set dummy $ac_prog; ac_word=$2 27948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27949 $as_echo_n "checking for $ac_word... " >&6; } 27950 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27951 $as_echo_n "(cached) " >&6 27952 else 27953 case $POTENTIAL_CC in 27954 [\\/]* | ?:[\\/]*) 27955 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27956 ;; 27957 *) 27958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27959 for as_dir in $PATH 27960 do 27961 IFS=$as_save_IFS 27962 test -z "$as_dir" && as_dir=. 27963 for ac_exec_ext in '' $ac_executable_extensions; do 27964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27965 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27967 break 2 27968 fi 27969 done 27970 done 27971 IFS=$as_save_IFS 27972 27973 ;; 27974 esac 27975 fi 27976 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27977 if test -n "$POTENTIAL_CC"; then 27978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27979 $as_echo "$POTENTIAL_CC" >&6; } 27980 else 27981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27982 $as_echo "no" >&6; } 27983 fi 27984 27985 27986 test -n "$POTENTIAL_CC" && break 27987 done 27988 27989 CC=$POTENTIAL_CC 27990 fi 27991 27992 if test "x$CC" = x; then 27993 27994 # Print a helpful message on how to acquire the necessary build dependency. 27995 # devkit is the help tag: freetype, cups, pulse, alsa etc 27996 MISSING_DEPENDENCY=devkit 27997 27998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27999 cygwin_help $MISSING_DEPENDENCY 28000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28001 msys_help $MISSING_DEPENDENCY 28002 else 28003 PKGHANDLER_COMMAND= 28004 28005 case $PKGHANDLER in 28006 apt-get) 28007 apt_help $MISSING_DEPENDENCY ;; 28008 yum) 28009 yum_help $MISSING_DEPENDENCY ;; 28010 port) 28011 port_help $MISSING_DEPENDENCY ;; 28012 pkgutil) 28013 pkgutil_help $MISSING_DEPENDENCY ;; 28014 pkgadd) 28015 pkgadd_help $MISSING_DEPENDENCY ;; 28016 esac 28017 28018 if test "x$PKGHANDLER_COMMAND" != x; then 28019 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28020 fi 28021 fi 28022 28023 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 28024 fi 28025 fi 28026 28027 # Now we have a compiler binary in CC. Make sure it's okay. 28028 28029 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28030 28031 # First separate the path from the arguments. This will split at the first 28032 # space. 28033 complete="$CC" 28034 path="${complete%% *}" 28035 tmp="$complete EOL" 28036 arguments="${tmp#* }" 28037 28038 # Input might be given as Windows format, start by converting to 28039 # unix format. 28040 new_path=`$CYGPATH -u "$path"` 28041 28042 # Now try to locate executable using which 28043 new_path=`$WHICH "$new_path" 2> /dev/null` 28044 # bat and cmd files are not always considered executable in cygwin causing which 28045 # to not find them 28046 if test "x$new_path" = x \ 28047 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28048 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28049 new_path=`$CYGPATH -u "$path"` 28050 fi 28051 if test "x$new_path" = x; then 28052 # Oops. Which didn't find the executable. 28053 # The splitting of arguments from the executable at a space might have been incorrect, 28054 # since paths with space are more likely in Windows. Give it another try with the whole 28055 # argument. 28056 path="$complete" 28057 arguments="EOL" 28058 new_path=`$CYGPATH -u "$path"` 28059 new_path=`$WHICH "$new_path" 2> /dev/null` 28060 # bat and cmd files are not always considered executable in cygwin causing which 28061 # to not find them 28062 if test "x$new_path" = x \ 28063 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28064 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28065 new_path=`$CYGPATH -u "$path"` 28066 fi 28067 if test "x$new_path" = x; then 28068 # It's still not found. Now this is an unrecoverable error. 28069 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28070 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28071 has_space=`$ECHO "$complete" | $GREP " "` 28072 if test "x$has_space" != x; then 28073 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28074 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28075 fi 28076 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28077 fi 28078 fi 28079 28080 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28081 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28082 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28083 # "foo.exe" is OK but "foo" is an error. 28084 # 28085 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28086 # It is also a way to make sure we got the proper file name for the real test later on. 28087 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28088 if test "x$test_shortpath" = x; then 28089 # Short path failed, file does not exist as specified. 28090 # Try adding .exe or .cmd 28091 if test -f "${new_path}.exe"; then 28092 input_to_shortpath="${new_path}.exe" 28093 elif test -f "${new_path}.cmd"; then 28094 input_to_shortpath="${new_path}.cmd" 28095 else 28096 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 28097 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 28098 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28099 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28100 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28101 fi 28102 else 28103 input_to_shortpath="$new_path" 28104 fi 28105 28106 # Call helper function which possibly converts this using DOS-style short mode. 28107 # If so, the updated path is stored in $new_path. 28108 new_path="$input_to_shortpath" 28109 28110 input_path="$input_to_shortpath" 28111 # Check if we need to convert this using DOS-style short mode. If the path 28112 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28113 # take no chances and rewrite it. 28114 # Note: m4 eats our [], so we need to use [ and ] instead. 28115 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28116 if test "x$has_forbidden_chars" != x; then 28117 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28118 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28119 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28120 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28121 # Going to short mode and back again did indeed matter. Since short mode is 28122 # case insensitive, let's make it lowercase to improve readability. 28123 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28124 # Now convert it back to Unix-stile (cygpath) 28125 input_path=`$CYGPATH -u "$shortmode_path"` 28126 new_path="$input_path" 28127 fi 28128 fi 28129 28130 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28131 if test "x$test_cygdrive_prefix" = x; then 28132 # As a simple fix, exclude /usr/bin since it's not a real path. 28133 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28134 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28135 # a path prefixed by /cygdrive for fixpath to work. 28136 new_path="$CYGWIN_ROOT_PATH$input_path" 28137 fi 28138 fi 28139 28140 # remove trailing .exe if any 28141 new_path="${new_path/%.exe/}" 28142 28143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28144 28145 # First separate the path from the arguments. This will split at the first 28146 # space. 28147 complete="$CC" 28148 path="${complete%% *}" 28149 tmp="$complete EOL" 28150 arguments="${tmp#* }" 28151 28152 # Input might be given as Windows format, start by converting to 28153 # unix format. 28154 new_path="$path" 28155 28156 windows_path="$new_path" 28157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28158 unix_path=`$CYGPATH -u "$windows_path"` 28159 new_path="$unix_path" 28160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28162 new_path="$unix_path" 28163 fi 28164 28165 28166 # Now try to locate executable using which 28167 new_path=`$WHICH "$new_path" 2> /dev/null` 28168 28169 if test "x$new_path" = x; then 28170 # Oops. Which didn't find the executable. 28171 # The splitting of arguments from the executable at a space might have been incorrect, 28172 # since paths with space are more likely in Windows. Give it another try with the whole 28173 # argument. 28174 path="$complete" 28175 arguments="EOL" 28176 new_path="$path" 28177 28178 windows_path="$new_path" 28179 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28180 unix_path=`$CYGPATH -u "$windows_path"` 28181 new_path="$unix_path" 28182 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28183 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28184 new_path="$unix_path" 28185 fi 28186 28187 28188 new_path=`$WHICH "$new_path" 2> /dev/null` 28189 # bat and cmd files are not always considered executable in MSYS causing which 28190 # to not find them 28191 if test "x$new_path" = x \ 28192 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28193 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28194 new_path="$path" 28195 28196 windows_path="$new_path" 28197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28198 unix_path=`$CYGPATH -u "$windows_path"` 28199 new_path="$unix_path" 28200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28201 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28202 new_path="$unix_path" 28203 fi 28204 28205 fi 28206 28207 if test "x$new_path" = x; then 28208 # It's still not found. Now this is an unrecoverable error. 28209 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28210 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28211 has_space=`$ECHO "$complete" | $GREP " "` 28212 if test "x$has_space" != x; then 28213 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28214 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28215 fi 28216 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28217 fi 28218 fi 28219 28220 # Now new_path has a complete unix path to the binary 28221 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28222 # Keep paths in /bin as-is, but remove trailing .exe if any 28223 new_path="${new_path/%.exe/}" 28224 # Do not save /bin paths to all_fixpath_prefixes! 28225 else 28226 # Not in mixed or Windows style, start by that. 28227 new_path=`cmd //c echo $new_path` 28228 28229 input_path="$new_path" 28230 # Check if we need to convert this using DOS-style short mode. If the path 28231 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28232 # take no chances and rewrite it. 28233 # Note: m4 eats our [], so we need to use [ and ] instead. 28234 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28235 if test "x$has_forbidden_chars" != x; then 28236 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28237 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28238 fi 28239 28240 # Output is in $new_path 28241 28242 windows_path="$new_path" 28243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28244 unix_path=`$CYGPATH -u "$windows_path"` 28245 new_path="$unix_path" 28246 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28247 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28248 new_path="$unix_path" 28249 fi 28250 28251 # remove trailing .exe if any 28252 new_path="${new_path/%.exe/}" 28253 28254 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28255 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28256 fi 28257 28258 else 28259 # We're on a posix platform. Hooray! :) 28260 # First separate the path from the arguments. This will split at the first 28261 # space. 28262 complete="$CC" 28263 path="${complete%% *}" 28264 tmp="$complete EOL" 28265 arguments="${tmp#* }" 28266 28267 # Cannot rely on the command "which" here since it doesn't always work. 28268 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28269 if test -z "$is_absolute_path"; then 28270 # Path to executable is not absolute. Find it. 28271 IFS_save="$IFS" 28272 IFS=: 28273 for p in $PATH; do 28274 if test -f "$p/$path" && test -x "$p/$path"; then 28275 new_path="$p/$path" 28276 break 28277 fi 28278 done 28279 IFS="$IFS_save" 28280 else 28281 # This is an absolute path, we can use it without further modifications. 28282 new_path="$path" 28283 fi 28284 28285 if test "x$new_path" = x; then 28286 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28287 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28288 has_space=`$ECHO "$complete" | $GREP " "` 28289 if test "x$has_space" != x; then 28290 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28291 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28292 fi 28293 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28294 fi 28295 fi 28296 28297 # Now join together the path and the arguments once again 28298 if test "x$arguments" != xEOL; then 28299 new_complete="$new_path ${arguments% *}" 28300 else 28301 new_complete="$new_path" 28302 fi 28303 28304 if test "x$complete" != "x$new_complete"; then 28305 CC="$new_complete" 28306 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 28307 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 28308 fi 28309 28310 TEST_COMPILER="$CC" 28311 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 28312 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 28313 if test "x$OPENJDK_BUILD_OS" != xaix; then 28314 # FIXME: This test should not be needed anymore; we don't do that for any platform. 28315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 28316 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 28317 28318 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28319 # Follow a chain of symbolic links. Use readlink 28320 # where it exists, else fall back to horribly 28321 # complicated shell code. 28322 if test "x$READLINK_TESTED" != yes; then 28323 # On MacOSX there is a readlink tool with a different 28324 # purpose than the GNU readlink tool. Check the found readlink. 28325 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28326 if test "x$ISGNU" = x; then 28327 # A readlink that we do not know how to use. 28328 # Are there other non-GNU readlinks out there? 28329 READLINK_TESTED=yes 28330 READLINK= 28331 fi 28332 fi 28333 28334 if test "x$READLINK" != x; then 28335 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 28336 else 28337 # Save the current directory for restoring afterwards 28338 STARTDIR=$PWD 28339 COUNTER=0 28340 sym_link_dir=`$DIRNAME $TEST_COMPILER` 28341 sym_link_file=`$BASENAME $TEST_COMPILER` 28342 cd $sym_link_dir 28343 # Use -P flag to resolve symlinks in directories. 28344 cd `$THEPWDCMD -P` 28345 sym_link_dir=`$THEPWDCMD -P` 28346 # Resolve file symlinks 28347 while test $COUNTER -lt 20; do 28348 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28349 if test "x$ISLINK" == x; then 28350 # This is not a symbolic link! We are done! 28351 break 28352 fi 28353 # Again resolve directory symlinks since the target of the just found 28354 # link could be in a different directory 28355 cd `$DIRNAME $ISLINK` 28356 sym_link_dir=`$THEPWDCMD -P` 28357 sym_link_file=`$BASENAME $ISLINK` 28358 let COUNTER=COUNTER+1 28359 done 28360 cd $STARTDIR 28361 TEST_COMPILER=$sym_link_dir/$sym_link_file 28362 fi 28363 fi 28364 28365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28366 $as_echo "$TEST_COMPILER" >&6; } 28367 fi 28368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 28369 $as_echo_n "checking if CC is disguised ccache... " >&6; } 28370 28371 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28372 if test "x$COMPILER_BASENAME" = "xccache"; then 28373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28374 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28375 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28376 # We want to control ccache invocation ourselves, so ignore this cc and try 28377 # searching again. 28378 28379 # Remove the path to the fake ccache cc from the PATH 28380 RETRY_COMPILER_SAVED_PATH="$PATH" 28381 COMPILER_DIRNAME=`$DIRNAME $CC` 28382 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28383 28384 # Try again looking for our compiler 28385 if test -n "$ac_tool_prefix"; then 28386 for ac_prog in $TOOLCHAIN_CC_BINARY 28387 do 28388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28391 $as_echo_n "checking for $ac_word... " >&6; } 28392 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 28393 $as_echo_n "(cached) " >&6 28394 else 28395 if test -n "$PROPER_COMPILER_CC"; then 28396 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 28397 else 28398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28399 for as_dir in $PATH 28400 do 28401 IFS=$as_save_IFS 28402 test -z "$as_dir" && as_dir=. 28403 for ac_exec_ext in '' $ac_executable_extensions; do 28404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28405 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 28406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28407 break 2 28408 fi 28409 done 28410 done 28411 IFS=$as_save_IFS 28412 28413 fi 28414 fi 28415 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 28416 if test -n "$PROPER_COMPILER_CC"; then 28417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28418 $as_echo "$PROPER_COMPILER_CC" >&6; } 28419 else 28420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28421 $as_echo "no" >&6; } 28422 fi 28423 28424 28425 test -n "$PROPER_COMPILER_CC" && break 28426 done 28427 fi 28428 if test -z "$PROPER_COMPILER_CC"; then 28429 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 28430 for ac_prog in $TOOLCHAIN_CC_BINARY 28431 do 28432 # Extract the first word of "$ac_prog", so it can be a program name with args. 28433 set dummy $ac_prog; ac_word=$2 28434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28435 $as_echo_n "checking for $ac_word... " >&6; } 28436 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 28437 $as_echo_n "(cached) " >&6 28438 else 28439 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28440 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 28441 else 28442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28443 for as_dir in $PATH 28444 do 28445 IFS=$as_save_IFS 28446 test -z "$as_dir" && as_dir=. 28447 for ac_exec_ext in '' $ac_executable_extensions; do 28448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28449 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 28450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28451 break 2 28452 fi 28453 done 28454 done 28455 IFS=$as_save_IFS 28456 28457 fi 28458 fi 28459 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 28460 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 28462 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 28463 else 28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28465 $as_echo "no" >&6; } 28466 fi 28467 28468 28469 test -n "$ac_ct_PROPER_COMPILER_CC" && break 28470 done 28471 28472 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 28473 PROPER_COMPILER_CC="" 28474 else 28475 case $cross_compiling:$ac_tool_warned in 28476 yes:) 28477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28479 ac_tool_warned=yes ;; 28480 esac 28481 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 28482 fi 28483 fi 28484 28485 28486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28487 28488 # First separate the path from the arguments. This will split at the first 28489 # space. 28490 complete="$PROPER_COMPILER_CC" 28491 path="${complete%% *}" 28492 tmp="$complete EOL" 28493 arguments="${tmp#* }" 28494 28495 # Input might be given as Windows format, start by converting to 28496 # unix format. 28497 new_path=`$CYGPATH -u "$path"` 28498 28499 # Now try to locate executable using which 28500 new_path=`$WHICH "$new_path" 2> /dev/null` 28501 # bat and cmd files are not always considered executable in cygwin causing which 28502 # to not find them 28503 if test "x$new_path" = x \ 28504 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28505 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28506 new_path=`$CYGPATH -u "$path"` 28507 fi 28508 if test "x$new_path" = x; then 28509 # Oops. Which didn't find the executable. 28510 # The splitting of arguments from the executable at a space might have been incorrect, 28511 # since paths with space are more likely in Windows. Give it another try with the whole 28512 # argument. 28513 path="$complete" 28514 arguments="EOL" 28515 new_path=`$CYGPATH -u "$path"` 28516 new_path=`$WHICH "$new_path" 2> /dev/null` 28517 # bat and cmd files are not always considered executable in cygwin causing which 28518 # to not find them 28519 if test "x$new_path" = x \ 28520 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28521 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28522 new_path=`$CYGPATH -u "$path"` 28523 fi 28524 if test "x$new_path" = x; then 28525 # It's still not found. Now this is an unrecoverable error. 28526 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28527 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28528 has_space=`$ECHO "$complete" | $GREP " "` 28529 if test "x$has_space" != x; then 28530 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28531 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28532 fi 28533 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28534 fi 28535 fi 28536 28537 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28538 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28539 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28540 # "foo.exe" is OK but "foo" is an error. 28541 # 28542 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28543 # It is also a way to make sure we got the proper file name for the real test later on. 28544 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28545 if test "x$test_shortpath" = x; then 28546 # Short path failed, file does not exist as specified. 28547 # Try adding .exe or .cmd 28548 if test -f "${new_path}.exe"; then 28549 input_to_shortpath="${new_path}.exe" 28550 elif test -f "${new_path}.cmd"; then 28551 input_to_shortpath="${new_path}.cmd" 28552 else 28553 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 28554 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 28555 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28556 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28557 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28558 fi 28559 else 28560 input_to_shortpath="$new_path" 28561 fi 28562 28563 # Call helper function which possibly converts this using DOS-style short mode. 28564 # If so, the updated path is stored in $new_path. 28565 new_path="$input_to_shortpath" 28566 28567 input_path="$input_to_shortpath" 28568 # Check if we need to convert this using DOS-style short mode. If the path 28569 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28570 # take no chances and rewrite it. 28571 # Note: m4 eats our [], so we need to use [ and ] instead. 28572 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28573 if test "x$has_forbidden_chars" != x; then 28574 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28575 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28576 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28577 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28578 # Going to short mode and back again did indeed matter. Since short mode is 28579 # case insensitive, let's make it lowercase to improve readability. 28580 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28581 # Now convert it back to Unix-stile (cygpath) 28582 input_path=`$CYGPATH -u "$shortmode_path"` 28583 new_path="$input_path" 28584 fi 28585 fi 28586 28587 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28588 if test "x$test_cygdrive_prefix" = x; then 28589 # As a simple fix, exclude /usr/bin since it's not a real path. 28590 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28591 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28592 # a path prefixed by /cygdrive for fixpath to work. 28593 new_path="$CYGWIN_ROOT_PATH$input_path" 28594 fi 28595 fi 28596 28597 # remove trailing .exe if any 28598 new_path="${new_path/%.exe/}" 28599 28600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28601 28602 # First separate the path from the arguments. This will split at the first 28603 # space. 28604 complete="$PROPER_COMPILER_CC" 28605 path="${complete%% *}" 28606 tmp="$complete EOL" 28607 arguments="${tmp#* }" 28608 28609 # Input might be given as Windows format, start by converting to 28610 # unix format. 28611 new_path="$path" 28612 28613 windows_path="$new_path" 28614 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28615 unix_path=`$CYGPATH -u "$windows_path"` 28616 new_path="$unix_path" 28617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28618 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28619 new_path="$unix_path" 28620 fi 28621 28622 28623 # Now try to locate executable using which 28624 new_path=`$WHICH "$new_path" 2> /dev/null` 28625 28626 if test "x$new_path" = x; then 28627 # Oops. Which didn't find the executable. 28628 # The splitting of arguments from the executable at a space might have been incorrect, 28629 # since paths with space are more likely in Windows. Give it another try with the whole 28630 # argument. 28631 path="$complete" 28632 arguments="EOL" 28633 new_path="$path" 28634 28635 windows_path="$new_path" 28636 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28637 unix_path=`$CYGPATH -u "$windows_path"` 28638 new_path="$unix_path" 28639 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28640 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28641 new_path="$unix_path" 28642 fi 28643 28644 28645 new_path=`$WHICH "$new_path" 2> /dev/null` 28646 # bat and cmd files are not always considered executable in MSYS causing which 28647 # to not find them 28648 if test "x$new_path" = x \ 28649 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28650 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28651 new_path="$path" 28652 28653 windows_path="$new_path" 28654 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28655 unix_path=`$CYGPATH -u "$windows_path"` 28656 new_path="$unix_path" 28657 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28658 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28659 new_path="$unix_path" 28660 fi 28661 28662 fi 28663 28664 if test "x$new_path" = x; then 28665 # It's still not found. Now this is an unrecoverable error. 28666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28667 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28668 has_space=`$ECHO "$complete" | $GREP " "` 28669 if test "x$has_space" != x; then 28670 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28671 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28672 fi 28673 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28674 fi 28675 fi 28676 28677 # Now new_path has a complete unix path to the binary 28678 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28679 # Keep paths in /bin as-is, but remove trailing .exe if any 28680 new_path="${new_path/%.exe/}" 28681 # Do not save /bin paths to all_fixpath_prefixes! 28682 else 28683 # Not in mixed or Windows style, start by that. 28684 new_path=`cmd //c echo $new_path` 28685 28686 input_path="$new_path" 28687 # Check if we need to convert this using DOS-style short mode. If the path 28688 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28689 # take no chances and rewrite it. 28690 # Note: m4 eats our [], so we need to use [ and ] instead. 28691 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28692 if test "x$has_forbidden_chars" != x; then 28693 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28694 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28695 fi 28696 28697 # Output is in $new_path 28698 28699 windows_path="$new_path" 28700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28701 unix_path=`$CYGPATH -u "$windows_path"` 28702 new_path="$unix_path" 28703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28705 new_path="$unix_path" 28706 fi 28707 28708 # remove trailing .exe if any 28709 new_path="${new_path/%.exe/}" 28710 28711 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28712 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28713 fi 28714 28715 else 28716 # We're on a posix platform. Hooray! :) 28717 # First separate the path from the arguments. This will split at the first 28718 # space. 28719 complete="$PROPER_COMPILER_CC" 28720 path="${complete%% *}" 28721 tmp="$complete EOL" 28722 arguments="${tmp#* }" 28723 28724 # Cannot rely on the command "which" here since it doesn't always work. 28725 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28726 if test -z "$is_absolute_path"; then 28727 # Path to executable is not absolute. Find it. 28728 IFS_save="$IFS" 28729 IFS=: 28730 for p in $PATH; do 28731 if test -f "$p/$path" && test -x "$p/$path"; then 28732 new_path="$p/$path" 28733 break 28734 fi 28735 done 28736 IFS="$IFS_save" 28737 else 28738 # This is an absolute path, we can use it without further modifications. 28739 new_path="$path" 28740 fi 28741 28742 if test "x$new_path" = x; then 28743 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28744 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28745 has_space=`$ECHO "$complete" | $GREP " "` 28746 if test "x$has_space" != x; then 28747 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28748 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28749 fi 28750 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28751 fi 28752 fi 28753 28754 # Now join together the path and the arguments once again 28755 if test "x$arguments" != xEOL; then 28756 new_complete="$new_path ${arguments% *}" 28757 else 28758 new_complete="$new_path" 28759 fi 28760 28761 if test "x$complete" != "x$new_complete"; then 28762 PROPER_COMPILER_CC="$new_complete" 28763 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 28764 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 28765 fi 28766 28767 PATH="$RETRY_COMPILER_SAVED_PATH" 28768 28769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 28770 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 28771 28772 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28773 # Follow a chain of symbolic links. Use readlink 28774 # where it exists, else fall back to horribly 28775 # complicated shell code. 28776 if test "x$READLINK_TESTED" != yes; then 28777 # On MacOSX there is a readlink tool with a different 28778 # purpose than the GNU readlink tool. Check the found readlink. 28779 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28780 if test "x$ISGNU" = x; then 28781 # A readlink that we do not know how to use. 28782 # Are there other non-GNU readlinks out there? 28783 READLINK_TESTED=yes 28784 READLINK= 28785 fi 28786 fi 28787 28788 if test "x$READLINK" != x; then 28789 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 28790 else 28791 # Save the current directory for restoring afterwards 28792 STARTDIR=$PWD 28793 COUNTER=0 28794 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 28795 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 28796 cd $sym_link_dir 28797 # Use -P flag to resolve symlinks in directories. 28798 cd `$THEPWDCMD -P` 28799 sym_link_dir=`$THEPWDCMD -P` 28800 # Resolve file symlinks 28801 while test $COUNTER -lt 20; do 28802 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28803 if test "x$ISLINK" == x; then 28804 # This is not a symbolic link! We are done! 28805 break 28806 fi 28807 # Again resolve directory symlinks since the target of the just found 28808 # link could be in a different directory 28809 cd `$DIRNAME $ISLINK` 28810 sym_link_dir=`$THEPWDCMD -P` 28811 sym_link_file=`$BASENAME $ISLINK` 28812 let COUNTER=COUNTER+1 28813 done 28814 cd $STARTDIR 28815 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 28816 fi 28817 fi 28818 28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28820 $as_echo "$PROPER_COMPILER_CC" >&6; } 28821 CC="$PROPER_COMPILER_CC" 28822 else 28823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 28824 $as_echo "no, keeping CC" >&6; } 28825 fi 28826 28827 28828 COMPILER=$CC 28829 COMPILER_NAME=$COMPILER_NAME 28830 28831 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 28832 # cc -V output typically looks like 28833 # cc: Sun C 5.12 Linux_i386 2011/11/16 28834 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 28835 # Check that this is likely to be the Solaris Studio cc. 28836 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 28837 if test $? -ne 0; then 28838 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28839 { $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 28840 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28841 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28842 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28843 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28844 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28845 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28846 fi 28847 # Remove usage instructions (if present), and 28848 # collapse compiler output into a single line 28849 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28850 $SED -e 's/ *[Uu]sage:.*//'` 28851 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28852 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 28853 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 28854 # xlc -qversion output typically looks like 28855 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 28856 # Version: 11.01.0000.0015 28857 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 28858 # Check that this is likely to be the IBM XL C compiler. 28859 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 28860 if test $? -ne 0; then 28861 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28862 { $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 28863 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28864 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28865 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28866 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28867 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28868 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28869 fi 28870 # Collapse compiler output into a single line 28871 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28872 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28873 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 28874 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 28875 # There is no specific version flag, but all output starts with a version string. 28876 # First line typically looks something like: 28877 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 28878 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 28879 # Check that this is likely to be Microsoft CL.EXE. 28880 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 28881 if test $? -ne 0; then 28882 { $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 28883 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28884 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28885 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28886 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28887 fi 28888 # Collapse compiler output into a single line 28889 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28890 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28891 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 28892 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 28893 # gcc --version output typically looks like 28894 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 28895 # Copyright (C) 2013 Free Software Foundation, Inc. 28896 # This is free software; see the source for copying conditions. There is NO 28897 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28898 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28899 # Check that this is likely to be GCC. 28900 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 28901 if test $? -ne 0; then 28902 { $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 28903 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28904 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28905 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28906 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28907 fi 28908 # Remove Copyright and legalese from version string, and 28909 # collapse into a single line 28910 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28911 $SED -e 's/ *Copyright .*//'` 28912 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28913 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 28914 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28915 # clang --version output typically looks like 28916 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28917 # clang version 3.3 (tags/RELEASE_33/final) 28918 # or 28919 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28920 # Target: x86_64-pc-linux-gnu 28921 # Thread model: posix 28922 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28923 # Check that this is likely to be clang 28924 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28925 if test $? -ne 0; then 28926 { $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 28927 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28928 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28929 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28930 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28931 fi 28932 # Collapse compiler output into a single line 28933 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28934 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28935 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28936 else 28937 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28938 fi 28939 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28940 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28941 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28942 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 28943 28944 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28945 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28946 28947 28948 # Now that we have resolved CC ourself, let autoconf have its go at it 28949 ac_ext=c 28950 ac_cpp='$CPP $CPPFLAGS' 28951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28953 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28954 if test -n "$ac_tool_prefix"; then 28955 for ac_prog in $CC 28956 do 28957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28960 $as_echo_n "checking for $ac_word... " >&6; } 28961 if ${ac_cv_prog_CC+:} false; then : 28962 $as_echo_n "(cached) " >&6 28963 else 28964 if test -n "$CC"; then 28965 ac_cv_prog_CC="$CC" # Let the user override the test. 28966 else 28967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28968 for as_dir in $PATH 28969 do 28970 IFS=$as_save_IFS 28971 test -z "$as_dir" && as_dir=. 28972 for ac_exec_ext in '' $ac_executable_extensions; do 28973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28974 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28976 break 2 28977 fi 28978 done 28979 done 28980 IFS=$as_save_IFS 28981 28982 fi 28983 fi 28984 CC=$ac_cv_prog_CC 28985 if test -n "$CC"; then 28986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28987 $as_echo "$CC" >&6; } 28988 else 28989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28990 $as_echo "no" >&6; } 28991 fi 28992 28993 28994 test -n "$CC" && break 28995 done 28996 fi 28997 if test -z "$CC"; then 28998 ac_ct_CC=$CC 28999 for ac_prog in $CC 29000 do 29001 # Extract the first word of "$ac_prog", so it can be a program name with args. 29002 set dummy $ac_prog; ac_word=$2 29003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29004 $as_echo_n "checking for $ac_word... " >&6; } 29005 if ${ac_cv_prog_ac_ct_CC+:} false; then : 29006 $as_echo_n "(cached) " >&6 29007 else 29008 if test -n "$ac_ct_CC"; then 29009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 29010 else 29011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29012 for as_dir in $PATH 29013 do 29014 IFS=$as_save_IFS 29015 test -z "$as_dir" && as_dir=. 29016 for ac_exec_ext in '' $ac_executable_extensions; do 29017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29018 ac_cv_prog_ac_ct_CC="$ac_prog" 29019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29020 break 2 29021 fi 29022 done 29023 done 29024 IFS=$as_save_IFS 29025 29026 fi 29027 fi 29028 ac_ct_CC=$ac_cv_prog_ac_ct_CC 29029 if test -n "$ac_ct_CC"; then 29030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 29031 $as_echo "$ac_ct_CC" >&6; } 29032 else 29033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29034 $as_echo "no" >&6; } 29035 fi 29036 29037 29038 test -n "$ac_ct_CC" && break 29039 done 29040 29041 if test "x$ac_ct_CC" = x; then 29042 CC="" 29043 else 29044 case $cross_compiling:$ac_tool_warned in 29045 yes:) 29046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29048 ac_tool_warned=yes ;; 29049 esac 29050 CC=$ac_ct_CC 29051 fi 29052 fi 29053 29054 29055 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29057 as_fn_error $? "no acceptable C compiler found in \$PATH 29058 See \`config.log' for more details" "$LINENO" 5; } 29059 29060 # Provide some information about the compiler. 29061 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 29062 set X $ac_compile 29063 ac_compiler=$2 29064 for ac_option in --version -v -V -qversion; do 29065 { { ac_try="$ac_compiler $ac_option >&5" 29066 case "(($ac_try" in 29067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29068 *) ac_try_echo=$ac_try;; 29069 esac 29070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29071 $as_echo "$ac_try_echo"; } >&5 29072 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 29073 ac_status=$? 29074 if test -s conftest.err; then 29075 sed '10a\ 29076 ... rest of stderr output deleted ... 29077 10q' conftest.err >conftest.er1 29078 cat conftest.er1 >&5 29079 fi 29080 rm -f conftest.er1 conftest.err 29081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29082 test $ac_status = 0; } 29083 done 29084 29085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29086 /* end confdefs.h. */ 29087 29088 int 29089 main () 29090 { 29091 29092 ; 29093 return 0; 29094 } 29095 _ACEOF 29096 ac_clean_files_save=$ac_clean_files 29097 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 29098 # Try to create an executable without -o first, disregard a.out. 29099 # It will help us diagnose broken compilers, and finding out an intuition 29100 # of exeext. 29101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 29102 $as_echo_n "checking whether the C compiler works... " >&6; } 29103 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 29104 29105 # The possible output files: 29106 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 29107 29108 ac_rmfiles= 29109 for ac_file in $ac_files 29110 do 29111 case $ac_file in 29112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29113 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 29114 esac 29115 done 29116 rm -f $ac_rmfiles 29117 29118 if { { ac_try="$ac_link_default" 29119 case "(($ac_try" in 29120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29121 *) ac_try_echo=$ac_try;; 29122 esac 29123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29124 $as_echo "$ac_try_echo"; } >&5 29125 (eval "$ac_link_default") 2>&5 29126 ac_status=$? 29127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29128 test $ac_status = 0; }; then : 29129 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 29130 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 29131 # in a Makefile. We should not override ac_cv_exeext if it was cached, 29132 # so that the user can short-circuit this test for compilers unknown to 29133 # Autoconf. 29134 for ac_file in $ac_files '' 29135 do 29136 test -f "$ac_file" || continue 29137 case $ac_file in 29138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 29139 ;; 29140 [ab].out ) 29141 # We found the default executable, but exeext='' is most 29142 # certainly right. 29143 break;; 29144 *.* ) 29145 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 29146 then :; else 29147 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29148 fi 29149 # We set ac_cv_exeext here because the later test for it is not 29150 # safe: cross compilers may not add the suffix if given an `-o' 29151 # argument, so we may need to know it at that point already. 29152 # Even if this section looks crufty: it has the advantage of 29153 # actually working. 29154 break;; 29155 * ) 29156 break;; 29157 esac 29158 done 29159 test "$ac_cv_exeext" = no && ac_cv_exeext= 29160 29161 else 29162 ac_file='' 29163 fi 29164 if test -z "$ac_file"; then : 29165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29166 $as_echo "no" >&6; } 29167 $as_echo "$as_me: failed program was:" >&5 29168 sed 's/^/| /' conftest.$ac_ext >&5 29169 29170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29172 as_fn_error 77 "C compiler cannot create executables 29173 See \`config.log' for more details" "$LINENO" 5; } 29174 else 29175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29176 $as_echo "yes" >&6; } 29177 fi 29178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 29179 $as_echo_n "checking for C compiler default output file name... " >&6; } 29180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 29181 $as_echo "$ac_file" >&6; } 29182 ac_exeext=$ac_cv_exeext 29183 29184 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 29185 ac_clean_files=$ac_clean_files_save 29186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 29187 $as_echo_n "checking for suffix of executables... " >&6; } 29188 if { { ac_try="$ac_link" 29189 case "(($ac_try" in 29190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29191 *) ac_try_echo=$ac_try;; 29192 esac 29193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29194 $as_echo "$ac_try_echo"; } >&5 29195 (eval "$ac_link") 2>&5 29196 ac_status=$? 29197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29198 test $ac_status = 0; }; then : 29199 # If both `conftest.exe' and `conftest' are `present' (well, observable) 29200 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 29201 # work properly (i.e., refer to `conftest.exe'), while it won't with 29202 # `rm'. 29203 for ac_file in conftest.exe conftest conftest.*; do 29204 test -f "$ac_file" || continue 29205 case $ac_file in 29206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29207 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29208 break;; 29209 * ) break;; 29210 esac 29211 done 29212 else 29213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29215 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 29216 See \`config.log' for more details" "$LINENO" 5; } 29217 fi 29218 rm -f conftest conftest$ac_cv_exeext 29219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 29220 $as_echo "$ac_cv_exeext" >&6; } 29221 29222 rm -f conftest.$ac_ext 29223 EXEEXT=$ac_cv_exeext 29224 ac_exeext=$EXEEXT 29225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29226 /* end confdefs.h. */ 29227 #include <stdio.h> 29228 int 29229 main () 29230 { 29231 FILE *f = fopen ("conftest.out", "w"); 29232 return ferror (f) || fclose (f) != 0; 29233 29234 ; 29235 return 0; 29236 } 29237 _ACEOF 29238 ac_clean_files="$ac_clean_files conftest.out" 29239 # Check that the compiler produces executables we can run. If not, either 29240 # the compiler is broken, or we cross compile. 29241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 29242 $as_echo_n "checking whether we are cross compiling... " >&6; } 29243 if test "$cross_compiling" != yes; then 29244 { { ac_try="$ac_link" 29245 case "(($ac_try" in 29246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29247 *) ac_try_echo=$ac_try;; 29248 esac 29249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29250 $as_echo "$ac_try_echo"; } >&5 29251 (eval "$ac_link") 2>&5 29252 ac_status=$? 29253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29254 test $ac_status = 0; } 29255 if { ac_try='./conftest$ac_cv_exeext' 29256 { { case "(($ac_try" in 29257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29258 *) ac_try_echo=$ac_try;; 29259 esac 29260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29261 $as_echo "$ac_try_echo"; } >&5 29262 (eval "$ac_try") 2>&5 29263 ac_status=$? 29264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29265 test $ac_status = 0; }; }; then 29266 cross_compiling=no 29267 else 29268 if test "$cross_compiling" = maybe; then 29269 cross_compiling=yes 29270 else 29271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29273 as_fn_error $? "cannot run C compiled programs. 29274 If you meant to cross compile, use \`--host'. 29275 See \`config.log' for more details" "$LINENO" 5; } 29276 fi 29277 fi 29278 fi 29279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 29280 $as_echo "$cross_compiling" >&6; } 29281 29282 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 29283 ac_clean_files=$ac_clean_files_save 29284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 29285 $as_echo_n "checking for suffix of object files... " >&6; } 29286 if ${ac_cv_objext+:} false; then : 29287 $as_echo_n "(cached) " >&6 29288 else 29289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29290 /* end confdefs.h. */ 29291 29292 int 29293 main () 29294 { 29295 29296 ; 29297 return 0; 29298 } 29299 _ACEOF 29300 rm -f conftest.o conftest.obj 29301 if { { ac_try="$ac_compile" 29302 case "(($ac_try" in 29303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29304 *) ac_try_echo=$ac_try;; 29305 esac 29306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29307 $as_echo "$ac_try_echo"; } >&5 29308 (eval "$ac_compile") 2>&5 29309 ac_status=$? 29310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29311 test $ac_status = 0; }; then : 29312 for ac_file in conftest.o conftest.obj conftest.*; do 29313 test -f "$ac_file" || continue; 29314 case $ac_file in 29315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 29316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 29317 break;; 29318 esac 29319 done 29320 else 29321 $as_echo "$as_me: failed program was:" >&5 29322 sed 's/^/| /' conftest.$ac_ext >&5 29323 29324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29326 as_fn_error $? "cannot compute suffix of object files: cannot compile 29327 See \`config.log' for more details" "$LINENO" 5; } 29328 fi 29329 rm -f conftest.$ac_cv_objext conftest.$ac_ext 29330 fi 29331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 29332 $as_echo "$ac_cv_objext" >&6; } 29333 OBJEXT=$ac_cv_objext 29334 ac_objext=$OBJEXT 29335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 29336 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 29337 if ${ac_cv_c_compiler_gnu+:} false; then : 29338 $as_echo_n "(cached) " >&6 29339 else 29340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29341 /* end confdefs.h. */ 29342 29343 int 29344 main () 29345 { 29346 #ifndef __GNUC__ 29347 choke me 29348 #endif 29349 29350 ; 29351 return 0; 29352 } 29353 _ACEOF 29354 if ac_fn_c_try_compile "$LINENO"; then : 29355 ac_compiler_gnu=yes 29356 else 29357 ac_compiler_gnu=no 29358 fi 29359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29360 ac_cv_c_compiler_gnu=$ac_compiler_gnu 29361 29362 fi 29363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 29364 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 29365 if test $ac_compiler_gnu = yes; then 29366 GCC=yes 29367 else 29368 GCC= 29369 fi 29370 ac_test_CFLAGS=${CFLAGS+set} 29371 ac_save_CFLAGS=$CFLAGS 29372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 29373 $as_echo_n "checking whether $CC accepts -g... " >&6; } 29374 if ${ac_cv_prog_cc_g+:} false; then : 29375 $as_echo_n "(cached) " >&6 29376 else 29377 ac_save_c_werror_flag=$ac_c_werror_flag 29378 ac_c_werror_flag=yes 29379 ac_cv_prog_cc_g=no 29380 CFLAGS="-g" 29381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29382 /* end confdefs.h. */ 29383 29384 int 29385 main () 29386 { 29387 29388 ; 29389 return 0; 29390 } 29391 _ACEOF 29392 if ac_fn_c_try_compile "$LINENO"; then : 29393 ac_cv_prog_cc_g=yes 29394 else 29395 CFLAGS="" 29396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29397 /* end confdefs.h. */ 29398 29399 int 29400 main () 29401 { 29402 29403 ; 29404 return 0; 29405 } 29406 _ACEOF 29407 if ac_fn_c_try_compile "$LINENO"; then : 29408 29409 else 29410 ac_c_werror_flag=$ac_save_c_werror_flag 29411 CFLAGS="-g" 29412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29413 /* end confdefs.h. */ 29414 29415 int 29416 main () 29417 { 29418 29419 ; 29420 return 0; 29421 } 29422 _ACEOF 29423 if ac_fn_c_try_compile "$LINENO"; then : 29424 ac_cv_prog_cc_g=yes 29425 fi 29426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29427 fi 29428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29429 fi 29430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29431 ac_c_werror_flag=$ac_save_c_werror_flag 29432 fi 29433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 29434 $as_echo "$ac_cv_prog_cc_g" >&6; } 29435 if test "$ac_test_CFLAGS" = set; then 29436 CFLAGS=$ac_save_CFLAGS 29437 elif test $ac_cv_prog_cc_g = yes; then 29438 if test "$GCC" = yes; then 29439 CFLAGS="-g -O2" 29440 else 29441 CFLAGS="-g" 29442 fi 29443 else 29444 if test "$GCC" = yes; then 29445 CFLAGS="-O2" 29446 else 29447 CFLAGS= 29448 fi 29449 fi 29450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 29451 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 29452 if ${ac_cv_prog_cc_c89+:} false; then : 29453 $as_echo_n "(cached) " >&6 29454 else 29455 ac_cv_prog_cc_c89=no 29456 ac_save_CC=$CC 29457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29458 /* end confdefs.h. */ 29459 #include <stdarg.h> 29460 #include <stdio.h> 29461 struct stat; 29462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29463 struct buf { int x; }; 29464 FILE * (*rcsopen) (struct buf *, struct stat *, int); 29465 static char *e (p, i) 29466 char **p; 29467 int i; 29468 { 29469 return p[i]; 29470 } 29471 static char *f (char * (*g) (char **, int), char **p, ...) 29472 { 29473 char *s; 29474 va_list v; 29475 va_start (v,p); 29476 s = g (p, va_arg (v,int)); 29477 va_end (v); 29478 return s; 29479 } 29480 29481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29482 function prototypes and stuff, but not '\xHH' hex character constants. 29483 These don't provoke an error unfortunately, instead are silently treated 29484 as 'x'. The following induces an error, until -std is added to get 29485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29486 array size at least. It's necessary to write '\x00'==0 to get something 29487 that's true only with -std. */ 29488 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29489 29490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29491 inside strings and character constants. */ 29492 #define FOO(x) 'x' 29493 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29494 29495 int test (int i, double x); 29496 struct s1 {int (*f) (int a);}; 29497 struct s2 {int (*f) (double a);}; 29498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29499 int argc; 29500 char **argv; 29501 int 29502 main () 29503 { 29504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29505 ; 29506 return 0; 29507 } 29508 _ACEOF 29509 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29511 do 29512 CC="$ac_save_CC $ac_arg" 29513 if ac_fn_c_try_compile "$LINENO"; then : 29514 ac_cv_prog_cc_c89=$ac_arg 29515 fi 29516 rm -f core conftest.err conftest.$ac_objext 29517 test "x$ac_cv_prog_cc_c89" != "xno" && break 29518 done 29519 rm -f conftest.$ac_ext 29520 CC=$ac_save_CC 29521 29522 fi 29523 # AC_CACHE_VAL 29524 case "x$ac_cv_prog_cc_c89" in 29525 x) 29526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29527 $as_echo "none needed" >&6; } ;; 29528 xno) 29529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29530 $as_echo "unsupported" >&6; } ;; 29531 *) 29532 CC="$CC $ac_cv_prog_cc_c89" 29533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29534 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29535 esac 29536 if test "x$ac_cv_prog_cc_c89" != xno; then : 29537 29538 fi 29539 29540 ac_ext=cpp 29541 ac_cpp='$CXXCPP $CPPFLAGS' 29542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29545 29546 29547 29548 COMPILER_NAME=C++ 29549 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 29550 29551 if test "x$CXX" != x; then 29552 # User has supplied compiler name already, always let that override. 29553 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 29554 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 29555 if test "x`basename $CXX`" = "x$CXX"; then 29556 # A command without a complete path is provided, search $PATH. 29557 29558 for ac_prog in $CXX 29559 do 29560 # Extract the first word of "$ac_prog", so it can be a program name with args. 29561 set dummy $ac_prog; ac_word=$2 29562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29563 $as_echo_n "checking for $ac_word... " >&6; } 29564 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29565 $as_echo_n "(cached) " >&6 29566 else 29567 case $POTENTIAL_CXX in 29568 [\\/]* | ?:[\\/]*) 29569 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29570 ;; 29571 *) 29572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29573 for as_dir in $PATH 29574 do 29575 IFS=$as_save_IFS 29576 test -z "$as_dir" && as_dir=. 29577 for ac_exec_ext in '' $ac_executable_extensions; do 29578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29579 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29581 break 2 29582 fi 29583 done 29584 done 29585 IFS=$as_save_IFS 29586 29587 ;; 29588 esac 29589 fi 29590 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29591 if test -n "$POTENTIAL_CXX"; then 29592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29593 $as_echo "$POTENTIAL_CXX" >&6; } 29594 else 29595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29596 $as_echo "no" >&6; } 29597 fi 29598 29599 29600 test -n "$POTENTIAL_CXX" && break 29601 done 29602 29603 if test "x$POTENTIAL_CXX" != x; then 29604 CXX=$POTENTIAL_CXX 29605 else 29606 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 29607 fi 29608 else 29609 # Otherwise it might already be a complete path 29610 if test ! -x "$CXX"; then 29611 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 29612 fi 29613 fi 29614 else 29615 # No user supplied value. Locate compiler ourselves. 29616 29617 # If we are cross compiling, assume cross compilation tools follows the 29618 # cross compilation standard where they are prefixed with the autoconf 29619 # standard name for the target. For example the binary 29620 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29621 # If we are not cross compiling, then the default compiler name will be 29622 # used. 29623 29624 CXX= 29625 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 29626 # before checking the rest of the PATH. 29627 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 29628 # step, this should not be necessary. 29629 if test -n "$TOOLCHAIN_PATH"; then 29630 PATH_save="$PATH" 29631 PATH="$TOOLCHAIN_PATH" 29632 for ac_prog in $SEARCH_LIST 29633 do 29634 # Extract the first word of "$ac_prog", so it can be a program name with args. 29635 set dummy $ac_prog; ac_word=$2 29636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29637 $as_echo_n "checking for $ac_word... " >&6; } 29638 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 29639 $as_echo_n "(cached) " >&6 29640 else 29641 case $TOOLCHAIN_PATH_CXX in 29642 [\\/]* | ?:[\\/]*) 29643 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 29644 ;; 29645 *) 29646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29647 for as_dir in $PATH 29648 do 29649 IFS=$as_save_IFS 29650 test -z "$as_dir" && as_dir=. 29651 for ac_exec_ext in '' $ac_executable_extensions; do 29652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29653 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 29654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29655 break 2 29656 fi 29657 done 29658 done 29659 IFS=$as_save_IFS 29660 29661 ;; 29662 esac 29663 fi 29664 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 29665 if test -n "$TOOLCHAIN_PATH_CXX"; then 29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 29667 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 29668 else 29669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29670 $as_echo "no" >&6; } 29671 fi 29672 29673 29674 test -n "$TOOLCHAIN_PATH_CXX" && break 29675 done 29676 29677 CXX=$TOOLCHAIN_PATH_CXX 29678 PATH="$PATH_save" 29679 fi 29680 29681 # AC_PATH_PROGS can't be run multiple times with the same variable, 29682 # so create a new name for this run. 29683 if test "x$CXX" = x; then 29684 for ac_prog in $SEARCH_LIST 29685 do 29686 # Extract the first word of "$ac_prog", so it can be a program name with args. 29687 set dummy $ac_prog; ac_word=$2 29688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29689 $as_echo_n "checking for $ac_word... " >&6; } 29690 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29691 $as_echo_n "(cached) " >&6 29692 else 29693 case $POTENTIAL_CXX in 29694 [\\/]* | ?:[\\/]*) 29695 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29696 ;; 29697 *) 29698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29699 for as_dir in $PATH 29700 do 29701 IFS=$as_save_IFS 29702 test -z "$as_dir" && as_dir=. 29703 for ac_exec_ext in '' $ac_executable_extensions; do 29704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29705 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29707 break 2 29708 fi 29709 done 29710 done 29711 IFS=$as_save_IFS 29712 29713 ;; 29714 esac 29715 fi 29716 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29717 if test -n "$POTENTIAL_CXX"; then 29718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29719 $as_echo "$POTENTIAL_CXX" >&6; } 29720 else 29721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29722 $as_echo "no" >&6; } 29723 fi 29724 29725 29726 test -n "$POTENTIAL_CXX" && break 29727 done 29728 29729 CXX=$POTENTIAL_CXX 29730 fi 29731 29732 if test "x$CXX" = x; then 29733 29734 # Print a helpful message on how to acquire the necessary build dependency. 29735 # devkit is the help tag: freetype, cups, pulse, alsa etc 29736 MISSING_DEPENDENCY=devkit 29737 29738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29739 cygwin_help $MISSING_DEPENDENCY 29740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29741 msys_help $MISSING_DEPENDENCY 29742 else 29743 PKGHANDLER_COMMAND= 29744 29745 case $PKGHANDLER in 29746 apt-get) 29747 apt_help $MISSING_DEPENDENCY ;; 29748 yum) 29749 yum_help $MISSING_DEPENDENCY ;; 29750 port) 29751 port_help $MISSING_DEPENDENCY ;; 29752 pkgutil) 29753 pkgutil_help $MISSING_DEPENDENCY ;; 29754 pkgadd) 29755 pkgadd_help $MISSING_DEPENDENCY ;; 29756 esac 29757 29758 if test "x$PKGHANDLER_COMMAND" != x; then 29759 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29760 fi 29761 fi 29762 29763 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 29764 fi 29765 fi 29766 29767 # Now we have a compiler binary in CXX. Make sure it's okay. 29768 29769 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29770 29771 # First separate the path from the arguments. This will split at the first 29772 # space. 29773 complete="$CXX" 29774 path="${complete%% *}" 29775 tmp="$complete EOL" 29776 arguments="${tmp#* }" 29777 29778 # Input might be given as Windows format, start by converting to 29779 # unix format. 29780 new_path=`$CYGPATH -u "$path"` 29781 29782 # Now try to locate executable using which 29783 new_path=`$WHICH "$new_path" 2> /dev/null` 29784 # bat and cmd files are not always considered executable in cygwin causing which 29785 # to not find them 29786 if test "x$new_path" = x \ 29787 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29788 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29789 new_path=`$CYGPATH -u "$path"` 29790 fi 29791 if test "x$new_path" = x; then 29792 # Oops. Which didn't find the executable. 29793 # The splitting of arguments from the executable at a space might have been incorrect, 29794 # since paths with space are more likely in Windows. Give it another try with the whole 29795 # argument. 29796 path="$complete" 29797 arguments="EOL" 29798 new_path=`$CYGPATH -u "$path"` 29799 new_path=`$WHICH "$new_path" 2> /dev/null` 29800 # bat and cmd files are not always considered executable in cygwin causing which 29801 # to not find them 29802 if test "x$new_path" = x \ 29803 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29804 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29805 new_path=`$CYGPATH -u "$path"` 29806 fi 29807 if test "x$new_path" = x; then 29808 # It's still not found. Now this is an unrecoverable error. 29809 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29810 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29811 has_space=`$ECHO "$complete" | $GREP " "` 29812 if test "x$has_space" != x; then 29813 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29814 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29815 fi 29816 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29817 fi 29818 fi 29819 29820 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29821 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29822 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29823 # "foo.exe" is OK but "foo" is an error. 29824 # 29825 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29826 # It is also a way to make sure we got the proper file name for the real test later on. 29827 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29828 if test "x$test_shortpath" = x; then 29829 # Short path failed, file does not exist as specified. 29830 # Try adding .exe or .cmd 29831 if test -f "${new_path}.exe"; then 29832 input_to_shortpath="${new_path}.exe" 29833 elif test -f "${new_path}.cmd"; then 29834 input_to_shortpath="${new_path}.cmd" 29835 else 29836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 29837 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 29838 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29839 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29840 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29841 fi 29842 else 29843 input_to_shortpath="$new_path" 29844 fi 29845 29846 # Call helper function which possibly converts this using DOS-style short mode. 29847 # If so, the updated path is stored in $new_path. 29848 new_path="$input_to_shortpath" 29849 29850 input_path="$input_to_shortpath" 29851 # Check if we need to convert this using DOS-style short mode. If the path 29852 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29853 # take no chances and rewrite it. 29854 # Note: m4 eats our [], so we need to use [ and ] instead. 29855 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29856 if test "x$has_forbidden_chars" != x; then 29857 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29858 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29859 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29860 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29861 # Going to short mode and back again did indeed matter. Since short mode is 29862 # case insensitive, let's make it lowercase to improve readability. 29863 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29864 # Now convert it back to Unix-stile (cygpath) 29865 input_path=`$CYGPATH -u "$shortmode_path"` 29866 new_path="$input_path" 29867 fi 29868 fi 29869 29870 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29871 if test "x$test_cygdrive_prefix" = x; then 29872 # As a simple fix, exclude /usr/bin since it's not a real path. 29873 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29874 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29875 # a path prefixed by /cygdrive for fixpath to work. 29876 new_path="$CYGWIN_ROOT_PATH$input_path" 29877 fi 29878 fi 29879 29880 # remove trailing .exe if any 29881 new_path="${new_path/%.exe/}" 29882 29883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29884 29885 # First separate the path from the arguments. This will split at the first 29886 # space. 29887 complete="$CXX" 29888 path="${complete%% *}" 29889 tmp="$complete EOL" 29890 arguments="${tmp#* }" 29891 29892 # Input might be given as Windows format, start by converting to 29893 # unix format. 29894 new_path="$path" 29895 29896 windows_path="$new_path" 29897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29898 unix_path=`$CYGPATH -u "$windows_path"` 29899 new_path="$unix_path" 29900 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29901 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29902 new_path="$unix_path" 29903 fi 29904 29905 29906 # Now try to locate executable using which 29907 new_path=`$WHICH "$new_path" 2> /dev/null` 29908 29909 if test "x$new_path" = x; then 29910 # Oops. Which didn't find the executable. 29911 # The splitting of arguments from the executable at a space might have been incorrect, 29912 # since paths with space are more likely in Windows. Give it another try with the whole 29913 # argument. 29914 path="$complete" 29915 arguments="EOL" 29916 new_path="$path" 29917 29918 windows_path="$new_path" 29919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29920 unix_path=`$CYGPATH -u "$windows_path"` 29921 new_path="$unix_path" 29922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29923 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29924 new_path="$unix_path" 29925 fi 29926 29927 29928 new_path=`$WHICH "$new_path" 2> /dev/null` 29929 # bat and cmd files are not always considered executable in MSYS causing which 29930 # to not find them 29931 if test "x$new_path" = x \ 29932 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29933 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29934 new_path="$path" 29935 29936 windows_path="$new_path" 29937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29938 unix_path=`$CYGPATH -u "$windows_path"` 29939 new_path="$unix_path" 29940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29941 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29942 new_path="$unix_path" 29943 fi 29944 29945 fi 29946 29947 if test "x$new_path" = x; then 29948 # It's still not found. Now this is an unrecoverable error. 29949 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29950 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29951 has_space=`$ECHO "$complete" | $GREP " "` 29952 if test "x$has_space" != x; then 29953 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29954 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29955 fi 29956 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29957 fi 29958 fi 29959 29960 # Now new_path has a complete unix path to the binary 29961 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29962 # Keep paths in /bin as-is, but remove trailing .exe if any 29963 new_path="${new_path/%.exe/}" 29964 # Do not save /bin paths to all_fixpath_prefixes! 29965 else 29966 # Not in mixed or Windows style, start by that. 29967 new_path=`cmd //c echo $new_path` 29968 29969 input_path="$new_path" 29970 # Check if we need to convert this using DOS-style short mode. If the path 29971 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29972 # take no chances and rewrite it. 29973 # Note: m4 eats our [], so we need to use [ and ] instead. 29974 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29975 if test "x$has_forbidden_chars" != x; then 29976 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29977 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29978 fi 29979 29980 # Output is in $new_path 29981 29982 windows_path="$new_path" 29983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29984 unix_path=`$CYGPATH -u "$windows_path"` 29985 new_path="$unix_path" 29986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29987 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29988 new_path="$unix_path" 29989 fi 29990 29991 # remove trailing .exe if any 29992 new_path="${new_path/%.exe/}" 29993 29994 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29995 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29996 fi 29997 29998 else 29999 # We're on a posix platform. Hooray! :) 30000 # First separate the path from the arguments. This will split at the first 30001 # space. 30002 complete="$CXX" 30003 path="${complete%% *}" 30004 tmp="$complete EOL" 30005 arguments="${tmp#* }" 30006 30007 # Cannot rely on the command "which" here since it doesn't always work. 30008 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30009 if test -z "$is_absolute_path"; then 30010 # Path to executable is not absolute. Find it. 30011 IFS_save="$IFS" 30012 IFS=: 30013 for p in $PATH; do 30014 if test -f "$p/$path" && test -x "$p/$path"; then 30015 new_path="$p/$path" 30016 break 30017 fi 30018 done 30019 IFS="$IFS_save" 30020 else 30021 # This is an absolute path, we can use it without further modifications. 30022 new_path="$path" 30023 fi 30024 30025 if test "x$new_path" = x; then 30026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30027 $as_echo "$as_me: The path of 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}: This might be caused by spaces in the path, which is not allowed." >&5 30031 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30032 fi 30033 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30034 fi 30035 fi 30036 30037 # Now join together the path and the arguments once again 30038 if test "x$arguments" != xEOL; then 30039 new_complete="$new_path ${arguments% *}" 30040 else 30041 new_complete="$new_path" 30042 fi 30043 30044 if test "x$complete" != "x$new_complete"; then 30045 CXX="$new_complete" 30046 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 30047 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 30048 fi 30049 30050 TEST_COMPILER="$CXX" 30051 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 30052 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 30053 if test "x$OPENJDK_BUILD_OS" != xaix; then 30054 # FIXME: This test should not be needed anymore; we don't do that for any platform. 30055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 30056 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 30057 30058 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30059 # Follow a chain of symbolic links. Use readlink 30060 # where it exists, else fall back to horribly 30061 # complicated shell code. 30062 if test "x$READLINK_TESTED" != yes; then 30063 # On MacOSX there is a readlink tool with a different 30064 # purpose than the GNU readlink tool. Check the found readlink. 30065 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30066 if test "x$ISGNU" = x; then 30067 # A readlink that we do not know how to use. 30068 # Are there other non-GNU readlinks out there? 30069 READLINK_TESTED=yes 30070 READLINK= 30071 fi 30072 fi 30073 30074 if test "x$READLINK" != x; then 30075 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 30076 else 30077 # Save the current directory for restoring afterwards 30078 STARTDIR=$PWD 30079 COUNTER=0 30080 sym_link_dir=`$DIRNAME $TEST_COMPILER` 30081 sym_link_file=`$BASENAME $TEST_COMPILER` 30082 cd $sym_link_dir 30083 # Use -P flag to resolve symlinks in directories. 30084 cd `$THEPWDCMD -P` 30085 sym_link_dir=`$THEPWDCMD -P` 30086 # Resolve file symlinks 30087 while test $COUNTER -lt 20; do 30088 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30089 if test "x$ISLINK" == x; then 30090 # This is not a symbolic link! We are done! 30091 break 30092 fi 30093 # Again resolve directory symlinks since the target of the just found 30094 # link could be in a different directory 30095 cd `$DIRNAME $ISLINK` 30096 sym_link_dir=`$THEPWDCMD -P` 30097 sym_link_file=`$BASENAME $ISLINK` 30098 let COUNTER=COUNTER+1 30099 done 30100 cd $STARTDIR 30101 TEST_COMPILER=$sym_link_dir/$sym_link_file 30102 fi 30103 fi 30104 30105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 30106 $as_echo "$TEST_COMPILER" >&6; } 30107 fi 30108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 30109 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 30110 30111 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 30112 if test "x$COMPILER_BASENAME" = "xccache"; then 30113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 30114 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 30115 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 30116 # We want to control ccache invocation ourselves, so ignore this cc and try 30117 # searching again. 30118 30119 # Remove the path to the fake ccache cc from the PATH 30120 RETRY_COMPILER_SAVED_PATH="$PATH" 30121 COMPILER_DIRNAME=`$DIRNAME $CXX` 30122 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 30123 30124 # Try again looking for our compiler 30125 if test -n "$ac_tool_prefix"; then 30126 for ac_prog in $TOOLCHAIN_CXX_BINARY 30127 do 30128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30131 $as_echo_n "checking for $ac_word... " >&6; } 30132 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 30133 $as_echo_n "(cached) " >&6 30134 else 30135 if test -n "$PROPER_COMPILER_CXX"; then 30136 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 30137 else 30138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30139 for as_dir in $PATH 30140 do 30141 IFS=$as_save_IFS 30142 test -z "$as_dir" && as_dir=. 30143 for ac_exec_ext in '' $ac_executable_extensions; do 30144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30145 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 30146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30147 break 2 30148 fi 30149 done 30150 done 30151 IFS=$as_save_IFS 30152 30153 fi 30154 fi 30155 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 30156 if test -n "$PROPER_COMPILER_CXX"; then 30157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30158 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30159 else 30160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30161 $as_echo "no" >&6; } 30162 fi 30163 30164 30165 test -n "$PROPER_COMPILER_CXX" && break 30166 done 30167 fi 30168 if test -z "$PROPER_COMPILER_CXX"; then 30169 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 30170 for ac_prog in $TOOLCHAIN_CXX_BINARY 30171 do 30172 # Extract the first word of "$ac_prog", so it can be a program name with args. 30173 set dummy $ac_prog; ac_word=$2 30174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30175 $as_echo_n "checking for $ac_word... " >&6; } 30176 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 30177 $as_echo_n "(cached) " >&6 30178 else 30179 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30180 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 30181 else 30182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30183 for as_dir in $PATH 30184 do 30185 IFS=$as_save_IFS 30186 test -z "$as_dir" && as_dir=. 30187 for ac_exec_ext in '' $ac_executable_extensions; do 30188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30189 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 30190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30191 break 2 30192 fi 30193 done 30194 done 30195 IFS=$as_save_IFS 30196 30197 fi 30198 fi 30199 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 30200 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 30202 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 30203 else 30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30205 $as_echo "no" >&6; } 30206 fi 30207 30208 30209 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 30210 done 30211 30212 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 30213 PROPER_COMPILER_CXX="" 30214 else 30215 case $cross_compiling:$ac_tool_warned in 30216 yes:) 30217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30219 ac_tool_warned=yes ;; 30220 esac 30221 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 30222 fi 30223 fi 30224 30225 30226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30227 30228 # First separate the path from the arguments. This will split at the first 30229 # space. 30230 complete="$PROPER_COMPILER_CXX" 30231 path="${complete%% *}" 30232 tmp="$complete EOL" 30233 arguments="${tmp#* }" 30234 30235 # Input might be given as Windows format, start by converting to 30236 # unix format. 30237 new_path=`$CYGPATH -u "$path"` 30238 30239 # Now try to locate executable using which 30240 new_path=`$WHICH "$new_path" 2> /dev/null` 30241 # bat and cmd files are not always considered executable in cygwin causing which 30242 # to not find them 30243 if test "x$new_path" = x \ 30244 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30245 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30246 new_path=`$CYGPATH -u "$path"` 30247 fi 30248 if test "x$new_path" = x; then 30249 # Oops. Which didn't find the executable. 30250 # The splitting of arguments from the executable at a space might have been incorrect, 30251 # since paths with space are more likely in Windows. Give it another try with the whole 30252 # argument. 30253 path="$complete" 30254 arguments="EOL" 30255 new_path=`$CYGPATH -u "$path"` 30256 new_path=`$WHICH "$new_path" 2> /dev/null` 30257 # bat and cmd files are not always considered executable in cygwin causing which 30258 # to not find them 30259 if test "x$new_path" = x \ 30260 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30261 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30262 new_path=`$CYGPATH -u "$path"` 30263 fi 30264 if test "x$new_path" = x; then 30265 # It's still not found. Now this is an unrecoverable error. 30266 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30267 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30268 has_space=`$ECHO "$complete" | $GREP " "` 30269 if test "x$has_space" != x; then 30270 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30271 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30272 fi 30273 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30274 fi 30275 fi 30276 30277 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30278 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30279 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30280 # "foo.exe" is OK but "foo" is an error. 30281 # 30282 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30283 # It is also a way to make sure we got the proper file name for the real test later on. 30284 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30285 if test "x$test_shortpath" = x; then 30286 # Short path failed, file does not exist as specified. 30287 # Try adding .exe or .cmd 30288 if test -f "${new_path}.exe"; then 30289 input_to_shortpath="${new_path}.exe" 30290 elif test -f "${new_path}.cmd"; then 30291 input_to_shortpath="${new_path}.cmd" 30292 else 30293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 30294 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 30295 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30296 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30297 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30298 fi 30299 else 30300 input_to_shortpath="$new_path" 30301 fi 30302 30303 # Call helper function which possibly converts this using DOS-style short mode. 30304 # If so, the updated path is stored in $new_path. 30305 new_path="$input_to_shortpath" 30306 30307 input_path="$input_to_shortpath" 30308 # Check if we need to convert this using DOS-style short mode. If the path 30309 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30310 # take no chances and rewrite it. 30311 # Note: m4 eats our [], so we need to use [ and ] instead. 30312 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30313 if test "x$has_forbidden_chars" != x; then 30314 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30315 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30316 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30317 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30318 # Going to short mode and back again did indeed matter. Since short mode is 30319 # case insensitive, let's make it lowercase to improve readability. 30320 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30321 # Now convert it back to Unix-stile (cygpath) 30322 input_path=`$CYGPATH -u "$shortmode_path"` 30323 new_path="$input_path" 30324 fi 30325 fi 30326 30327 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30328 if test "x$test_cygdrive_prefix" = x; then 30329 # As a simple fix, exclude /usr/bin since it's not a real path. 30330 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30331 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30332 # a path prefixed by /cygdrive for fixpath to work. 30333 new_path="$CYGWIN_ROOT_PATH$input_path" 30334 fi 30335 fi 30336 30337 # remove trailing .exe if any 30338 new_path="${new_path/%.exe/}" 30339 30340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30341 30342 # First separate the path from the arguments. This will split at the first 30343 # space. 30344 complete="$PROPER_COMPILER_CXX" 30345 path="${complete%% *}" 30346 tmp="$complete EOL" 30347 arguments="${tmp#* }" 30348 30349 # Input might be given as Windows format, start by converting to 30350 # unix format. 30351 new_path="$path" 30352 30353 windows_path="$new_path" 30354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30355 unix_path=`$CYGPATH -u "$windows_path"` 30356 new_path="$unix_path" 30357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30358 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30359 new_path="$unix_path" 30360 fi 30361 30362 30363 # Now try to locate executable using which 30364 new_path=`$WHICH "$new_path" 2> /dev/null` 30365 30366 if test "x$new_path" = x; then 30367 # Oops. Which didn't find the executable. 30368 # The splitting of arguments from the executable at a space might have been incorrect, 30369 # since paths with space are more likely in Windows. Give it another try with the whole 30370 # argument. 30371 path="$complete" 30372 arguments="EOL" 30373 new_path="$path" 30374 30375 windows_path="$new_path" 30376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30377 unix_path=`$CYGPATH -u "$windows_path"` 30378 new_path="$unix_path" 30379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30380 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30381 new_path="$unix_path" 30382 fi 30383 30384 30385 new_path=`$WHICH "$new_path" 2> /dev/null` 30386 # bat and cmd files are not always considered executable in MSYS causing which 30387 # to not find them 30388 if test "x$new_path" = x \ 30389 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30390 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30391 new_path="$path" 30392 30393 windows_path="$new_path" 30394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30395 unix_path=`$CYGPATH -u "$windows_path"` 30396 new_path="$unix_path" 30397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30399 new_path="$unix_path" 30400 fi 30401 30402 fi 30403 30404 if test "x$new_path" = x; then 30405 # It's still not found. Now this is an unrecoverable error. 30406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30407 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30408 has_space=`$ECHO "$complete" | $GREP " "` 30409 if test "x$has_space" != x; then 30410 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30411 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30412 fi 30413 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30414 fi 30415 fi 30416 30417 # Now new_path has a complete unix path to the binary 30418 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30419 # Keep paths in /bin as-is, but remove trailing .exe if any 30420 new_path="${new_path/%.exe/}" 30421 # Do not save /bin paths to all_fixpath_prefixes! 30422 else 30423 # Not in mixed or Windows style, start by that. 30424 new_path=`cmd //c echo $new_path` 30425 30426 input_path="$new_path" 30427 # Check if we need to convert this using DOS-style short mode. If the path 30428 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30429 # take no chances and rewrite it. 30430 # Note: m4 eats our [], so we need to use [ and ] instead. 30431 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30432 if test "x$has_forbidden_chars" != x; then 30433 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30434 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30435 fi 30436 30437 # Output is in $new_path 30438 30439 windows_path="$new_path" 30440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30441 unix_path=`$CYGPATH -u "$windows_path"` 30442 new_path="$unix_path" 30443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30444 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30445 new_path="$unix_path" 30446 fi 30447 30448 # remove trailing .exe if any 30449 new_path="${new_path/%.exe/}" 30450 30451 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30452 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30453 fi 30454 30455 else 30456 # We're on a posix platform. Hooray! :) 30457 # First separate the path from the arguments. This will split at the first 30458 # space. 30459 complete="$PROPER_COMPILER_CXX" 30460 path="${complete%% *}" 30461 tmp="$complete EOL" 30462 arguments="${tmp#* }" 30463 30464 # Cannot rely on the command "which" here since it doesn't always work. 30465 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30466 if test -z "$is_absolute_path"; then 30467 # Path to executable is not absolute. Find it. 30468 IFS_save="$IFS" 30469 IFS=: 30470 for p in $PATH; do 30471 if test -f "$p/$path" && test -x "$p/$path"; then 30472 new_path="$p/$path" 30473 break 30474 fi 30475 done 30476 IFS="$IFS_save" 30477 else 30478 # This is an absolute path, we can use it without further modifications. 30479 new_path="$path" 30480 fi 30481 30482 if test "x$new_path" = x; then 30483 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30484 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30485 has_space=`$ECHO "$complete" | $GREP " "` 30486 if test "x$has_space" != x; then 30487 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30488 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30489 fi 30490 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30491 fi 30492 fi 30493 30494 # Now join together the path and the arguments once again 30495 if test "x$arguments" != xEOL; then 30496 new_complete="$new_path ${arguments% *}" 30497 else 30498 new_complete="$new_path" 30499 fi 30500 30501 if test "x$complete" != "x$new_complete"; then 30502 PROPER_COMPILER_CXX="$new_complete" 30503 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 30504 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 30505 fi 30506 30507 PATH="$RETRY_COMPILER_SAVED_PATH" 30508 30509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 30510 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 30511 30512 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30513 # Follow a chain of symbolic links. Use readlink 30514 # where it exists, else fall back to horribly 30515 # complicated shell code. 30516 if test "x$READLINK_TESTED" != yes; then 30517 # On MacOSX there is a readlink tool with a different 30518 # purpose than the GNU readlink tool. Check the found readlink. 30519 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30520 if test "x$ISGNU" = x; then 30521 # A readlink that we do not know how to use. 30522 # Are there other non-GNU readlinks out there? 30523 READLINK_TESTED=yes 30524 READLINK= 30525 fi 30526 fi 30527 30528 if test "x$READLINK" != x; then 30529 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 30530 else 30531 # Save the current directory for restoring afterwards 30532 STARTDIR=$PWD 30533 COUNTER=0 30534 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 30535 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 30536 cd $sym_link_dir 30537 # Use -P flag to resolve symlinks in directories. 30538 cd `$THEPWDCMD -P` 30539 sym_link_dir=`$THEPWDCMD -P` 30540 # Resolve file symlinks 30541 while test $COUNTER -lt 20; do 30542 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30543 if test "x$ISLINK" == x; then 30544 # This is not a symbolic link! We are done! 30545 break 30546 fi 30547 # Again resolve directory symlinks since the target of the just found 30548 # link could be in a different directory 30549 cd `$DIRNAME $ISLINK` 30550 sym_link_dir=`$THEPWDCMD -P` 30551 sym_link_file=`$BASENAME $ISLINK` 30552 let COUNTER=COUNTER+1 30553 done 30554 cd $STARTDIR 30555 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 30556 fi 30557 fi 30558 30559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30560 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30561 CXX="$PROPER_COMPILER_CXX" 30562 else 30563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 30564 $as_echo "no, keeping CXX" >&6; } 30565 fi 30566 30567 30568 COMPILER=$CXX 30569 COMPILER_NAME=$COMPILER_NAME 30570 30571 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30572 # cc -V output typically looks like 30573 # cc: Sun C 5.12 Linux_i386 2011/11/16 30574 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 30575 # Check that this is likely to be the Solaris Studio cc. 30576 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30577 if test $? -ne 0; then 30578 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30579 { $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 30580 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30581 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30582 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30583 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30584 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30585 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30586 fi 30587 # Remove usage instructions (if present), and 30588 # collapse compiler output into a single line 30589 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30590 $SED -e 's/ *[Uu]sage:.*//'` 30591 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30592 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30593 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30594 # xlc -qversion output typically looks like 30595 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30596 # Version: 11.01.0000.0015 30597 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30598 # Check that this is likely to be the IBM XL C compiler. 30599 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30600 if test $? -ne 0; then 30601 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30602 { $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 30603 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30604 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30605 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30606 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30607 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30608 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30609 fi 30610 # Collapse compiler output into a single line 30611 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30612 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30613 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30614 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30615 # There is no specific version flag, but all output starts with a version string. 30616 # First line typically looks something like: 30617 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30618 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30619 # Check that this is likely to be Microsoft CL.EXE. 30620 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30621 if test $? -ne 0; then 30622 { $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 30623 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30624 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30625 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30626 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30627 fi 30628 # Collapse compiler output into a single line 30629 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30630 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30631 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30632 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30633 # gcc --version output typically looks like 30634 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30635 # Copyright (C) 2013 Free Software Foundation, Inc. 30636 # This is free software; see the source for copying conditions. There is NO 30637 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30638 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30639 # Check that this is likely to be GCC. 30640 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30641 if test $? -ne 0; then 30642 { $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 30643 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30644 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30645 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30646 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30647 fi 30648 # Remove Copyright and legalese from version string, and 30649 # collapse into a single line 30650 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30651 $SED -e 's/ *Copyright .*//'` 30652 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30653 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 30654 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30655 # clang --version output typically looks like 30656 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 30657 # clang version 3.3 (tags/RELEASE_33/final) 30658 # or 30659 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 30660 # Target: x86_64-pc-linux-gnu 30661 # Thread model: posix 30662 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30663 # Check that this is likely to be clang 30664 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 30665 if test $? -ne 0; then 30666 { $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 30667 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30668 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30669 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30670 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30671 fi 30672 # Collapse compiler output into a single line 30673 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30674 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30675 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 30676 else 30677 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 30678 fi 30679 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 30680 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 30681 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 30682 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 30683 30684 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 30685 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 30686 30687 30688 # Now that we have resolved CXX ourself, let autoconf have its go at it 30689 ac_ext=cpp 30690 ac_cpp='$CXXCPP $CPPFLAGS' 30691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30694 if test -z "$CXX"; then 30695 if test -n "$CCC"; then 30696 CXX=$CCC 30697 else 30698 if test -n "$ac_tool_prefix"; then 30699 for ac_prog in $CXX 30700 do 30701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30704 $as_echo_n "checking for $ac_word... " >&6; } 30705 if ${ac_cv_prog_CXX+:} false; then : 30706 $as_echo_n "(cached) " >&6 30707 else 30708 if test -n "$CXX"; then 30709 ac_cv_prog_CXX="$CXX" # Let the user override the test. 30710 else 30711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30712 for as_dir in $PATH 30713 do 30714 IFS=$as_save_IFS 30715 test -z "$as_dir" && as_dir=. 30716 for ac_exec_ext in '' $ac_executable_extensions; do 30717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30718 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 30719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30720 break 2 30721 fi 30722 done 30723 done 30724 IFS=$as_save_IFS 30725 30726 fi 30727 fi 30728 CXX=$ac_cv_prog_CXX 30729 if test -n "$CXX"; then 30730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 30731 $as_echo "$CXX" >&6; } 30732 else 30733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30734 $as_echo "no" >&6; } 30735 fi 30736 30737 30738 test -n "$CXX" && break 30739 done 30740 fi 30741 if test -z "$CXX"; then 30742 ac_ct_CXX=$CXX 30743 for ac_prog in $CXX 30744 do 30745 # Extract the first word of "$ac_prog", so it can be a program name with args. 30746 set dummy $ac_prog; ac_word=$2 30747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30748 $as_echo_n "checking for $ac_word... " >&6; } 30749 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 30750 $as_echo_n "(cached) " >&6 30751 else 30752 if test -n "$ac_ct_CXX"; then 30753 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 30754 else 30755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30756 for as_dir in $PATH 30757 do 30758 IFS=$as_save_IFS 30759 test -z "$as_dir" && as_dir=. 30760 for ac_exec_ext in '' $ac_executable_extensions; do 30761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30762 ac_cv_prog_ac_ct_CXX="$ac_prog" 30763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30764 break 2 30765 fi 30766 done 30767 done 30768 IFS=$as_save_IFS 30769 30770 fi 30771 fi 30772 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 30773 if test -n "$ac_ct_CXX"; then 30774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 30775 $as_echo "$ac_ct_CXX" >&6; } 30776 else 30777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30778 $as_echo "no" >&6; } 30779 fi 30780 30781 30782 test -n "$ac_ct_CXX" && break 30783 done 30784 30785 if test "x$ac_ct_CXX" = x; then 30786 CXX="g++" 30787 else 30788 case $cross_compiling:$ac_tool_warned in 30789 yes:) 30790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30792 ac_tool_warned=yes ;; 30793 esac 30794 CXX=$ac_ct_CXX 30795 fi 30796 fi 30797 30798 fi 30799 fi 30800 # Provide some information about the compiler. 30801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 30802 set X $ac_compile 30803 ac_compiler=$2 30804 for ac_option in --version -v -V -qversion; do 30805 { { ac_try="$ac_compiler $ac_option >&5" 30806 case "(($ac_try" in 30807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30808 *) ac_try_echo=$ac_try;; 30809 esac 30810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30811 $as_echo "$ac_try_echo"; } >&5 30812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30813 ac_status=$? 30814 if test -s conftest.err; then 30815 sed '10a\ 30816 ... rest of stderr output deleted ... 30817 10q' conftest.err >conftest.er1 30818 cat conftest.er1 >&5 30819 fi 30820 rm -f conftest.er1 conftest.err 30821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30822 test $ac_status = 0; } 30823 done 30824 30825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 30826 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 30827 if ${ac_cv_cxx_compiler_gnu+:} false; then : 30828 $as_echo_n "(cached) " >&6 30829 else 30830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30831 /* end confdefs.h. */ 30832 30833 int 30834 main () 30835 { 30836 #ifndef __GNUC__ 30837 choke me 30838 #endif 30839 30840 ; 30841 return 0; 30842 } 30843 _ACEOF 30844 if ac_fn_cxx_try_compile "$LINENO"; then : 30845 ac_compiler_gnu=yes 30846 else 30847 ac_compiler_gnu=no 30848 fi 30849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30850 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 30851 30852 fi 30853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 30854 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 30855 if test $ac_compiler_gnu = yes; then 30856 GXX=yes 30857 else 30858 GXX= 30859 fi 30860 ac_test_CXXFLAGS=${CXXFLAGS+set} 30861 ac_save_CXXFLAGS=$CXXFLAGS 30862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 30863 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 30864 if ${ac_cv_prog_cxx_g+:} false; then : 30865 $as_echo_n "(cached) " >&6 30866 else 30867 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 30868 ac_cxx_werror_flag=yes 30869 ac_cv_prog_cxx_g=no 30870 CXXFLAGS="-g" 30871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30872 /* end confdefs.h. */ 30873 30874 int 30875 main () 30876 { 30877 30878 ; 30879 return 0; 30880 } 30881 _ACEOF 30882 if ac_fn_cxx_try_compile "$LINENO"; then : 30883 ac_cv_prog_cxx_g=yes 30884 else 30885 CXXFLAGS="" 30886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30887 /* end confdefs.h. */ 30888 30889 int 30890 main () 30891 { 30892 30893 ; 30894 return 0; 30895 } 30896 _ACEOF 30897 if ac_fn_cxx_try_compile "$LINENO"; then : 30898 30899 else 30900 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30901 CXXFLAGS="-g" 30902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30903 /* end confdefs.h. */ 30904 30905 int 30906 main () 30907 { 30908 30909 ; 30910 return 0; 30911 } 30912 _ACEOF 30913 if ac_fn_cxx_try_compile "$LINENO"; then : 30914 ac_cv_prog_cxx_g=yes 30915 fi 30916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30917 fi 30918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30919 fi 30920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30921 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30922 fi 30923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 30924 $as_echo "$ac_cv_prog_cxx_g" >&6; } 30925 if test "$ac_test_CXXFLAGS" = set; then 30926 CXXFLAGS=$ac_save_CXXFLAGS 30927 elif test $ac_cv_prog_cxx_g = yes; then 30928 if test "$GXX" = yes; then 30929 CXXFLAGS="-g -O2" 30930 else 30931 CXXFLAGS="-g" 30932 fi 30933 else 30934 if test "$GXX" = yes; then 30935 CXXFLAGS="-O2" 30936 else 30937 CXXFLAGS= 30938 fi 30939 fi 30940 ac_ext=cpp 30941 ac_cpp='$CXXCPP $CPPFLAGS' 30942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30945 30946 30947 # 30948 # Setup the preprocessor (CPP and CXXCPP) 30949 # 30950 ac_ext=c 30951 ac_cpp='$CPP $CPPFLAGS' 30952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30954 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 30956 $as_echo_n "checking how to run the C preprocessor... " >&6; } 30957 # On Suns, sometimes $CPP names a directory. 30958 if test -n "$CPP" && test -d "$CPP"; then 30959 CPP= 30960 fi 30961 if test -z "$CPP"; then 30962 if ${ac_cv_prog_CPP+:} false; then : 30963 $as_echo_n "(cached) " >&6 30964 else 30965 # Double quotes because CPP needs to be expanded 30966 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 30967 do 30968 ac_preproc_ok=false 30969 for ac_c_preproc_warn_flag in '' yes 30970 do 30971 # Use a header file that comes with gcc, so configuring glibc 30972 # with a fresh cross-compiler works. 30973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30974 # <limits.h> exists even on freestanding compilers. 30975 # On the NeXT, cc -E runs the code through the compiler's parser, 30976 # not just through cpp. "Syntax error" is here to catch this case. 30977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30978 /* end confdefs.h. */ 30979 #ifdef __STDC__ 30980 # include <limits.h> 30981 #else 30982 # include <assert.h> 30983 #endif 30984 Syntax error 30985 _ACEOF 30986 if ac_fn_c_try_cpp "$LINENO"; then : 30987 30988 else 30989 # Broken: fails on valid input. 30990 continue 30991 fi 30992 rm -f conftest.err conftest.i conftest.$ac_ext 30993 30994 # OK, works on sane cases. Now check whether nonexistent headers 30995 # can be detected and how. 30996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30997 /* end confdefs.h. */ 30998 #include <ac_nonexistent.h> 30999 _ACEOF 31000 if ac_fn_c_try_cpp "$LINENO"; then : 31001 # Broken: success on invalid input. 31002 continue 31003 else 31004 # Passes both tests. 31005 ac_preproc_ok=: 31006 break 31007 fi 31008 rm -f conftest.err conftest.i conftest.$ac_ext 31009 31010 done 31011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31012 rm -f conftest.i conftest.err conftest.$ac_ext 31013 if $ac_preproc_ok; then : 31014 break 31015 fi 31016 31017 done 31018 ac_cv_prog_CPP=$CPP 31019 31020 fi 31021 CPP=$ac_cv_prog_CPP 31022 else 31023 ac_cv_prog_CPP=$CPP 31024 fi 31025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 31026 $as_echo "$CPP" >&6; } 31027 ac_preproc_ok=false 31028 for ac_c_preproc_warn_flag in '' yes 31029 do 31030 # Use a header file that comes with gcc, so configuring glibc 31031 # with a fresh cross-compiler works. 31032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31033 # <limits.h> exists even on freestanding compilers. 31034 # On the NeXT, cc -E runs the code through the compiler's parser, 31035 # not just through cpp. "Syntax error" is here to catch this case. 31036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31037 /* end confdefs.h. */ 31038 #ifdef __STDC__ 31039 # include <limits.h> 31040 #else 31041 # include <assert.h> 31042 #endif 31043 Syntax error 31044 _ACEOF 31045 if ac_fn_c_try_cpp "$LINENO"; then : 31046 31047 else 31048 # Broken: fails on valid input. 31049 continue 31050 fi 31051 rm -f conftest.err conftest.i conftest.$ac_ext 31052 31053 # OK, works on sane cases. Now check whether nonexistent headers 31054 # can be detected and how. 31055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31056 /* end confdefs.h. */ 31057 #include <ac_nonexistent.h> 31058 _ACEOF 31059 if ac_fn_c_try_cpp "$LINENO"; then : 31060 # Broken: success on invalid input. 31061 continue 31062 else 31063 # Passes both tests. 31064 ac_preproc_ok=: 31065 break 31066 fi 31067 rm -f conftest.err conftest.i conftest.$ac_ext 31068 31069 done 31070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31071 rm -f conftest.i conftest.err conftest.$ac_ext 31072 if $ac_preproc_ok; then : 31073 31074 else 31075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31077 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 31078 See \`config.log' for more details" "$LINENO" 5; } 31079 fi 31080 31081 ac_ext=cpp 31082 ac_cpp='$CXXCPP $CPPFLAGS' 31083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31086 31087 31088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31089 31090 # First separate the path from the arguments. This will split at the first 31091 # space. 31092 complete="$CPP" 31093 path="${complete%% *}" 31094 tmp="$complete EOL" 31095 arguments="${tmp#* }" 31096 31097 # Input might be given as Windows format, start by converting to 31098 # unix format. 31099 new_path=`$CYGPATH -u "$path"` 31100 31101 # Now try to locate executable using which 31102 new_path=`$WHICH "$new_path" 2> /dev/null` 31103 # bat and cmd files are not always considered executable in cygwin causing which 31104 # to not find them 31105 if test "x$new_path" = x \ 31106 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31107 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31108 new_path=`$CYGPATH -u "$path"` 31109 fi 31110 if test "x$new_path" = x; then 31111 # Oops. Which didn't find the executable. 31112 # The splitting of arguments from the executable at a space might have been incorrect, 31113 # since paths with space are more likely in Windows. Give it another try with the whole 31114 # argument. 31115 path="$complete" 31116 arguments="EOL" 31117 new_path=`$CYGPATH -u "$path"` 31118 new_path=`$WHICH "$new_path" 2> /dev/null` 31119 # bat and cmd files are not always considered executable in cygwin causing which 31120 # to not find them 31121 if test "x$new_path" = x \ 31122 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31123 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31124 new_path=`$CYGPATH -u "$path"` 31125 fi 31126 if test "x$new_path" = x; then 31127 # It's still not found. Now this is an unrecoverable error. 31128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31129 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31130 has_space=`$ECHO "$complete" | $GREP " "` 31131 if test "x$has_space" != x; then 31132 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31133 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31134 fi 31135 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31136 fi 31137 fi 31138 31139 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31140 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31141 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31142 # "foo.exe" is OK but "foo" is an error. 31143 # 31144 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31145 # It is also a way to make sure we got the proper file name for the real test later on. 31146 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31147 if test "x$test_shortpath" = x; then 31148 # Short path failed, file does not exist as specified. 31149 # Try adding .exe or .cmd 31150 if test -f "${new_path}.exe"; then 31151 input_to_shortpath="${new_path}.exe" 31152 elif test -f "${new_path}.cmd"; then 31153 input_to_shortpath="${new_path}.cmd" 31154 else 31155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 31156 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 31157 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31158 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31159 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31160 fi 31161 else 31162 input_to_shortpath="$new_path" 31163 fi 31164 31165 # Call helper function which possibly converts this using DOS-style short mode. 31166 # If so, the updated path is stored in $new_path. 31167 new_path="$input_to_shortpath" 31168 31169 input_path="$input_to_shortpath" 31170 # Check if we need to convert this using DOS-style short mode. If the path 31171 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31172 # take no chances and rewrite it. 31173 # Note: m4 eats our [], so we need to use [ and ] instead. 31174 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31175 if test "x$has_forbidden_chars" != x; then 31176 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31177 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31178 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31179 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31180 # Going to short mode and back again did indeed matter. Since short mode is 31181 # case insensitive, let's make it lowercase to improve readability. 31182 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31183 # Now convert it back to Unix-stile (cygpath) 31184 input_path=`$CYGPATH -u "$shortmode_path"` 31185 new_path="$input_path" 31186 fi 31187 fi 31188 31189 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31190 if test "x$test_cygdrive_prefix" = x; then 31191 # As a simple fix, exclude /usr/bin since it's not a real path. 31192 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31193 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31194 # a path prefixed by /cygdrive for fixpath to work. 31195 new_path="$CYGWIN_ROOT_PATH$input_path" 31196 fi 31197 fi 31198 31199 # remove trailing .exe if any 31200 new_path="${new_path/%.exe/}" 31201 31202 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31203 31204 # First separate the path from the arguments. This will split at the first 31205 # space. 31206 complete="$CPP" 31207 path="${complete%% *}" 31208 tmp="$complete EOL" 31209 arguments="${tmp#* }" 31210 31211 # Input might be given as Windows format, start by converting to 31212 # unix format. 31213 new_path="$path" 31214 31215 windows_path="$new_path" 31216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31217 unix_path=`$CYGPATH -u "$windows_path"` 31218 new_path="$unix_path" 31219 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31220 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31221 new_path="$unix_path" 31222 fi 31223 31224 31225 # Now try to locate executable using which 31226 new_path=`$WHICH "$new_path" 2> /dev/null` 31227 31228 if test "x$new_path" = x; then 31229 # Oops. Which didn't find the executable. 31230 # The splitting of arguments from the executable at a space might have been incorrect, 31231 # since paths with space are more likely in Windows. Give it another try with the whole 31232 # argument. 31233 path="$complete" 31234 arguments="EOL" 31235 new_path="$path" 31236 31237 windows_path="$new_path" 31238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31239 unix_path=`$CYGPATH -u "$windows_path"` 31240 new_path="$unix_path" 31241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31242 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31243 new_path="$unix_path" 31244 fi 31245 31246 31247 new_path=`$WHICH "$new_path" 2> /dev/null` 31248 # bat and cmd files are not always considered executable in MSYS causing which 31249 # to not find them 31250 if test "x$new_path" = x \ 31251 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31252 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 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 fi 31265 31266 if test "x$new_path" = x; then 31267 # It's still not found. Now this is an unrecoverable error. 31268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31269 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31270 has_space=`$ECHO "$complete" | $GREP " "` 31271 if test "x$has_space" != x; then 31272 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31273 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31274 fi 31275 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31276 fi 31277 fi 31278 31279 # Now new_path has a complete unix path to the binary 31280 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31281 # Keep paths in /bin as-is, but remove trailing .exe if any 31282 new_path="${new_path/%.exe/}" 31283 # Do not save /bin paths to all_fixpath_prefixes! 31284 else 31285 # Not in mixed or Windows style, start by that. 31286 new_path=`cmd //c echo $new_path` 31287 31288 input_path="$new_path" 31289 # Check if we need to convert this using DOS-style short mode. If the path 31290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31291 # take no chances and rewrite it. 31292 # Note: m4 eats our [], so we need to use [ and ] instead. 31293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31294 if test "x$has_forbidden_chars" != x; then 31295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31296 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31297 fi 31298 31299 # Output is in $new_path 31300 31301 windows_path="$new_path" 31302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31303 unix_path=`$CYGPATH -u "$windows_path"` 31304 new_path="$unix_path" 31305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31307 new_path="$unix_path" 31308 fi 31309 31310 # remove trailing .exe if any 31311 new_path="${new_path/%.exe/}" 31312 31313 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31314 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31315 fi 31316 31317 else 31318 # We're on a posix platform. Hooray! :) 31319 # First separate the path from the arguments. This will split at the first 31320 # space. 31321 complete="$CPP" 31322 path="${complete%% *}" 31323 tmp="$complete EOL" 31324 arguments="${tmp#* }" 31325 31326 # Cannot rely on the command "which" here since it doesn't always work. 31327 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31328 if test -z "$is_absolute_path"; then 31329 # Path to executable is not absolute. Find it. 31330 IFS_save="$IFS" 31331 IFS=: 31332 for p in $PATH; do 31333 if test -f "$p/$path" && test -x "$p/$path"; then 31334 new_path="$p/$path" 31335 break 31336 fi 31337 done 31338 IFS="$IFS_save" 31339 else 31340 # This is an absolute path, we can use it without further modifications. 31341 new_path="$path" 31342 fi 31343 31344 if test "x$new_path" = x; then 31345 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31346 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31347 has_space=`$ECHO "$complete" | $GREP " "` 31348 if test "x$has_space" != x; then 31349 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31350 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31351 fi 31352 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31353 fi 31354 fi 31355 31356 # Now join together the path and the arguments once again 31357 if test "x$arguments" != xEOL; then 31358 new_complete="$new_path ${arguments% *}" 31359 else 31360 new_complete="$new_path" 31361 fi 31362 31363 if test "x$complete" != "x$new_complete"; then 31364 CPP="$new_complete" 31365 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 31366 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 31367 fi 31368 31369 ac_ext=cpp 31370 ac_cpp='$CXXCPP $CPPFLAGS' 31371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 31375 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 31376 if test -z "$CXXCPP"; then 31377 if ${ac_cv_prog_CXXCPP+:} false; then : 31378 $as_echo_n "(cached) " >&6 31379 else 31380 # Double quotes because CXXCPP needs to be expanded 31381 for CXXCPP in "$CXX -E" "/lib/cpp" 31382 do 31383 ac_preproc_ok=false 31384 for ac_cxx_preproc_warn_flag in '' yes 31385 do 31386 # Use a header file that comes with gcc, so configuring glibc 31387 # with a fresh cross-compiler works. 31388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31389 # <limits.h> exists even on freestanding compilers. 31390 # On the NeXT, cc -E runs the code through the compiler's parser, 31391 # not just through cpp. "Syntax error" is here to catch this case. 31392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31393 /* end confdefs.h. */ 31394 #ifdef __STDC__ 31395 # include <limits.h> 31396 #else 31397 # include <assert.h> 31398 #endif 31399 Syntax error 31400 _ACEOF 31401 if ac_fn_cxx_try_cpp "$LINENO"; then : 31402 31403 else 31404 # Broken: fails on valid input. 31405 continue 31406 fi 31407 rm -f conftest.err conftest.i conftest.$ac_ext 31408 31409 # OK, works on sane cases. Now check whether nonexistent headers 31410 # can be detected and how. 31411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31412 /* end confdefs.h. */ 31413 #include <ac_nonexistent.h> 31414 _ACEOF 31415 if ac_fn_cxx_try_cpp "$LINENO"; then : 31416 # Broken: success on invalid input. 31417 continue 31418 else 31419 # Passes both tests. 31420 ac_preproc_ok=: 31421 break 31422 fi 31423 rm -f conftest.err conftest.i conftest.$ac_ext 31424 31425 done 31426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31427 rm -f conftest.i conftest.err conftest.$ac_ext 31428 if $ac_preproc_ok; then : 31429 break 31430 fi 31431 31432 done 31433 ac_cv_prog_CXXCPP=$CXXCPP 31434 31435 fi 31436 CXXCPP=$ac_cv_prog_CXXCPP 31437 else 31438 ac_cv_prog_CXXCPP=$CXXCPP 31439 fi 31440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 31441 $as_echo "$CXXCPP" >&6; } 31442 ac_preproc_ok=false 31443 for ac_cxx_preproc_warn_flag in '' yes 31444 do 31445 # Use a header file that comes with gcc, so configuring glibc 31446 # with a fresh cross-compiler works. 31447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31448 # <limits.h> exists even on freestanding compilers. 31449 # On the NeXT, cc -E runs the code through the compiler's parser, 31450 # not just through cpp. "Syntax error" is here to catch this case. 31451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31452 /* end confdefs.h. */ 31453 #ifdef __STDC__ 31454 # include <limits.h> 31455 #else 31456 # include <assert.h> 31457 #endif 31458 Syntax error 31459 _ACEOF 31460 if ac_fn_cxx_try_cpp "$LINENO"; then : 31461 31462 else 31463 # Broken: fails on valid input. 31464 continue 31465 fi 31466 rm -f conftest.err conftest.i conftest.$ac_ext 31467 31468 # OK, works on sane cases. Now check whether nonexistent headers 31469 # can be detected and how. 31470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31471 /* end confdefs.h. */ 31472 #include <ac_nonexistent.h> 31473 _ACEOF 31474 if ac_fn_cxx_try_cpp "$LINENO"; then : 31475 # Broken: success on invalid input. 31476 continue 31477 else 31478 # Passes both tests. 31479 ac_preproc_ok=: 31480 break 31481 fi 31482 rm -f conftest.err conftest.i conftest.$ac_ext 31483 31484 done 31485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31486 rm -f conftest.i conftest.err conftest.$ac_ext 31487 if $ac_preproc_ok; then : 31488 31489 else 31490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31492 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 31493 See \`config.log' for more details" "$LINENO" 5; } 31494 fi 31495 31496 ac_ext=cpp 31497 ac_cpp='$CXXCPP $CPPFLAGS' 31498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31501 31502 31503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31504 31505 # First separate the path from the arguments. This will split at the first 31506 # space. 31507 complete="$CXXCPP" 31508 path="${complete%% *}" 31509 tmp="$complete EOL" 31510 arguments="${tmp#* }" 31511 31512 # Input might be given as Windows format, start by converting to 31513 # unix format. 31514 new_path=`$CYGPATH -u "$path"` 31515 31516 # Now try to locate executable using which 31517 new_path=`$WHICH "$new_path" 2> /dev/null` 31518 # bat and cmd files are not always considered executable in cygwin causing which 31519 # to not find them 31520 if test "x$new_path" = x \ 31521 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31522 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31523 new_path=`$CYGPATH -u "$path"` 31524 fi 31525 if test "x$new_path" = x; then 31526 # Oops. Which didn't find the executable. 31527 # The splitting of arguments from the executable at a space might have been incorrect, 31528 # since paths with space are more likely in Windows. Give it another try with the whole 31529 # argument. 31530 path="$complete" 31531 arguments="EOL" 31532 new_path=`$CYGPATH -u "$path"` 31533 new_path=`$WHICH "$new_path" 2> /dev/null` 31534 # bat and cmd files are not always considered executable in cygwin causing which 31535 # to not find them 31536 if test "x$new_path" = x \ 31537 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31538 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31539 new_path=`$CYGPATH -u "$path"` 31540 fi 31541 if test "x$new_path" = x; then 31542 # It's still not found. Now this is an unrecoverable error. 31543 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31544 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31545 has_space=`$ECHO "$complete" | $GREP " "` 31546 if test "x$has_space" != x; then 31547 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31548 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31549 fi 31550 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31551 fi 31552 fi 31553 31554 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31555 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31556 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31557 # "foo.exe" is OK but "foo" is an error. 31558 # 31559 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31560 # It is also a way to make sure we got the proper file name for the real test later on. 31561 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31562 if test "x$test_shortpath" = x; then 31563 # Short path failed, file does not exist as specified. 31564 # Try adding .exe or .cmd 31565 if test -f "${new_path}.exe"; then 31566 input_to_shortpath="${new_path}.exe" 31567 elif test -f "${new_path}.cmd"; then 31568 input_to_shortpath="${new_path}.cmd" 31569 else 31570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 31571 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 31572 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31573 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31574 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31575 fi 31576 else 31577 input_to_shortpath="$new_path" 31578 fi 31579 31580 # Call helper function which possibly converts this using DOS-style short mode. 31581 # If so, the updated path is stored in $new_path. 31582 new_path="$input_to_shortpath" 31583 31584 input_path="$input_to_shortpath" 31585 # Check if we need to convert this using DOS-style short mode. If the path 31586 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31587 # take no chances and rewrite it. 31588 # Note: m4 eats our [], so we need to use [ and ] instead. 31589 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31590 if test "x$has_forbidden_chars" != x; then 31591 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31592 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31593 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31594 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31595 # Going to short mode and back again did indeed matter. Since short mode is 31596 # case insensitive, let's make it lowercase to improve readability. 31597 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31598 # Now convert it back to Unix-stile (cygpath) 31599 input_path=`$CYGPATH -u "$shortmode_path"` 31600 new_path="$input_path" 31601 fi 31602 fi 31603 31604 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31605 if test "x$test_cygdrive_prefix" = x; then 31606 # As a simple fix, exclude /usr/bin since it's not a real path. 31607 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31608 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31609 # a path prefixed by /cygdrive for fixpath to work. 31610 new_path="$CYGWIN_ROOT_PATH$input_path" 31611 fi 31612 fi 31613 31614 # remove trailing .exe if any 31615 new_path="${new_path/%.exe/}" 31616 31617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31618 31619 # First separate the path from the arguments. This will split at the first 31620 # space. 31621 complete="$CXXCPP" 31622 path="${complete%% *}" 31623 tmp="$complete EOL" 31624 arguments="${tmp#* }" 31625 31626 # Input might be given as Windows format, start by converting to 31627 # unix format. 31628 new_path="$path" 31629 31630 windows_path="$new_path" 31631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31632 unix_path=`$CYGPATH -u "$windows_path"` 31633 new_path="$unix_path" 31634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31635 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31636 new_path="$unix_path" 31637 fi 31638 31639 31640 # Now try to locate executable using which 31641 new_path=`$WHICH "$new_path" 2> /dev/null` 31642 31643 if test "x$new_path" = x; then 31644 # Oops. Which didn't find the executable. 31645 # The splitting of arguments from the executable at a space might have been incorrect, 31646 # since paths with space are more likely in Windows. Give it another try with the whole 31647 # argument. 31648 path="$complete" 31649 arguments="EOL" 31650 new_path="$path" 31651 31652 windows_path="$new_path" 31653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31654 unix_path=`$CYGPATH -u "$windows_path"` 31655 new_path="$unix_path" 31656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31658 new_path="$unix_path" 31659 fi 31660 31661 31662 new_path=`$WHICH "$new_path" 2> /dev/null` 31663 # bat and cmd files are not always considered executable in MSYS causing which 31664 # to not find them 31665 if test "x$new_path" = x \ 31666 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31667 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31668 new_path="$path" 31669 31670 windows_path="$new_path" 31671 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31672 unix_path=`$CYGPATH -u "$windows_path"` 31673 new_path="$unix_path" 31674 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31675 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31676 new_path="$unix_path" 31677 fi 31678 31679 fi 31680 31681 if test "x$new_path" = x; then 31682 # It's still not found. Now this is an unrecoverable error. 31683 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31684 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31685 has_space=`$ECHO "$complete" | $GREP " "` 31686 if test "x$has_space" != x; then 31687 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31688 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31689 fi 31690 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31691 fi 31692 fi 31693 31694 # Now new_path has a complete unix path to the binary 31695 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31696 # Keep paths in /bin as-is, but remove trailing .exe if any 31697 new_path="${new_path/%.exe/}" 31698 # Do not save /bin paths to all_fixpath_prefixes! 31699 else 31700 # Not in mixed or Windows style, start by that. 31701 new_path=`cmd //c echo $new_path` 31702 31703 input_path="$new_path" 31704 # Check if we need to convert this using DOS-style short mode. If the path 31705 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31706 # take no chances and rewrite it. 31707 # Note: m4 eats our [], so we need to use [ and ] instead. 31708 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31709 if test "x$has_forbidden_chars" != x; then 31710 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31711 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31712 fi 31713 31714 # Output is in $new_path 31715 31716 windows_path="$new_path" 31717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31718 unix_path=`$CYGPATH -u "$windows_path"` 31719 new_path="$unix_path" 31720 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31721 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31722 new_path="$unix_path" 31723 fi 31724 31725 # remove trailing .exe if any 31726 new_path="${new_path/%.exe/}" 31727 31728 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31729 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31730 fi 31731 31732 else 31733 # We're on a posix platform. Hooray! :) 31734 # First separate the path from the arguments. This will split at the first 31735 # space. 31736 complete="$CXXCPP" 31737 path="${complete%% *}" 31738 tmp="$complete EOL" 31739 arguments="${tmp#* }" 31740 31741 # Cannot rely on the command "which" here since it doesn't always work. 31742 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31743 if test -z "$is_absolute_path"; then 31744 # Path to executable is not absolute. Find it. 31745 IFS_save="$IFS" 31746 IFS=: 31747 for p in $PATH; do 31748 if test -f "$p/$path" && test -x "$p/$path"; then 31749 new_path="$p/$path" 31750 break 31751 fi 31752 done 31753 IFS="$IFS_save" 31754 else 31755 # This is an absolute path, we can use it without further modifications. 31756 new_path="$path" 31757 fi 31758 31759 if test "x$new_path" = x; then 31760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31761 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31762 has_space=`$ECHO "$complete" | $GREP " "` 31763 if test "x$has_space" != x; then 31764 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31765 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31766 fi 31767 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31768 fi 31769 fi 31770 31771 # Now join together the path and the arguments once again 31772 if test "x$arguments" != xEOL; then 31773 new_complete="$new_path ${arguments% *}" 31774 else 31775 new_complete="$new_path" 31776 fi 31777 31778 if test "x$complete" != "x$new_complete"; then 31779 CXXCPP="$new_complete" 31780 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 31781 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 31782 fi 31783 31784 31785 # 31786 # Setup the linker (LD) 31787 # 31788 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31789 # In the Microsoft toolchain we have a separate LD command "link". 31790 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 31791 # a cygwin program for something completely different. 31792 # Extract the first word of "link", so it can be a program name with args. 31793 set dummy link; ac_word=$2 31794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31795 $as_echo_n "checking for $ac_word... " >&6; } 31796 if ${ac_cv_prog_LD+:} false; then : 31797 $as_echo_n "(cached) " >&6 31798 else 31799 if test -n "$LD"; then 31800 ac_cv_prog_LD="$LD" # Let the user override the test. 31801 else 31802 ac_prog_rejected=no 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 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 31811 ac_prog_rejected=yes 31812 continue 31813 fi 31814 ac_cv_prog_LD="link" 31815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31816 break 2 31817 fi 31818 done 31819 done 31820 IFS=$as_save_IFS 31821 31822 if test $ac_prog_rejected = yes; then 31823 # We found a bogon in the path, so make sure we never use it. 31824 set dummy $ac_cv_prog_LD 31825 shift 31826 if test $# != 0; then 31827 # We chose a different compiler from the bogus one. 31828 # However, it has the same basename, so the bogon will be chosen 31829 # first if we set LD to just the basename; use the full file name. 31830 shift 31831 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 31832 fi 31833 fi 31834 fi 31835 fi 31836 LD=$ac_cv_prog_LD 31837 if test -n "$LD"; then 31838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 31839 $as_echo "$LD" >&6; } 31840 else 31841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31842 $as_echo "no" >&6; } 31843 fi 31844 31845 31846 31847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31848 31849 # First separate the path from the arguments. This will split at the first 31850 # space. 31851 complete="$LD" 31852 path="${complete%% *}" 31853 tmp="$complete EOL" 31854 arguments="${tmp#* }" 31855 31856 # Input might be given as Windows format, start by converting to 31857 # unix format. 31858 new_path=`$CYGPATH -u "$path"` 31859 31860 # Now try to locate executable using which 31861 new_path=`$WHICH "$new_path" 2> /dev/null` 31862 # bat and cmd files are not always considered executable in cygwin causing which 31863 # to not find them 31864 if test "x$new_path" = x \ 31865 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31866 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31867 new_path=`$CYGPATH -u "$path"` 31868 fi 31869 if test "x$new_path" = x; then 31870 # Oops. Which didn't find the executable. 31871 # The splitting of arguments from the executable at a space might have been incorrect, 31872 # since paths with space are more likely in Windows. Give it another try with the whole 31873 # argument. 31874 path="$complete" 31875 arguments="EOL" 31876 new_path=`$CYGPATH -u "$path"` 31877 new_path=`$WHICH "$new_path" 2> /dev/null` 31878 # bat and cmd files are not always considered executable in cygwin causing which 31879 # to not find them 31880 if test "x$new_path" = x \ 31881 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31882 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31883 new_path=`$CYGPATH -u "$path"` 31884 fi 31885 if test "x$new_path" = x; then 31886 # It's still not found. Now this is an unrecoverable error. 31887 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31888 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31889 has_space=`$ECHO "$complete" | $GREP " "` 31890 if test "x$has_space" != x; then 31891 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31892 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31893 fi 31894 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31895 fi 31896 fi 31897 31898 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31899 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31900 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31901 # "foo.exe" is OK but "foo" is an error. 31902 # 31903 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31904 # It is also a way to make sure we got the proper file name for the real test later on. 31905 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31906 if test "x$test_shortpath" = x; then 31907 # Short path failed, file does not exist as specified. 31908 # Try adding .exe or .cmd 31909 if test -f "${new_path}.exe"; then 31910 input_to_shortpath="${new_path}.exe" 31911 elif test -f "${new_path}.cmd"; then 31912 input_to_shortpath="${new_path}.cmd" 31913 else 31914 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 31915 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 31916 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31917 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31918 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31919 fi 31920 else 31921 input_to_shortpath="$new_path" 31922 fi 31923 31924 # Call helper function which possibly converts this using DOS-style short mode. 31925 # If so, the updated path is stored in $new_path. 31926 new_path="$input_to_shortpath" 31927 31928 input_path="$input_to_shortpath" 31929 # Check if we need to convert this using DOS-style short mode. If the path 31930 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31931 # take no chances and rewrite it. 31932 # Note: m4 eats our [], so we need to use [ and ] instead. 31933 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31934 if test "x$has_forbidden_chars" != x; then 31935 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31936 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31937 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31938 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31939 # Going to short mode and back again did indeed matter. Since short mode is 31940 # case insensitive, let's make it lowercase to improve readability. 31941 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31942 # Now convert it back to Unix-stile (cygpath) 31943 input_path=`$CYGPATH -u "$shortmode_path"` 31944 new_path="$input_path" 31945 fi 31946 fi 31947 31948 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31949 if test "x$test_cygdrive_prefix" = x; then 31950 # As a simple fix, exclude /usr/bin since it's not a real path. 31951 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31952 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31953 # a path prefixed by /cygdrive for fixpath to work. 31954 new_path="$CYGWIN_ROOT_PATH$input_path" 31955 fi 31956 fi 31957 31958 # remove trailing .exe if any 31959 new_path="${new_path/%.exe/}" 31960 31961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31962 31963 # First separate the path from the arguments. This will split at the first 31964 # space. 31965 complete="$LD" 31966 path="${complete%% *}" 31967 tmp="$complete EOL" 31968 arguments="${tmp#* }" 31969 31970 # Input might be given as Windows format, start by converting to 31971 # unix format. 31972 new_path="$path" 31973 31974 windows_path="$new_path" 31975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31976 unix_path=`$CYGPATH -u "$windows_path"` 31977 new_path="$unix_path" 31978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31979 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31980 new_path="$unix_path" 31981 fi 31982 31983 31984 # Now try to locate executable using which 31985 new_path=`$WHICH "$new_path" 2> /dev/null` 31986 31987 if test "x$new_path" = x; then 31988 # Oops. Which didn't find the executable. 31989 # The splitting of arguments from the executable at a space might have been incorrect, 31990 # since paths with space are more likely in Windows. Give it another try with the whole 31991 # argument. 31992 path="$complete" 31993 arguments="EOL" 31994 new_path="$path" 31995 31996 windows_path="$new_path" 31997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31998 unix_path=`$CYGPATH -u "$windows_path"` 31999 new_path="$unix_path" 32000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32002 new_path="$unix_path" 32003 fi 32004 32005 32006 new_path=`$WHICH "$new_path" 2> /dev/null` 32007 # bat and cmd files are not always considered executable in MSYS causing which 32008 # to not find them 32009 if test "x$new_path" = x \ 32010 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32011 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32012 new_path="$path" 32013 32014 windows_path="$new_path" 32015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32016 unix_path=`$CYGPATH -u "$windows_path"` 32017 new_path="$unix_path" 32018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32019 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32020 new_path="$unix_path" 32021 fi 32022 32023 fi 32024 32025 if test "x$new_path" = x; then 32026 # It's still not found. Now this is an unrecoverable error. 32027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32028 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32029 has_space=`$ECHO "$complete" | $GREP " "` 32030 if test "x$has_space" != x; then 32031 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32032 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32033 fi 32034 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32035 fi 32036 fi 32037 32038 # Now new_path has a complete unix path to the binary 32039 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32040 # Keep paths in /bin as-is, but remove trailing .exe if any 32041 new_path="${new_path/%.exe/}" 32042 # Do not save /bin paths to all_fixpath_prefixes! 32043 else 32044 # Not in mixed or Windows style, start by that. 32045 new_path=`cmd //c echo $new_path` 32046 32047 input_path="$new_path" 32048 # Check if we need to convert this using DOS-style short mode. If the path 32049 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32050 # take no chances and rewrite it. 32051 # Note: m4 eats our [], so we need to use [ and ] instead. 32052 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32053 if test "x$has_forbidden_chars" != x; then 32054 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32055 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32056 fi 32057 32058 # Output is in $new_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 # remove trailing .exe if any 32070 new_path="${new_path/%.exe/}" 32071 32072 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32073 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32074 fi 32075 32076 else 32077 # We're on a posix platform. Hooray! :) 32078 # First separate the path from the arguments. This will split at the first 32079 # space. 32080 complete="$LD" 32081 path="${complete%% *}" 32082 tmp="$complete EOL" 32083 arguments="${tmp#* }" 32084 32085 # Cannot rely on the command "which" here since it doesn't always work. 32086 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32087 if test -z "$is_absolute_path"; then 32088 # Path to executable is not absolute. Find it. 32089 IFS_save="$IFS" 32090 IFS=: 32091 for p in $PATH; do 32092 if test -f "$p/$path" && test -x "$p/$path"; then 32093 new_path="$p/$path" 32094 break 32095 fi 32096 done 32097 IFS="$IFS_save" 32098 else 32099 # This is an absolute path, we can use it without further modifications. 32100 new_path="$path" 32101 fi 32102 32103 if test "x$new_path" = x; then 32104 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32105 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32106 has_space=`$ECHO "$complete" | $GREP " "` 32107 if test "x$has_space" != x; then 32108 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32109 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32110 fi 32111 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32112 fi 32113 fi 32114 32115 # Now join together the path and the arguments once again 32116 if test "x$arguments" != xEOL; then 32117 new_complete="$new_path ${arguments% *}" 32118 else 32119 new_complete="$new_path" 32120 fi 32121 32122 if test "x$complete" != "x$new_complete"; then 32123 LD="$new_complete" 32124 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 32125 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 32126 fi 32127 32128 # Verify that we indeed succeeded with this trick. 32129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 32130 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 32131 "$LD" --version > /dev/null 32132 if test $? -eq 0 ; then 32133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32134 $as_echo "no" >&6; } 32135 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 32136 else 32137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32138 $as_echo "yes" >&6; } 32139 fi 32140 LDCXX="$LD" 32141 else 32142 # All other toolchains use the compiler to link. 32143 LD="$CC" 32144 LDCXX="$CXX" 32145 fi 32146 32147 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 32148 32149 32150 # 32151 # Setup the assembler (AS) 32152 # 32153 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32154 # FIXME: should this really be solaris, or solstudio? 32155 32156 32157 # Publish this variable in the help. 32158 32159 32160 if test "x$AS" = x; then 32161 # The variable is not set by user, try to locate tool using the code snippet 32162 for ac_prog in as 32163 do 32164 # Extract the first word of "$ac_prog", so it can be a program name with args. 32165 set dummy $ac_prog; ac_word=$2 32166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32167 $as_echo_n "checking for $ac_word... " >&6; } 32168 if ${ac_cv_path_AS+:} false; then : 32169 $as_echo_n "(cached) " >&6 32170 else 32171 case $AS in 32172 [\\/]* | ?:[\\/]*) 32173 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32174 ;; 32175 *) 32176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32177 for as_dir in $PATH 32178 do 32179 IFS=$as_save_IFS 32180 test -z "$as_dir" && as_dir=. 32181 for ac_exec_ext in '' $ac_executable_extensions; do 32182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32183 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32185 break 2 32186 fi 32187 done 32188 done 32189 IFS=$as_save_IFS 32190 32191 ;; 32192 esac 32193 fi 32194 AS=$ac_cv_path_AS 32195 if test -n "$AS"; then 32196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32197 $as_echo "$AS" >&6; } 32198 else 32199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32200 $as_echo "no" >&6; } 32201 fi 32202 32203 32204 test -n "$AS" && break 32205 done 32206 32207 else 32208 # The variable is set, but is it from the command line or the environment? 32209 32210 # Try to remove the string !AS! from our list. 32211 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 32212 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32213 # If it failed, the variable was not from the command line. Ignore it, 32214 # but warn the user (except for BASH, which is always set by the calling BASH). 32215 if test "xAS" != xBASH; then 32216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 32217 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 32218 fi 32219 # Try to locate tool using the code snippet 32220 for ac_prog in as 32221 do 32222 # Extract the first word of "$ac_prog", so it can be a program name with args. 32223 set dummy $ac_prog; ac_word=$2 32224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32225 $as_echo_n "checking for $ac_word... " >&6; } 32226 if ${ac_cv_path_AS+:} false; then : 32227 $as_echo_n "(cached) " >&6 32228 else 32229 case $AS in 32230 [\\/]* | ?:[\\/]*) 32231 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32232 ;; 32233 *) 32234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32235 for as_dir in $PATH 32236 do 32237 IFS=$as_save_IFS 32238 test -z "$as_dir" && as_dir=. 32239 for ac_exec_ext in '' $ac_executable_extensions; do 32240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32241 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32243 break 2 32244 fi 32245 done 32246 done 32247 IFS=$as_save_IFS 32248 32249 ;; 32250 esac 32251 fi 32252 AS=$ac_cv_path_AS 32253 if test -n "$AS"; then 32254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32255 $as_echo "$AS" >&6; } 32256 else 32257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32258 $as_echo "no" >&6; } 32259 fi 32260 32261 32262 test -n "$AS" && break 32263 done 32264 32265 else 32266 # If it succeeded, then it was overridden by the user. We will use it 32267 # for the tool. 32268 32269 # First remove it from the list of overridden variables, so we can test 32270 # for unknown variables in the end. 32271 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32272 32273 # Check if the provided tool contains a complete path. 32274 tool_specified="$AS" 32275 tool_basename="${tool_specified##*/}" 32276 if test "x$tool_basename" = "x$tool_specified"; then 32277 # A command without a complete path is provided, search $PATH. 32278 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 32279 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 32280 # Extract the first word of "$tool_basename", so it can be a program name with args. 32281 set dummy $tool_basename; ac_word=$2 32282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32283 $as_echo_n "checking for $ac_word... " >&6; } 32284 if ${ac_cv_path_AS+:} false; then : 32285 $as_echo_n "(cached) " >&6 32286 else 32287 case $AS in 32288 [\\/]* | ?:[\\/]*) 32289 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32290 ;; 32291 *) 32292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32293 for as_dir in $PATH 32294 do 32295 IFS=$as_save_IFS 32296 test -z "$as_dir" && as_dir=. 32297 for ac_exec_ext in '' $ac_executable_extensions; do 32298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32299 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32301 break 2 32302 fi 32303 done 32304 done 32305 IFS=$as_save_IFS 32306 32307 ;; 32308 esac 32309 fi 32310 AS=$ac_cv_path_AS 32311 if test -n "$AS"; then 32312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32313 $as_echo "$AS" >&6; } 32314 else 32315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32316 $as_echo "no" >&6; } 32317 fi 32318 32319 32320 if test "x$AS" = x; then 32321 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32322 fi 32323 else 32324 # Otherwise we believe it is a complete path. Use it as it is. 32325 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 32326 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 32327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 32328 $as_echo_n "checking for AS... " >&6; } 32329 if test ! -x "$tool_specified"; then 32330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32331 $as_echo "not found" >&6; } 32332 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 32333 fi 32334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32335 $as_echo "$tool_specified" >&6; } 32336 fi 32337 fi 32338 fi 32339 32340 32341 32342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32343 32344 # First separate the path from the arguments. This will split at the first 32345 # space. 32346 complete="$AS" 32347 path="${complete%% *}" 32348 tmp="$complete EOL" 32349 arguments="${tmp#* }" 32350 32351 # Input might be given as Windows format, start by converting to 32352 # unix format. 32353 new_path=`$CYGPATH -u "$path"` 32354 32355 # Now try to locate executable using which 32356 new_path=`$WHICH "$new_path" 2> /dev/null` 32357 # bat and cmd files are not always considered executable in cygwin causing which 32358 # to not find them 32359 if test "x$new_path" = x \ 32360 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32361 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32362 new_path=`$CYGPATH -u "$path"` 32363 fi 32364 if test "x$new_path" = x; then 32365 # Oops. Which didn't find the executable. 32366 # The splitting of arguments from the executable at a space might have been incorrect, 32367 # since paths with space are more likely in Windows. Give it another try with the whole 32368 # argument. 32369 path="$complete" 32370 arguments="EOL" 32371 new_path=`$CYGPATH -u "$path"` 32372 new_path=`$WHICH "$new_path" 2> /dev/null` 32373 # bat and cmd files are not always considered executable in cygwin causing which 32374 # to not find them 32375 if test "x$new_path" = x \ 32376 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32377 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32378 new_path=`$CYGPATH -u "$path"` 32379 fi 32380 if test "x$new_path" = x; then 32381 # It's still not found. Now this is an unrecoverable error. 32382 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32383 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32384 has_space=`$ECHO "$complete" | $GREP " "` 32385 if test "x$has_space" != x; then 32386 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32387 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32388 fi 32389 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32390 fi 32391 fi 32392 32393 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32394 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32395 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32396 # "foo.exe" is OK but "foo" is an error. 32397 # 32398 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32399 # It is also a way to make sure we got the proper file name for the real test later on. 32400 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32401 if test "x$test_shortpath" = x; then 32402 # Short path failed, file does not exist as specified. 32403 # Try adding .exe or .cmd 32404 if test -f "${new_path}.exe"; then 32405 input_to_shortpath="${new_path}.exe" 32406 elif test -f "${new_path}.cmd"; then 32407 input_to_shortpath="${new_path}.cmd" 32408 else 32409 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 32410 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 32411 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32412 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32413 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32414 fi 32415 else 32416 input_to_shortpath="$new_path" 32417 fi 32418 32419 # Call helper function which possibly converts this using DOS-style short mode. 32420 # If so, the updated path is stored in $new_path. 32421 new_path="$input_to_shortpath" 32422 32423 input_path="$input_to_shortpath" 32424 # Check if we need to convert this using DOS-style short mode. If the path 32425 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32426 # take no chances and rewrite it. 32427 # Note: m4 eats our [], so we need to use [ and ] instead. 32428 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32429 if test "x$has_forbidden_chars" != x; then 32430 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32431 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32432 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32433 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32434 # Going to short mode and back again did indeed matter. Since short mode is 32435 # case insensitive, let's make it lowercase to improve readability. 32436 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32437 # Now convert it back to Unix-stile (cygpath) 32438 input_path=`$CYGPATH -u "$shortmode_path"` 32439 new_path="$input_path" 32440 fi 32441 fi 32442 32443 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32444 if test "x$test_cygdrive_prefix" = x; then 32445 # As a simple fix, exclude /usr/bin since it's not a real path. 32446 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32447 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32448 # a path prefixed by /cygdrive for fixpath to work. 32449 new_path="$CYGWIN_ROOT_PATH$input_path" 32450 fi 32451 fi 32452 32453 # remove trailing .exe if any 32454 new_path="${new_path/%.exe/}" 32455 32456 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32457 32458 # First separate the path from the arguments. This will split at the first 32459 # space. 32460 complete="$AS" 32461 path="${complete%% *}" 32462 tmp="$complete EOL" 32463 arguments="${tmp#* }" 32464 32465 # Input might be given as Windows format, start by converting to 32466 # unix format. 32467 new_path="$path" 32468 32469 windows_path="$new_path" 32470 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32471 unix_path=`$CYGPATH -u "$windows_path"` 32472 new_path="$unix_path" 32473 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32474 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32475 new_path="$unix_path" 32476 fi 32477 32478 32479 # Now try to locate executable using which 32480 new_path=`$WHICH "$new_path" 2> /dev/null` 32481 32482 if test "x$new_path" = x; then 32483 # Oops. Which didn't find the executable. 32484 # The splitting of arguments from the executable at a space might have been incorrect, 32485 # since paths with space are more likely in Windows. Give it another try with the whole 32486 # argument. 32487 path="$complete" 32488 arguments="EOL" 32489 new_path="$path" 32490 32491 windows_path="$new_path" 32492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32493 unix_path=`$CYGPATH -u "$windows_path"` 32494 new_path="$unix_path" 32495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32496 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32497 new_path="$unix_path" 32498 fi 32499 32500 32501 new_path=`$WHICH "$new_path" 2> /dev/null` 32502 # bat and cmd files are not always considered executable in MSYS causing which 32503 # to not find them 32504 if test "x$new_path" = x \ 32505 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32506 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32507 new_path="$path" 32508 32509 windows_path="$new_path" 32510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32511 unix_path=`$CYGPATH -u "$windows_path"` 32512 new_path="$unix_path" 32513 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32514 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32515 new_path="$unix_path" 32516 fi 32517 32518 fi 32519 32520 if test "x$new_path" = x; then 32521 # It's still not found. Now this is an unrecoverable error. 32522 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32523 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32524 has_space=`$ECHO "$complete" | $GREP " "` 32525 if test "x$has_space" != x; then 32526 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32527 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32528 fi 32529 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32530 fi 32531 fi 32532 32533 # Now new_path has a complete unix path to the binary 32534 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32535 # Keep paths in /bin as-is, but remove trailing .exe if any 32536 new_path="${new_path/%.exe/}" 32537 # Do not save /bin paths to all_fixpath_prefixes! 32538 else 32539 # Not in mixed or Windows style, start by that. 32540 new_path=`cmd //c echo $new_path` 32541 32542 input_path="$new_path" 32543 # Check if we need to convert this using DOS-style short mode. If the path 32544 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32545 # take no chances and rewrite it. 32546 # Note: m4 eats our [], so we need to use [ and ] instead. 32547 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32548 if test "x$has_forbidden_chars" != x; then 32549 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32550 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32551 fi 32552 32553 # Output is in $new_path 32554 32555 windows_path="$new_path" 32556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32557 unix_path=`$CYGPATH -u "$windows_path"` 32558 new_path="$unix_path" 32559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32560 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32561 new_path="$unix_path" 32562 fi 32563 32564 # remove trailing .exe if any 32565 new_path="${new_path/%.exe/}" 32566 32567 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32568 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32569 fi 32570 32571 else 32572 # We're on a posix platform. Hooray! :) 32573 # First separate the path from the arguments. This will split at the first 32574 # space. 32575 complete="$AS" 32576 path="${complete%% *}" 32577 tmp="$complete EOL" 32578 arguments="${tmp#* }" 32579 32580 # Cannot rely on the command "which" here since it doesn't always work. 32581 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32582 if test -z "$is_absolute_path"; then 32583 # Path to executable is not absolute. Find it. 32584 IFS_save="$IFS" 32585 IFS=: 32586 for p in $PATH; do 32587 if test -f "$p/$path" && test -x "$p/$path"; then 32588 new_path="$p/$path" 32589 break 32590 fi 32591 done 32592 IFS="$IFS_save" 32593 else 32594 # This is an absolute path, we can use it without further modifications. 32595 new_path="$path" 32596 fi 32597 32598 if test "x$new_path" = x; then 32599 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32600 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32601 has_space=`$ECHO "$complete" | $GREP " "` 32602 if test "x$has_space" != x; then 32603 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32604 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32605 fi 32606 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32607 fi 32608 fi 32609 32610 # Now join together the path and the arguments once again 32611 if test "x$arguments" != xEOL; then 32612 new_complete="$new_path ${arguments% *}" 32613 else 32614 new_complete="$new_path" 32615 fi 32616 32617 if test "x$complete" != "x$new_complete"; then 32618 AS="$new_complete" 32619 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 32620 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 32621 fi 32622 32623 else 32624 # FIXME: is this correct for microsoft? 32625 AS="$CC -c" 32626 fi 32627 32628 32629 # 32630 # Setup the archiver (AR) 32631 # 32632 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32633 # The corresponding ar tool is lib.exe (used to create static libraries) 32634 # Extract the first word of "lib", so it can be a program name with args. 32635 set dummy lib; ac_word=$2 32636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32637 $as_echo_n "checking for $ac_word... " >&6; } 32638 if ${ac_cv_prog_AR+:} false; then : 32639 $as_echo_n "(cached) " >&6 32640 else 32641 if test -n "$AR"; then 32642 ac_cv_prog_AR="$AR" # Let the user override the test. 32643 else 32644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32645 for as_dir in $PATH 32646 do 32647 IFS=$as_save_IFS 32648 test -z "$as_dir" && as_dir=. 32649 for ac_exec_ext in '' $ac_executable_extensions; do 32650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32651 ac_cv_prog_AR="lib" 32652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32653 break 2 32654 fi 32655 done 32656 done 32657 IFS=$as_save_IFS 32658 32659 fi 32660 fi 32661 AR=$ac_cv_prog_AR 32662 if test -n "$AR"; then 32663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32664 $as_echo "$AR" >&6; } 32665 else 32666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32667 $as_echo "no" >&6; } 32668 fi 32669 32670 32671 else 32672 32673 32674 # Publish this variable in the help. 32675 32676 32677 if test "x$AR" = x; then 32678 # The variable is not set by user, try to locate tool using the code snippet 32679 if test -n "$ac_tool_prefix"; then 32680 for ac_prog in ar 32681 do 32682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32683 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32685 $as_echo_n "checking for $ac_word... " >&6; } 32686 if ${ac_cv_prog_AR+:} false; then : 32687 $as_echo_n "(cached) " >&6 32688 else 32689 if test -n "$AR"; then 32690 ac_cv_prog_AR="$AR" # Let the user override the test. 32691 else 32692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32693 for as_dir in $PATH 32694 do 32695 IFS=$as_save_IFS 32696 test -z "$as_dir" && as_dir=. 32697 for ac_exec_ext in '' $ac_executable_extensions; do 32698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32699 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32701 break 2 32702 fi 32703 done 32704 done 32705 IFS=$as_save_IFS 32706 32707 fi 32708 fi 32709 AR=$ac_cv_prog_AR 32710 if test -n "$AR"; then 32711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32712 $as_echo "$AR" >&6; } 32713 else 32714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32715 $as_echo "no" >&6; } 32716 fi 32717 32718 32719 test -n "$AR" && break 32720 done 32721 fi 32722 if test -z "$AR"; then 32723 ac_ct_AR=$AR 32724 for ac_prog in ar 32725 do 32726 # Extract the first word of "$ac_prog", so it can be a program name with args. 32727 set dummy $ac_prog; ac_word=$2 32728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32729 $as_echo_n "checking for $ac_word... " >&6; } 32730 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32731 $as_echo_n "(cached) " >&6 32732 else 32733 if test -n "$ac_ct_AR"; then 32734 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32735 else 32736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32737 for as_dir in $PATH 32738 do 32739 IFS=$as_save_IFS 32740 test -z "$as_dir" && as_dir=. 32741 for ac_exec_ext in '' $ac_executable_extensions; do 32742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32743 ac_cv_prog_ac_ct_AR="$ac_prog" 32744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32745 break 2 32746 fi 32747 done 32748 done 32749 IFS=$as_save_IFS 32750 32751 fi 32752 fi 32753 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32754 if test -n "$ac_ct_AR"; then 32755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32756 $as_echo "$ac_ct_AR" >&6; } 32757 else 32758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32759 $as_echo "no" >&6; } 32760 fi 32761 32762 32763 test -n "$ac_ct_AR" && break 32764 done 32765 32766 if test "x$ac_ct_AR" = x; then 32767 AR="" 32768 else 32769 case $cross_compiling:$ac_tool_warned in 32770 yes:) 32771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32773 ac_tool_warned=yes ;; 32774 esac 32775 AR=$ac_ct_AR 32776 fi 32777 fi 32778 32779 else 32780 # The variable is set, but is it from the command line or the environment? 32781 32782 # Try to remove the string !AR! from our list. 32783 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 32784 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32785 # If it failed, the variable was not from the command line. Ignore it, 32786 # but warn the user (except for BASH, which is always set by the calling BASH). 32787 if test "xAR" != xBASH; then 32788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 32789 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 32790 fi 32791 # Try to locate tool using the code snippet 32792 if test -n "$ac_tool_prefix"; then 32793 for ac_prog in ar 32794 do 32795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32798 $as_echo_n "checking for $ac_word... " >&6; } 32799 if ${ac_cv_prog_AR+:} false; then : 32800 $as_echo_n "(cached) " >&6 32801 else 32802 if test -n "$AR"; then 32803 ac_cv_prog_AR="$AR" # Let the user override the test. 32804 else 32805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32806 for as_dir in $PATH 32807 do 32808 IFS=$as_save_IFS 32809 test -z "$as_dir" && as_dir=. 32810 for ac_exec_ext in '' $ac_executable_extensions; do 32811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32812 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32814 break 2 32815 fi 32816 done 32817 done 32818 IFS=$as_save_IFS 32819 32820 fi 32821 fi 32822 AR=$ac_cv_prog_AR 32823 if test -n "$AR"; then 32824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32825 $as_echo "$AR" >&6; } 32826 else 32827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32828 $as_echo "no" >&6; } 32829 fi 32830 32831 32832 test -n "$AR" && break 32833 done 32834 fi 32835 if test -z "$AR"; then 32836 ac_ct_AR=$AR 32837 for ac_prog in ar 32838 do 32839 # Extract the first word of "$ac_prog", so it can be a program name with args. 32840 set dummy $ac_prog; ac_word=$2 32841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32842 $as_echo_n "checking for $ac_word... " >&6; } 32843 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32844 $as_echo_n "(cached) " >&6 32845 else 32846 if test -n "$ac_ct_AR"; then 32847 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32848 else 32849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32850 for as_dir in $PATH 32851 do 32852 IFS=$as_save_IFS 32853 test -z "$as_dir" && as_dir=. 32854 for ac_exec_ext in '' $ac_executable_extensions; do 32855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32856 ac_cv_prog_ac_ct_AR="$ac_prog" 32857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32858 break 2 32859 fi 32860 done 32861 done 32862 IFS=$as_save_IFS 32863 32864 fi 32865 fi 32866 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32867 if test -n "$ac_ct_AR"; then 32868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32869 $as_echo "$ac_ct_AR" >&6; } 32870 else 32871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32872 $as_echo "no" >&6; } 32873 fi 32874 32875 32876 test -n "$ac_ct_AR" && break 32877 done 32878 32879 if test "x$ac_ct_AR" = x; then 32880 AR="" 32881 else 32882 case $cross_compiling:$ac_tool_warned in 32883 yes:) 32884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32886 ac_tool_warned=yes ;; 32887 esac 32888 AR=$ac_ct_AR 32889 fi 32890 fi 32891 32892 else 32893 # If it succeeded, then it was overridden by the user. We will use it 32894 # for the tool. 32895 32896 # First remove it from the list of overridden variables, so we can test 32897 # for unknown variables in the end. 32898 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32899 32900 # Check if the provided tool contains a complete path. 32901 tool_specified="$AR" 32902 tool_basename="${tool_specified##*/}" 32903 if test "x$tool_basename" = "x$tool_specified"; then 32904 # A command without a complete path is provided, search $PATH. 32905 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 32906 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 32907 # Extract the first word of "$tool_basename", so it can be a program name with args. 32908 set dummy $tool_basename; ac_word=$2 32909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32910 $as_echo_n "checking for $ac_word... " >&6; } 32911 if ${ac_cv_path_AR+:} false; then : 32912 $as_echo_n "(cached) " >&6 32913 else 32914 case $AR in 32915 [\\/]* | ?:[\\/]*) 32916 ac_cv_path_AR="$AR" # Let the user override the test with a path. 32917 ;; 32918 *) 32919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32920 for as_dir in $PATH 32921 do 32922 IFS=$as_save_IFS 32923 test -z "$as_dir" && as_dir=. 32924 for ac_exec_ext in '' $ac_executable_extensions; do 32925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32926 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 32927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32928 break 2 32929 fi 32930 done 32931 done 32932 IFS=$as_save_IFS 32933 32934 ;; 32935 esac 32936 fi 32937 AR=$ac_cv_path_AR 32938 if test -n "$AR"; then 32939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32940 $as_echo "$AR" >&6; } 32941 else 32942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32943 $as_echo "no" >&6; } 32944 fi 32945 32946 32947 if test "x$AR" = x; then 32948 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32949 fi 32950 else 32951 # Otherwise we believe it is a complete path. Use it as it is. 32952 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 32953 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 32954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 32955 $as_echo_n "checking for AR... " >&6; } 32956 if test ! -x "$tool_specified"; then 32957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32958 $as_echo "not found" >&6; } 32959 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 32960 fi 32961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32962 $as_echo "$tool_specified" >&6; } 32963 fi 32964 fi 32965 fi 32966 32967 32968 fi 32969 32970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32971 32972 # First separate the path from the arguments. This will split at the first 32973 # space. 32974 complete="$AR" 32975 path="${complete%% *}" 32976 tmp="$complete EOL" 32977 arguments="${tmp#* }" 32978 32979 # Input might be given as Windows format, start by converting to 32980 # unix format. 32981 new_path=`$CYGPATH -u "$path"` 32982 32983 # Now try to locate executable using which 32984 new_path=`$WHICH "$new_path" 2> /dev/null` 32985 # bat and cmd files are not always considered executable in cygwin causing which 32986 # to not find them 32987 if test "x$new_path" = x \ 32988 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32989 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32990 new_path=`$CYGPATH -u "$path"` 32991 fi 32992 if test "x$new_path" = x; then 32993 # Oops. Which didn't find the executable. 32994 # The splitting of arguments from the executable at a space might have been incorrect, 32995 # since paths with space are more likely in Windows. Give it another try with the whole 32996 # argument. 32997 path="$complete" 32998 arguments="EOL" 32999 new_path=`$CYGPATH -u "$path"` 33000 new_path=`$WHICH "$new_path" 2> /dev/null` 33001 # bat and cmd files are not always considered executable in cygwin causing which 33002 # to not find them 33003 if test "x$new_path" = x \ 33004 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33005 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33006 new_path=`$CYGPATH -u "$path"` 33007 fi 33008 if test "x$new_path" = x; then 33009 # It's still not found. Now this is an unrecoverable error. 33010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33011 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33012 has_space=`$ECHO "$complete" | $GREP " "` 33013 if test "x$has_space" != x; then 33014 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33015 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33016 fi 33017 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33018 fi 33019 fi 33020 33021 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33022 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33023 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33024 # "foo.exe" is OK but "foo" is an error. 33025 # 33026 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33027 # It is also a way to make sure we got the proper file name for the real test later on. 33028 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33029 if test "x$test_shortpath" = x; then 33030 # Short path failed, file does not exist as specified. 33031 # Try adding .exe or .cmd 33032 if test -f "${new_path}.exe"; then 33033 input_to_shortpath="${new_path}.exe" 33034 elif test -f "${new_path}.cmd"; then 33035 input_to_shortpath="${new_path}.cmd" 33036 else 33037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 33038 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 33039 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33040 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33041 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33042 fi 33043 else 33044 input_to_shortpath="$new_path" 33045 fi 33046 33047 # Call helper function which possibly converts this using DOS-style short mode. 33048 # If so, the updated path is stored in $new_path. 33049 new_path="$input_to_shortpath" 33050 33051 input_path="$input_to_shortpath" 33052 # Check if we need to convert this using DOS-style short mode. If the path 33053 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33054 # take no chances and rewrite it. 33055 # Note: m4 eats our [], so we need to use [ and ] instead. 33056 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33057 if test "x$has_forbidden_chars" != x; then 33058 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33059 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33060 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33061 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33062 # Going to short mode and back again did indeed matter. Since short mode is 33063 # case insensitive, let's make it lowercase to improve readability. 33064 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33065 # Now convert it back to Unix-stile (cygpath) 33066 input_path=`$CYGPATH -u "$shortmode_path"` 33067 new_path="$input_path" 33068 fi 33069 fi 33070 33071 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33072 if test "x$test_cygdrive_prefix" = x; then 33073 # As a simple fix, exclude /usr/bin since it's not a real path. 33074 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33075 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33076 # a path prefixed by /cygdrive for fixpath to work. 33077 new_path="$CYGWIN_ROOT_PATH$input_path" 33078 fi 33079 fi 33080 33081 # remove trailing .exe if any 33082 new_path="${new_path/%.exe/}" 33083 33084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33085 33086 # First separate the path from the arguments. This will split at the first 33087 # space. 33088 complete="$AR" 33089 path="${complete%% *}" 33090 tmp="$complete EOL" 33091 arguments="${tmp#* }" 33092 33093 # Input might be given as Windows format, start by converting to 33094 # unix format. 33095 new_path="$path" 33096 33097 windows_path="$new_path" 33098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33099 unix_path=`$CYGPATH -u "$windows_path"` 33100 new_path="$unix_path" 33101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33102 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33103 new_path="$unix_path" 33104 fi 33105 33106 33107 # Now try to locate executable using which 33108 new_path=`$WHICH "$new_path" 2> /dev/null` 33109 33110 if test "x$new_path" = x; then 33111 # Oops. Which didn't find the executable. 33112 # The splitting of arguments from the executable at a space might have been incorrect, 33113 # since paths with space are more likely in Windows. Give it another try with the whole 33114 # argument. 33115 path="$complete" 33116 arguments="EOL" 33117 new_path="$path" 33118 33119 windows_path="$new_path" 33120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33121 unix_path=`$CYGPATH -u "$windows_path"` 33122 new_path="$unix_path" 33123 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33124 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33125 new_path="$unix_path" 33126 fi 33127 33128 33129 new_path=`$WHICH "$new_path" 2> /dev/null` 33130 # bat and cmd files are not always considered executable in MSYS causing which 33131 # to not find them 33132 if test "x$new_path" = x \ 33133 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33134 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33135 new_path="$path" 33136 33137 windows_path="$new_path" 33138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33139 unix_path=`$CYGPATH -u "$windows_path"` 33140 new_path="$unix_path" 33141 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33142 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33143 new_path="$unix_path" 33144 fi 33145 33146 fi 33147 33148 if test "x$new_path" = x; then 33149 # It's still not found. Now this is an unrecoverable error. 33150 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33151 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33152 has_space=`$ECHO "$complete" | $GREP " "` 33153 if test "x$has_space" != x; then 33154 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33155 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33156 fi 33157 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33158 fi 33159 fi 33160 33161 # Now new_path has a complete unix path to the binary 33162 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33163 # Keep paths in /bin as-is, but remove trailing .exe if any 33164 new_path="${new_path/%.exe/}" 33165 # Do not save /bin paths to all_fixpath_prefixes! 33166 else 33167 # Not in mixed or Windows style, start by that. 33168 new_path=`cmd //c echo $new_path` 33169 33170 input_path="$new_path" 33171 # Check if we need to convert this using DOS-style short mode. If the path 33172 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33173 # take no chances and rewrite it. 33174 # Note: m4 eats our [], so we need to use [ and ] instead. 33175 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33176 if test "x$has_forbidden_chars" != x; then 33177 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33178 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33179 fi 33180 33181 # Output is in $new_path 33182 33183 windows_path="$new_path" 33184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33185 unix_path=`$CYGPATH -u "$windows_path"` 33186 new_path="$unix_path" 33187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33188 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33189 new_path="$unix_path" 33190 fi 33191 33192 # remove trailing .exe if any 33193 new_path="${new_path/%.exe/}" 33194 33195 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33196 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33197 fi 33198 33199 else 33200 # We're on a posix platform. Hooray! :) 33201 # First separate the path from the arguments. This will split at the first 33202 # space. 33203 complete="$AR" 33204 path="${complete%% *}" 33205 tmp="$complete EOL" 33206 arguments="${tmp#* }" 33207 33208 # Cannot rely on the command "which" here since it doesn't always work. 33209 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33210 if test -z "$is_absolute_path"; then 33211 # Path to executable is not absolute. Find it. 33212 IFS_save="$IFS" 33213 IFS=: 33214 for p in $PATH; do 33215 if test -f "$p/$path" && test -x "$p/$path"; then 33216 new_path="$p/$path" 33217 break 33218 fi 33219 done 33220 IFS="$IFS_save" 33221 else 33222 # This is an absolute path, we can use it without further modifications. 33223 new_path="$path" 33224 fi 33225 33226 if test "x$new_path" = x; then 33227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33228 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33229 has_space=`$ECHO "$complete" | $GREP " "` 33230 if test "x$has_space" != x; then 33231 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33232 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33233 fi 33234 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33235 fi 33236 fi 33237 33238 # Now join together the path and the arguments once again 33239 if test "x$arguments" != xEOL; then 33240 new_complete="$new_path ${arguments% *}" 33241 else 33242 new_complete="$new_path" 33243 fi 33244 33245 if test "x$complete" != "x$new_complete"; then 33246 AR="$new_complete" 33247 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 33248 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 33249 fi 33250 33251 33252 33253 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 33254 ac_ext=m 33255 ac_cpp='$OBJCPP $CPPFLAGS' 33256 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33257 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33258 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 33259 if test -n "$ac_tool_prefix"; then 33260 for ac_prog in gcc objcc objc cc CC 33261 do 33262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33265 $as_echo_n "checking for $ac_word... " >&6; } 33266 if ${ac_cv_prog_OBJC+:} false; then : 33267 $as_echo_n "(cached) " >&6 33268 else 33269 if test -n "$OBJC"; then 33270 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 33271 else 33272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33273 for as_dir in $PATH 33274 do 33275 IFS=$as_save_IFS 33276 test -z "$as_dir" && as_dir=. 33277 for ac_exec_ext in '' $ac_executable_extensions; do 33278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33279 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 33280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33281 break 2 33282 fi 33283 done 33284 done 33285 IFS=$as_save_IFS 33286 33287 fi 33288 fi 33289 OBJC=$ac_cv_prog_OBJC 33290 if test -n "$OBJC"; then 33291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 33292 $as_echo "$OBJC" >&6; } 33293 else 33294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33295 $as_echo "no" >&6; } 33296 fi 33297 33298 33299 test -n "$OBJC" && break 33300 done 33301 fi 33302 if test -z "$OBJC"; then 33303 ac_ct_OBJC=$OBJC 33304 for ac_prog in gcc objcc objc cc CC 33305 do 33306 # Extract the first word of "$ac_prog", so it can be a program name with args. 33307 set dummy $ac_prog; ac_word=$2 33308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33309 $as_echo_n "checking for $ac_word... " >&6; } 33310 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 33311 $as_echo_n "(cached) " >&6 33312 else 33313 if test -n "$ac_ct_OBJC"; then 33314 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 33315 else 33316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33317 for as_dir in $PATH 33318 do 33319 IFS=$as_save_IFS 33320 test -z "$as_dir" && as_dir=. 33321 for ac_exec_ext in '' $ac_executable_extensions; do 33322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33323 ac_cv_prog_ac_ct_OBJC="$ac_prog" 33324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33325 break 2 33326 fi 33327 done 33328 done 33329 IFS=$as_save_IFS 33330 33331 fi 33332 fi 33333 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 33334 if test -n "$ac_ct_OBJC"; then 33335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 33336 $as_echo "$ac_ct_OBJC" >&6; } 33337 else 33338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33339 $as_echo "no" >&6; } 33340 fi 33341 33342 33343 test -n "$ac_ct_OBJC" && break 33344 done 33345 33346 if test "x$ac_ct_OBJC" = x; then 33347 OBJC="gcc" 33348 else 33349 case $cross_compiling:$ac_tool_warned in 33350 yes:) 33351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33353 ac_tool_warned=yes ;; 33354 esac 33355 OBJC=$ac_ct_OBJC 33356 fi 33357 fi 33358 33359 # Provide some information about the compiler. 33360 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 33361 set X $ac_compile 33362 ac_compiler=$2 33363 for ac_option in --version -v -V -qversion; do 33364 { { ac_try="$ac_compiler $ac_option >&5" 33365 case "(($ac_try" in 33366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33367 *) ac_try_echo=$ac_try;; 33368 esac 33369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33370 $as_echo "$ac_try_echo"; } >&5 33371 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 33372 ac_status=$? 33373 if test -s conftest.err; then 33374 sed '10a\ 33375 ... rest of stderr output deleted ... 33376 10q' conftest.err >conftest.er1 33377 cat conftest.er1 >&5 33378 fi 33379 rm -f conftest.er1 conftest.err 33380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33381 test $ac_status = 0; } 33382 done 33383 33384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 33385 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 33386 if ${ac_cv_objc_compiler_gnu+:} false; then : 33387 $as_echo_n "(cached) " >&6 33388 else 33389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33390 /* end confdefs.h. */ 33391 33392 int 33393 main () 33394 { 33395 #ifndef __GNUC__ 33396 choke me 33397 #endif 33398 33399 ; 33400 return 0; 33401 } 33402 _ACEOF 33403 if ac_fn_objc_try_compile "$LINENO"; then : 33404 ac_compiler_gnu=yes 33405 else 33406 ac_compiler_gnu=no 33407 fi 33408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33409 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 33410 33411 fi 33412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 33413 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 33414 if test $ac_compiler_gnu = yes; then 33415 GOBJC=yes 33416 else 33417 GOBJC= 33418 fi 33419 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 33420 ac_save_OBJCFLAGS=$OBJCFLAGS 33421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 33422 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 33423 if ${ac_cv_prog_objc_g+:} false; then : 33424 $as_echo_n "(cached) " >&6 33425 else 33426 ac_save_objc_werror_flag=$ac_objc_werror_flag 33427 ac_objc_werror_flag=yes 33428 ac_cv_prog_objc_g=no 33429 OBJCFLAGS="-g" 33430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33431 /* end confdefs.h. */ 33432 33433 int 33434 main () 33435 { 33436 33437 ; 33438 return 0; 33439 } 33440 _ACEOF 33441 if ac_fn_objc_try_compile "$LINENO"; then : 33442 ac_cv_prog_objc_g=yes 33443 else 33444 OBJCFLAGS="" 33445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33446 /* end confdefs.h. */ 33447 33448 int 33449 main () 33450 { 33451 33452 ; 33453 return 0; 33454 } 33455 _ACEOF 33456 if ac_fn_objc_try_compile "$LINENO"; then : 33457 33458 else 33459 ac_objc_werror_flag=$ac_save_objc_werror_flag 33460 OBJCFLAGS="-g" 33461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33462 /* end confdefs.h. */ 33463 33464 int 33465 main () 33466 { 33467 33468 ; 33469 return 0; 33470 } 33471 _ACEOF 33472 if ac_fn_objc_try_compile "$LINENO"; then : 33473 ac_cv_prog_objc_g=yes 33474 fi 33475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33476 fi 33477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33478 fi 33479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33480 ac_objc_werror_flag=$ac_save_objc_werror_flag 33481 fi 33482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 33483 $as_echo "$ac_cv_prog_objc_g" >&6; } 33484 if test "$ac_test_OBJCFLAGS" = set; then 33485 OBJCFLAGS=$ac_save_OBJCFLAGS 33486 elif test $ac_cv_prog_objc_g = yes; then 33487 if test "$GOBJC" = yes; then 33488 OBJCFLAGS="-g -O2" 33489 else 33490 OBJCFLAGS="-g" 33491 fi 33492 else 33493 if test "$GOBJC" = yes; then 33494 OBJCFLAGS="-O2" 33495 else 33496 OBJCFLAGS= 33497 fi 33498 fi 33499 ac_ext=cpp 33500 ac_cpp='$CXXCPP $CPPFLAGS' 33501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 33504 33505 33506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33507 33508 # First separate the path from the arguments. This will split at the first 33509 # space. 33510 complete="$OBJC" 33511 path="${complete%% *}" 33512 tmp="$complete EOL" 33513 arguments="${tmp#* }" 33514 33515 # Input might be given as Windows format, start by converting to 33516 # unix format. 33517 new_path=`$CYGPATH -u "$path"` 33518 33519 # Now try to locate executable using which 33520 new_path=`$WHICH "$new_path" 2> /dev/null` 33521 # bat and cmd files are not always considered executable in cygwin causing which 33522 # to not find them 33523 if test "x$new_path" = x \ 33524 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33525 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33526 new_path=`$CYGPATH -u "$path"` 33527 fi 33528 if test "x$new_path" = x; then 33529 # Oops. Which didn't find the executable. 33530 # The splitting of arguments from the executable at a space might have been incorrect, 33531 # since paths with space are more likely in Windows. Give it another try with the whole 33532 # argument. 33533 path="$complete" 33534 arguments="EOL" 33535 new_path=`$CYGPATH -u "$path"` 33536 new_path=`$WHICH "$new_path" 2> /dev/null` 33537 # bat and cmd files are not always considered executable in cygwin causing which 33538 # to not find them 33539 if test "x$new_path" = x \ 33540 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33541 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33542 new_path=`$CYGPATH -u "$path"` 33543 fi 33544 if test "x$new_path" = x; then 33545 # It's still not found. Now this is an unrecoverable error. 33546 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33547 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33548 has_space=`$ECHO "$complete" | $GREP " "` 33549 if test "x$has_space" != x; then 33550 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33551 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33552 fi 33553 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33554 fi 33555 fi 33556 33557 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33558 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33559 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33560 # "foo.exe" is OK but "foo" is an error. 33561 # 33562 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33563 # It is also a way to make sure we got the proper file name for the real test later on. 33564 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33565 if test "x$test_shortpath" = x; then 33566 # Short path failed, file does not exist as specified. 33567 # Try adding .exe or .cmd 33568 if test -f "${new_path}.exe"; then 33569 input_to_shortpath="${new_path}.exe" 33570 elif test -f "${new_path}.cmd"; then 33571 input_to_shortpath="${new_path}.cmd" 33572 else 33573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 33574 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 33575 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33576 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33577 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33578 fi 33579 else 33580 input_to_shortpath="$new_path" 33581 fi 33582 33583 # Call helper function which possibly converts this using DOS-style short mode. 33584 # If so, the updated path is stored in $new_path. 33585 new_path="$input_to_shortpath" 33586 33587 input_path="$input_to_shortpath" 33588 # Check if we need to convert this using DOS-style short mode. If the path 33589 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33590 # take no chances and rewrite it. 33591 # Note: m4 eats our [], so we need to use [ and ] instead. 33592 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33593 if test "x$has_forbidden_chars" != x; then 33594 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33595 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33596 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33597 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33598 # Going to short mode and back again did indeed matter. Since short mode is 33599 # case insensitive, let's make it lowercase to improve readability. 33600 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33601 # Now convert it back to Unix-stile (cygpath) 33602 input_path=`$CYGPATH -u "$shortmode_path"` 33603 new_path="$input_path" 33604 fi 33605 fi 33606 33607 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33608 if test "x$test_cygdrive_prefix" = x; then 33609 # As a simple fix, exclude /usr/bin since it's not a real path. 33610 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33611 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33612 # a path prefixed by /cygdrive for fixpath to work. 33613 new_path="$CYGWIN_ROOT_PATH$input_path" 33614 fi 33615 fi 33616 33617 # remove trailing .exe if any 33618 new_path="${new_path/%.exe/}" 33619 33620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33621 33622 # First separate the path from the arguments. This will split at the first 33623 # space. 33624 complete="$OBJC" 33625 path="${complete%% *}" 33626 tmp="$complete EOL" 33627 arguments="${tmp#* }" 33628 33629 # Input might be given as Windows format, start by converting to 33630 # unix format. 33631 new_path="$path" 33632 33633 windows_path="$new_path" 33634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33635 unix_path=`$CYGPATH -u "$windows_path"` 33636 new_path="$unix_path" 33637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33638 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33639 new_path="$unix_path" 33640 fi 33641 33642 33643 # Now try to locate executable using which 33644 new_path=`$WHICH "$new_path" 2> /dev/null` 33645 33646 if test "x$new_path" = x; then 33647 # Oops. Which didn't find the executable. 33648 # The splitting of arguments from the executable at a space might have been incorrect, 33649 # since paths with space are more likely in Windows. Give it another try with the whole 33650 # argument. 33651 path="$complete" 33652 arguments="EOL" 33653 new_path="$path" 33654 33655 windows_path="$new_path" 33656 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33657 unix_path=`$CYGPATH -u "$windows_path"` 33658 new_path="$unix_path" 33659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33660 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33661 new_path="$unix_path" 33662 fi 33663 33664 33665 new_path=`$WHICH "$new_path" 2> /dev/null` 33666 # bat and cmd files are not always considered executable in MSYS causing which 33667 # to not find them 33668 if test "x$new_path" = x \ 33669 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33670 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33671 new_path="$path" 33672 33673 windows_path="$new_path" 33674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33675 unix_path=`$CYGPATH -u "$windows_path"` 33676 new_path="$unix_path" 33677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33678 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33679 new_path="$unix_path" 33680 fi 33681 33682 fi 33683 33684 if test "x$new_path" = x; then 33685 # It's still not found. Now this is an unrecoverable error. 33686 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33687 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33688 has_space=`$ECHO "$complete" | $GREP " "` 33689 if test "x$has_space" != x; then 33690 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33691 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33692 fi 33693 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33694 fi 33695 fi 33696 33697 # Now new_path has a complete unix path to the binary 33698 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33699 # Keep paths in /bin as-is, but remove trailing .exe if any 33700 new_path="${new_path/%.exe/}" 33701 # Do not save /bin paths to all_fixpath_prefixes! 33702 else 33703 # Not in mixed or Windows style, start by that. 33704 new_path=`cmd //c echo $new_path` 33705 33706 input_path="$new_path" 33707 # Check if we need to convert this using DOS-style short mode. If the path 33708 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33709 # take no chances and rewrite it. 33710 # Note: m4 eats our [], so we need to use [ and ] instead. 33711 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33712 if test "x$has_forbidden_chars" != x; then 33713 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33714 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33715 fi 33716 33717 # Output is in $new_path 33718 33719 windows_path="$new_path" 33720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33721 unix_path=`$CYGPATH -u "$windows_path"` 33722 new_path="$unix_path" 33723 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33724 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33725 new_path="$unix_path" 33726 fi 33727 33728 # remove trailing .exe if any 33729 new_path="${new_path/%.exe/}" 33730 33731 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33732 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33733 fi 33734 33735 else 33736 # We're on a posix platform. Hooray! :) 33737 # First separate the path from the arguments. This will split at the first 33738 # space. 33739 complete="$OBJC" 33740 path="${complete%% *}" 33741 tmp="$complete EOL" 33742 arguments="${tmp#* }" 33743 33744 # Cannot rely on the command "which" here since it doesn't always work. 33745 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33746 if test -z "$is_absolute_path"; then 33747 # Path to executable is not absolute. Find it. 33748 IFS_save="$IFS" 33749 IFS=: 33750 for p in $PATH; do 33751 if test -f "$p/$path" && test -x "$p/$path"; then 33752 new_path="$p/$path" 33753 break 33754 fi 33755 done 33756 IFS="$IFS_save" 33757 else 33758 # This is an absolute path, we can use it without further modifications. 33759 new_path="$path" 33760 fi 33761 33762 if test "x$new_path" = x; then 33763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33764 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33765 has_space=`$ECHO "$complete" | $GREP " "` 33766 if test "x$has_space" != x; then 33767 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33768 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33769 fi 33770 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33771 fi 33772 fi 33773 33774 # Now join together the path and the arguments once again 33775 if test "x$arguments" != xEOL; then 33776 new_complete="$new_path ${arguments% *}" 33777 else 33778 new_complete="$new_path" 33779 fi 33780 33781 if test "x$complete" != "x$new_complete"; then 33782 OBJC="$new_complete" 33783 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 33784 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 33785 fi 33786 33787 33788 33789 # Publish this variable in the help. 33790 33791 33792 if test "x$LIPO" = x; then 33793 # The variable is not set by user, try to locate tool using the code snippet 33794 for ac_prog in lipo 33795 do 33796 # Extract the first word of "$ac_prog", so it can be a program name with args. 33797 set dummy $ac_prog; ac_word=$2 33798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33799 $as_echo_n "checking for $ac_word... " >&6; } 33800 if ${ac_cv_path_LIPO+:} false; then : 33801 $as_echo_n "(cached) " >&6 33802 else 33803 case $LIPO in 33804 [\\/]* | ?:[\\/]*) 33805 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33806 ;; 33807 *) 33808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33809 for as_dir in $PATH 33810 do 33811 IFS=$as_save_IFS 33812 test -z "$as_dir" && as_dir=. 33813 for ac_exec_ext in '' $ac_executable_extensions; do 33814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33815 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33817 break 2 33818 fi 33819 done 33820 done 33821 IFS=$as_save_IFS 33822 33823 ;; 33824 esac 33825 fi 33826 LIPO=$ac_cv_path_LIPO 33827 if test -n "$LIPO"; then 33828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33829 $as_echo "$LIPO" >&6; } 33830 else 33831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33832 $as_echo "no" >&6; } 33833 fi 33834 33835 33836 test -n "$LIPO" && break 33837 done 33838 33839 else 33840 # The variable is set, but is it from the command line or the environment? 33841 33842 # Try to remove the string !LIPO! from our list. 33843 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 33844 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33845 # If it failed, the variable was not from the command line. Ignore it, 33846 # but warn the user (except for BASH, which is always set by the calling BASH). 33847 if test "xLIPO" != xBASH; then 33848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 33849 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33850 fi 33851 # Try to locate tool using the code snippet 33852 for ac_prog in lipo 33853 do 33854 # Extract the first word of "$ac_prog", so it can be a program name with args. 33855 set dummy $ac_prog; ac_word=$2 33856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33857 $as_echo_n "checking for $ac_word... " >&6; } 33858 if ${ac_cv_path_LIPO+:} false; then : 33859 $as_echo_n "(cached) " >&6 33860 else 33861 case $LIPO in 33862 [\\/]* | ?:[\\/]*) 33863 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33864 ;; 33865 *) 33866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33867 for as_dir in $PATH 33868 do 33869 IFS=$as_save_IFS 33870 test -z "$as_dir" && as_dir=. 33871 for ac_exec_ext in '' $ac_executable_extensions; do 33872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33873 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33875 break 2 33876 fi 33877 done 33878 done 33879 IFS=$as_save_IFS 33880 33881 ;; 33882 esac 33883 fi 33884 LIPO=$ac_cv_path_LIPO 33885 if test -n "$LIPO"; then 33886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33887 $as_echo "$LIPO" >&6; } 33888 else 33889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33890 $as_echo "no" >&6; } 33891 fi 33892 33893 33894 test -n "$LIPO" && break 33895 done 33896 33897 else 33898 # If it succeeded, then it was overridden by the user. We will use it 33899 # for the tool. 33900 33901 # First remove it from the list of overridden variables, so we can test 33902 # for unknown variables in the end. 33903 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33904 33905 # Check if the provided tool contains a complete path. 33906 tool_specified="$LIPO" 33907 tool_basename="${tool_specified##*/}" 33908 if test "x$tool_basename" = "x$tool_specified"; then 33909 # A command without a complete path is provided, search $PATH. 33910 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33911 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33912 # Extract the first word of "$tool_basename", so it can be a program name with args. 33913 set dummy $tool_basename; ac_word=$2 33914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33915 $as_echo_n "checking for $ac_word... " >&6; } 33916 if ${ac_cv_path_LIPO+:} false; then : 33917 $as_echo_n "(cached) " >&6 33918 else 33919 case $LIPO in 33920 [\\/]* | ?:[\\/]*) 33921 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33922 ;; 33923 *) 33924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33925 for as_dir in $PATH 33926 do 33927 IFS=$as_save_IFS 33928 test -z "$as_dir" && as_dir=. 33929 for ac_exec_ext in '' $ac_executable_extensions; do 33930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33931 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33933 break 2 33934 fi 33935 done 33936 done 33937 IFS=$as_save_IFS 33938 33939 ;; 33940 esac 33941 fi 33942 LIPO=$ac_cv_path_LIPO 33943 if test -n "$LIPO"; then 33944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33945 $as_echo "$LIPO" >&6; } 33946 else 33947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33948 $as_echo "no" >&6; } 33949 fi 33950 33951 33952 if test "x$LIPO" = x; then 33953 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33954 fi 33955 else 33956 # Otherwise we believe it is a complete path. Use it as it is. 33957 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33958 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33960 $as_echo_n "checking for LIPO... " >&6; } 33961 if test ! -x "$tool_specified"; then 33962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33963 $as_echo "not found" >&6; } 33964 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33965 fi 33966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33967 $as_echo "$tool_specified" >&6; } 33968 fi 33969 fi 33970 fi 33971 33972 33973 33974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33975 33976 # First separate the path from the arguments. This will split at the first 33977 # space. 33978 complete="$LIPO" 33979 path="${complete%% *}" 33980 tmp="$complete EOL" 33981 arguments="${tmp#* }" 33982 33983 # Input might be given as Windows format, start by converting to 33984 # unix format. 33985 new_path=`$CYGPATH -u "$path"` 33986 33987 # Now try to locate executable using which 33988 new_path=`$WHICH "$new_path" 2> /dev/null` 33989 # bat and cmd files are not always considered executable in cygwin causing which 33990 # to not find them 33991 if test "x$new_path" = x \ 33992 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33993 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33994 new_path=`$CYGPATH -u "$path"` 33995 fi 33996 if test "x$new_path" = x; then 33997 # Oops. Which didn't find the executable. 33998 # The splitting of arguments from the executable at a space might have been incorrect, 33999 # since paths with space are more likely in Windows. Give it another try with the whole 34000 # argument. 34001 path="$complete" 34002 arguments="EOL" 34003 new_path=`$CYGPATH -u "$path"` 34004 new_path=`$WHICH "$new_path" 2> /dev/null` 34005 # bat and cmd files are not always considered executable in cygwin causing which 34006 # to not find them 34007 if test "x$new_path" = x \ 34008 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34009 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34010 new_path=`$CYGPATH -u "$path"` 34011 fi 34012 if test "x$new_path" = x; then 34013 # It's still not found. Now this is an unrecoverable error. 34014 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34015 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34016 has_space=`$ECHO "$complete" | $GREP " "` 34017 if test "x$has_space" != x; then 34018 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34019 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34020 fi 34021 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34022 fi 34023 fi 34024 34025 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34026 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34027 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34028 # "foo.exe" is OK but "foo" is an error. 34029 # 34030 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34031 # It is also a way to make sure we got the proper file name for the real test later on. 34032 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34033 if test "x$test_shortpath" = x; then 34034 # Short path failed, file does not exist as specified. 34035 # Try adding .exe or .cmd 34036 if test -f "${new_path}.exe"; then 34037 input_to_shortpath="${new_path}.exe" 34038 elif test -f "${new_path}.cmd"; then 34039 input_to_shortpath="${new_path}.cmd" 34040 else 34041 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 34042 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 34043 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34044 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34045 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34046 fi 34047 else 34048 input_to_shortpath="$new_path" 34049 fi 34050 34051 # Call helper function which possibly converts this using DOS-style short mode. 34052 # If so, the updated path is stored in $new_path. 34053 new_path="$input_to_shortpath" 34054 34055 input_path="$input_to_shortpath" 34056 # Check if we need to convert this using DOS-style short mode. If the path 34057 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34058 # take no chances and rewrite it. 34059 # Note: m4 eats our [], so we need to use [ and ] instead. 34060 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34061 if test "x$has_forbidden_chars" != x; then 34062 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34063 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34064 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34065 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34066 # Going to short mode and back again did indeed matter. Since short mode is 34067 # case insensitive, let's make it lowercase to improve readability. 34068 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34069 # Now convert it back to Unix-stile (cygpath) 34070 input_path=`$CYGPATH -u "$shortmode_path"` 34071 new_path="$input_path" 34072 fi 34073 fi 34074 34075 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34076 if test "x$test_cygdrive_prefix" = x; then 34077 # As a simple fix, exclude /usr/bin since it's not a real path. 34078 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34079 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34080 # a path prefixed by /cygdrive for fixpath to work. 34081 new_path="$CYGWIN_ROOT_PATH$input_path" 34082 fi 34083 fi 34084 34085 # remove trailing .exe if any 34086 new_path="${new_path/%.exe/}" 34087 34088 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34089 34090 # First separate the path from the arguments. This will split at the first 34091 # space. 34092 complete="$LIPO" 34093 path="${complete%% *}" 34094 tmp="$complete EOL" 34095 arguments="${tmp#* }" 34096 34097 # Input might be given as Windows format, start by converting to 34098 # unix format. 34099 new_path="$path" 34100 34101 windows_path="$new_path" 34102 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34103 unix_path=`$CYGPATH -u "$windows_path"` 34104 new_path="$unix_path" 34105 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34106 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34107 new_path="$unix_path" 34108 fi 34109 34110 34111 # Now try to locate executable using which 34112 new_path=`$WHICH "$new_path" 2> /dev/null` 34113 34114 if test "x$new_path" = x; then 34115 # Oops. Which didn't find the executable. 34116 # The splitting of arguments from the executable at a space might have been incorrect, 34117 # since paths with space are more likely in Windows. Give it another try with the whole 34118 # argument. 34119 path="$complete" 34120 arguments="EOL" 34121 new_path="$path" 34122 34123 windows_path="$new_path" 34124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34125 unix_path=`$CYGPATH -u "$windows_path"` 34126 new_path="$unix_path" 34127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34128 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34129 new_path="$unix_path" 34130 fi 34131 34132 34133 new_path=`$WHICH "$new_path" 2> /dev/null` 34134 # bat and cmd files are not always considered executable in MSYS causing which 34135 # to not find them 34136 if test "x$new_path" = x \ 34137 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34138 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34139 new_path="$path" 34140 34141 windows_path="$new_path" 34142 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34143 unix_path=`$CYGPATH -u "$windows_path"` 34144 new_path="$unix_path" 34145 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34146 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34147 new_path="$unix_path" 34148 fi 34149 34150 fi 34151 34152 if test "x$new_path" = x; then 34153 # It's still not found. Now this is an unrecoverable error. 34154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34155 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34156 has_space=`$ECHO "$complete" | $GREP " "` 34157 if test "x$has_space" != x; then 34158 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34159 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34160 fi 34161 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34162 fi 34163 fi 34164 34165 # Now new_path has a complete unix path to the binary 34166 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34167 # Keep paths in /bin as-is, but remove trailing .exe if any 34168 new_path="${new_path/%.exe/}" 34169 # Do not save /bin paths to all_fixpath_prefixes! 34170 else 34171 # Not in mixed or Windows style, start by that. 34172 new_path=`cmd //c echo $new_path` 34173 34174 input_path="$new_path" 34175 # Check if we need to convert this using DOS-style short mode. If the path 34176 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34177 # take no chances and rewrite it. 34178 # Note: m4 eats our [], so we need to use [ and ] instead. 34179 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34180 if test "x$has_forbidden_chars" != x; then 34181 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34182 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34183 fi 34184 34185 # Output is in $new_path 34186 34187 windows_path="$new_path" 34188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34189 unix_path=`$CYGPATH -u "$windows_path"` 34190 new_path="$unix_path" 34191 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34192 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34193 new_path="$unix_path" 34194 fi 34195 34196 # remove trailing .exe if any 34197 new_path="${new_path/%.exe/}" 34198 34199 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34200 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34201 fi 34202 34203 else 34204 # We're on a posix platform. Hooray! :) 34205 # First separate the path from the arguments. This will split at the first 34206 # space. 34207 complete="$LIPO" 34208 path="${complete%% *}" 34209 tmp="$complete EOL" 34210 arguments="${tmp#* }" 34211 34212 # Cannot rely on the command "which" here since it doesn't always work. 34213 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34214 if test -z "$is_absolute_path"; then 34215 # Path to executable is not absolute. Find it. 34216 IFS_save="$IFS" 34217 IFS=: 34218 for p in $PATH; do 34219 if test -f "$p/$path" && test -x "$p/$path"; then 34220 new_path="$p/$path" 34221 break 34222 fi 34223 done 34224 IFS="$IFS_save" 34225 else 34226 # This is an absolute path, we can use it without further modifications. 34227 new_path="$path" 34228 fi 34229 34230 if test "x$new_path" = x; then 34231 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34232 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34233 has_space=`$ECHO "$complete" | $GREP " "` 34234 if test "x$has_space" != x; then 34235 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34236 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34237 fi 34238 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34239 fi 34240 fi 34241 34242 # Now join together the path and the arguments once again 34243 if test "x$arguments" != xEOL; then 34244 new_complete="$new_path ${arguments% *}" 34245 else 34246 new_complete="$new_path" 34247 fi 34248 34249 if test "x$complete" != "x$new_complete"; then 34250 LIPO="$new_complete" 34251 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 34252 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 34253 fi 34254 34255 else 34256 OBJC= 34257 fi 34258 34259 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34260 # Extract the first word of "mt", so it can be a program name with args. 34261 set dummy mt; ac_word=$2 34262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34263 $as_echo_n "checking for $ac_word... " >&6; } 34264 if ${ac_cv_prog_MT+:} false; then : 34265 $as_echo_n "(cached) " >&6 34266 else 34267 if test -n "$MT"; then 34268 ac_cv_prog_MT="$MT" # Let the user override the test. 34269 else 34270 ac_prog_rejected=no 34271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34272 for as_dir in $PATH 34273 do 34274 IFS=$as_save_IFS 34275 test -z "$as_dir" && as_dir=. 34276 for ac_exec_ext in '' $ac_executable_extensions; do 34277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 34279 ac_prog_rejected=yes 34280 continue 34281 fi 34282 ac_cv_prog_MT="mt" 34283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34284 break 2 34285 fi 34286 done 34287 done 34288 IFS=$as_save_IFS 34289 34290 if test $ac_prog_rejected = yes; then 34291 # We found a bogon in the path, so make sure we never use it. 34292 set dummy $ac_cv_prog_MT 34293 shift 34294 if test $# != 0; then 34295 # We chose a different compiler from the bogus one. 34296 # However, it has the same basename, so the bogon will be chosen 34297 # first if we set MT to just the basename; use the full file name. 34298 shift 34299 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 34300 fi 34301 fi 34302 fi 34303 fi 34304 MT=$ac_cv_prog_MT 34305 if test -n "$MT"; then 34306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 34307 $as_echo "$MT" >&6; } 34308 else 34309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34310 $as_echo "no" >&6; } 34311 fi 34312 34313 34314 34315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34316 34317 # First separate the path from the arguments. This will split at the first 34318 # space. 34319 complete="$MT" 34320 path="${complete%% *}" 34321 tmp="$complete EOL" 34322 arguments="${tmp#* }" 34323 34324 # Input might be given as Windows format, start by converting to 34325 # unix format. 34326 new_path=`$CYGPATH -u "$path"` 34327 34328 # Now try to locate executable using which 34329 new_path=`$WHICH "$new_path" 2> /dev/null` 34330 # bat and cmd files are not always considered executable in cygwin causing which 34331 # to not find them 34332 if test "x$new_path" = x \ 34333 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34334 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34335 new_path=`$CYGPATH -u "$path"` 34336 fi 34337 if test "x$new_path" = x; then 34338 # Oops. Which didn't find the executable. 34339 # The splitting of arguments from the executable at a space might have been incorrect, 34340 # since paths with space are more likely in Windows. Give it another try with the whole 34341 # argument. 34342 path="$complete" 34343 arguments="EOL" 34344 new_path=`$CYGPATH -u "$path"` 34345 new_path=`$WHICH "$new_path" 2> /dev/null` 34346 # bat and cmd files are not always considered executable in cygwin causing which 34347 # to not find them 34348 if test "x$new_path" = x \ 34349 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34350 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34351 new_path=`$CYGPATH -u "$path"` 34352 fi 34353 if test "x$new_path" = x; then 34354 # It's still not found. Now this is an unrecoverable error. 34355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34356 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34357 has_space=`$ECHO "$complete" | $GREP " "` 34358 if test "x$has_space" != x; then 34359 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34360 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34361 fi 34362 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34363 fi 34364 fi 34365 34366 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34367 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34368 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34369 # "foo.exe" is OK but "foo" is an error. 34370 # 34371 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34372 # It is also a way to make sure we got the proper file name for the real test later on. 34373 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34374 if test "x$test_shortpath" = x; then 34375 # Short path failed, file does not exist as specified. 34376 # Try adding .exe or .cmd 34377 if test -f "${new_path}.exe"; then 34378 input_to_shortpath="${new_path}.exe" 34379 elif test -f "${new_path}.cmd"; then 34380 input_to_shortpath="${new_path}.cmd" 34381 else 34382 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 34383 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 34384 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34385 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34386 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34387 fi 34388 else 34389 input_to_shortpath="$new_path" 34390 fi 34391 34392 # Call helper function which possibly converts this using DOS-style short mode. 34393 # If so, the updated path is stored in $new_path. 34394 new_path="$input_to_shortpath" 34395 34396 input_path="$input_to_shortpath" 34397 # Check if we need to convert this using DOS-style short mode. If the path 34398 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34399 # take no chances and rewrite it. 34400 # Note: m4 eats our [], so we need to use [ and ] instead. 34401 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34402 if test "x$has_forbidden_chars" != x; then 34403 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34404 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34405 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34406 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34407 # Going to short mode and back again did indeed matter. Since short mode is 34408 # case insensitive, let's make it lowercase to improve readability. 34409 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34410 # Now convert it back to Unix-stile (cygpath) 34411 input_path=`$CYGPATH -u "$shortmode_path"` 34412 new_path="$input_path" 34413 fi 34414 fi 34415 34416 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34417 if test "x$test_cygdrive_prefix" = x; then 34418 # As a simple fix, exclude /usr/bin since it's not a real path. 34419 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34420 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34421 # a path prefixed by /cygdrive for fixpath to work. 34422 new_path="$CYGWIN_ROOT_PATH$input_path" 34423 fi 34424 fi 34425 34426 # remove trailing .exe if any 34427 new_path="${new_path/%.exe/}" 34428 34429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34430 34431 # First separate the path from the arguments. This will split at the first 34432 # space. 34433 complete="$MT" 34434 path="${complete%% *}" 34435 tmp="$complete EOL" 34436 arguments="${tmp#* }" 34437 34438 # Input might be given as Windows format, start by converting to 34439 # unix format. 34440 new_path="$path" 34441 34442 windows_path="$new_path" 34443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34444 unix_path=`$CYGPATH -u "$windows_path"` 34445 new_path="$unix_path" 34446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34447 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34448 new_path="$unix_path" 34449 fi 34450 34451 34452 # Now try to locate executable using which 34453 new_path=`$WHICH "$new_path" 2> /dev/null` 34454 34455 if test "x$new_path" = x; then 34456 # Oops. Which didn't find the executable. 34457 # The splitting of arguments from the executable at a space might have been incorrect, 34458 # since paths with space are more likely in Windows. Give it another try with the whole 34459 # argument. 34460 path="$complete" 34461 arguments="EOL" 34462 new_path="$path" 34463 34464 windows_path="$new_path" 34465 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34466 unix_path=`$CYGPATH -u "$windows_path"` 34467 new_path="$unix_path" 34468 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34469 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34470 new_path="$unix_path" 34471 fi 34472 34473 34474 new_path=`$WHICH "$new_path" 2> /dev/null` 34475 # bat and cmd files are not always considered executable in MSYS causing which 34476 # to not find them 34477 if test "x$new_path" = x \ 34478 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34479 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34480 new_path="$path" 34481 34482 windows_path="$new_path" 34483 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34484 unix_path=`$CYGPATH -u "$windows_path"` 34485 new_path="$unix_path" 34486 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34487 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34488 new_path="$unix_path" 34489 fi 34490 34491 fi 34492 34493 if test "x$new_path" = x; then 34494 # It's still not found. Now this is an unrecoverable error. 34495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34496 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34497 has_space=`$ECHO "$complete" | $GREP " "` 34498 if test "x$has_space" != x; then 34499 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34500 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34501 fi 34502 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34503 fi 34504 fi 34505 34506 # Now new_path has a complete unix path to the binary 34507 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34508 # Keep paths in /bin as-is, but remove trailing .exe if any 34509 new_path="${new_path/%.exe/}" 34510 # Do not save /bin paths to all_fixpath_prefixes! 34511 else 34512 # Not in mixed or Windows style, start by that. 34513 new_path=`cmd //c echo $new_path` 34514 34515 input_path="$new_path" 34516 # Check if we need to convert this using DOS-style short mode. If the path 34517 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34518 # take no chances and rewrite it. 34519 # Note: m4 eats our [], so we need to use [ and ] instead. 34520 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34521 if test "x$has_forbidden_chars" != x; then 34522 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34523 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34524 fi 34525 34526 # Output is in $new_path 34527 34528 windows_path="$new_path" 34529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34530 unix_path=`$CYGPATH -u "$windows_path"` 34531 new_path="$unix_path" 34532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34533 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34534 new_path="$unix_path" 34535 fi 34536 34537 # remove trailing .exe if any 34538 new_path="${new_path/%.exe/}" 34539 34540 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34541 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34542 fi 34543 34544 else 34545 # We're on a posix platform. Hooray! :) 34546 # First separate the path from the arguments. This will split at the first 34547 # space. 34548 complete="$MT" 34549 path="${complete%% *}" 34550 tmp="$complete EOL" 34551 arguments="${tmp#* }" 34552 34553 # Cannot rely on the command "which" here since it doesn't always work. 34554 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34555 if test -z "$is_absolute_path"; then 34556 # Path to executable is not absolute. Find it. 34557 IFS_save="$IFS" 34558 IFS=: 34559 for p in $PATH; do 34560 if test -f "$p/$path" && test -x "$p/$path"; then 34561 new_path="$p/$path" 34562 break 34563 fi 34564 done 34565 IFS="$IFS_save" 34566 else 34567 # This is an absolute path, we can use it without further modifications. 34568 new_path="$path" 34569 fi 34570 34571 if test "x$new_path" = x; then 34572 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34573 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34574 has_space=`$ECHO "$complete" | $GREP " "` 34575 if test "x$has_space" != x; then 34576 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34577 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34578 fi 34579 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34580 fi 34581 fi 34582 34583 # Now join together the path and the arguments once again 34584 if test "x$arguments" != xEOL; then 34585 new_complete="$new_path ${arguments% *}" 34586 else 34587 new_complete="$new_path" 34588 fi 34589 34590 if test "x$complete" != "x$new_complete"; then 34591 MT="$new_complete" 34592 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34593 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34594 fi 34595 34596 # Setup the resource compiler (RC) 34597 # Extract the first word of "rc", so it can be a program name with args. 34598 set dummy rc; ac_word=$2 34599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34600 $as_echo_n "checking for $ac_word... " >&6; } 34601 if ${ac_cv_prog_RC+:} false; then : 34602 $as_echo_n "(cached) " >&6 34603 else 34604 if test -n "$RC"; then 34605 ac_cv_prog_RC="$RC" # Let the user override the test. 34606 else 34607 ac_prog_rejected=no 34608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34609 for as_dir in $PATH 34610 do 34611 IFS=$as_save_IFS 34612 test -z "$as_dir" && as_dir=. 34613 for ac_exec_ext in '' $ac_executable_extensions; do 34614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34616 ac_prog_rejected=yes 34617 continue 34618 fi 34619 ac_cv_prog_RC="rc" 34620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34621 break 2 34622 fi 34623 done 34624 done 34625 IFS=$as_save_IFS 34626 34627 if test $ac_prog_rejected = yes; then 34628 # We found a bogon in the path, so make sure we never use it. 34629 set dummy $ac_cv_prog_RC 34630 shift 34631 if test $# != 0; then 34632 # We chose a different compiler from the bogus one. 34633 # However, it has the same basename, so the bogon will be chosen 34634 # first if we set RC to just the basename; use the full file name. 34635 shift 34636 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34637 fi 34638 fi 34639 fi 34640 fi 34641 RC=$ac_cv_prog_RC 34642 if test -n "$RC"; then 34643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34644 $as_echo "$RC" >&6; } 34645 else 34646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34647 $as_echo "no" >&6; } 34648 fi 34649 34650 34651 34652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34653 34654 # First separate the path from the arguments. This will split at the first 34655 # space. 34656 complete="$RC" 34657 path="${complete%% *}" 34658 tmp="$complete EOL" 34659 arguments="${tmp#* }" 34660 34661 # Input might be given as Windows format, start by converting to 34662 # unix format. 34663 new_path=`$CYGPATH -u "$path"` 34664 34665 # Now try to locate executable using which 34666 new_path=`$WHICH "$new_path" 2> /dev/null` 34667 # bat and cmd files are not always considered executable in cygwin causing which 34668 # to not find them 34669 if test "x$new_path" = x \ 34670 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34671 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34672 new_path=`$CYGPATH -u "$path"` 34673 fi 34674 if test "x$new_path" = x; then 34675 # Oops. Which didn't find the executable. 34676 # The splitting of arguments from the executable at a space might have been incorrect, 34677 # since paths with space are more likely in Windows. Give it another try with the whole 34678 # argument. 34679 path="$complete" 34680 arguments="EOL" 34681 new_path=`$CYGPATH -u "$path"` 34682 new_path=`$WHICH "$new_path" 2> /dev/null` 34683 # bat and cmd files are not always considered executable in cygwin causing which 34684 # to not find them 34685 if test "x$new_path" = x \ 34686 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34687 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34688 new_path=`$CYGPATH -u "$path"` 34689 fi 34690 if test "x$new_path" = x; then 34691 # It's still not found. Now this is an unrecoverable error. 34692 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34693 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34694 has_space=`$ECHO "$complete" | $GREP " "` 34695 if test "x$has_space" != x; then 34696 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34697 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34698 fi 34699 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34700 fi 34701 fi 34702 34703 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34704 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34705 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34706 # "foo.exe" is OK but "foo" is an error. 34707 # 34708 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34709 # It is also a way to make sure we got the proper file name for the real test later on. 34710 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34711 if test "x$test_shortpath" = x; then 34712 # Short path failed, file does not exist as specified. 34713 # Try adding .exe or .cmd 34714 if test -f "${new_path}.exe"; then 34715 input_to_shortpath="${new_path}.exe" 34716 elif test -f "${new_path}.cmd"; then 34717 input_to_shortpath="${new_path}.cmd" 34718 else 34719 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34720 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34721 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34722 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34723 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34724 fi 34725 else 34726 input_to_shortpath="$new_path" 34727 fi 34728 34729 # Call helper function which possibly converts this using DOS-style short mode. 34730 # If so, the updated path is stored in $new_path. 34731 new_path="$input_to_shortpath" 34732 34733 input_path="$input_to_shortpath" 34734 # Check if we need to convert this using DOS-style short mode. If the path 34735 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34736 # take no chances and rewrite it. 34737 # Note: m4 eats our [], so we need to use [ and ] instead. 34738 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34739 if test "x$has_forbidden_chars" != x; then 34740 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34741 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34742 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34743 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34744 # Going to short mode and back again did indeed matter. Since short mode is 34745 # case insensitive, let's make it lowercase to improve readability. 34746 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34747 # Now convert it back to Unix-stile (cygpath) 34748 input_path=`$CYGPATH -u "$shortmode_path"` 34749 new_path="$input_path" 34750 fi 34751 fi 34752 34753 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34754 if test "x$test_cygdrive_prefix" = x; then 34755 # As a simple fix, exclude /usr/bin since it's not a real path. 34756 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34757 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34758 # a path prefixed by /cygdrive for fixpath to work. 34759 new_path="$CYGWIN_ROOT_PATH$input_path" 34760 fi 34761 fi 34762 34763 # remove trailing .exe if any 34764 new_path="${new_path/%.exe/}" 34765 34766 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34767 34768 # First separate the path from the arguments. This will split at the first 34769 # space. 34770 complete="$RC" 34771 path="${complete%% *}" 34772 tmp="$complete EOL" 34773 arguments="${tmp#* }" 34774 34775 # Input might be given as Windows format, start by converting to 34776 # unix format. 34777 new_path="$path" 34778 34779 windows_path="$new_path" 34780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34781 unix_path=`$CYGPATH -u "$windows_path"` 34782 new_path="$unix_path" 34783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34784 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34785 new_path="$unix_path" 34786 fi 34787 34788 34789 # Now try to locate executable using which 34790 new_path=`$WHICH "$new_path" 2> /dev/null` 34791 34792 if test "x$new_path" = x; then 34793 # Oops. Which didn't find the executable. 34794 # The splitting of arguments from the executable at a space might have been incorrect, 34795 # since paths with space are more likely in Windows. Give it another try with the whole 34796 # argument. 34797 path="$complete" 34798 arguments="EOL" 34799 new_path="$path" 34800 34801 windows_path="$new_path" 34802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34803 unix_path=`$CYGPATH -u "$windows_path"` 34804 new_path="$unix_path" 34805 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34806 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34807 new_path="$unix_path" 34808 fi 34809 34810 34811 new_path=`$WHICH "$new_path" 2> /dev/null` 34812 # bat and cmd files are not always considered executable in MSYS causing which 34813 # to not find them 34814 if test "x$new_path" = x \ 34815 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34816 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34817 new_path="$path" 34818 34819 windows_path="$new_path" 34820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34821 unix_path=`$CYGPATH -u "$windows_path"` 34822 new_path="$unix_path" 34823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34824 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34825 new_path="$unix_path" 34826 fi 34827 34828 fi 34829 34830 if test "x$new_path" = x; then 34831 # It's still not found. Now this is an unrecoverable error. 34832 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34833 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34834 has_space=`$ECHO "$complete" | $GREP " "` 34835 if test "x$has_space" != x; then 34836 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34837 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34838 fi 34839 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34840 fi 34841 fi 34842 34843 # Now new_path has a complete unix path to the binary 34844 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34845 # Keep paths in /bin as-is, but remove trailing .exe if any 34846 new_path="${new_path/%.exe/}" 34847 # Do not save /bin paths to all_fixpath_prefixes! 34848 else 34849 # Not in mixed or Windows style, start by that. 34850 new_path=`cmd //c echo $new_path` 34851 34852 input_path="$new_path" 34853 # Check if we need to convert this using DOS-style short mode. If the path 34854 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34855 # take no chances and rewrite it. 34856 # Note: m4 eats our [], so we need to use [ and ] instead. 34857 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34858 if test "x$has_forbidden_chars" != x; then 34859 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34860 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34861 fi 34862 34863 # Output is in $new_path 34864 34865 windows_path="$new_path" 34866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34867 unix_path=`$CYGPATH -u "$windows_path"` 34868 new_path="$unix_path" 34869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34870 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34871 new_path="$unix_path" 34872 fi 34873 34874 # remove trailing .exe if any 34875 new_path="${new_path/%.exe/}" 34876 34877 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34878 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34879 fi 34880 34881 else 34882 # We're on a posix platform. Hooray! :) 34883 # First separate the path from the arguments. This will split at the first 34884 # space. 34885 complete="$RC" 34886 path="${complete%% *}" 34887 tmp="$complete EOL" 34888 arguments="${tmp#* }" 34889 34890 # Cannot rely on the command "which" here since it doesn't always work. 34891 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34892 if test -z "$is_absolute_path"; then 34893 # Path to executable is not absolute. Find it. 34894 IFS_save="$IFS" 34895 IFS=: 34896 for p in $PATH; do 34897 if test -f "$p/$path" && test -x "$p/$path"; then 34898 new_path="$p/$path" 34899 break 34900 fi 34901 done 34902 IFS="$IFS_save" 34903 else 34904 # This is an absolute path, we can use it without further modifications. 34905 new_path="$path" 34906 fi 34907 34908 if test "x$new_path" = x; then 34909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34910 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34911 has_space=`$ECHO "$complete" | $GREP " "` 34912 if test "x$has_space" != x; then 34913 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34914 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34915 fi 34916 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34917 fi 34918 fi 34919 34920 # Now join together the path and the arguments once again 34921 if test "x$arguments" != xEOL; then 34922 new_complete="$new_path ${arguments% *}" 34923 else 34924 new_complete="$new_path" 34925 fi 34926 34927 if test "x$complete" != "x$new_complete"; then 34928 RC="$new_complete" 34929 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34930 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34931 fi 34932 34933 # Extract the first word of "dumpbin", so it can be a program name with args. 34934 set dummy dumpbin; ac_word=$2 34935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34936 $as_echo_n "checking for $ac_word... " >&6; } 34937 if ${ac_cv_prog_DUMPBIN+:} false; then : 34938 $as_echo_n "(cached) " >&6 34939 else 34940 if test -n "$DUMPBIN"; then 34941 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34942 else 34943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34944 for as_dir in $PATH 34945 do 34946 IFS=$as_save_IFS 34947 test -z "$as_dir" && as_dir=. 34948 for ac_exec_ext in '' $ac_executable_extensions; do 34949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34950 ac_cv_prog_DUMPBIN="dumpbin" 34951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34952 break 2 34953 fi 34954 done 34955 done 34956 IFS=$as_save_IFS 34957 34958 fi 34959 fi 34960 DUMPBIN=$ac_cv_prog_DUMPBIN 34961 if test -n "$DUMPBIN"; then 34962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34963 $as_echo "$DUMPBIN" >&6; } 34964 else 34965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34966 $as_echo "no" >&6; } 34967 fi 34968 34969 34970 34971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34972 34973 # First separate the path from the arguments. This will split at the first 34974 # space. 34975 complete="$DUMPBIN" 34976 path="${complete%% *}" 34977 tmp="$complete EOL" 34978 arguments="${tmp#* }" 34979 34980 # Input might be given as Windows format, start by converting to 34981 # unix format. 34982 new_path=`$CYGPATH -u "$path"` 34983 34984 # Now try to locate executable using which 34985 new_path=`$WHICH "$new_path" 2> /dev/null` 34986 # bat and cmd files are not always considered executable in cygwin causing which 34987 # to not find them 34988 if test "x$new_path" = x \ 34989 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34990 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34991 new_path=`$CYGPATH -u "$path"` 34992 fi 34993 if test "x$new_path" = x; then 34994 # Oops. Which didn't find the executable. 34995 # The splitting of arguments from the executable at a space might have been incorrect, 34996 # since paths with space are more likely in Windows. Give it another try with the whole 34997 # argument. 34998 path="$complete" 34999 arguments="EOL" 35000 new_path=`$CYGPATH -u "$path"` 35001 new_path=`$WHICH "$new_path" 2> /dev/null` 35002 # bat and cmd files are not always considered executable in cygwin causing which 35003 # to not find them 35004 if test "x$new_path" = x \ 35005 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35006 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35007 new_path=`$CYGPATH -u "$path"` 35008 fi 35009 if test "x$new_path" = x; then 35010 # It's still not found. Now this is an unrecoverable error. 35011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35012 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35013 has_space=`$ECHO "$complete" | $GREP " "` 35014 if test "x$has_space" != x; then 35015 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35016 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35017 fi 35018 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35019 fi 35020 fi 35021 35022 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35023 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35024 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35025 # "foo.exe" is OK but "foo" is an error. 35026 # 35027 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35028 # It is also a way to make sure we got the proper file name for the real test later on. 35029 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35030 if test "x$test_shortpath" = x; then 35031 # Short path failed, file does not exist as specified. 35032 # Try adding .exe or .cmd 35033 if test -f "${new_path}.exe"; then 35034 input_to_shortpath="${new_path}.exe" 35035 elif test -f "${new_path}.cmd"; then 35036 input_to_shortpath="${new_path}.cmd" 35037 else 35038 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 35039 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 35040 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35041 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35042 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35043 fi 35044 else 35045 input_to_shortpath="$new_path" 35046 fi 35047 35048 # Call helper function which possibly converts this using DOS-style short mode. 35049 # If so, the updated path is stored in $new_path. 35050 new_path="$input_to_shortpath" 35051 35052 input_path="$input_to_shortpath" 35053 # Check if we need to convert this using DOS-style short mode. If the path 35054 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35055 # take no chances and rewrite it. 35056 # Note: m4 eats our [], so we need to use [ and ] instead. 35057 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35058 if test "x$has_forbidden_chars" != x; then 35059 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35060 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35061 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35062 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35063 # Going to short mode and back again did indeed matter. Since short mode is 35064 # case insensitive, let's make it lowercase to improve readability. 35065 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35066 # Now convert it back to Unix-stile (cygpath) 35067 input_path=`$CYGPATH -u "$shortmode_path"` 35068 new_path="$input_path" 35069 fi 35070 fi 35071 35072 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35073 if test "x$test_cygdrive_prefix" = x; then 35074 # As a simple fix, exclude /usr/bin since it's not a real path. 35075 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35076 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35077 # a path prefixed by /cygdrive for fixpath to work. 35078 new_path="$CYGWIN_ROOT_PATH$input_path" 35079 fi 35080 fi 35081 35082 # remove trailing .exe if any 35083 new_path="${new_path/%.exe/}" 35084 35085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35086 35087 # First separate the path from the arguments. This will split at the first 35088 # space. 35089 complete="$DUMPBIN" 35090 path="${complete%% *}" 35091 tmp="$complete EOL" 35092 arguments="${tmp#* }" 35093 35094 # Input might be given as Windows format, start by converting to 35095 # unix format. 35096 new_path="$path" 35097 35098 windows_path="$new_path" 35099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35100 unix_path=`$CYGPATH -u "$windows_path"` 35101 new_path="$unix_path" 35102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35103 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35104 new_path="$unix_path" 35105 fi 35106 35107 35108 # Now try to locate executable using which 35109 new_path=`$WHICH "$new_path" 2> /dev/null` 35110 35111 if test "x$new_path" = x; then 35112 # Oops. Which didn't find the executable. 35113 # The splitting of arguments from the executable at a space might have been incorrect, 35114 # since paths with space are more likely in Windows. Give it another try with the whole 35115 # argument. 35116 path="$complete" 35117 arguments="EOL" 35118 new_path="$path" 35119 35120 windows_path="$new_path" 35121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35122 unix_path=`$CYGPATH -u "$windows_path"` 35123 new_path="$unix_path" 35124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35125 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35126 new_path="$unix_path" 35127 fi 35128 35129 35130 new_path=`$WHICH "$new_path" 2> /dev/null` 35131 # bat and cmd files are not always considered executable in MSYS causing which 35132 # to not find them 35133 if test "x$new_path" = x \ 35134 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35135 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35136 new_path="$path" 35137 35138 windows_path="$new_path" 35139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35140 unix_path=`$CYGPATH -u "$windows_path"` 35141 new_path="$unix_path" 35142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35143 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35144 new_path="$unix_path" 35145 fi 35146 35147 fi 35148 35149 if test "x$new_path" = x; then 35150 # It's still not found. Now this is an unrecoverable error. 35151 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35152 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35153 has_space=`$ECHO "$complete" | $GREP " "` 35154 if test "x$has_space" != x; then 35155 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35156 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35157 fi 35158 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35159 fi 35160 fi 35161 35162 # Now new_path has a complete unix path to the binary 35163 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35164 # Keep paths in /bin as-is, but remove trailing .exe if any 35165 new_path="${new_path/%.exe/}" 35166 # Do not save /bin paths to all_fixpath_prefixes! 35167 else 35168 # Not in mixed or Windows style, start by that. 35169 new_path=`cmd //c echo $new_path` 35170 35171 input_path="$new_path" 35172 # Check if we need to convert this using DOS-style short mode. If the path 35173 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35174 # take no chances and rewrite it. 35175 # Note: m4 eats our [], so we need to use [ and ] instead. 35176 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35177 if test "x$has_forbidden_chars" != x; then 35178 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35179 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35180 fi 35181 35182 # Output is in $new_path 35183 35184 windows_path="$new_path" 35185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35186 unix_path=`$CYGPATH -u "$windows_path"` 35187 new_path="$unix_path" 35188 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35189 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35190 new_path="$unix_path" 35191 fi 35192 35193 # remove trailing .exe if any 35194 new_path="${new_path/%.exe/}" 35195 35196 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35197 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35198 fi 35199 35200 else 35201 # We're on a posix platform. Hooray! :) 35202 # First separate the path from the arguments. This will split at the first 35203 # space. 35204 complete="$DUMPBIN" 35205 path="${complete%% *}" 35206 tmp="$complete EOL" 35207 arguments="${tmp#* }" 35208 35209 # Cannot rely on the command "which" here since it doesn't always work. 35210 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35211 if test -z "$is_absolute_path"; then 35212 # Path to executable is not absolute. Find it. 35213 IFS_save="$IFS" 35214 IFS=: 35215 for p in $PATH; do 35216 if test -f "$p/$path" && test -x "$p/$path"; then 35217 new_path="$p/$path" 35218 break 35219 fi 35220 done 35221 IFS="$IFS_save" 35222 else 35223 # This is an absolute path, we can use it without further modifications. 35224 new_path="$path" 35225 fi 35226 35227 if test "x$new_path" = x; then 35228 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35229 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35230 has_space=`$ECHO "$complete" | $GREP " "` 35231 if test "x$has_space" != x; then 35232 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35233 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35234 fi 35235 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35236 fi 35237 fi 35238 35239 # Now join together the path and the arguments once again 35240 if test "x$arguments" != xEOL; then 35241 new_complete="$new_path ${arguments% *}" 35242 else 35243 new_complete="$new_path" 35244 fi 35245 35246 if test "x$complete" != "x$new_complete"; then 35247 DUMPBIN="$new_complete" 35248 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 35249 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 35250 fi 35251 35252 fi 35253 35254 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35255 35256 35257 # Publish this variable in the help. 35258 35259 35260 if test "x$STRIP" = x; then 35261 # The variable is not set by user, try to locate tool using the code snippet 35262 for ac_prog in strip 35263 do 35264 # Extract the first word of "$ac_prog", so it can be a program name with args. 35265 set dummy $ac_prog; ac_word=$2 35266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35267 $as_echo_n "checking for $ac_word... " >&6; } 35268 if ${ac_cv_path_STRIP+:} false; then : 35269 $as_echo_n "(cached) " >&6 35270 else 35271 case $STRIP in 35272 [\\/]* | ?:[\\/]*) 35273 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35274 ;; 35275 *) 35276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35277 for as_dir in $PATH 35278 do 35279 IFS=$as_save_IFS 35280 test -z "$as_dir" && as_dir=. 35281 for ac_exec_ext in '' $ac_executable_extensions; do 35282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35283 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35285 break 2 35286 fi 35287 done 35288 done 35289 IFS=$as_save_IFS 35290 35291 ;; 35292 esac 35293 fi 35294 STRIP=$ac_cv_path_STRIP 35295 if test -n "$STRIP"; then 35296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35297 $as_echo "$STRIP" >&6; } 35298 else 35299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35300 $as_echo "no" >&6; } 35301 fi 35302 35303 35304 test -n "$STRIP" && break 35305 done 35306 35307 else 35308 # The variable is set, but is it from the command line or the environment? 35309 35310 # Try to remove the string !STRIP! from our list. 35311 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 35312 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35313 # If it failed, the variable was not from the command line. Ignore it, 35314 # but warn the user (except for BASH, which is always set by the calling BASH). 35315 if test "xSTRIP" != xBASH; then 35316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 35317 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 35318 fi 35319 # Try to locate tool using the code snippet 35320 for ac_prog in strip 35321 do 35322 # Extract the first word of "$ac_prog", so it can be a program name with args. 35323 set dummy $ac_prog; ac_word=$2 35324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35325 $as_echo_n "checking for $ac_word... " >&6; } 35326 if ${ac_cv_path_STRIP+:} false; then : 35327 $as_echo_n "(cached) " >&6 35328 else 35329 case $STRIP in 35330 [\\/]* | ?:[\\/]*) 35331 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35332 ;; 35333 *) 35334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35335 for as_dir in $PATH 35336 do 35337 IFS=$as_save_IFS 35338 test -z "$as_dir" && as_dir=. 35339 for ac_exec_ext in '' $ac_executable_extensions; do 35340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35341 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35343 break 2 35344 fi 35345 done 35346 done 35347 IFS=$as_save_IFS 35348 35349 ;; 35350 esac 35351 fi 35352 STRIP=$ac_cv_path_STRIP 35353 if test -n "$STRIP"; then 35354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35355 $as_echo "$STRIP" >&6; } 35356 else 35357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35358 $as_echo "no" >&6; } 35359 fi 35360 35361 35362 test -n "$STRIP" && break 35363 done 35364 35365 else 35366 # If it succeeded, then it was overridden by the user. We will use it 35367 # for the tool. 35368 35369 # First remove it from the list of overridden variables, so we can test 35370 # for unknown variables in the end. 35371 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35372 35373 # Check if the provided tool contains a complete path. 35374 tool_specified="$STRIP" 35375 tool_basename="${tool_specified##*/}" 35376 if test "x$tool_basename" = "x$tool_specified"; then 35377 # A command without a complete path is provided, search $PATH. 35378 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 35379 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 35380 # Extract the first word of "$tool_basename", so it can be a program name with args. 35381 set dummy $tool_basename; ac_word=$2 35382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35383 $as_echo_n "checking for $ac_word... " >&6; } 35384 if ${ac_cv_path_STRIP+:} false; then : 35385 $as_echo_n "(cached) " >&6 35386 else 35387 case $STRIP in 35388 [\\/]* | ?:[\\/]*) 35389 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35390 ;; 35391 *) 35392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35393 for as_dir in $PATH 35394 do 35395 IFS=$as_save_IFS 35396 test -z "$as_dir" && as_dir=. 35397 for ac_exec_ext in '' $ac_executable_extensions; do 35398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35399 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35401 break 2 35402 fi 35403 done 35404 done 35405 IFS=$as_save_IFS 35406 35407 ;; 35408 esac 35409 fi 35410 STRIP=$ac_cv_path_STRIP 35411 if test -n "$STRIP"; then 35412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35413 $as_echo "$STRIP" >&6; } 35414 else 35415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35416 $as_echo "no" >&6; } 35417 fi 35418 35419 35420 if test "x$STRIP" = x; then 35421 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35422 fi 35423 else 35424 # Otherwise we believe it is a complete path. Use it as it is. 35425 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 35426 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 35427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 35428 $as_echo_n "checking for STRIP... " >&6; } 35429 if test ! -x "$tool_specified"; then 35430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35431 $as_echo "not found" >&6; } 35432 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 35433 fi 35434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35435 $as_echo "$tool_specified" >&6; } 35436 fi 35437 fi 35438 fi 35439 35440 35441 35442 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35443 35444 # First separate the path from the arguments. This will split at the first 35445 # space. 35446 complete="$STRIP" 35447 path="${complete%% *}" 35448 tmp="$complete EOL" 35449 arguments="${tmp#* }" 35450 35451 # Input might be given as Windows format, start by converting to 35452 # unix format. 35453 new_path=`$CYGPATH -u "$path"` 35454 35455 # Now try to locate executable using which 35456 new_path=`$WHICH "$new_path" 2> /dev/null` 35457 # bat and cmd files are not always considered executable in cygwin causing which 35458 # to not find them 35459 if test "x$new_path" = x \ 35460 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35461 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35462 new_path=`$CYGPATH -u "$path"` 35463 fi 35464 if test "x$new_path" = x; then 35465 # Oops. Which didn't find the executable. 35466 # The splitting of arguments from the executable at a space might have been incorrect, 35467 # since paths with space are more likely in Windows. Give it another try with the whole 35468 # argument. 35469 path="$complete" 35470 arguments="EOL" 35471 new_path=`$CYGPATH -u "$path"` 35472 new_path=`$WHICH "$new_path" 2> /dev/null` 35473 # bat and cmd files are not always considered executable in cygwin causing which 35474 # to not find them 35475 if test "x$new_path" = x \ 35476 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35477 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35478 new_path=`$CYGPATH -u "$path"` 35479 fi 35480 if test "x$new_path" = x; then 35481 # It's still not found. Now this is an unrecoverable error. 35482 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35483 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35484 has_space=`$ECHO "$complete" | $GREP " "` 35485 if test "x$has_space" != x; then 35486 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35487 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35488 fi 35489 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35490 fi 35491 fi 35492 35493 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35494 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35495 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35496 # "foo.exe" is OK but "foo" is an error. 35497 # 35498 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35499 # It is also a way to make sure we got the proper file name for the real test later on. 35500 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35501 if test "x$test_shortpath" = x; then 35502 # Short path failed, file does not exist as specified. 35503 # Try adding .exe or .cmd 35504 if test -f "${new_path}.exe"; then 35505 input_to_shortpath="${new_path}.exe" 35506 elif test -f "${new_path}.cmd"; then 35507 input_to_shortpath="${new_path}.cmd" 35508 else 35509 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 35510 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 35511 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35512 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35513 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35514 fi 35515 else 35516 input_to_shortpath="$new_path" 35517 fi 35518 35519 # Call helper function which possibly converts this using DOS-style short mode. 35520 # If so, the updated path is stored in $new_path. 35521 new_path="$input_to_shortpath" 35522 35523 input_path="$input_to_shortpath" 35524 # Check if we need to convert this using DOS-style short mode. If the path 35525 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35526 # take no chances and rewrite it. 35527 # Note: m4 eats our [], so we need to use [ and ] instead. 35528 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35529 if test "x$has_forbidden_chars" != x; then 35530 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35531 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35532 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35533 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35534 # Going to short mode and back again did indeed matter. Since short mode is 35535 # case insensitive, let's make it lowercase to improve readability. 35536 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35537 # Now convert it back to Unix-stile (cygpath) 35538 input_path=`$CYGPATH -u "$shortmode_path"` 35539 new_path="$input_path" 35540 fi 35541 fi 35542 35543 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35544 if test "x$test_cygdrive_prefix" = x; then 35545 # As a simple fix, exclude /usr/bin since it's not a real path. 35546 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35547 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35548 # a path prefixed by /cygdrive for fixpath to work. 35549 new_path="$CYGWIN_ROOT_PATH$input_path" 35550 fi 35551 fi 35552 35553 # remove trailing .exe if any 35554 new_path="${new_path/%.exe/}" 35555 35556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35557 35558 # First separate the path from the arguments. This will split at the first 35559 # space. 35560 complete="$STRIP" 35561 path="${complete%% *}" 35562 tmp="$complete EOL" 35563 arguments="${tmp#* }" 35564 35565 # Input might be given as Windows format, start by converting to 35566 # unix format. 35567 new_path="$path" 35568 35569 windows_path="$new_path" 35570 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35571 unix_path=`$CYGPATH -u "$windows_path"` 35572 new_path="$unix_path" 35573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35574 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35575 new_path="$unix_path" 35576 fi 35577 35578 35579 # Now try to locate executable using which 35580 new_path=`$WHICH "$new_path" 2> /dev/null` 35581 35582 if test "x$new_path" = x; then 35583 # Oops. Which didn't find the executable. 35584 # The splitting of arguments from the executable at a space might have been incorrect, 35585 # since paths with space are more likely in Windows. Give it another try with the whole 35586 # argument. 35587 path="$complete" 35588 arguments="EOL" 35589 new_path="$path" 35590 35591 windows_path="$new_path" 35592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35593 unix_path=`$CYGPATH -u "$windows_path"` 35594 new_path="$unix_path" 35595 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35596 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35597 new_path="$unix_path" 35598 fi 35599 35600 35601 new_path=`$WHICH "$new_path" 2> /dev/null` 35602 # bat and cmd files are not always considered executable in MSYS causing which 35603 # to not find them 35604 if test "x$new_path" = x \ 35605 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35606 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35607 new_path="$path" 35608 35609 windows_path="$new_path" 35610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35611 unix_path=`$CYGPATH -u "$windows_path"` 35612 new_path="$unix_path" 35613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35614 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35615 new_path="$unix_path" 35616 fi 35617 35618 fi 35619 35620 if test "x$new_path" = x; then 35621 # It's still not found. Now this is an unrecoverable error. 35622 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35623 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35624 has_space=`$ECHO "$complete" | $GREP " "` 35625 if test "x$has_space" != x; then 35626 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35627 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35628 fi 35629 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35630 fi 35631 fi 35632 35633 # Now new_path has a complete unix path to the binary 35634 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35635 # Keep paths in /bin as-is, but remove trailing .exe if any 35636 new_path="${new_path/%.exe/}" 35637 # Do not save /bin paths to all_fixpath_prefixes! 35638 else 35639 # Not in mixed or Windows style, start by that. 35640 new_path=`cmd //c echo $new_path` 35641 35642 input_path="$new_path" 35643 # Check if we need to convert this using DOS-style short mode. If the path 35644 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35645 # take no chances and rewrite it. 35646 # Note: m4 eats our [], so we need to use [ and ] instead. 35647 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35648 if test "x$has_forbidden_chars" != x; then 35649 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35650 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35651 fi 35652 35653 # Output is in $new_path 35654 35655 windows_path="$new_path" 35656 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35657 unix_path=`$CYGPATH -u "$windows_path"` 35658 new_path="$unix_path" 35659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35660 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35661 new_path="$unix_path" 35662 fi 35663 35664 # remove trailing .exe if any 35665 new_path="${new_path/%.exe/}" 35666 35667 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35668 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35669 fi 35670 35671 else 35672 # We're on a posix platform. Hooray! :) 35673 # First separate the path from the arguments. This will split at the first 35674 # space. 35675 complete="$STRIP" 35676 path="${complete%% *}" 35677 tmp="$complete EOL" 35678 arguments="${tmp#* }" 35679 35680 # Cannot rely on the command "which" here since it doesn't always work. 35681 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35682 if test -z "$is_absolute_path"; then 35683 # Path to executable is not absolute. Find it. 35684 IFS_save="$IFS" 35685 IFS=: 35686 for p in $PATH; do 35687 if test -f "$p/$path" && test -x "$p/$path"; then 35688 new_path="$p/$path" 35689 break 35690 fi 35691 done 35692 IFS="$IFS_save" 35693 else 35694 # This is an absolute path, we can use it without further modifications. 35695 new_path="$path" 35696 fi 35697 35698 if test "x$new_path" = x; then 35699 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35700 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35701 has_space=`$ECHO "$complete" | $GREP " "` 35702 if test "x$has_space" != x; then 35703 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35704 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35705 fi 35706 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35707 fi 35708 fi 35709 35710 # Now join together the path and the arguments once again 35711 if test "x$arguments" != xEOL; then 35712 new_complete="$new_path ${arguments% *}" 35713 else 35714 new_complete="$new_path" 35715 fi 35716 35717 if test "x$complete" != "x$new_complete"; then 35718 STRIP="$new_complete" 35719 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35720 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35721 fi 35722 35723 35724 35725 # Publish this variable in the help. 35726 35727 35728 if test "x$NM" = x; then 35729 # The variable is not set by user, try to locate tool using the code snippet 35730 for ac_prog in nm 35731 do 35732 # Extract the first word of "$ac_prog", so it can be a program name with args. 35733 set dummy $ac_prog; 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_NM+:} false; then : 35737 $as_echo_n "(cached) " >&6 35738 else 35739 case $NM in 35740 [\\/]* | ?:[\\/]*) 35741 ac_cv_path_NM="$NM" # 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_NM="$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 NM=$ac_cv_path_NM 35763 if test -n "$NM"; then 35764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35765 $as_echo "$NM" >&6; } 35766 else 35767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35768 $as_echo "no" >&6; } 35769 fi 35770 35771 35772 test -n "$NM" && break 35773 done 35774 35775 else 35776 # The variable is set, but is it from the command line or the environment? 35777 35778 # Try to remove the string !NM! from our list. 35779 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35780 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35781 # If it failed, the variable was not from the command line. Ignore it, 35782 # but warn the user (except for BASH, which is always set by the calling BASH). 35783 if test "xNM" != xBASH; then 35784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35785 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35786 fi 35787 # Try to locate tool using the code snippet 35788 for ac_prog in nm 35789 do 35790 # Extract the first word of "$ac_prog", so it can be a program name with args. 35791 set dummy $ac_prog; ac_word=$2 35792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35793 $as_echo_n "checking for $ac_word... " >&6; } 35794 if ${ac_cv_path_NM+:} false; then : 35795 $as_echo_n "(cached) " >&6 35796 else 35797 case $NM in 35798 [\\/]* | ?:[\\/]*) 35799 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35800 ;; 35801 *) 35802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35803 for as_dir in $PATH 35804 do 35805 IFS=$as_save_IFS 35806 test -z "$as_dir" && as_dir=. 35807 for ac_exec_ext in '' $ac_executable_extensions; do 35808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35809 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35811 break 2 35812 fi 35813 done 35814 done 35815 IFS=$as_save_IFS 35816 35817 ;; 35818 esac 35819 fi 35820 NM=$ac_cv_path_NM 35821 if test -n "$NM"; then 35822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35823 $as_echo "$NM" >&6; } 35824 else 35825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35826 $as_echo "no" >&6; } 35827 fi 35828 35829 35830 test -n "$NM" && break 35831 done 35832 35833 else 35834 # If it succeeded, then it was overridden by the user. We will use it 35835 # for the tool. 35836 35837 # First remove it from the list of overridden variables, so we can test 35838 # for unknown variables in the end. 35839 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35840 35841 # Check if the provided tool contains a complete path. 35842 tool_specified="$NM" 35843 tool_basename="${tool_specified##*/}" 35844 if test "x$tool_basename" = "x$tool_specified"; then 35845 # A command without a complete path is provided, search $PATH. 35846 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35847 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35848 # Extract the first word of "$tool_basename", so it can be a program name with args. 35849 set dummy $tool_basename; ac_word=$2 35850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35851 $as_echo_n "checking for $ac_word... " >&6; } 35852 if ${ac_cv_path_NM+:} false; then : 35853 $as_echo_n "(cached) " >&6 35854 else 35855 case $NM in 35856 [\\/]* | ?:[\\/]*) 35857 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35858 ;; 35859 *) 35860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35861 for as_dir in $PATH 35862 do 35863 IFS=$as_save_IFS 35864 test -z "$as_dir" && as_dir=. 35865 for ac_exec_ext in '' $ac_executable_extensions; do 35866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35867 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35869 break 2 35870 fi 35871 done 35872 done 35873 IFS=$as_save_IFS 35874 35875 ;; 35876 esac 35877 fi 35878 NM=$ac_cv_path_NM 35879 if test -n "$NM"; then 35880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35881 $as_echo "$NM" >&6; } 35882 else 35883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35884 $as_echo "no" >&6; } 35885 fi 35886 35887 35888 if test "x$NM" = x; then 35889 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35890 fi 35891 else 35892 # Otherwise we believe it is a complete path. Use it as it is. 35893 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35894 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35896 $as_echo_n "checking for NM... " >&6; } 35897 if test ! -x "$tool_specified"; then 35898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35899 $as_echo "not found" >&6; } 35900 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35901 fi 35902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35903 $as_echo "$tool_specified" >&6; } 35904 fi 35905 fi 35906 fi 35907 35908 35909 35910 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35911 35912 # First separate the path from the arguments. This will split at the first 35913 # space. 35914 complete="$NM" 35915 path="${complete%% *}" 35916 tmp="$complete EOL" 35917 arguments="${tmp#* }" 35918 35919 # Input might be given as Windows format, start by converting to 35920 # unix format. 35921 new_path=`$CYGPATH -u "$path"` 35922 35923 # Now try to locate executable using which 35924 new_path=`$WHICH "$new_path" 2> /dev/null` 35925 # bat and cmd files are not always considered executable in cygwin causing which 35926 # to not find them 35927 if test "x$new_path" = x \ 35928 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35929 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35930 new_path=`$CYGPATH -u "$path"` 35931 fi 35932 if test "x$new_path" = x; then 35933 # Oops. Which didn't find the executable. 35934 # The splitting of arguments from the executable at a space might have been incorrect, 35935 # since paths with space are more likely in Windows. Give it another try with the whole 35936 # argument. 35937 path="$complete" 35938 arguments="EOL" 35939 new_path=`$CYGPATH -u "$path"` 35940 new_path=`$WHICH "$new_path" 2> /dev/null` 35941 # bat and cmd files are not always considered executable in cygwin causing which 35942 # to not find them 35943 if test "x$new_path" = x \ 35944 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35945 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35946 new_path=`$CYGPATH -u "$path"` 35947 fi 35948 if test "x$new_path" = x; then 35949 # It's still not found. Now this is an unrecoverable error. 35950 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35951 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35952 has_space=`$ECHO "$complete" | $GREP " "` 35953 if test "x$has_space" != x; then 35954 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35955 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35956 fi 35957 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35958 fi 35959 fi 35960 35961 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35962 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35963 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35964 # "foo.exe" is OK but "foo" is an error. 35965 # 35966 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35967 # It is also a way to make sure we got the proper file name for the real test later on. 35968 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35969 if test "x$test_shortpath" = x; then 35970 # Short path failed, file does not exist as specified. 35971 # Try adding .exe or .cmd 35972 if test -f "${new_path}.exe"; then 35973 input_to_shortpath="${new_path}.exe" 35974 elif test -f "${new_path}.cmd"; then 35975 input_to_shortpath="${new_path}.cmd" 35976 else 35977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35978 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35979 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35980 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35981 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35982 fi 35983 else 35984 input_to_shortpath="$new_path" 35985 fi 35986 35987 # Call helper function which possibly converts this using DOS-style short mode. 35988 # If so, the updated path is stored in $new_path. 35989 new_path="$input_to_shortpath" 35990 35991 input_path="$input_to_shortpath" 35992 # Check if we need to convert this using DOS-style short mode. If the path 35993 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35994 # take no chances and rewrite it. 35995 # Note: m4 eats our [], so we need to use [ and ] instead. 35996 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35997 if test "x$has_forbidden_chars" != x; then 35998 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35999 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36000 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36001 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36002 # Going to short mode and back again did indeed matter. Since short mode is 36003 # case insensitive, let's make it lowercase to improve readability. 36004 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36005 # Now convert it back to Unix-stile (cygpath) 36006 input_path=`$CYGPATH -u "$shortmode_path"` 36007 new_path="$input_path" 36008 fi 36009 fi 36010 36011 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36012 if test "x$test_cygdrive_prefix" = x; then 36013 # As a simple fix, exclude /usr/bin since it's not a real path. 36014 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36015 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36016 # a path prefixed by /cygdrive for fixpath to work. 36017 new_path="$CYGWIN_ROOT_PATH$input_path" 36018 fi 36019 fi 36020 36021 # remove trailing .exe if any 36022 new_path="${new_path/%.exe/}" 36023 36024 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36025 36026 # First separate the path from the arguments. This will split at the first 36027 # space. 36028 complete="$NM" 36029 path="${complete%% *}" 36030 tmp="$complete EOL" 36031 arguments="${tmp#* }" 36032 36033 # Input might be given as Windows format, start by converting to 36034 # unix format. 36035 new_path="$path" 36036 36037 windows_path="$new_path" 36038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36039 unix_path=`$CYGPATH -u "$windows_path"` 36040 new_path="$unix_path" 36041 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36042 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36043 new_path="$unix_path" 36044 fi 36045 36046 36047 # Now try to locate executable using which 36048 new_path=`$WHICH "$new_path" 2> /dev/null` 36049 36050 if test "x$new_path" = x; then 36051 # Oops. Which didn't find the executable. 36052 # The splitting of arguments from the executable at a space might have been incorrect, 36053 # since paths with space are more likely in Windows. Give it another try with the whole 36054 # argument. 36055 path="$complete" 36056 arguments="EOL" 36057 new_path="$path" 36058 36059 windows_path="$new_path" 36060 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36061 unix_path=`$CYGPATH -u "$windows_path"` 36062 new_path="$unix_path" 36063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36064 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36065 new_path="$unix_path" 36066 fi 36067 36068 36069 new_path=`$WHICH "$new_path" 2> /dev/null` 36070 # bat and cmd files are not always considered executable in MSYS causing which 36071 # to not find them 36072 if test "x$new_path" = x \ 36073 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36074 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36075 new_path="$path" 36076 36077 windows_path="$new_path" 36078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36079 unix_path=`$CYGPATH -u "$windows_path"` 36080 new_path="$unix_path" 36081 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36082 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36083 new_path="$unix_path" 36084 fi 36085 36086 fi 36087 36088 if test "x$new_path" = x; then 36089 # It's still not found. Now this is an unrecoverable error. 36090 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36091 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36092 has_space=`$ECHO "$complete" | $GREP " "` 36093 if test "x$has_space" != x; then 36094 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36095 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36096 fi 36097 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36098 fi 36099 fi 36100 36101 # Now new_path has a complete unix path to the binary 36102 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36103 # Keep paths in /bin as-is, but remove trailing .exe if any 36104 new_path="${new_path/%.exe/}" 36105 # Do not save /bin paths to all_fixpath_prefixes! 36106 else 36107 # Not in mixed or Windows style, start by that. 36108 new_path=`cmd //c echo $new_path` 36109 36110 input_path="$new_path" 36111 # Check if we need to convert this using DOS-style short mode. If the path 36112 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36113 # take no chances and rewrite it. 36114 # Note: m4 eats our [], so we need to use [ and ] instead. 36115 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36116 if test "x$has_forbidden_chars" != x; then 36117 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36118 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36119 fi 36120 36121 # Output is in $new_path 36122 36123 windows_path="$new_path" 36124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36125 unix_path=`$CYGPATH -u "$windows_path"` 36126 new_path="$unix_path" 36127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36128 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36129 new_path="$unix_path" 36130 fi 36131 36132 # remove trailing .exe if any 36133 new_path="${new_path/%.exe/}" 36134 36135 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36136 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36137 fi 36138 36139 else 36140 # We're on a posix platform. Hooray! :) 36141 # First separate the path from the arguments. This will split at the first 36142 # space. 36143 complete="$NM" 36144 path="${complete%% *}" 36145 tmp="$complete EOL" 36146 arguments="${tmp#* }" 36147 36148 # Cannot rely on the command "which" here since it doesn't always work. 36149 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36150 if test -z "$is_absolute_path"; then 36151 # Path to executable is not absolute. Find it. 36152 IFS_save="$IFS" 36153 IFS=: 36154 for p in $PATH; do 36155 if test -f "$p/$path" && test -x "$p/$path"; then 36156 new_path="$p/$path" 36157 break 36158 fi 36159 done 36160 IFS="$IFS_save" 36161 else 36162 # This is an absolute path, we can use it without further modifications. 36163 new_path="$path" 36164 fi 36165 36166 if test "x$new_path" = x; then 36167 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36168 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36169 has_space=`$ECHO "$complete" | $GREP " "` 36170 if test "x$has_space" != x; then 36171 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36172 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36173 fi 36174 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36175 fi 36176 fi 36177 36178 # Now join together the path and the arguments once again 36179 if test "x$arguments" != xEOL; then 36180 new_complete="$new_path ${arguments% *}" 36181 else 36182 new_complete="$new_path" 36183 fi 36184 36185 if test "x$complete" != "x$new_complete"; then 36186 NM="$new_complete" 36187 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 36188 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 36189 fi 36190 36191 36192 36193 # Publish this variable in the help. 36194 36195 36196 if test "x$GNM" = x; then 36197 # The variable is not set by user, try to locate tool using the code snippet 36198 for ac_prog in gnm 36199 do 36200 # Extract the first word of "$ac_prog", so it can be a program name with args. 36201 set dummy $ac_prog; ac_word=$2 36202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36203 $as_echo_n "checking for $ac_word... " >&6; } 36204 if ${ac_cv_path_GNM+:} false; then : 36205 $as_echo_n "(cached) " >&6 36206 else 36207 case $GNM in 36208 [\\/]* | ?:[\\/]*) 36209 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36210 ;; 36211 *) 36212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36213 for as_dir in $PATH 36214 do 36215 IFS=$as_save_IFS 36216 test -z "$as_dir" && as_dir=. 36217 for ac_exec_ext in '' $ac_executable_extensions; do 36218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36219 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36221 break 2 36222 fi 36223 done 36224 done 36225 IFS=$as_save_IFS 36226 36227 ;; 36228 esac 36229 fi 36230 GNM=$ac_cv_path_GNM 36231 if test -n "$GNM"; then 36232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36233 $as_echo "$GNM" >&6; } 36234 else 36235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36236 $as_echo "no" >&6; } 36237 fi 36238 36239 36240 test -n "$GNM" && break 36241 done 36242 36243 else 36244 # The variable is set, but is it from the command line or the environment? 36245 36246 # Try to remove the string !GNM! from our list. 36247 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 36248 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36249 # If it failed, the variable was not from the command line. Ignore it, 36250 # but warn the user (except for BASH, which is always set by the calling BASH). 36251 if test "xGNM" != xBASH; then 36252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 36253 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 36254 fi 36255 # Try to locate tool using the code snippet 36256 for ac_prog in gnm 36257 do 36258 # Extract the first word of "$ac_prog", so it can be a program name with args. 36259 set dummy $ac_prog; ac_word=$2 36260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36261 $as_echo_n "checking for $ac_word... " >&6; } 36262 if ${ac_cv_path_GNM+:} false; then : 36263 $as_echo_n "(cached) " >&6 36264 else 36265 case $GNM in 36266 [\\/]* | ?:[\\/]*) 36267 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36268 ;; 36269 *) 36270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36271 for as_dir in $PATH 36272 do 36273 IFS=$as_save_IFS 36274 test -z "$as_dir" && as_dir=. 36275 for ac_exec_ext in '' $ac_executable_extensions; do 36276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36277 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36279 break 2 36280 fi 36281 done 36282 done 36283 IFS=$as_save_IFS 36284 36285 ;; 36286 esac 36287 fi 36288 GNM=$ac_cv_path_GNM 36289 if test -n "$GNM"; then 36290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36291 $as_echo "$GNM" >&6; } 36292 else 36293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36294 $as_echo "no" >&6; } 36295 fi 36296 36297 36298 test -n "$GNM" && break 36299 done 36300 36301 else 36302 # If it succeeded, then it was overridden by the user. We will use it 36303 # for the tool. 36304 36305 # First remove it from the list of overridden variables, so we can test 36306 # for unknown variables in the end. 36307 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36308 36309 # Check if the provided tool contains a complete path. 36310 tool_specified="$GNM" 36311 tool_basename="${tool_specified##*/}" 36312 if test "x$tool_basename" = "x$tool_specified"; then 36313 # A command without a complete path is provided, search $PATH. 36314 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 36315 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 36316 # Extract the first word of "$tool_basename", so it can be a program name with args. 36317 set dummy $tool_basename; ac_word=$2 36318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36319 $as_echo_n "checking for $ac_word... " >&6; } 36320 if ${ac_cv_path_GNM+:} false; then : 36321 $as_echo_n "(cached) " >&6 36322 else 36323 case $GNM in 36324 [\\/]* | ?:[\\/]*) 36325 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36326 ;; 36327 *) 36328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36329 for as_dir in $PATH 36330 do 36331 IFS=$as_save_IFS 36332 test -z "$as_dir" && as_dir=. 36333 for ac_exec_ext in '' $ac_executable_extensions; do 36334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36335 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36337 break 2 36338 fi 36339 done 36340 done 36341 IFS=$as_save_IFS 36342 36343 ;; 36344 esac 36345 fi 36346 GNM=$ac_cv_path_GNM 36347 if test -n "$GNM"; then 36348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36349 $as_echo "$GNM" >&6; } 36350 else 36351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36352 $as_echo "no" >&6; } 36353 fi 36354 36355 36356 if test "x$GNM" = x; then 36357 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36358 fi 36359 else 36360 # Otherwise we believe it is a complete path. Use it as it is. 36361 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 36362 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 36363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 36364 $as_echo_n "checking for GNM... " >&6; } 36365 if test ! -x "$tool_specified"; then 36366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36367 $as_echo "not found" >&6; } 36368 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 36369 fi 36370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36371 $as_echo "$tool_specified" >&6; } 36372 fi 36373 fi 36374 fi 36375 36376 36377 36378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36379 36380 # First separate the path from the arguments. This will split at the first 36381 # space. 36382 complete="$GNM" 36383 path="${complete%% *}" 36384 tmp="$complete EOL" 36385 arguments="${tmp#* }" 36386 36387 # Input might be given as Windows format, start by converting to 36388 # unix format. 36389 new_path=`$CYGPATH -u "$path"` 36390 36391 # Now try to locate executable using which 36392 new_path=`$WHICH "$new_path" 2> /dev/null` 36393 # bat and cmd files are not always considered executable in cygwin causing which 36394 # to not find them 36395 if test "x$new_path" = x \ 36396 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36397 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36398 new_path=`$CYGPATH -u "$path"` 36399 fi 36400 if test "x$new_path" = x; then 36401 # Oops. Which didn't find the executable. 36402 # The splitting of arguments from the executable at a space might have been incorrect, 36403 # since paths with space are more likely in Windows. Give it another try with the whole 36404 # argument. 36405 path="$complete" 36406 arguments="EOL" 36407 new_path=`$CYGPATH -u "$path"` 36408 new_path=`$WHICH "$new_path" 2> /dev/null` 36409 # bat and cmd files are not always considered executable in cygwin causing which 36410 # to not find them 36411 if test "x$new_path" = x \ 36412 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36413 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36414 new_path=`$CYGPATH -u "$path"` 36415 fi 36416 if test "x$new_path" = x; then 36417 # It's still not found. Now this is an unrecoverable error. 36418 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36419 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36420 has_space=`$ECHO "$complete" | $GREP " "` 36421 if test "x$has_space" != x; then 36422 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36423 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36424 fi 36425 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36426 fi 36427 fi 36428 36429 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36430 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36431 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36432 # "foo.exe" is OK but "foo" is an error. 36433 # 36434 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36435 # It is also a way to make sure we got the proper file name for the real test later on. 36436 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36437 if test "x$test_shortpath" = x; then 36438 # Short path failed, file does not exist as specified. 36439 # Try adding .exe or .cmd 36440 if test -f "${new_path}.exe"; then 36441 input_to_shortpath="${new_path}.exe" 36442 elif test -f "${new_path}.cmd"; then 36443 input_to_shortpath="${new_path}.cmd" 36444 else 36445 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 36446 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 36447 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36448 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36449 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36450 fi 36451 else 36452 input_to_shortpath="$new_path" 36453 fi 36454 36455 # Call helper function which possibly converts this using DOS-style short mode. 36456 # If so, the updated path is stored in $new_path. 36457 new_path="$input_to_shortpath" 36458 36459 input_path="$input_to_shortpath" 36460 # Check if we need to convert this using DOS-style short mode. If the path 36461 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36462 # take no chances and rewrite it. 36463 # Note: m4 eats our [], so we need to use [ and ] instead. 36464 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36465 if test "x$has_forbidden_chars" != x; then 36466 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36467 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36468 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36469 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36470 # Going to short mode and back again did indeed matter. Since short mode is 36471 # case insensitive, let's make it lowercase to improve readability. 36472 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36473 # Now convert it back to Unix-stile (cygpath) 36474 input_path=`$CYGPATH -u "$shortmode_path"` 36475 new_path="$input_path" 36476 fi 36477 fi 36478 36479 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36480 if test "x$test_cygdrive_prefix" = x; then 36481 # As a simple fix, exclude /usr/bin since it's not a real path. 36482 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36483 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36484 # a path prefixed by /cygdrive for fixpath to work. 36485 new_path="$CYGWIN_ROOT_PATH$input_path" 36486 fi 36487 fi 36488 36489 # remove trailing .exe if any 36490 new_path="${new_path/%.exe/}" 36491 36492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36493 36494 # First separate the path from the arguments. This will split at the first 36495 # space. 36496 complete="$GNM" 36497 path="${complete%% *}" 36498 tmp="$complete EOL" 36499 arguments="${tmp#* }" 36500 36501 # Input might be given as Windows format, start by converting to 36502 # unix format. 36503 new_path="$path" 36504 36505 windows_path="$new_path" 36506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36507 unix_path=`$CYGPATH -u "$windows_path"` 36508 new_path="$unix_path" 36509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36510 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36511 new_path="$unix_path" 36512 fi 36513 36514 36515 # Now try to locate executable using which 36516 new_path=`$WHICH "$new_path" 2> /dev/null` 36517 36518 if test "x$new_path" = x; then 36519 # Oops. Which didn't find the executable. 36520 # The splitting of arguments from the executable at a space might have been incorrect, 36521 # since paths with space are more likely in Windows. Give it another try with the whole 36522 # argument. 36523 path="$complete" 36524 arguments="EOL" 36525 new_path="$path" 36526 36527 windows_path="$new_path" 36528 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36529 unix_path=`$CYGPATH -u "$windows_path"` 36530 new_path="$unix_path" 36531 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36532 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36533 new_path="$unix_path" 36534 fi 36535 36536 36537 new_path=`$WHICH "$new_path" 2> /dev/null` 36538 # bat and cmd files are not always considered executable in MSYS causing which 36539 # to not find them 36540 if test "x$new_path" = x \ 36541 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36542 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36543 new_path="$path" 36544 36545 windows_path="$new_path" 36546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36547 unix_path=`$CYGPATH -u "$windows_path"` 36548 new_path="$unix_path" 36549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36550 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36551 new_path="$unix_path" 36552 fi 36553 36554 fi 36555 36556 if test "x$new_path" = x; then 36557 # It's still not found. Now this is an unrecoverable error. 36558 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36559 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36560 has_space=`$ECHO "$complete" | $GREP " "` 36561 if test "x$has_space" != x; then 36562 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36563 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36564 fi 36565 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36566 fi 36567 fi 36568 36569 # Now new_path has a complete unix path to the binary 36570 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36571 # Keep paths in /bin as-is, but remove trailing .exe if any 36572 new_path="${new_path/%.exe/}" 36573 # Do not save /bin paths to all_fixpath_prefixes! 36574 else 36575 # Not in mixed or Windows style, start by that. 36576 new_path=`cmd //c echo $new_path` 36577 36578 input_path="$new_path" 36579 # Check if we need to convert this using DOS-style short mode. If the path 36580 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36581 # take no chances and rewrite it. 36582 # Note: m4 eats our [], so we need to use [ and ] instead. 36583 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36584 if test "x$has_forbidden_chars" != x; then 36585 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36586 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36587 fi 36588 36589 # Output is in $new_path 36590 36591 windows_path="$new_path" 36592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36593 unix_path=`$CYGPATH -u "$windows_path"` 36594 new_path="$unix_path" 36595 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36596 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36597 new_path="$unix_path" 36598 fi 36599 36600 # remove trailing .exe if any 36601 new_path="${new_path/%.exe/}" 36602 36603 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36604 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36605 fi 36606 36607 else 36608 # We're on a posix platform. Hooray! :) 36609 # First separate the path from the arguments. This will split at the first 36610 # space. 36611 complete="$GNM" 36612 path="${complete%% *}" 36613 tmp="$complete EOL" 36614 arguments="${tmp#* }" 36615 36616 # Cannot rely on the command "which" here since it doesn't always work. 36617 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36618 if test -z "$is_absolute_path"; then 36619 # Path to executable is not absolute. Find it. 36620 IFS_save="$IFS" 36621 IFS=: 36622 for p in $PATH; do 36623 if test -f "$p/$path" && test -x "$p/$path"; then 36624 new_path="$p/$path" 36625 break 36626 fi 36627 done 36628 IFS="$IFS_save" 36629 else 36630 # This is an absolute path, we can use it without further modifications. 36631 new_path="$path" 36632 fi 36633 36634 if test "x$new_path" = x; then 36635 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36636 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36637 has_space=`$ECHO "$complete" | $GREP " "` 36638 if test "x$has_space" != x; then 36639 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36640 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36641 fi 36642 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36643 fi 36644 fi 36645 36646 # Now join together the path and the arguments once again 36647 if test "x$arguments" != xEOL; then 36648 new_complete="$new_path ${arguments% *}" 36649 else 36650 new_complete="$new_path" 36651 fi 36652 36653 if test "x$complete" != "x$new_complete"; then 36654 GNM="$new_complete" 36655 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36656 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36657 fi 36658 36659 36660 36661 36662 # Publish this variable in the help. 36663 36664 36665 if test "x$MCS" = x; then 36666 # The variable is not set by user, try to locate tool using the code snippet 36667 for ac_prog in mcs 36668 do 36669 # Extract the first word of "$ac_prog", so it can be a program name with args. 36670 set dummy $ac_prog; ac_word=$2 36671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36672 $as_echo_n "checking for $ac_word... " >&6; } 36673 if ${ac_cv_path_MCS+:} false; then : 36674 $as_echo_n "(cached) " >&6 36675 else 36676 case $MCS in 36677 [\\/]* | ?:[\\/]*) 36678 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36679 ;; 36680 *) 36681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36682 for as_dir in $PATH 36683 do 36684 IFS=$as_save_IFS 36685 test -z "$as_dir" && as_dir=. 36686 for ac_exec_ext in '' $ac_executable_extensions; do 36687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36688 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36690 break 2 36691 fi 36692 done 36693 done 36694 IFS=$as_save_IFS 36695 36696 ;; 36697 esac 36698 fi 36699 MCS=$ac_cv_path_MCS 36700 if test -n "$MCS"; then 36701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36702 $as_echo "$MCS" >&6; } 36703 else 36704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36705 $as_echo "no" >&6; } 36706 fi 36707 36708 36709 test -n "$MCS" && break 36710 done 36711 36712 else 36713 # The variable is set, but is it from the command line or the environment? 36714 36715 # Try to remove the string !MCS! from our list. 36716 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 36717 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36718 # If it failed, the variable was not from the command line. Ignore it, 36719 # but warn the user (except for BASH, which is always set by the calling BASH). 36720 if test "xMCS" != xBASH; then 36721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 36722 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 36723 fi 36724 # Try to locate tool using the code snippet 36725 for ac_prog in mcs 36726 do 36727 # Extract the first word of "$ac_prog", so it can be a program name with args. 36728 set dummy $ac_prog; ac_word=$2 36729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36730 $as_echo_n "checking for $ac_word... " >&6; } 36731 if ${ac_cv_path_MCS+:} false; then : 36732 $as_echo_n "(cached) " >&6 36733 else 36734 case $MCS in 36735 [\\/]* | ?:[\\/]*) 36736 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36737 ;; 36738 *) 36739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36740 for as_dir in $PATH 36741 do 36742 IFS=$as_save_IFS 36743 test -z "$as_dir" && as_dir=. 36744 for ac_exec_ext in '' $ac_executable_extensions; do 36745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36746 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36748 break 2 36749 fi 36750 done 36751 done 36752 IFS=$as_save_IFS 36753 36754 ;; 36755 esac 36756 fi 36757 MCS=$ac_cv_path_MCS 36758 if test -n "$MCS"; then 36759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36760 $as_echo "$MCS" >&6; } 36761 else 36762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36763 $as_echo "no" >&6; } 36764 fi 36765 36766 36767 test -n "$MCS" && break 36768 done 36769 36770 else 36771 # If it succeeded, then it was overridden by the user. We will use it 36772 # for the tool. 36773 36774 # First remove it from the list of overridden variables, so we can test 36775 # for unknown variables in the end. 36776 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36777 36778 # Check if the provided tool contains a complete path. 36779 tool_specified="$MCS" 36780 tool_basename="${tool_specified##*/}" 36781 if test "x$tool_basename" = "x$tool_specified"; then 36782 # A command without a complete path is provided, search $PATH. 36783 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 36784 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 36785 # Extract the first word of "$tool_basename", so it can be a program name with args. 36786 set dummy $tool_basename; ac_word=$2 36787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36788 $as_echo_n "checking for $ac_word... " >&6; } 36789 if ${ac_cv_path_MCS+:} false; then : 36790 $as_echo_n "(cached) " >&6 36791 else 36792 case $MCS in 36793 [\\/]* | ?:[\\/]*) 36794 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36795 ;; 36796 *) 36797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36798 for as_dir in $PATH 36799 do 36800 IFS=$as_save_IFS 36801 test -z "$as_dir" && as_dir=. 36802 for ac_exec_ext in '' $ac_executable_extensions; do 36803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36804 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36806 break 2 36807 fi 36808 done 36809 done 36810 IFS=$as_save_IFS 36811 36812 ;; 36813 esac 36814 fi 36815 MCS=$ac_cv_path_MCS 36816 if test -n "$MCS"; then 36817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36818 $as_echo "$MCS" >&6; } 36819 else 36820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36821 $as_echo "no" >&6; } 36822 fi 36823 36824 36825 if test "x$MCS" = x; then 36826 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36827 fi 36828 else 36829 # Otherwise we believe it is a complete path. Use it as it is. 36830 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36831 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36833 $as_echo_n "checking for MCS... " >&6; } 36834 if test ! -x "$tool_specified"; then 36835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36836 $as_echo "not found" >&6; } 36837 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36838 fi 36839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36840 $as_echo "$tool_specified" >&6; } 36841 fi 36842 fi 36843 fi 36844 36845 36846 36847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36848 36849 # First separate the path from the arguments. This will split at the first 36850 # space. 36851 complete="$MCS" 36852 path="${complete%% *}" 36853 tmp="$complete EOL" 36854 arguments="${tmp#* }" 36855 36856 # Input might be given as Windows format, start by converting to 36857 # unix format. 36858 new_path=`$CYGPATH -u "$path"` 36859 36860 # Now try to locate executable using which 36861 new_path=`$WHICH "$new_path" 2> /dev/null` 36862 # bat and cmd files are not always considered executable in cygwin causing which 36863 # to not find them 36864 if test "x$new_path" = x \ 36865 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36866 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36867 new_path=`$CYGPATH -u "$path"` 36868 fi 36869 if test "x$new_path" = x; then 36870 # Oops. Which didn't find the executable. 36871 # The splitting of arguments from the executable at a space might have been incorrect, 36872 # since paths with space are more likely in Windows. Give it another try with the whole 36873 # argument. 36874 path="$complete" 36875 arguments="EOL" 36876 new_path=`$CYGPATH -u "$path"` 36877 new_path=`$WHICH "$new_path" 2> /dev/null` 36878 # bat and cmd files are not always considered executable in cygwin causing which 36879 # to not find them 36880 if test "x$new_path" = x \ 36881 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36882 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36883 new_path=`$CYGPATH -u "$path"` 36884 fi 36885 if test "x$new_path" = x; then 36886 # It's still not found. Now this is an unrecoverable error. 36887 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36888 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36889 has_space=`$ECHO "$complete" | $GREP " "` 36890 if test "x$has_space" != x; then 36891 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36892 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36893 fi 36894 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36895 fi 36896 fi 36897 36898 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36899 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36900 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36901 # "foo.exe" is OK but "foo" is an error. 36902 # 36903 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36904 # It is also a way to make sure we got the proper file name for the real test later on. 36905 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36906 if test "x$test_shortpath" = x; then 36907 # Short path failed, file does not exist as specified. 36908 # Try adding .exe or .cmd 36909 if test -f "${new_path}.exe"; then 36910 input_to_shortpath="${new_path}.exe" 36911 elif test -f "${new_path}.cmd"; then 36912 input_to_shortpath="${new_path}.cmd" 36913 else 36914 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36915 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36916 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36917 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36918 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36919 fi 36920 else 36921 input_to_shortpath="$new_path" 36922 fi 36923 36924 # Call helper function which possibly converts this using DOS-style short mode. 36925 # If so, the updated path is stored in $new_path. 36926 new_path="$input_to_shortpath" 36927 36928 input_path="$input_to_shortpath" 36929 # Check if we need to convert this using DOS-style short mode. If the path 36930 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36931 # take no chances and rewrite it. 36932 # Note: m4 eats our [], so we need to use [ and ] instead. 36933 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36934 if test "x$has_forbidden_chars" != x; then 36935 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36936 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36937 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36938 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36939 # Going to short mode and back again did indeed matter. Since short mode is 36940 # case insensitive, let's make it lowercase to improve readability. 36941 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36942 # Now convert it back to Unix-stile (cygpath) 36943 input_path=`$CYGPATH -u "$shortmode_path"` 36944 new_path="$input_path" 36945 fi 36946 fi 36947 36948 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36949 if test "x$test_cygdrive_prefix" = x; then 36950 # As a simple fix, exclude /usr/bin since it's not a real path. 36951 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36952 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36953 # a path prefixed by /cygdrive for fixpath to work. 36954 new_path="$CYGWIN_ROOT_PATH$input_path" 36955 fi 36956 fi 36957 36958 # remove trailing .exe if any 36959 new_path="${new_path/%.exe/}" 36960 36961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36962 36963 # First separate the path from the arguments. This will split at the first 36964 # space. 36965 complete="$MCS" 36966 path="${complete%% *}" 36967 tmp="$complete EOL" 36968 arguments="${tmp#* }" 36969 36970 # Input might be given as Windows format, start by converting to 36971 # unix format. 36972 new_path="$path" 36973 36974 windows_path="$new_path" 36975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36976 unix_path=`$CYGPATH -u "$windows_path"` 36977 new_path="$unix_path" 36978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36979 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36980 new_path="$unix_path" 36981 fi 36982 36983 36984 # Now try to locate executable using which 36985 new_path=`$WHICH "$new_path" 2> /dev/null` 36986 36987 if test "x$new_path" = x; then 36988 # Oops. Which didn't find the executable. 36989 # The splitting of arguments from the executable at a space might have been incorrect, 36990 # since paths with space are more likely in Windows. Give it another try with the whole 36991 # argument. 36992 path="$complete" 36993 arguments="EOL" 36994 new_path="$path" 36995 36996 windows_path="$new_path" 36997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36998 unix_path=`$CYGPATH -u "$windows_path"` 36999 new_path="$unix_path" 37000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37002 new_path="$unix_path" 37003 fi 37004 37005 37006 new_path=`$WHICH "$new_path" 2> /dev/null` 37007 # bat and cmd files are not always considered executable in MSYS causing which 37008 # to not find them 37009 if test "x$new_path" = x \ 37010 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37011 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37012 new_path="$path" 37013 37014 windows_path="$new_path" 37015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37016 unix_path=`$CYGPATH -u "$windows_path"` 37017 new_path="$unix_path" 37018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37019 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37020 new_path="$unix_path" 37021 fi 37022 37023 fi 37024 37025 if test "x$new_path" = x; then 37026 # It's still not found. Now this is an unrecoverable error. 37027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 37028 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 37029 has_space=`$ECHO "$complete" | $GREP " "` 37030 if test "x$has_space" != x; then 37031 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37032 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37033 fi 37034 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 37035 fi 37036 fi 37037 37038 # Now new_path has a complete unix path to the binary 37039 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37040 # Keep paths in /bin as-is, but remove trailing .exe if any 37041 new_path="${new_path/%.exe/}" 37042 # Do not save /bin paths to all_fixpath_prefixes! 37043 else 37044 # Not in mixed or Windows style, start by that. 37045 new_path=`cmd //c echo $new_path` 37046 37047 input_path="$new_path" 37048 # Check if we need to convert this using DOS-style short mode. If the path 37049 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37050 # take no chances and rewrite it. 37051 # Note: m4 eats our [], so we need to use [ and ] instead. 37052 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37053 if test "x$has_forbidden_chars" != x; then 37054 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37055 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37056 fi 37057 37058 # Output is in $new_path 37059 37060 windows_path="$new_path" 37061 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37062 unix_path=`$CYGPATH -u "$windows_path"` 37063 new_path="$unix_path" 37064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37065 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37066 new_path="$unix_path" 37067 fi 37068 37069 # remove trailing .exe if any 37070 new_path="${new_path/%.exe/}" 37071 37072 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37073 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37074 fi 37075 37076 else 37077 # We're on a posix platform. Hooray! :) 37078 # First separate the path from the arguments. This will split at the first 37079 # space. 37080 complete="$MCS" 37081 path="${complete%% *}" 37082 tmp="$complete EOL" 37083 arguments="${tmp#* }" 37084 37085 # Cannot rely on the command "which" here since it doesn't always work. 37086 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37087 if test -z "$is_absolute_path"; then 37088 # Path to executable is not absolute. Find it. 37089 IFS_save="$IFS" 37090 IFS=: 37091 for p in $PATH; do 37092 if test -f "$p/$path" && test -x "$p/$path"; then 37093 new_path="$p/$path" 37094 break 37095 fi 37096 done 37097 IFS="$IFS_save" 37098 else 37099 # This is an absolute path, we can use it without further modifications. 37100 new_path="$path" 37101 fi 37102 37103 if test "x$new_path" = x; then 37104 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 37105 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 37106 has_space=`$ECHO "$complete" | $GREP " "` 37107 if test "x$has_space" != x; then 37108 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37109 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37110 fi 37111 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 37112 fi 37113 fi 37114 37115 # Now join together the path and the arguments once again 37116 if test "x$arguments" != xEOL; then 37117 new_complete="$new_path ${arguments% *}" 37118 else 37119 new_complete="$new_path" 37120 fi 37121 37122 if test "x$complete" != "x$new_complete"; then 37123 MCS="$new_complete" 37124 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 37125 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 37126 fi 37127 37128 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 37129 # FIXME: we should unify this with the solaris case above. 37130 37131 37132 # Publish this variable in the help. 37133 37134 37135 if test "x$STRIP" = x; then 37136 # The variable is not set by user, try to locate tool using the code snippet 37137 if test -n "$ac_tool_prefix"; then 37138 for ac_prog in strip 37139 do 37140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37143 $as_echo_n "checking for $ac_word... " >&6; } 37144 if ${ac_cv_prog_STRIP+:} false; then : 37145 $as_echo_n "(cached) " >&6 37146 else 37147 if test -n "$STRIP"; then 37148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37149 else 37150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37151 for as_dir in $PATH 37152 do 37153 IFS=$as_save_IFS 37154 test -z "$as_dir" && as_dir=. 37155 for ac_exec_ext in '' $ac_executable_extensions; do 37156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37157 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37159 break 2 37160 fi 37161 done 37162 done 37163 IFS=$as_save_IFS 37164 37165 fi 37166 fi 37167 STRIP=$ac_cv_prog_STRIP 37168 if test -n "$STRIP"; then 37169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37170 $as_echo "$STRIP" >&6; } 37171 else 37172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37173 $as_echo "no" >&6; } 37174 fi 37175 37176 37177 test -n "$STRIP" && break 37178 done 37179 fi 37180 if test -z "$STRIP"; then 37181 ac_ct_STRIP=$STRIP 37182 for ac_prog in strip 37183 do 37184 # Extract the first word of "$ac_prog", so it can be a program name with args. 37185 set dummy $ac_prog; ac_word=$2 37186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37187 $as_echo_n "checking for $ac_word... " >&6; } 37188 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37189 $as_echo_n "(cached) " >&6 37190 else 37191 if test -n "$ac_ct_STRIP"; then 37192 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37193 else 37194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37195 for as_dir in $PATH 37196 do 37197 IFS=$as_save_IFS 37198 test -z "$as_dir" && as_dir=. 37199 for ac_exec_ext in '' $ac_executable_extensions; do 37200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37201 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37203 break 2 37204 fi 37205 done 37206 done 37207 IFS=$as_save_IFS 37208 37209 fi 37210 fi 37211 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37212 if test -n "$ac_ct_STRIP"; then 37213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37214 $as_echo "$ac_ct_STRIP" >&6; } 37215 else 37216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37217 $as_echo "no" >&6; } 37218 fi 37219 37220 37221 test -n "$ac_ct_STRIP" && break 37222 done 37223 37224 if test "x$ac_ct_STRIP" = x; then 37225 STRIP="" 37226 else 37227 case $cross_compiling:$ac_tool_warned in 37228 yes:) 37229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37231 ac_tool_warned=yes ;; 37232 esac 37233 STRIP=$ac_ct_STRIP 37234 fi 37235 fi 37236 37237 else 37238 # The variable is set, but is it from the command line or the environment? 37239 37240 # Try to remove the string !STRIP! from our list. 37241 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 37242 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37243 # If it failed, the variable was not from the command line. Ignore it, 37244 # but warn the user (except for BASH, which is always set by the calling BASH). 37245 if test "xSTRIP" != xBASH; then 37246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 37247 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 37248 fi 37249 # Try to locate tool using the code snippet 37250 if test -n "$ac_tool_prefix"; then 37251 for ac_prog in strip 37252 do 37253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37256 $as_echo_n "checking for $ac_word... " >&6; } 37257 if ${ac_cv_prog_STRIP+:} false; then : 37258 $as_echo_n "(cached) " >&6 37259 else 37260 if test -n "$STRIP"; then 37261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37262 else 37263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37264 for as_dir in $PATH 37265 do 37266 IFS=$as_save_IFS 37267 test -z "$as_dir" && as_dir=. 37268 for ac_exec_ext in '' $ac_executable_extensions; do 37269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37270 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37272 break 2 37273 fi 37274 done 37275 done 37276 IFS=$as_save_IFS 37277 37278 fi 37279 fi 37280 STRIP=$ac_cv_prog_STRIP 37281 if test -n "$STRIP"; then 37282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37283 $as_echo "$STRIP" >&6; } 37284 else 37285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37286 $as_echo "no" >&6; } 37287 fi 37288 37289 37290 test -n "$STRIP" && break 37291 done 37292 fi 37293 if test -z "$STRIP"; then 37294 ac_ct_STRIP=$STRIP 37295 for ac_prog in strip 37296 do 37297 # Extract the first word of "$ac_prog", so it can be a program name with args. 37298 set dummy $ac_prog; ac_word=$2 37299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37300 $as_echo_n "checking for $ac_word... " >&6; } 37301 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37302 $as_echo_n "(cached) " >&6 37303 else 37304 if test -n "$ac_ct_STRIP"; then 37305 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37306 else 37307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37308 for as_dir in $PATH 37309 do 37310 IFS=$as_save_IFS 37311 test -z "$as_dir" && as_dir=. 37312 for ac_exec_ext in '' $ac_executable_extensions; do 37313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37314 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37316 break 2 37317 fi 37318 done 37319 done 37320 IFS=$as_save_IFS 37321 37322 fi 37323 fi 37324 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37325 if test -n "$ac_ct_STRIP"; then 37326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37327 $as_echo "$ac_ct_STRIP" >&6; } 37328 else 37329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37330 $as_echo "no" >&6; } 37331 fi 37332 37333 37334 test -n "$ac_ct_STRIP" && break 37335 done 37336 37337 if test "x$ac_ct_STRIP" = x; then 37338 STRIP="" 37339 else 37340 case $cross_compiling:$ac_tool_warned in 37341 yes:) 37342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37344 ac_tool_warned=yes ;; 37345 esac 37346 STRIP=$ac_ct_STRIP 37347 fi 37348 fi 37349 37350 else 37351 # If it succeeded, then it was overridden by the user. We will use it 37352 # for the tool. 37353 37354 # First remove it from the list of overridden variables, so we can test 37355 # for unknown variables in the end. 37356 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37357 37358 # Check if the provided tool contains a complete path. 37359 tool_specified="$STRIP" 37360 tool_basename="${tool_specified##*/}" 37361 if test "x$tool_basename" = "x$tool_specified"; then 37362 # A command without a complete path is provided, search $PATH. 37363 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 37364 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 37365 # Extract the first word of "$tool_basename", so it can be a program name with args. 37366 set dummy $tool_basename; ac_word=$2 37367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37368 $as_echo_n "checking for $ac_word... " >&6; } 37369 if ${ac_cv_path_STRIP+:} false; then : 37370 $as_echo_n "(cached) " >&6 37371 else 37372 case $STRIP in 37373 [\\/]* | ?:[\\/]*) 37374 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37375 ;; 37376 *) 37377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37378 for as_dir in $PATH 37379 do 37380 IFS=$as_save_IFS 37381 test -z "$as_dir" && as_dir=. 37382 for ac_exec_ext in '' $ac_executable_extensions; do 37383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37384 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37386 break 2 37387 fi 37388 done 37389 done 37390 IFS=$as_save_IFS 37391 37392 ;; 37393 esac 37394 fi 37395 STRIP=$ac_cv_path_STRIP 37396 if test -n "$STRIP"; then 37397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37398 $as_echo "$STRIP" >&6; } 37399 else 37400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37401 $as_echo "no" >&6; } 37402 fi 37403 37404 37405 if test "x$STRIP" = x; then 37406 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37407 fi 37408 else 37409 # Otherwise we believe it is a complete path. Use it as it is. 37410 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 37411 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 37412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 37413 $as_echo_n "checking for STRIP... " >&6; } 37414 if test ! -x "$tool_specified"; then 37415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37416 $as_echo "not found" >&6; } 37417 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 37418 fi 37419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37420 $as_echo "$tool_specified" >&6; } 37421 fi 37422 fi 37423 fi 37424 37425 37426 37427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37428 37429 # First separate the path from the arguments. This will split at the first 37430 # space. 37431 complete="$STRIP" 37432 path="${complete%% *}" 37433 tmp="$complete EOL" 37434 arguments="${tmp#* }" 37435 37436 # Input might be given as Windows format, start by converting to 37437 # unix format. 37438 new_path=`$CYGPATH -u "$path"` 37439 37440 # Now try to locate executable using which 37441 new_path=`$WHICH "$new_path" 2> /dev/null` 37442 # bat and cmd files are not always considered executable in cygwin causing which 37443 # to not find them 37444 if test "x$new_path" = x \ 37445 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37446 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37447 new_path=`$CYGPATH -u "$path"` 37448 fi 37449 if test "x$new_path" = x; then 37450 # Oops. Which didn't find the executable. 37451 # The splitting of arguments from the executable at a space might have been incorrect, 37452 # since paths with space are more likely in Windows. Give it another try with the whole 37453 # argument. 37454 path="$complete" 37455 arguments="EOL" 37456 new_path=`$CYGPATH -u "$path"` 37457 new_path=`$WHICH "$new_path" 2> /dev/null` 37458 # bat and cmd files are not always considered executable in cygwin causing which 37459 # to not find them 37460 if test "x$new_path" = x \ 37461 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37462 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37463 new_path=`$CYGPATH -u "$path"` 37464 fi 37465 if test "x$new_path" = x; then 37466 # It's still not found. Now this is an unrecoverable error. 37467 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37468 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37469 has_space=`$ECHO "$complete" | $GREP " "` 37470 if test "x$has_space" != x; then 37471 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37472 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37473 fi 37474 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37475 fi 37476 fi 37477 37478 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37479 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37480 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37481 # "foo.exe" is OK but "foo" is an error. 37482 # 37483 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37484 # It is also a way to make sure we got the proper file name for the real test later on. 37485 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37486 if test "x$test_shortpath" = x; then 37487 # Short path failed, file does not exist as specified. 37488 # Try adding .exe or .cmd 37489 if test -f "${new_path}.exe"; then 37490 input_to_shortpath="${new_path}.exe" 37491 elif test -f "${new_path}.cmd"; then 37492 input_to_shortpath="${new_path}.cmd" 37493 else 37494 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 37495 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 37496 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37497 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37498 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37499 fi 37500 else 37501 input_to_shortpath="$new_path" 37502 fi 37503 37504 # Call helper function which possibly converts this using DOS-style short mode. 37505 # If so, the updated path is stored in $new_path. 37506 new_path="$input_to_shortpath" 37507 37508 input_path="$input_to_shortpath" 37509 # Check if we need to convert this using DOS-style short mode. If the path 37510 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37511 # take no chances and rewrite it. 37512 # Note: m4 eats our [], so we need to use [ and ] instead. 37513 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37514 if test "x$has_forbidden_chars" != x; then 37515 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37516 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37517 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37518 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37519 # Going to short mode and back again did indeed matter. Since short mode is 37520 # case insensitive, let's make it lowercase to improve readability. 37521 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37522 # Now convert it back to Unix-stile (cygpath) 37523 input_path=`$CYGPATH -u "$shortmode_path"` 37524 new_path="$input_path" 37525 fi 37526 fi 37527 37528 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37529 if test "x$test_cygdrive_prefix" = x; then 37530 # As a simple fix, exclude /usr/bin since it's not a real path. 37531 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37532 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37533 # a path prefixed by /cygdrive for fixpath to work. 37534 new_path="$CYGWIN_ROOT_PATH$input_path" 37535 fi 37536 fi 37537 37538 # remove trailing .exe if any 37539 new_path="${new_path/%.exe/}" 37540 37541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37542 37543 # First separate the path from the arguments. This will split at the first 37544 # space. 37545 complete="$STRIP" 37546 path="${complete%% *}" 37547 tmp="$complete EOL" 37548 arguments="${tmp#* }" 37549 37550 # Input might be given as Windows format, start by converting to 37551 # unix format. 37552 new_path="$path" 37553 37554 windows_path="$new_path" 37555 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37556 unix_path=`$CYGPATH -u "$windows_path"` 37557 new_path="$unix_path" 37558 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37559 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37560 new_path="$unix_path" 37561 fi 37562 37563 37564 # Now try to locate executable using which 37565 new_path=`$WHICH "$new_path" 2> /dev/null` 37566 37567 if test "x$new_path" = x; then 37568 # Oops. Which didn't find the executable. 37569 # The splitting of arguments from the executable at a space might have been incorrect, 37570 # since paths with space are more likely in Windows. Give it another try with the whole 37571 # argument. 37572 path="$complete" 37573 arguments="EOL" 37574 new_path="$path" 37575 37576 windows_path="$new_path" 37577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37578 unix_path=`$CYGPATH -u "$windows_path"` 37579 new_path="$unix_path" 37580 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37581 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37582 new_path="$unix_path" 37583 fi 37584 37585 37586 new_path=`$WHICH "$new_path" 2> /dev/null` 37587 # bat and cmd files are not always considered executable in MSYS causing which 37588 # to not find them 37589 if test "x$new_path" = x \ 37590 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37591 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37592 new_path="$path" 37593 37594 windows_path="$new_path" 37595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37596 unix_path=`$CYGPATH -u "$windows_path"` 37597 new_path="$unix_path" 37598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37599 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37600 new_path="$unix_path" 37601 fi 37602 37603 fi 37604 37605 if test "x$new_path" = x; then 37606 # It's still not found. Now this is an unrecoverable error. 37607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37608 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37609 has_space=`$ECHO "$complete" | $GREP " "` 37610 if test "x$has_space" != x; then 37611 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37612 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37613 fi 37614 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37615 fi 37616 fi 37617 37618 # Now new_path has a complete unix path to the binary 37619 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37620 # Keep paths in /bin as-is, but remove trailing .exe if any 37621 new_path="${new_path/%.exe/}" 37622 # Do not save /bin paths to all_fixpath_prefixes! 37623 else 37624 # Not in mixed or Windows style, start by that. 37625 new_path=`cmd //c echo $new_path` 37626 37627 input_path="$new_path" 37628 # Check if we need to convert this using DOS-style short mode. If the path 37629 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37630 # take no chances and rewrite it. 37631 # Note: m4 eats our [], so we need to use [ and ] instead. 37632 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37633 if test "x$has_forbidden_chars" != x; then 37634 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37635 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37636 fi 37637 37638 # Output is in $new_path 37639 37640 windows_path="$new_path" 37641 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37642 unix_path=`$CYGPATH -u "$windows_path"` 37643 new_path="$unix_path" 37644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37645 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37646 new_path="$unix_path" 37647 fi 37648 37649 # remove trailing .exe if any 37650 new_path="${new_path/%.exe/}" 37651 37652 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37653 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37654 fi 37655 37656 else 37657 # We're on a posix platform. Hooray! :) 37658 # First separate the path from the arguments. This will split at the first 37659 # space. 37660 complete="$STRIP" 37661 path="${complete%% *}" 37662 tmp="$complete EOL" 37663 arguments="${tmp#* }" 37664 37665 # Cannot rely on the command "which" here since it doesn't always work. 37666 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37667 if test -z "$is_absolute_path"; then 37668 # Path to executable is not absolute. Find it. 37669 IFS_save="$IFS" 37670 IFS=: 37671 for p in $PATH; do 37672 if test -f "$p/$path" && test -x "$p/$path"; then 37673 new_path="$p/$path" 37674 break 37675 fi 37676 done 37677 IFS="$IFS_save" 37678 else 37679 # This is an absolute path, we can use it without further modifications. 37680 new_path="$path" 37681 fi 37682 37683 if test "x$new_path" = x; then 37684 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37685 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37686 has_space=`$ECHO "$complete" | $GREP " "` 37687 if test "x$has_space" != x; then 37688 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37689 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37690 fi 37691 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37692 fi 37693 fi 37694 37695 # Now join together the path and the arguments once again 37696 if test "x$arguments" != xEOL; then 37697 new_complete="$new_path ${arguments% *}" 37698 else 37699 new_complete="$new_path" 37700 fi 37701 37702 if test "x$complete" != "x$new_complete"; then 37703 STRIP="$new_complete" 37704 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37705 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37706 fi 37707 37708 37709 37710 # Publish this variable in the help. 37711 37712 37713 if test "x$NM" = x; then 37714 # The variable is not set by user, try to locate tool using the code snippet 37715 if test -n "$ac_tool_prefix"; then 37716 for ac_prog in nm 37717 do 37718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37721 $as_echo_n "checking for $ac_word... " >&6; } 37722 if ${ac_cv_prog_NM+:} false; then : 37723 $as_echo_n "(cached) " >&6 37724 else 37725 if test -n "$NM"; then 37726 ac_cv_prog_NM="$NM" # Let the user override the test. 37727 else 37728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37729 for as_dir in $PATH 37730 do 37731 IFS=$as_save_IFS 37732 test -z "$as_dir" && as_dir=. 37733 for ac_exec_ext in '' $ac_executable_extensions; do 37734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37735 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37737 break 2 37738 fi 37739 done 37740 done 37741 IFS=$as_save_IFS 37742 37743 fi 37744 fi 37745 NM=$ac_cv_prog_NM 37746 if test -n "$NM"; then 37747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37748 $as_echo "$NM" >&6; } 37749 else 37750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37751 $as_echo "no" >&6; } 37752 fi 37753 37754 37755 test -n "$NM" && break 37756 done 37757 fi 37758 if test -z "$NM"; then 37759 ac_ct_NM=$NM 37760 for ac_prog in nm 37761 do 37762 # Extract the first word of "$ac_prog", so it can be a program name with args. 37763 set dummy $ac_prog; ac_word=$2 37764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37765 $as_echo_n "checking for $ac_word... " >&6; } 37766 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37767 $as_echo_n "(cached) " >&6 37768 else 37769 if test -n "$ac_ct_NM"; then 37770 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37771 else 37772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37773 for as_dir in $PATH 37774 do 37775 IFS=$as_save_IFS 37776 test -z "$as_dir" && as_dir=. 37777 for ac_exec_ext in '' $ac_executable_extensions; do 37778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37779 ac_cv_prog_ac_ct_NM="$ac_prog" 37780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37781 break 2 37782 fi 37783 done 37784 done 37785 IFS=$as_save_IFS 37786 37787 fi 37788 fi 37789 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37790 if test -n "$ac_ct_NM"; then 37791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37792 $as_echo "$ac_ct_NM" >&6; } 37793 else 37794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37795 $as_echo "no" >&6; } 37796 fi 37797 37798 37799 test -n "$ac_ct_NM" && break 37800 done 37801 37802 if test "x$ac_ct_NM" = x; then 37803 NM="" 37804 else 37805 case $cross_compiling:$ac_tool_warned in 37806 yes:) 37807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37809 ac_tool_warned=yes ;; 37810 esac 37811 NM=$ac_ct_NM 37812 fi 37813 fi 37814 37815 else 37816 # The variable is set, but is it from the command line or the environment? 37817 37818 # Try to remove the string !NM! from our list. 37819 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37820 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37821 # If it failed, the variable was not from the command line. Ignore it, 37822 # but warn the user (except for BASH, which is always set by the calling BASH). 37823 if test "xNM" != xBASH; then 37824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37825 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37826 fi 37827 # Try to locate tool using the code snippet 37828 if test -n "$ac_tool_prefix"; then 37829 for ac_prog in nm 37830 do 37831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37834 $as_echo_n "checking for $ac_word... " >&6; } 37835 if ${ac_cv_prog_NM+:} false; then : 37836 $as_echo_n "(cached) " >&6 37837 else 37838 if test -n "$NM"; then 37839 ac_cv_prog_NM="$NM" # Let the user override the test. 37840 else 37841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37842 for as_dir in $PATH 37843 do 37844 IFS=$as_save_IFS 37845 test -z "$as_dir" && as_dir=. 37846 for ac_exec_ext in '' $ac_executable_extensions; do 37847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37848 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37850 break 2 37851 fi 37852 done 37853 done 37854 IFS=$as_save_IFS 37855 37856 fi 37857 fi 37858 NM=$ac_cv_prog_NM 37859 if test -n "$NM"; then 37860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37861 $as_echo "$NM" >&6; } 37862 else 37863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37864 $as_echo "no" >&6; } 37865 fi 37866 37867 37868 test -n "$NM" && break 37869 done 37870 fi 37871 if test -z "$NM"; then 37872 ac_ct_NM=$NM 37873 for ac_prog in nm 37874 do 37875 # Extract the first word of "$ac_prog", so it can be a program name with args. 37876 set dummy $ac_prog; ac_word=$2 37877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37878 $as_echo_n "checking for $ac_word... " >&6; } 37879 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37880 $as_echo_n "(cached) " >&6 37881 else 37882 if test -n "$ac_ct_NM"; then 37883 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37884 else 37885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37886 for as_dir in $PATH 37887 do 37888 IFS=$as_save_IFS 37889 test -z "$as_dir" && as_dir=. 37890 for ac_exec_ext in '' $ac_executable_extensions; do 37891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37892 ac_cv_prog_ac_ct_NM="$ac_prog" 37893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37894 break 2 37895 fi 37896 done 37897 done 37898 IFS=$as_save_IFS 37899 37900 fi 37901 fi 37902 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37903 if test -n "$ac_ct_NM"; then 37904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37905 $as_echo "$ac_ct_NM" >&6; } 37906 else 37907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37908 $as_echo "no" >&6; } 37909 fi 37910 37911 37912 test -n "$ac_ct_NM" && break 37913 done 37914 37915 if test "x$ac_ct_NM" = x; then 37916 NM="" 37917 else 37918 case $cross_compiling:$ac_tool_warned in 37919 yes:) 37920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37922 ac_tool_warned=yes ;; 37923 esac 37924 NM=$ac_ct_NM 37925 fi 37926 fi 37927 37928 else 37929 # If it succeeded, then it was overridden by the user. We will use it 37930 # for the tool. 37931 37932 # First remove it from the list of overridden variables, so we can test 37933 # for unknown variables in the end. 37934 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37935 37936 # Check if the provided tool contains a complete path. 37937 tool_specified="$NM" 37938 tool_basename="${tool_specified##*/}" 37939 if test "x$tool_basename" = "x$tool_specified"; then 37940 # A command without a complete path is provided, search $PATH. 37941 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37942 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37943 # Extract the first word of "$tool_basename", so it can be a program name with args. 37944 set dummy $tool_basename; ac_word=$2 37945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37946 $as_echo_n "checking for $ac_word... " >&6; } 37947 if ${ac_cv_path_NM+:} false; then : 37948 $as_echo_n "(cached) " >&6 37949 else 37950 case $NM in 37951 [\\/]* | ?:[\\/]*) 37952 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37953 ;; 37954 *) 37955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37956 for as_dir in $PATH 37957 do 37958 IFS=$as_save_IFS 37959 test -z "$as_dir" && as_dir=. 37960 for ac_exec_ext in '' $ac_executable_extensions; do 37961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37962 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37964 break 2 37965 fi 37966 done 37967 done 37968 IFS=$as_save_IFS 37969 37970 ;; 37971 esac 37972 fi 37973 NM=$ac_cv_path_NM 37974 if test -n "$NM"; then 37975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37976 $as_echo "$NM" >&6; } 37977 else 37978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37979 $as_echo "no" >&6; } 37980 fi 37981 37982 37983 if test "x$NM" = x; then 37984 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37985 fi 37986 else 37987 # Otherwise we believe it is a complete path. Use it as it is. 37988 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37989 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37991 $as_echo_n "checking for NM... " >&6; } 37992 if test ! -x "$tool_specified"; then 37993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37994 $as_echo "not found" >&6; } 37995 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37996 fi 37997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37998 $as_echo "$tool_specified" >&6; } 37999 fi 38000 fi 38001 fi 38002 38003 38004 38005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38006 38007 # First separate the path from the arguments. This will split at the first 38008 # space. 38009 complete="$NM" 38010 path="${complete%% *}" 38011 tmp="$complete EOL" 38012 arguments="${tmp#* }" 38013 38014 # Input might be given as Windows format, start by converting to 38015 # unix format. 38016 new_path=`$CYGPATH -u "$path"` 38017 38018 # Now try to locate executable using which 38019 new_path=`$WHICH "$new_path" 2> /dev/null` 38020 # bat and cmd files are not always considered executable in cygwin causing which 38021 # to not find them 38022 if test "x$new_path" = x \ 38023 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38024 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38025 new_path=`$CYGPATH -u "$path"` 38026 fi 38027 if test "x$new_path" = x; then 38028 # Oops. Which didn't find the executable. 38029 # The splitting of arguments from the executable at a space might have been incorrect, 38030 # since paths with space are more likely in Windows. Give it another try with the whole 38031 # argument. 38032 path="$complete" 38033 arguments="EOL" 38034 new_path=`$CYGPATH -u "$path"` 38035 new_path=`$WHICH "$new_path" 2> /dev/null` 38036 # bat and cmd files are not always considered executable in cygwin causing which 38037 # to not find them 38038 if test "x$new_path" = x \ 38039 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38040 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38041 new_path=`$CYGPATH -u "$path"` 38042 fi 38043 if test "x$new_path" = x; then 38044 # It's still not found. Now this is an unrecoverable error. 38045 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38046 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38047 has_space=`$ECHO "$complete" | $GREP " "` 38048 if test "x$has_space" != x; then 38049 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38050 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38051 fi 38052 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38053 fi 38054 fi 38055 38056 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38057 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38058 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38059 # "foo.exe" is OK but "foo" is an error. 38060 # 38061 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38062 # It is also a way to make sure we got the proper file name for the real test later on. 38063 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38064 if test "x$test_shortpath" = x; then 38065 # Short path failed, file does not exist as specified. 38066 # Try adding .exe or .cmd 38067 if test -f "${new_path}.exe"; then 38068 input_to_shortpath="${new_path}.exe" 38069 elif test -f "${new_path}.cmd"; then 38070 input_to_shortpath="${new_path}.cmd" 38071 else 38072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 38073 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 38074 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38075 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38076 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38077 fi 38078 else 38079 input_to_shortpath="$new_path" 38080 fi 38081 38082 # Call helper function which possibly converts this using DOS-style short mode. 38083 # If so, the updated path is stored in $new_path. 38084 new_path="$input_to_shortpath" 38085 38086 input_path="$input_to_shortpath" 38087 # Check if we need to convert this using DOS-style short mode. If the path 38088 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38089 # take no chances and rewrite it. 38090 # Note: m4 eats our [], so we need to use [ and ] instead. 38091 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38092 if test "x$has_forbidden_chars" != x; then 38093 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38094 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38095 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38096 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38097 # Going to short mode and back again did indeed matter. Since short mode is 38098 # case insensitive, let's make it lowercase to improve readability. 38099 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38100 # Now convert it back to Unix-stile (cygpath) 38101 input_path=`$CYGPATH -u "$shortmode_path"` 38102 new_path="$input_path" 38103 fi 38104 fi 38105 38106 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38107 if test "x$test_cygdrive_prefix" = x; then 38108 # As a simple fix, exclude /usr/bin since it's not a real path. 38109 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38110 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38111 # a path prefixed by /cygdrive for fixpath to work. 38112 new_path="$CYGWIN_ROOT_PATH$input_path" 38113 fi 38114 fi 38115 38116 # remove trailing .exe if any 38117 new_path="${new_path/%.exe/}" 38118 38119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38120 38121 # First separate the path from the arguments. This will split at the first 38122 # space. 38123 complete="$NM" 38124 path="${complete%% *}" 38125 tmp="$complete EOL" 38126 arguments="${tmp#* }" 38127 38128 # Input might be given as Windows format, start by converting to 38129 # unix format. 38130 new_path="$path" 38131 38132 windows_path="$new_path" 38133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38134 unix_path=`$CYGPATH -u "$windows_path"` 38135 new_path="$unix_path" 38136 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38137 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38138 new_path="$unix_path" 38139 fi 38140 38141 38142 # Now try to locate executable using which 38143 new_path=`$WHICH "$new_path" 2> /dev/null` 38144 38145 if test "x$new_path" = x; then 38146 # Oops. Which didn't find the executable. 38147 # The splitting of arguments from the executable at a space might have been incorrect, 38148 # since paths with space are more likely in Windows. Give it another try with the whole 38149 # argument. 38150 path="$complete" 38151 arguments="EOL" 38152 new_path="$path" 38153 38154 windows_path="$new_path" 38155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38156 unix_path=`$CYGPATH -u "$windows_path"` 38157 new_path="$unix_path" 38158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38159 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38160 new_path="$unix_path" 38161 fi 38162 38163 38164 new_path=`$WHICH "$new_path" 2> /dev/null` 38165 # bat and cmd files are not always considered executable in MSYS causing which 38166 # to not find them 38167 if test "x$new_path" = x \ 38168 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38169 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38170 new_path="$path" 38171 38172 windows_path="$new_path" 38173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38174 unix_path=`$CYGPATH -u "$windows_path"` 38175 new_path="$unix_path" 38176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38177 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38178 new_path="$unix_path" 38179 fi 38180 38181 fi 38182 38183 if test "x$new_path" = x; then 38184 # It's still not found. Now this is an unrecoverable error. 38185 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38186 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38187 has_space=`$ECHO "$complete" | $GREP " "` 38188 if test "x$has_space" != x; then 38189 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38190 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38191 fi 38192 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38193 fi 38194 fi 38195 38196 # Now new_path has a complete unix path to the binary 38197 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38198 # Keep paths in /bin as-is, but remove trailing .exe if any 38199 new_path="${new_path/%.exe/}" 38200 # Do not save /bin paths to all_fixpath_prefixes! 38201 else 38202 # Not in mixed or Windows style, start by that. 38203 new_path=`cmd //c echo $new_path` 38204 38205 input_path="$new_path" 38206 # Check if we need to convert this using DOS-style short mode. If the path 38207 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38208 # take no chances and rewrite it. 38209 # Note: m4 eats our [], so we need to use [ and ] instead. 38210 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38211 if test "x$has_forbidden_chars" != x; then 38212 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38213 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38214 fi 38215 38216 # Output is in $new_path 38217 38218 windows_path="$new_path" 38219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38220 unix_path=`$CYGPATH -u "$windows_path"` 38221 new_path="$unix_path" 38222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38223 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38224 new_path="$unix_path" 38225 fi 38226 38227 # remove trailing .exe if any 38228 new_path="${new_path/%.exe/}" 38229 38230 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38231 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38232 fi 38233 38234 else 38235 # We're on a posix platform. Hooray! :) 38236 # First separate the path from the arguments. This will split at the first 38237 # space. 38238 complete="$NM" 38239 path="${complete%% *}" 38240 tmp="$complete EOL" 38241 arguments="${tmp#* }" 38242 38243 # Cannot rely on the command "which" here since it doesn't always work. 38244 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38245 if test -z "$is_absolute_path"; then 38246 # Path to executable is not absolute. Find it. 38247 IFS_save="$IFS" 38248 IFS=: 38249 for p in $PATH; do 38250 if test -f "$p/$path" && test -x "$p/$path"; then 38251 new_path="$p/$path" 38252 break 38253 fi 38254 done 38255 IFS="$IFS_save" 38256 else 38257 # This is an absolute path, we can use it without further modifications. 38258 new_path="$path" 38259 fi 38260 38261 if test "x$new_path" = x; then 38262 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38263 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38264 has_space=`$ECHO "$complete" | $GREP " "` 38265 if test "x$has_space" != x; then 38266 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38267 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38268 fi 38269 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38270 fi 38271 fi 38272 38273 # Now join together the path and the arguments once again 38274 if test "x$arguments" != xEOL; then 38275 new_complete="$new_path ${arguments% *}" 38276 else 38277 new_complete="$new_path" 38278 fi 38279 38280 if test "x$complete" != "x$new_complete"; then 38281 NM="$new_complete" 38282 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 38283 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 38284 fi 38285 38286 GNM="$NM" 38287 38288 fi 38289 38290 # objcopy is used for moving debug symbols to separate files when 38291 # full debug symbols are enabled. 38292 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 38293 38294 38295 # Publish this variable in the help. 38296 38297 38298 if test "x$OBJCOPY" = x; then 38299 # The variable is not set by user, try to locate tool using the code snippet 38300 if test -n "$ac_tool_prefix"; then 38301 for ac_prog in gobjcopy objcopy 38302 do 38303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38306 $as_echo_n "checking for $ac_word... " >&6; } 38307 if ${ac_cv_prog_OBJCOPY+:} false; then : 38308 $as_echo_n "(cached) " >&6 38309 else 38310 if test -n "$OBJCOPY"; then 38311 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38312 else 38313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38314 for as_dir in $PATH 38315 do 38316 IFS=$as_save_IFS 38317 test -z "$as_dir" && as_dir=. 38318 for ac_exec_ext in '' $ac_executable_extensions; do 38319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38320 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38322 break 2 38323 fi 38324 done 38325 done 38326 IFS=$as_save_IFS 38327 38328 fi 38329 fi 38330 OBJCOPY=$ac_cv_prog_OBJCOPY 38331 if test -n "$OBJCOPY"; then 38332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38333 $as_echo "$OBJCOPY" >&6; } 38334 else 38335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38336 $as_echo "no" >&6; } 38337 fi 38338 38339 38340 test -n "$OBJCOPY" && break 38341 done 38342 fi 38343 if test -z "$OBJCOPY"; then 38344 ac_ct_OBJCOPY=$OBJCOPY 38345 for ac_prog in gobjcopy objcopy 38346 do 38347 # Extract the first word of "$ac_prog", so it can be a program name with args. 38348 set dummy $ac_prog; ac_word=$2 38349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38350 $as_echo_n "checking for $ac_word... " >&6; } 38351 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38352 $as_echo_n "(cached) " >&6 38353 else 38354 if test -n "$ac_ct_OBJCOPY"; then 38355 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38356 else 38357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38358 for as_dir in $PATH 38359 do 38360 IFS=$as_save_IFS 38361 test -z "$as_dir" && as_dir=. 38362 for ac_exec_ext in '' $ac_executable_extensions; do 38363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38364 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38366 break 2 38367 fi 38368 done 38369 done 38370 IFS=$as_save_IFS 38371 38372 fi 38373 fi 38374 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38375 if test -n "$ac_ct_OBJCOPY"; then 38376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38377 $as_echo "$ac_ct_OBJCOPY" >&6; } 38378 else 38379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38380 $as_echo "no" >&6; } 38381 fi 38382 38383 38384 test -n "$ac_ct_OBJCOPY" && break 38385 done 38386 38387 if test "x$ac_ct_OBJCOPY" = x; then 38388 OBJCOPY="" 38389 else 38390 case $cross_compiling:$ac_tool_warned in 38391 yes:) 38392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38394 ac_tool_warned=yes ;; 38395 esac 38396 OBJCOPY=$ac_ct_OBJCOPY 38397 fi 38398 fi 38399 38400 else 38401 # The variable is set, but is it from the command line or the environment? 38402 38403 # Try to remove the string !OBJCOPY! from our list. 38404 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 38405 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38406 # If it failed, the variable was not from the command line. Ignore it, 38407 # but warn the user (except for BASH, which is always set by the calling BASH). 38408 if test "xOBJCOPY" != xBASH; then 38409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 38410 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 38411 fi 38412 # Try to locate tool using the code snippet 38413 if test -n "$ac_tool_prefix"; then 38414 for ac_prog in gobjcopy objcopy 38415 do 38416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38419 $as_echo_n "checking for $ac_word... " >&6; } 38420 if ${ac_cv_prog_OBJCOPY+:} false; then : 38421 $as_echo_n "(cached) " >&6 38422 else 38423 if test -n "$OBJCOPY"; then 38424 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38425 else 38426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38427 for as_dir in $PATH 38428 do 38429 IFS=$as_save_IFS 38430 test -z "$as_dir" && as_dir=. 38431 for ac_exec_ext in '' $ac_executable_extensions; do 38432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38433 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38435 break 2 38436 fi 38437 done 38438 done 38439 IFS=$as_save_IFS 38440 38441 fi 38442 fi 38443 OBJCOPY=$ac_cv_prog_OBJCOPY 38444 if test -n "$OBJCOPY"; then 38445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38446 $as_echo "$OBJCOPY" >&6; } 38447 else 38448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38449 $as_echo "no" >&6; } 38450 fi 38451 38452 38453 test -n "$OBJCOPY" && break 38454 done 38455 fi 38456 if test -z "$OBJCOPY"; then 38457 ac_ct_OBJCOPY=$OBJCOPY 38458 for ac_prog in gobjcopy objcopy 38459 do 38460 # Extract the first word of "$ac_prog", so it can be a program name with args. 38461 set dummy $ac_prog; ac_word=$2 38462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38463 $as_echo_n "checking for $ac_word... " >&6; } 38464 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38465 $as_echo_n "(cached) " >&6 38466 else 38467 if test -n "$ac_ct_OBJCOPY"; then 38468 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38469 else 38470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38471 for as_dir in $PATH 38472 do 38473 IFS=$as_save_IFS 38474 test -z "$as_dir" && as_dir=. 38475 for ac_exec_ext in '' $ac_executable_extensions; do 38476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38477 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38479 break 2 38480 fi 38481 done 38482 done 38483 IFS=$as_save_IFS 38484 38485 fi 38486 fi 38487 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38488 if test -n "$ac_ct_OBJCOPY"; then 38489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38490 $as_echo "$ac_ct_OBJCOPY" >&6; } 38491 else 38492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38493 $as_echo "no" >&6; } 38494 fi 38495 38496 38497 test -n "$ac_ct_OBJCOPY" && break 38498 done 38499 38500 if test "x$ac_ct_OBJCOPY" = x; then 38501 OBJCOPY="" 38502 else 38503 case $cross_compiling:$ac_tool_warned in 38504 yes:) 38505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38507 ac_tool_warned=yes ;; 38508 esac 38509 OBJCOPY=$ac_ct_OBJCOPY 38510 fi 38511 fi 38512 38513 else 38514 # If it succeeded, then it was overridden by the user. We will use it 38515 # for the tool. 38516 38517 # First remove it from the list of overridden variables, so we can test 38518 # for unknown variables in the end. 38519 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38520 38521 # Check if the provided tool contains a complete path. 38522 tool_specified="$OBJCOPY" 38523 tool_basename="${tool_specified##*/}" 38524 if test "x$tool_basename" = "x$tool_specified"; then 38525 # A command without a complete path is provided, search $PATH. 38526 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 38527 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 38528 # Extract the first word of "$tool_basename", so it can be a program name with args. 38529 set dummy $tool_basename; ac_word=$2 38530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38531 $as_echo_n "checking for $ac_word... " >&6; } 38532 if ${ac_cv_path_OBJCOPY+:} false; then : 38533 $as_echo_n "(cached) " >&6 38534 else 38535 case $OBJCOPY in 38536 [\\/]* | ?:[\\/]*) 38537 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 38538 ;; 38539 *) 38540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38541 for as_dir in $PATH 38542 do 38543 IFS=$as_save_IFS 38544 test -z "$as_dir" && as_dir=. 38545 for ac_exec_ext in '' $ac_executable_extensions; do 38546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38547 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 38548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38549 break 2 38550 fi 38551 done 38552 done 38553 IFS=$as_save_IFS 38554 38555 ;; 38556 esac 38557 fi 38558 OBJCOPY=$ac_cv_path_OBJCOPY 38559 if test -n "$OBJCOPY"; then 38560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38561 $as_echo "$OBJCOPY" >&6; } 38562 else 38563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38564 $as_echo "no" >&6; } 38565 fi 38566 38567 38568 if test "x$OBJCOPY" = x; then 38569 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38570 fi 38571 else 38572 # Otherwise we believe it is a complete path. Use it as it is. 38573 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 38574 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 38575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 38576 $as_echo_n "checking for OBJCOPY... " >&6; } 38577 if test ! -x "$tool_specified"; then 38578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38579 $as_echo "not found" >&6; } 38580 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 38581 fi 38582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38583 $as_echo "$tool_specified" >&6; } 38584 fi 38585 fi 38586 fi 38587 38588 38589 # Only call fixup if objcopy was found. 38590 if test -n "$OBJCOPY"; then 38591 38592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38593 38594 # First separate the path from the arguments. This will split at the first 38595 # space. 38596 complete="$OBJCOPY" 38597 path="${complete%% *}" 38598 tmp="$complete EOL" 38599 arguments="${tmp#* }" 38600 38601 # Input might be given as Windows format, start by converting to 38602 # unix format. 38603 new_path=`$CYGPATH -u "$path"` 38604 38605 # Now try to locate executable using which 38606 new_path=`$WHICH "$new_path" 2> /dev/null` 38607 # bat and cmd files are not always considered executable in cygwin causing which 38608 # to not find them 38609 if test "x$new_path" = x \ 38610 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38611 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38612 new_path=`$CYGPATH -u "$path"` 38613 fi 38614 if test "x$new_path" = x; then 38615 # Oops. Which didn't find the executable. 38616 # The splitting of arguments from the executable at a space might have been incorrect, 38617 # since paths with space are more likely in Windows. Give it another try with the whole 38618 # argument. 38619 path="$complete" 38620 arguments="EOL" 38621 new_path=`$CYGPATH -u "$path"` 38622 new_path=`$WHICH "$new_path" 2> /dev/null` 38623 # bat and cmd files are not always considered executable in cygwin causing which 38624 # to not find them 38625 if test "x$new_path" = x \ 38626 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38627 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38628 new_path=`$CYGPATH -u "$path"` 38629 fi 38630 if test "x$new_path" = x; then 38631 # It's still not found. Now this is an unrecoverable error. 38632 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38633 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38634 has_space=`$ECHO "$complete" | $GREP " "` 38635 if test "x$has_space" != x; then 38636 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38637 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38638 fi 38639 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38640 fi 38641 fi 38642 38643 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38644 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38645 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38646 # "foo.exe" is OK but "foo" is an error. 38647 # 38648 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38649 # It is also a way to make sure we got the proper file name for the real test later on. 38650 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38651 if test "x$test_shortpath" = x; then 38652 # Short path failed, file does not exist as specified. 38653 # Try adding .exe or .cmd 38654 if test -f "${new_path}.exe"; then 38655 input_to_shortpath="${new_path}.exe" 38656 elif test -f "${new_path}.cmd"; then 38657 input_to_shortpath="${new_path}.cmd" 38658 else 38659 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 38660 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 38661 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38662 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38663 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38664 fi 38665 else 38666 input_to_shortpath="$new_path" 38667 fi 38668 38669 # Call helper function which possibly converts this using DOS-style short mode. 38670 # If so, the updated path is stored in $new_path. 38671 new_path="$input_to_shortpath" 38672 38673 input_path="$input_to_shortpath" 38674 # Check if we need to convert this using DOS-style short mode. If the path 38675 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38676 # take no chances and rewrite it. 38677 # Note: m4 eats our [], so we need to use [ and ] instead. 38678 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38679 if test "x$has_forbidden_chars" != x; then 38680 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38681 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38682 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38683 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38684 # Going to short mode and back again did indeed matter. Since short mode is 38685 # case insensitive, let's make it lowercase to improve readability. 38686 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38687 # Now convert it back to Unix-stile (cygpath) 38688 input_path=`$CYGPATH -u "$shortmode_path"` 38689 new_path="$input_path" 38690 fi 38691 fi 38692 38693 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38694 if test "x$test_cygdrive_prefix" = x; then 38695 # As a simple fix, exclude /usr/bin since it's not a real path. 38696 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38697 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38698 # a path prefixed by /cygdrive for fixpath to work. 38699 new_path="$CYGWIN_ROOT_PATH$input_path" 38700 fi 38701 fi 38702 38703 # remove trailing .exe if any 38704 new_path="${new_path/%.exe/}" 38705 38706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38707 38708 # First separate the path from the arguments. This will split at the first 38709 # space. 38710 complete="$OBJCOPY" 38711 path="${complete%% *}" 38712 tmp="$complete EOL" 38713 arguments="${tmp#* }" 38714 38715 # Input might be given as Windows format, start by converting to 38716 # unix format. 38717 new_path="$path" 38718 38719 windows_path="$new_path" 38720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38721 unix_path=`$CYGPATH -u "$windows_path"` 38722 new_path="$unix_path" 38723 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38724 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38725 new_path="$unix_path" 38726 fi 38727 38728 38729 # Now try to locate executable using which 38730 new_path=`$WHICH "$new_path" 2> /dev/null` 38731 38732 if test "x$new_path" = x; then 38733 # Oops. Which didn't find the executable. 38734 # The splitting of arguments from the executable at a space might have been incorrect, 38735 # since paths with space are more likely in Windows. Give it another try with the whole 38736 # argument. 38737 path="$complete" 38738 arguments="EOL" 38739 new_path="$path" 38740 38741 windows_path="$new_path" 38742 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38743 unix_path=`$CYGPATH -u "$windows_path"` 38744 new_path="$unix_path" 38745 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38746 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38747 new_path="$unix_path" 38748 fi 38749 38750 38751 new_path=`$WHICH "$new_path" 2> /dev/null` 38752 # bat and cmd files are not always considered executable in MSYS causing which 38753 # to not find them 38754 if test "x$new_path" = x \ 38755 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38756 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38757 new_path="$path" 38758 38759 windows_path="$new_path" 38760 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38761 unix_path=`$CYGPATH -u "$windows_path"` 38762 new_path="$unix_path" 38763 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38764 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38765 new_path="$unix_path" 38766 fi 38767 38768 fi 38769 38770 if test "x$new_path" = x; then 38771 # It's still not found. Now this is an unrecoverable error. 38772 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38773 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38774 has_space=`$ECHO "$complete" | $GREP " "` 38775 if test "x$has_space" != x; then 38776 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38777 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38778 fi 38779 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38780 fi 38781 fi 38782 38783 # Now new_path has a complete unix path to the binary 38784 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38785 # Keep paths in /bin as-is, but remove trailing .exe if any 38786 new_path="${new_path/%.exe/}" 38787 # Do not save /bin paths to all_fixpath_prefixes! 38788 else 38789 # Not in mixed or Windows style, start by that. 38790 new_path=`cmd //c echo $new_path` 38791 38792 input_path="$new_path" 38793 # Check if we need to convert this using DOS-style short mode. If the path 38794 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38795 # take no chances and rewrite it. 38796 # Note: m4 eats our [], so we need to use [ and ] instead. 38797 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38798 if test "x$has_forbidden_chars" != x; then 38799 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38800 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38801 fi 38802 38803 # Output is in $new_path 38804 38805 windows_path="$new_path" 38806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38807 unix_path=`$CYGPATH -u "$windows_path"` 38808 new_path="$unix_path" 38809 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38810 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38811 new_path="$unix_path" 38812 fi 38813 38814 # remove trailing .exe if any 38815 new_path="${new_path/%.exe/}" 38816 38817 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38818 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38819 fi 38820 38821 else 38822 # We're on a posix platform. Hooray! :) 38823 # First separate the path from the arguments. This will split at the first 38824 # space. 38825 complete="$OBJCOPY" 38826 path="${complete%% *}" 38827 tmp="$complete EOL" 38828 arguments="${tmp#* }" 38829 38830 # Cannot rely on the command "which" here since it doesn't always work. 38831 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38832 if test -z "$is_absolute_path"; then 38833 # Path to executable is not absolute. Find it. 38834 IFS_save="$IFS" 38835 IFS=: 38836 for p in $PATH; do 38837 if test -f "$p/$path" && test -x "$p/$path"; then 38838 new_path="$p/$path" 38839 break 38840 fi 38841 done 38842 IFS="$IFS_save" 38843 else 38844 # This is an absolute path, we can use it without further modifications. 38845 new_path="$path" 38846 fi 38847 38848 if test "x$new_path" = x; then 38849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38850 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38851 has_space=`$ECHO "$complete" | $GREP " "` 38852 if test "x$has_space" != x; then 38853 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38854 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38855 fi 38856 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38857 fi 38858 fi 38859 38860 # Now join together the path and the arguments once again 38861 if test "x$arguments" != xEOL; then 38862 new_complete="$new_path ${arguments% *}" 38863 else 38864 new_complete="$new_path" 38865 fi 38866 38867 if test "x$complete" != "x$new_complete"; then 38868 OBJCOPY="$new_complete" 38869 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38870 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38871 fi 38872 38873 fi 38874 fi 38875 38876 38877 38878 # Publish this variable in the help. 38879 38880 38881 if test "x$OBJDUMP" = x; then 38882 # The variable is not set by user, try to locate tool using the code snippet 38883 if test -n "$ac_tool_prefix"; then 38884 for ac_prog in gobjdump objdump 38885 do 38886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38889 $as_echo_n "checking for $ac_word... " >&6; } 38890 if ${ac_cv_prog_OBJDUMP+:} false; then : 38891 $as_echo_n "(cached) " >&6 38892 else 38893 if test -n "$OBJDUMP"; then 38894 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38895 else 38896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38897 for as_dir in $PATH 38898 do 38899 IFS=$as_save_IFS 38900 test -z "$as_dir" && as_dir=. 38901 for ac_exec_ext in '' $ac_executable_extensions; do 38902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38903 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38905 break 2 38906 fi 38907 done 38908 done 38909 IFS=$as_save_IFS 38910 38911 fi 38912 fi 38913 OBJDUMP=$ac_cv_prog_OBJDUMP 38914 if test -n "$OBJDUMP"; then 38915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38916 $as_echo "$OBJDUMP" >&6; } 38917 else 38918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38919 $as_echo "no" >&6; } 38920 fi 38921 38922 38923 test -n "$OBJDUMP" && break 38924 done 38925 fi 38926 if test -z "$OBJDUMP"; then 38927 ac_ct_OBJDUMP=$OBJDUMP 38928 for ac_prog in gobjdump objdump 38929 do 38930 # Extract the first word of "$ac_prog", so it can be a program name with args. 38931 set dummy $ac_prog; ac_word=$2 38932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38933 $as_echo_n "checking for $ac_word... " >&6; } 38934 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38935 $as_echo_n "(cached) " >&6 38936 else 38937 if test -n "$ac_ct_OBJDUMP"; then 38938 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38939 else 38940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38941 for as_dir in $PATH 38942 do 38943 IFS=$as_save_IFS 38944 test -z "$as_dir" && as_dir=. 38945 for ac_exec_ext in '' $ac_executable_extensions; do 38946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38947 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38949 break 2 38950 fi 38951 done 38952 done 38953 IFS=$as_save_IFS 38954 38955 fi 38956 fi 38957 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38958 if test -n "$ac_ct_OBJDUMP"; then 38959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38960 $as_echo "$ac_ct_OBJDUMP" >&6; } 38961 else 38962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38963 $as_echo "no" >&6; } 38964 fi 38965 38966 38967 test -n "$ac_ct_OBJDUMP" && break 38968 done 38969 38970 if test "x$ac_ct_OBJDUMP" = x; then 38971 OBJDUMP="" 38972 else 38973 case $cross_compiling:$ac_tool_warned in 38974 yes:) 38975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38977 ac_tool_warned=yes ;; 38978 esac 38979 OBJDUMP=$ac_ct_OBJDUMP 38980 fi 38981 fi 38982 38983 else 38984 # The variable is set, but is it from the command line or the environment? 38985 38986 # Try to remove the string !OBJDUMP! from our list. 38987 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38988 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38989 # If it failed, the variable was not from the command line. Ignore it, 38990 # but warn the user (except for BASH, which is always set by the calling BASH). 38991 if test "xOBJDUMP" != xBASH; then 38992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38993 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38994 fi 38995 # Try to locate tool using the code snippet 38996 if test -n "$ac_tool_prefix"; then 38997 for ac_prog in gobjdump objdump 38998 do 38999 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 39000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 39001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39002 $as_echo_n "checking for $ac_word... " >&6; } 39003 if ${ac_cv_prog_OBJDUMP+:} false; then : 39004 $as_echo_n "(cached) " >&6 39005 else 39006 if test -n "$OBJDUMP"; then 39007 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 39008 else 39009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39010 for as_dir in $PATH 39011 do 39012 IFS=$as_save_IFS 39013 test -z "$as_dir" && as_dir=. 39014 for ac_exec_ext in '' $ac_executable_extensions; do 39015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39016 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 39017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39018 break 2 39019 fi 39020 done 39021 done 39022 IFS=$as_save_IFS 39023 39024 fi 39025 fi 39026 OBJDUMP=$ac_cv_prog_OBJDUMP 39027 if test -n "$OBJDUMP"; then 39028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39029 $as_echo "$OBJDUMP" >&6; } 39030 else 39031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39032 $as_echo "no" >&6; } 39033 fi 39034 39035 39036 test -n "$OBJDUMP" && break 39037 done 39038 fi 39039 if test -z "$OBJDUMP"; then 39040 ac_ct_OBJDUMP=$OBJDUMP 39041 for ac_prog in gobjdump objdump 39042 do 39043 # Extract the first word of "$ac_prog", so it can be a program name with args. 39044 set dummy $ac_prog; ac_word=$2 39045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39046 $as_echo_n "checking for $ac_word... " >&6; } 39047 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 39048 $as_echo_n "(cached) " >&6 39049 else 39050 if test -n "$ac_ct_OBJDUMP"; then 39051 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 39052 else 39053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39054 for as_dir in $PATH 39055 do 39056 IFS=$as_save_IFS 39057 test -z "$as_dir" && as_dir=. 39058 for ac_exec_ext in '' $ac_executable_extensions; do 39059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39060 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 39061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39062 break 2 39063 fi 39064 done 39065 done 39066 IFS=$as_save_IFS 39067 39068 fi 39069 fi 39070 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 39071 if test -n "$ac_ct_OBJDUMP"; then 39072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 39073 $as_echo "$ac_ct_OBJDUMP" >&6; } 39074 else 39075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39076 $as_echo "no" >&6; } 39077 fi 39078 39079 39080 test -n "$ac_ct_OBJDUMP" && break 39081 done 39082 39083 if test "x$ac_ct_OBJDUMP" = x; then 39084 OBJDUMP="" 39085 else 39086 case $cross_compiling:$ac_tool_warned in 39087 yes:) 39088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39090 ac_tool_warned=yes ;; 39091 esac 39092 OBJDUMP=$ac_ct_OBJDUMP 39093 fi 39094 fi 39095 39096 else 39097 # If it succeeded, then it was overridden by the user. We will use it 39098 # for the tool. 39099 39100 # First remove it from the list of overridden variables, so we can test 39101 # for unknown variables in the end. 39102 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39103 39104 # Check if the provided tool contains a complete path. 39105 tool_specified="$OBJDUMP" 39106 tool_basename="${tool_specified##*/}" 39107 if test "x$tool_basename" = "x$tool_specified"; then 39108 # A command without a complete path is provided, search $PATH. 39109 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 39110 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 39111 # Extract the first word of "$tool_basename", so it can be a program name with args. 39112 set dummy $tool_basename; ac_word=$2 39113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39114 $as_echo_n "checking for $ac_word... " >&6; } 39115 if ${ac_cv_path_OBJDUMP+:} false; then : 39116 $as_echo_n "(cached) " >&6 39117 else 39118 case $OBJDUMP in 39119 [\\/]* | ?:[\\/]*) 39120 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 39121 ;; 39122 *) 39123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39124 for as_dir in $PATH 39125 do 39126 IFS=$as_save_IFS 39127 test -z "$as_dir" && as_dir=. 39128 for ac_exec_ext in '' $ac_executable_extensions; do 39129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39130 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 39131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39132 break 2 39133 fi 39134 done 39135 done 39136 IFS=$as_save_IFS 39137 39138 ;; 39139 esac 39140 fi 39141 OBJDUMP=$ac_cv_path_OBJDUMP 39142 if test -n "$OBJDUMP"; then 39143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39144 $as_echo "$OBJDUMP" >&6; } 39145 else 39146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39147 $as_echo "no" >&6; } 39148 fi 39149 39150 39151 if test "x$OBJDUMP" = x; then 39152 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39153 fi 39154 else 39155 # Otherwise we believe it is a complete path. Use it as it is. 39156 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 39157 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 39158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 39159 $as_echo_n "checking for OBJDUMP... " >&6; } 39160 if test ! -x "$tool_specified"; then 39161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39162 $as_echo "not found" >&6; } 39163 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 39164 fi 39165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39166 $as_echo "$tool_specified" >&6; } 39167 fi 39168 fi 39169 fi 39170 39171 39172 if test "x$OBJDUMP" != x; then 39173 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 39174 # bails if argument is missing. 39175 39176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39177 39178 # First separate the path from the arguments. This will split at the first 39179 # space. 39180 complete="$OBJDUMP" 39181 path="${complete%% *}" 39182 tmp="$complete EOL" 39183 arguments="${tmp#* }" 39184 39185 # Input might be given as Windows format, start by converting to 39186 # unix format. 39187 new_path=`$CYGPATH -u "$path"` 39188 39189 # Now try to locate executable using which 39190 new_path=`$WHICH "$new_path" 2> /dev/null` 39191 # bat and cmd files are not always considered executable in cygwin causing which 39192 # to not find them 39193 if test "x$new_path" = x \ 39194 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39195 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39196 new_path=`$CYGPATH -u "$path"` 39197 fi 39198 if test "x$new_path" = x; then 39199 # Oops. Which didn't find the executable. 39200 # The splitting of arguments from the executable at a space might have been incorrect, 39201 # since paths with space are more likely in Windows. Give it another try with the whole 39202 # argument. 39203 path="$complete" 39204 arguments="EOL" 39205 new_path=`$CYGPATH -u "$path"` 39206 new_path=`$WHICH "$new_path" 2> /dev/null` 39207 # bat and cmd files are not always considered executable in cygwin causing which 39208 # to not find them 39209 if test "x$new_path" = x \ 39210 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39211 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39212 new_path=`$CYGPATH -u "$path"` 39213 fi 39214 if test "x$new_path" = x; then 39215 # It's still not found. Now this is an unrecoverable error. 39216 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39217 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39218 has_space=`$ECHO "$complete" | $GREP " "` 39219 if test "x$has_space" != x; then 39220 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39221 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39222 fi 39223 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39224 fi 39225 fi 39226 39227 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39228 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39229 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39230 # "foo.exe" is OK but "foo" is an error. 39231 # 39232 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39233 # It is also a way to make sure we got the proper file name for the real test later on. 39234 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39235 if test "x$test_shortpath" = x; then 39236 # Short path failed, file does not exist as specified. 39237 # Try adding .exe or .cmd 39238 if test -f "${new_path}.exe"; then 39239 input_to_shortpath="${new_path}.exe" 39240 elif test -f "${new_path}.cmd"; then 39241 input_to_shortpath="${new_path}.cmd" 39242 else 39243 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 39244 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 39245 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39246 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39247 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39248 fi 39249 else 39250 input_to_shortpath="$new_path" 39251 fi 39252 39253 # Call helper function which possibly converts this using DOS-style short mode. 39254 # If so, the updated path is stored in $new_path. 39255 new_path="$input_to_shortpath" 39256 39257 input_path="$input_to_shortpath" 39258 # Check if we need to convert this using DOS-style short mode. If the path 39259 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39260 # take no chances and rewrite it. 39261 # Note: m4 eats our [], so we need to use [ and ] instead. 39262 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39263 if test "x$has_forbidden_chars" != x; then 39264 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39265 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39266 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39267 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39268 # Going to short mode and back again did indeed matter. Since short mode is 39269 # case insensitive, let's make it lowercase to improve readability. 39270 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39271 # Now convert it back to Unix-stile (cygpath) 39272 input_path=`$CYGPATH -u "$shortmode_path"` 39273 new_path="$input_path" 39274 fi 39275 fi 39276 39277 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39278 if test "x$test_cygdrive_prefix" = x; then 39279 # As a simple fix, exclude /usr/bin since it's not a real path. 39280 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39281 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39282 # a path prefixed by /cygdrive for fixpath to work. 39283 new_path="$CYGWIN_ROOT_PATH$input_path" 39284 fi 39285 fi 39286 39287 # remove trailing .exe if any 39288 new_path="${new_path/%.exe/}" 39289 39290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39291 39292 # First separate the path from the arguments. This will split at the first 39293 # space. 39294 complete="$OBJDUMP" 39295 path="${complete%% *}" 39296 tmp="$complete EOL" 39297 arguments="${tmp#* }" 39298 39299 # Input might be given as Windows format, start by converting to 39300 # unix format. 39301 new_path="$path" 39302 39303 windows_path="$new_path" 39304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39305 unix_path=`$CYGPATH -u "$windows_path"` 39306 new_path="$unix_path" 39307 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39308 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39309 new_path="$unix_path" 39310 fi 39311 39312 39313 # Now try to locate executable using which 39314 new_path=`$WHICH "$new_path" 2> /dev/null` 39315 39316 if test "x$new_path" = x; then 39317 # Oops. Which didn't find the executable. 39318 # The splitting of arguments from the executable at a space might have been incorrect, 39319 # since paths with space are more likely in Windows. Give it another try with the whole 39320 # argument. 39321 path="$complete" 39322 arguments="EOL" 39323 new_path="$path" 39324 39325 windows_path="$new_path" 39326 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39327 unix_path=`$CYGPATH -u "$windows_path"` 39328 new_path="$unix_path" 39329 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39330 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39331 new_path="$unix_path" 39332 fi 39333 39334 39335 new_path=`$WHICH "$new_path" 2> /dev/null` 39336 # bat and cmd files are not always considered executable in MSYS causing which 39337 # to not find them 39338 if test "x$new_path" = x \ 39339 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39340 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39341 new_path="$path" 39342 39343 windows_path="$new_path" 39344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39345 unix_path=`$CYGPATH -u "$windows_path"` 39346 new_path="$unix_path" 39347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39349 new_path="$unix_path" 39350 fi 39351 39352 fi 39353 39354 if test "x$new_path" = x; then 39355 # It's still not found. Now this is an unrecoverable error. 39356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39357 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39358 has_space=`$ECHO "$complete" | $GREP " "` 39359 if test "x$has_space" != x; then 39360 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39361 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39362 fi 39363 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39364 fi 39365 fi 39366 39367 # Now new_path has a complete unix path to the binary 39368 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39369 # Keep paths in /bin as-is, but remove trailing .exe if any 39370 new_path="${new_path/%.exe/}" 39371 # Do not save /bin paths to all_fixpath_prefixes! 39372 else 39373 # Not in mixed or Windows style, start by that. 39374 new_path=`cmd //c echo $new_path` 39375 39376 input_path="$new_path" 39377 # Check if we need to convert this using DOS-style short mode. If the path 39378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39379 # take no chances and rewrite it. 39380 # Note: m4 eats our [], so we need to use [ and ] instead. 39381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39382 if test "x$has_forbidden_chars" != x; then 39383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39384 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39385 fi 39386 39387 # Output is in $new_path 39388 39389 windows_path="$new_path" 39390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39391 unix_path=`$CYGPATH -u "$windows_path"` 39392 new_path="$unix_path" 39393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39394 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39395 new_path="$unix_path" 39396 fi 39397 39398 # remove trailing .exe if any 39399 new_path="${new_path/%.exe/}" 39400 39401 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39402 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39403 fi 39404 39405 else 39406 # We're on a posix platform. Hooray! :) 39407 # First separate the path from the arguments. This will split at the first 39408 # space. 39409 complete="$OBJDUMP" 39410 path="${complete%% *}" 39411 tmp="$complete EOL" 39412 arguments="${tmp#* }" 39413 39414 # Cannot rely on the command "which" here since it doesn't always work. 39415 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39416 if test -z "$is_absolute_path"; then 39417 # Path to executable is not absolute. Find it. 39418 IFS_save="$IFS" 39419 IFS=: 39420 for p in $PATH; do 39421 if test -f "$p/$path" && test -x "$p/$path"; then 39422 new_path="$p/$path" 39423 break 39424 fi 39425 done 39426 IFS="$IFS_save" 39427 else 39428 # This is an absolute path, we can use it without further modifications. 39429 new_path="$path" 39430 fi 39431 39432 if test "x$new_path" = x; then 39433 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39434 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39435 has_space=`$ECHO "$complete" | $GREP " "` 39436 if test "x$has_space" != x; then 39437 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39438 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39439 fi 39440 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39441 fi 39442 fi 39443 39444 # Now join together the path and the arguments once again 39445 if test "x$arguments" != xEOL; then 39446 new_complete="$new_path ${arguments% *}" 39447 else 39448 new_complete="$new_path" 39449 fi 39450 39451 if test "x$complete" != "x$new_complete"; then 39452 OBJDUMP="$new_complete" 39453 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 39454 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 39455 fi 39456 39457 fi 39458 39459 39460 # Restore old path. 39461 PATH="$OLD_PATH" 39462 39463 # Restore the flags to the user specified values. 39464 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 39465 CFLAGS="$ORG_CFLAGS" 39466 CXXFLAGS="$ORG_CXXFLAGS" 39467 OBJCFLAGS="$ORG_OBJCFLAGS" 39468 39469 39470 # Finally do some processing after the detection phase 39471 39472 if test "x$COMPILE_TYPE" = "xcross"; then 39473 # Now we need to find a C/C++ compiler that can build executables for the 39474 # build platform. We can't use the AC_PROG_CC macro, since it can only be 39475 # used once. Also, we need to do this without adding a tools dir to the 39476 # path, otherwise we might pick up cross-compilers which don't use standard 39477 # naming. 39478 39479 # FIXME: we should list the discovered compilers as an exclude pattern! 39480 # If we do that, we can do this detection before POST_DETECTION, and still 39481 # find the build compilers in the tools dir, if needed. 39482 39483 39484 # Publish this variable in the help. 39485 39486 39487 if test "x$BUILD_CC" = x; then 39488 # The variable is not set by user, try to locate tool using the code snippet 39489 for ac_prog in cl cc gcc 39490 do 39491 # Extract the first word of "$ac_prog", so it can be a program name with args. 39492 set dummy $ac_prog; ac_word=$2 39493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39494 $as_echo_n "checking for $ac_word... " >&6; } 39495 if ${ac_cv_path_BUILD_CC+:} false; then : 39496 $as_echo_n "(cached) " >&6 39497 else 39498 case $BUILD_CC in 39499 [\\/]* | ?:[\\/]*) 39500 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39501 ;; 39502 *) 39503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39504 for as_dir in $PATH 39505 do 39506 IFS=$as_save_IFS 39507 test -z "$as_dir" && as_dir=. 39508 for ac_exec_ext in '' $ac_executable_extensions; do 39509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39510 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39512 break 2 39513 fi 39514 done 39515 done 39516 IFS=$as_save_IFS 39517 39518 ;; 39519 esac 39520 fi 39521 BUILD_CC=$ac_cv_path_BUILD_CC 39522 if test -n "$BUILD_CC"; then 39523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39524 $as_echo "$BUILD_CC" >&6; } 39525 else 39526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39527 $as_echo "no" >&6; } 39528 fi 39529 39530 39531 test -n "$BUILD_CC" && break 39532 done 39533 39534 else 39535 # The variable is set, but is it from the command line or the environment? 39536 39537 # Try to remove the string !BUILD_CC! from our list. 39538 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 39539 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39540 # If it failed, the variable was not from the command line. Ignore it, 39541 # but warn the user (except for BASH, which is always set by the calling BASH). 39542 if test "xBUILD_CC" != xBASH; then 39543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 39544 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 39545 fi 39546 # Try to locate tool using the code snippet 39547 for ac_prog in cl cc gcc 39548 do 39549 # Extract the first word of "$ac_prog", so it can be a program name with args. 39550 set dummy $ac_prog; ac_word=$2 39551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39552 $as_echo_n "checking for $ac_word... " >&6; } 39553 if ${ac_cv_path_BUILD_CC+:} false; then : 39554 $as_echo_n "(cached) " >&6 39555 else 39556 case $BUILD_CC in 39557 [\\/]* | ?:[\\/]*) 39558 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39559 ;; 39560 *) 39561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39562 for as_dir in $PATH 39563 do 39564 IFS=$as_save_IFS 39565 test -z "$as_dir" && as_dir=. 39566 for ac_exec_ext in '' $ac_executable_extensions; do 39567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39568 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39570 break 2 39571 fi 39572 done 39573 done 39574 IFS=$as_save_IFS 39575 39576 ;; 39577 esac 39578 fi 39579 BUILD_CC=$ac_cv_path_BUILD_CC 39580 if test -n "$BUILD_CC"; then 39581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39582 $as_echo "$BUILD_CC" >&6; } 39583 else 39584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39585 $as_echo "no" >&6; } 39586 fi 39587 39588 39589 test -n "$BUILD_CC" && break 39590 done 39591 39592 else 39593 # If it succeeded, then it was overridden by the user. We will use it 39594 # for the tool. 39595 39596 # First remove it from the list of overridden variables, so we can test 39597 # for unknown variables in the end. 39598 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39599 39600 # Check if the provided tool contains a complete path. 39601 tool_specified="$BUILD_CC" 39602 tool_basename="${tool_specified##*/}" 39603 if test "x$tool_basename" = "x$tool_specified"; then 39604 # A command without a complete path is provided, search $PATH. 39605 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 39606 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 39607 # Extract the first word of "$tool_basename", so it can be a program name with args. 39608 set dummy $tool_basename; ac_word=$2 39609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39610 $as_echo_n "checking for $ac_word... " >&6; } 39611 if ${ac_cv_path_BUILD_CC+:} false; then : 39612 $as_echo_n "(cached) " >&6 39613 else 39614 case $BUILD_CC in 39615 [\\/]* | ?:[\\/]*) 39616 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39617 ;; 39618 *) 39619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39620 for as_dir in $PATH 39621 do 39622 IFS=$as_save_IFS 39623 test -z "$as_dir" && as_dir=. 39624 for ac_exec_ext in '' $ac_executable_extensions; do 39625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39626 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39628 break 2 39629 fi 39630 done 39631 done 39632 IFS=$as_save_IFS 39633 39634 ;; 39635 esac 39636 fi 39637 BUILD_CC=$ac_cv_path_BUILD_CC 39638 if test -n "$BUILD_CC"; then 39639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39640 $as_echo "$BUILD_CC" >&6; } 39641 else 39642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39643 $as_echo "no" >&6; } 39644 fi 39645 39646 39647 if test "x$BUILD_CC" = x; then 39648 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39649 fi 39650 else 39651 # Otherwise we believe it is a complete path. Use it as it is. 39652 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 39653 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 39654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 39655 $as_echo_n "checking for BUILD_CC... " >&6; } 39656 if test ! -x "$tool_specified"; then 39657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39658 $as_echo "not found" >&6; } 39659 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 39660 fi 39661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39662 $as_echo "$tool_specified" >&6; } 39663 fi 39664 fi 39665 fi 39666 39667 39668 39669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39670 39671 # First separate the path from the arguments. This will split at the first 39672 # space. 39673 complete="$BUILD_CC" 39674 path="${complete%% *}" 39675 tmp="$complete EOL" 39676 arguments="${tmp#* }" 39677 39678 # Input might be given as Windows format, start by converting to 39679 # unix format. 39680 new_path=`$CYGPATH -u "$path"` 39681 39682 # Now try to locate executable using which 39683 new_path=`$WHICH "$new_path" 2> /dev/null` 39684 # bat and cmd files are not always considered executable in cygwin causing which 39685 # to not find them 39686 if test "x$new_path" = x \ 39687 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39688 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39689 new_path=`$CYGPATH -u "$path"` 39690 fi 39691 if test "x$new_path" = x; then 39692 # Oops. Which didn't find the executable. 39693 # The splitting of arguments from the executable at a space might have been incorrect, 39694 # since paths with space are more likely in Windows. Give it another try with the whole 39695 # argument. 39696 path="$complete" 39697 arguments="EOL" 39698 new_path=`$CYGPATH -u "$path"` 39699 new_path=`$WHICH "$new_path" 2> /dev/null` 39700 # bat and cmd files are not always considered executable in cygwin causing which 39701 # to not find them 39702 if test "x$new_path" = x \ 39703 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39704 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39705 new_path=`$CYGPATH -u "$path"` 39706 fi 39707 if test "x$new_path" = x; then 39708 # It's still not found. Now this is an unrecoverable error. 39709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39710 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39711 has_space=`$ECHO "$complete" | $GREP " "` 39712 if test "x$has_space" != x; then 39713 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39714 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39715 fi 39716 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39717 fi 39718 fi 39719 39720 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39721 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39722 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39723 # "foo.exe" is OK but "foo" is an error. 39724 # 39725 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39726 # It is also a way to make sure we got the proper file name for the real test later on. 39727 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39728 if test "x$test_shortpath" = x; then 39729 # Short path failed, file does not exist as specified. 39730 # Try adding .exe or .cmd 39731 if test -f "${new_path}.exe"; then 39732 input_to_shortpath="${new_path}.exe" 39733 elif test -f "${new_path}.cmd"; then 39734 input_to_shortpath="${new_path}.cmd" 39735 else 39736 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39737 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39738 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39739 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39740 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39741 fi 39742 else 39743 input_to_shortpath="$new_path" 39744 fi 39745 39746 # Call helper function which possibly converts this using DOS-style short mode. 39747 # If so, the updated path is stored in $new_path. 39748 new_path="$input_to_shortpath" 39749 39750 input_path="$input_to_shortpath" 39751 # Check if we need to convert this using DOS-style short mode. If the path 39752 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39753 # take no chances and rewrite it. 39754 # Note: m4 eats our [], so we need to use [ and ] instead. 39755 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39756 if test "x$has_forbidden_chars" != x; then 39757 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39758 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39759 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39760 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39761 # Going to short mode and back again did indeed matter. Since short mode is 39762 # case insensitive, let's make it lowercase to improve readability. 39763 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39764 # Now convert it back to Unix-stile (cygpath) 39765 input_path=`$CYGPATH -u "$shortmode_path"` 39766 new_path="$input_path" 39767 fi 39768 fi 39769 39770 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39771 if test "x$test_cygdrive_prefix" = x; then 39772 # As a simple fix, exclude /usr/bin since it's not a real path. 39773 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39774 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39775 # a path prefixed by /cygdrive for fixpath to work. 39776 new_path="$CYGWIN_ROOT_PATH$input_path" 39777 fi 39778 fi 39779 39780 # remove trailing .exe if any 39781 new_path="${new_path/%.exe/}" 39782 39783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39784 39785 # First separate the path from the arguments. This will split at the first 39786 # space. 39787 complete="$BUILD_CC" 39788 path="${complete%% *}" 39789 tmp="$complete EOL" 39790 arguments="${tmp#* }" 39791 39792 # Input might be given as Windows format, start by converting to 39793 # unix format. 39794 new_path="$path" 39795 39796 windows_path="$new_path" 39797 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39798 unix_path=`$CYGPATH -u "$windows_path"` 39799 new_path="$unix_path" 39800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39801 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39802 new_path="$unix_path" 39803 fi 39804 39805 39806 # Now try to locate executable using which 39807 new_path=`$WHICH "$new_path" 2> /dev/null` 39808 39809 if test "x$new_path" = x; then 39810 # Oops. Which didn't find the executable. 39811 # The splitting of arguments from the executable at a space might have been incorrect, 39812 # since paths with space are more likely in Windows. Give it another try with the whole 39813 # argument. 39814 path="$complete" 39815 arguments="EOL" 39816 new_path="$path" 39817 39818 windows_path="$new_path" 39819 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39820 unix_path=`$CYGPATH -u "$windows_path"` 39821 new_path="$unix_path" 39822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39823 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39824 new_path="$unix_path" 39825 fi 39826 39827 39828 new_path=`$WHICH "$new_path" 2> /dev/null` 39829 # bat and cmd files are not always considered executable in MSYS causing which 39830 # to not find them 39831 if test "x$new_path" = x \ 39832 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39833 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39834 new_path="$path" 39835 39836 windows_path="$new_path" 39837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39838 unix_path=`$CYGPATH -u "$windows_path"` 39839 new_path="$unix_path" 39840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39841 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39842 new_path="$unix_path" 39843 fi 39844 39845 fi 39846 39847 if test "x$new_path" = x; then 39848 # It's still not found. Now this is an unrecoverable error. 39849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39850 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39851 has_space=`$ECHO "$complete" | $GREP " "` 39852 if test "x$has_space" != x; then 39853 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39854 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39855 fi 39856 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39857 fi 39858 fi 39859 39860 # Now new_path has a complete unix path to the binary 39861 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39862 # Keep paths in /bin as-is, but remove trailing .exe if any 39863 new_path="${new_path/%.exe/}" 39864 # Do not save /bin paths to all_fixpath_prefixes! 39865 else 39866 # Not in mixed or Windows style, start by that. 39867 new_path=`cmd //c echo $new_path` 39868 39869 input_path="$new_path" 39870 # Check if we need to convert this using DOS-style short mode. If the path 39871 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39872 # take no chances and rewrite it. 39873 # Note: m4 eats our [], so we need to use [ and ] instead. 39874 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39875 if test "x$has_forbidden_chars" != x; then 39876 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39877 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39878 fi 39879 39880 # Output is in $new_path 39881 39882 windows_path="$new_path" 39883 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39884 unix_path=`$CYGPATH -u "$windows_path"` 39885 new_path="$unix_path" 39886 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39887 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39888 new_path="$unix_path" 39889 fi 39890 39891 # remove trailing .exe if any 39892 new_path="${new_path/%.exe/}" 39893 39894 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39895 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39896 fi 39897 39898 else 39899 # We're on a posix platform. Hooray! :) 39900 # First separate the path from the arguments. This will split at the first 39901 # space. 39902 complete="$BUILD_CC" 39903 path="${complete%% *}" 39904 tmp="$complete EOL" 39905 arguments="${tmp#* }" 39906 39907 # Cannot rely on the command "which" here since it doesn't always work. 39908 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39909 if test -z "$is_absolute_path"; then 39910 # Path to executable is not absolute. Find it. 39911 IFS_save="$IFS" 39912 IFS=: 39913 for p in $PATH; do 39914 if test -f "$p/$path" && test -x "$p/$path"; then 39915 new_path="$p/$path" 39916 break 39917 fi 39918 done 39919 IFS="$IFS_save" 39920 else 39921 # This is an absolute path, we can use it without further modifications. 39922 new_path="$path" 39923 fi 39924 39925 if test "x$new_path" = x; then 39926 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39927 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39928 has_space=`$ECHO "$complete" | $GREP " "` 39929 if test "x$has_space" != x; then 39930 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39931 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39932 fi 39933 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39934 fi 39935 fi 39936 39937 # Now join together the path and the arguments once again 39938 if test "x$arguments" != xEOL; then 39939 new_complete="$new_path ${arguments% *}" 39940 else 39941 new_complete="$new_path" 39942 fi 39943 39944 if test "x$complete" != "x$new_complete"; then 39945 BUILD_CC="$new_complete" 39946 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39947 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39948 fi 39949 39950 39951 39952 # Publish this variable in the help. 39953 39954 39955 if test "x$BUILD_CXX" = x; then 39956 # The variable is not set by user, try to locate tool using the code snippet 39957 for ac_prog in cl CC g++ 39958 do 39959 # Extract the first word of "$ac_prog", so it can be a program name with args. 39960 set dummy $ac_prog; ac_word=$2 39961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39962 $as_echo_n "checking for $ac_word... " >&6; } 39963 if ${ac_cv_path_BUILD_CXX+:} false; then : 39964 $as_echo_n "(cached) " >&6 39965 else 39966 case $BUILD_CXX in 39967 [\\/]* | ?:[\\/]*) 39968 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39969 ;; 39970 *) 39971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39972 for as_dir in $PATH 39973 do 39974 IFS=$as_save_IFS 39975 test -z "$as_dir" && as_dir=. 39976 for ac_exec_ext in '' $ac_executable_extensions; do 39977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39978 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39980 break 2 39981 fi 39982 done 39983 done 39984 IFS=$as_save_IFS 39985 39986 ;; 39987 esac 39988 fi 39989 BUILD_CXX=$ac_cv_path_BUILD_CXX 39990 if test -n "$BUILD_CXX"; then 39991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39992 $as_echo "$BUILD_CXX" >&6; } 39993 else 39994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39995 $as_echo "no" >&6; } 39996 fi 39997 39998 39999 test -n "$BUILD_CXX" && break 40000 done 40001 40002 else 40003 # The variable is set, but is it from the command line or the environment? 40004 40005 # Try to remove the string !BUILD_CXX! from our list. 40006 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 40007 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40008 # If it failed, the variable was not from the command line. Ignore it, 40009 # but warn the user (except for BASH, which is always set by the calling BASH). 40010 if test "xBUILD_CXX" != xBASH; then 40011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 40012 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 40013 fi 40014 # Try to locate tool using the code snippet 40015 for ac_prog in cl CC g++ 40016 do 40017 # Extract the first word of "$ac_prog", so it can be a program name with args. 40018 set dummy $ac_prog; ac_word=$2 40019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40020 $as_echo_n "checking for $ac_word... " >&6; } 40021 if ${ac_cv_path_BUILD_CXX+:} false; then : 40022 $as_echo_n "(cached) " >&6 40023 else 40024 case $BUILD_CXX in 40025 [\\/]* | ?:[\\/]*) 40026 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 40027 ;; 40028 *) 40029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40030 for as_dir in $PATH 40031 do 40032 IFS=$as_save_IFS 40033 test -z "$as_dir" && as_dir=. 40034 for ac_exec_ext in '' $ac_executable_extensions; do 40035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40036 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 40037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40038 break 2 40039 fi 40040 done 40041 done 40042 IFS=$as_save_IFS 40043 40044 ;; 40045 esac 40046 fi 40047 BUILD_CXX=$ac_cv_path_BUILD_CXX 40048 if test -n "$BUILD_CXX"; then 40049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40050 $as_echo "$BUILD_CXX" >&6; } 40051 else 40052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40053 $as_echo "no" >&6; } 40054 fi 40055 40056 40057 test -n "$BUILD_CXX" && break 40058 done 40059 40060 else 40061 # If it succeeded, then it was overridden by the user. We will use it 40062 # for the tool. 40063 40064 # First remove it from the list of overridden variables, so we can test 40065 # for unknown variables in the end. 40066 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40067 40068 # Check if the provided tool contains a complete path. 40069 tool_specified="$BUILD_CXX" 40070 tool_basename="${tool_specified##*/}" 40071 if test "x$tool_basename" = "x$tool_specified"; then 40072 # A command without a complete path is provided, search $PATH. 40073 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 40074 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 40075 # Extract the first word of "$tool_basename", so it can be a program name with args. 40076 set dummy $tool_basename; ac_word=$2 40077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40078 $as_echo_n "checking for $ac_word... " >&6; } 40079 if ${ac_cv_path_BUILD_CXX+:} false; then : 40080 $as_echo_n "(cached) " >&6 40081 else 40082 case $BUILD_CXX in 40083 [\\/]* | ?:[\\/]*) 40084 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 40085 ;; 40086 *) 40087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40088 for as_dir in $PATH 40089 do 40090 IFS=$as_save_IFS 40091 test -z "$as_dir" && as_dir=. 40092 for ac_exec_ext in '' $ac_executable_extensions; do 40093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40094 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 40095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40096 break 2 40097 fi 40098 done 40099 done 40100 IFS=$as_save_IFS 40101 40102 ;; 40103 esac 40104 fi 40105 BUILD_CXX=$ac_cv_path_BUILD_CXX 40106 if test -n "$BUILD_CXX"; then 40107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40108 $as_echo "$BUILD_CXX" >&6; } 40109 else 40110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40111 $as_echo "no" >&6; } 40112 fi 40113 40114 40115 if test "x$BUILD_CXX" = x; then 40116 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40117 fi 40118 else 40119 # Otherwise we believe it is a complete path. Use it as it is. 40120 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 40121 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 40122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 40123 $as_echo_n "checking for BUILD_CXX... " >&6; } 40124 if test ! -x "$tool_specified"; then 40125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40126 $as_echo "not found" >&6; } 40127 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 40128 fi 40129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40130 $as_echo "$tool_specified" >&6; } 40131 fi 40132 fi 40133 fi 40134 40135 40136 40137 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40138 40139 # First separate the path from the arguments. This will split at the first 40140 # space. 40141 complete="$BUILD_CXX" 40142 path="${complete%% *}" 40143 tmp="$complete EOL" 40144 arguments="${tmp#* }" 40145 40146 # Input might be given as Windows format, start by converting to 40147 # unix format. 40148 new_path=`$CYGPATH -u "$path"` 40149 40150 # Now try to locate executable using which 40151 new_path=`$WHICH "$new_path" 2> /dev/null` 40152 # bat and cmd files are not always considered executable in cygwin causing which 40153 # to not find them 40154 if test "x$new_path" = x \ 40155 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40156 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40157 new_path=`$CYGPATH -u "$path"` 40158 fi 40159 if test "x$new_path" = x; then 40160 # Oops. Which didn't find the executable. 40161 # The splitting of arguments from the executable at a space might have been incorrect, 40162 # since paths with space are more likely in Windows. Give it another try with the whole 40163 # argument. 40164 path="$complete" 40165 arguments="EOL" 40166 new_path=`$CYGPATH -u "$path"` 40167 new_path=`$WHICH "$new_path" 2> /dev/null` 40168 # bat and cmd files are not always considered executable in cygwin causing which 40169 # to not find them 40170 if test "x$new_path" = x \ 40171 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40172 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40173 new_path=`$CYGPATH -u "$path"` 40174 fi 40175 if test "x$new_path" = x; then 40176 # It's still not found. Now this is an unrecoverable error. 40177 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40178 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40179 has_space=`$ECHO "$complete" | $GREP " "` 40180 if test "x$has_space" != x; then 40181 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40182 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40183 fi 40184 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40185 fi 40186 fi 40187 40188 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40189 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40190 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40191 # "foo.exe" is OK but "foo" is an error. 40192 # 40193 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40194 # It is also a way to make sure we got the proper file name for the real test later on. 40195 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40196 if test "x$test_shortpath" = x; then 40197 # Short path failed, file does not exist as specified. 40198 # Try adding .exe or .cmd 40199 if test -f "${new_path}.exe"; then 40200 input_to_shortpath="${new_path}.exe" 40201 elif test -f "${new_path}.cmd"; then 40202 input_to_shortpath="${new_path}.cmd" 40203 else 40204 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 40205 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 40206 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40207 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40208 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40209 fi 40210 else 40211 input_to_shortpath="$new_path" 40212 fi 40213 40214 # Call helper function which possibly converts this using DOS-style short mode. 40215 # If so, the updated path is stored in $new_path. 40216 new_path="$input_to_shortpath" 40217 40218 input_path="$input_to_shortpath" 40219 # Check if we need to convert this using DOS-style short mode. If the path 40220 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40221 # take no chances and rewrite it. 40222 # Note: m4 eats our [], so we need to use [ and ] instead. 40223 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40224 if test "x$has_forbidden_chars" != x; then 40225 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40226 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40227 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40228 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40229 # Going to short mode and back again did indeed matter. Since short mode is 40230 # case insensitive, let's make it lowercase to improve readability. 40231 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40232 # Now convert it back to Unix-stile (cygpath) 40233 input_path=`$CYGPATH -u "$shortmode_path"` 40234 new_path="$input_path" 40235 fi 40236 fi 40237 40238 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40239 if test "x$test_cygdrive_prefix" = x; then 40240 # As a simple fix, exclude /usr/bin since it's not a real path. 40241 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40242 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40243 # a path prefixed by /cygdrive for fixpath to work. 40244 new_path="$CYGWIN_ROOT_PATH$input_path" 40245 fi 40246 fi 40247 40248 # remove trailing .exe if any 40249 new_path="${new_path/%.exe/}" 40250 40251 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40252 40253 # First separate the path from the arguments. This will split at the first 40254 # space. 40255 complete="$BUILD_CXX" 40256 path="${complete%% *}" 40257 tmp="$complete EOL" 40258 arguments="${tmp#* }" 40259 40260 # Input might be given as Windows format, start by converting to 40261 # unix format. 40262 new_path="$path" 40263 40264 windows_path="$new_path" 40265 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40266 unix_path=`$CYGPATH -u "$windows_path"` 40267 new_path="$unix_path" 40268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40269 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40270 new_path="$unix_path" 40271 fi 40272 40273 40274 # Now try to locate executable using which 40275 new_path=`$WHICH "$new_path" 2> /dev/null` 40276 40277 if test "x$new_path" = x; then 40278 # Oops. Which didn't find the executable. 40279 # The splitting of arguments from the executable at a space might have been incorrect, 40280 # since paths with space are more likely in Windows. Give it another try with the whole 40281 # argument. 40282 path="$complete" 40283 arguments="EOL" 40284 new_path="$path" 40285 40286 windows_path="$new_path" 40287 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40288 unix_path=`$CYGPATH -u "$windows_path"` 40289 new_path="$unix_path" 40290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40291 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40292 new_path="$unix_path" 40293 fi 40294 40295 40296 new_path=`$WHICH "$new_path" 2> /dev/null` 40297 # bat and cmd files are not always considered executable in MSYS causing which 40298 # to not find them 40299 if test "x$new_path" = x \ 40300 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40301 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40302 new_path="$path" 40303 40304 windows_path="$new_path" 40305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40306 unix_path=`$CYGPATH -u "$windows_path"` 40307 new_path="$unix_path" 40308 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40309 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40310 new_path="$unix_path" 40311 fi 40312 40313 fi 40314 40315 if test "x$new_path" = x; then 40316 # It's still not found. Now this is an unrecoverable error. 40317 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40318 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40319 has_space=`$ECHO "$complete" | $GREP " "` 40320 if test "x$has_space" != x; then 40321 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40322 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40323 fi 40324 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40325 fi 40326 fi 40327 40328 # Now new_path has a complete unix path to the binary 40329 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40330 # Keep paths in /bin as-is, but remove trailing .exe if any 40331 new_path="${new_path/%.exe/}" 40332 # Do not save /bin paths to all_fixpath_prefixes! 40333 else 40334 # Not in mixed or Windows style, start by that. 40335 new_path=`cmd //c echo $new_path` 40336 40337 input_path="$new_path" 40338 # Check if we need to convert this using DOS-style short mode. If the path 40339 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40340 # take no chances and rewrite it. 40341 # Note: m4 eats our [], so we need to use [ and ] instead. 40342 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40343 if test "x$has_forbidden_chars" != x; then 40344 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40345 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40346 fi 40347 40348 # Output is in $new_path 40349 40350 windows_path="$new_path" 40351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40352 unix_path=`$CYGPATH -u "$windows_path"` 40353 new_path="$unix_path" 40354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40356 new_path="$unix_path" 40357 fi 40358 40359 # remove trailing .exe if any 40360 new_path="${new_path/%.exe/}" 40361 40362 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40363 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40364 fi 40365 40366 else 40367 # We're on a posix platform. Hooray! :) 40368 # First separate the path from the arguments. This will split at the first 40369 # space. 40370 complete="$BUILD_CXX" 40371 path="${complete%% *}" 40372 tmp="$complete EOL" 40373 arguments="${tmp#* }" 40374 40375 # Cannot rely on the command "which" here since it doesn't always work. 40376 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40377 if test -z "$is_absolute_path"; then 40378 # Path to executable is not absolute. Find it. 40379 IFS_save="$IFS" 40380 IFS=: 40381 for p in $PATH; do 40382 if test -f "$p/$path" && test -x "$p/$path"; then 40383 new_path="$p/$path" 40384 break 40385 fi 40386 done 40387 IFS="$IFS_save" 40388 else 40389 # This is an absolute path, we can use it without further modifications. 40390 new_path="$path" 40391 fi 40392 40393 if test "x$new_path" = x; then 40394 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40395 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40396 has_space=`$ECHO "$complete" | $GREP " "` 40397 if test "x$has_space" != x; then 40398 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40399 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40400 fi 40401 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40402 fi 40403 fi 40404 40405 # Now join together the path and the arguments once again 40406 if test "x$arguments" != xEOL; then 40407 new_complete="$new_path ${arguments% *}" 40408 else 40409 new_complete="$new_path" 40410 fi 40411 40412 if test "x$complete" != "x$new_complete"; then 40413 BUILD_CXX="$new_complete" 40414 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 40415 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 40416 fi 40417 40418 40419 40420 # Publish this variable in the help. 40421 40422 40423 if test "x$BUILD_LD" = x; then 40424 # The variable is not set by user, try to locate tool using the code snippet 40425 for ac_prog in ld 40426 do 40427 # Extract the first word of "$ac_prog", so it can be a program name with args. 40428 set dummy $ac_prog; ac_word=$2 40429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40430 $as_echo_n "checking for $ac_word... " >&6; } 40431 if ${ac_cv_path_BUILD_LD+:} false; then : 40432 $as_echo_n "(cached) " >&6 40433 else 40434 case $BUILD_LD in 40435 [\\/]* | ?:[\\/]*) 40436 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40437 ;; 40438 *) 40439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40440 for as_dir in $PATH 40441 do 40442 IFS=$as_save_IFS 40443 test -z "$as_dir" && as_dir=. 40444 for ac_exec_ext in '' $ac_executable_extensions; do 40445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40446 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40448 break 2 40449 fi 40450 done 40451 done 40452 IFS=$as_save_IFS 40453 40454 ;; 40455 esac 40456 fi 40457 BUILD_LD=$ac_cv_path_BUILD_LD 40458 if test -n "$BUILD_LD"; then 40459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40460 $as_echo "$BUILD_LD" >&6; } 40461 else 40462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40463 $as_echo "no" >&6; } 40464 fi 40465 40466 40467 test -n "$BUILD_LD" && break 40468 done 40469 40470 else 40471 # The variable is set, but is it from the command line or the environment? 40472 40473 # Try to remove the string !BUILD_LD! from our list. 40474 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 40475 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40476 # If it failed, the variable was not from the command line. Ignore it, 40477 # but warn the user (except for BASH, which is always set by the calling BASH). 40478 if test "xBUILD_LD" != xBASH; then 40479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 40480 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 40481 fi 40482 # Try to locate tool using the code snippet 40483 for ac_prog in ld 40484 do 40485 # Extract the first word of "$ac_prog", so it can be a program name with args. 40486 set dummy $ac_prog; ac_word=$2 40487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40488 $as_echo_n "checking for $ac_word... " >&6; } 40489 if ${ac_cv_path_BUILD_LD+:} false; then : 40490 $as_echo_n "(cached) " >&6 40491 else 40492 case $BUILD_LD in 40493 [\\/]* | ?:[\\/]*) 40494 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40495 ;; 40496 *) 40497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40498 for as_dir in $PATH 40499 do 40500 IFS=$as_save_IFS 40501 test -z "$as_dir" && as_dir=. 40502 for ac_exec_ext in '' $ac_executable_extensions; do 40503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40504 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40506 break 2 40507 fi 40508 done 40509 done 40510 IFS=$as_save_IFS 40511 40512 ;; 40513 esac 40514 fi 40515 BUILD_LD=$ac_cv_path_BUILD_LD 40516 if test -n "$BUILD_LD"; then 40517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40518 $as_echo "$BUILD_LD" >&6; } 40519 else 40520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40521 $as_echo "no" >&6; } 40522 fi 40523 40524 40525 test -n "$BUILD_LD" && break 40526 done 40527 40528 else 40529 # If it succeeded, then it was overridden by the user. We will use it 40530 # for the tool. 40531 40532 # First remove it from the list of overridden variables, so we can test 40533 # for unknown variables in the end. 40534 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40535 40536 # Check if the provided tool contains a complete path. 40537 tool_specified="$BUILD_LD" 40538 tool_basename="${tool_specified##*/}" 40539 if test "x$tool_basename" = "x$tool_specified"; then 40540 # A command without a complete path is provided, search $PATH. 40541 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 40542 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 40543 # Extract the first word of "$tool_basename", so it can be a program name with args. 40544 set dummy $tool_basename; ac_word=$2 40545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40546 $as_echo_n "checking for $ac_word... " >&6; } 40547 if ${ac_cv_path_BUILD_LD+:} false; then : 40548 $as_echo_n "(cached) " >&6 40549 else 40550 case $BUILD_LD in 40551 [\\/]* | ?:[\\/]*) 40552 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40553 ;; 40554 *) 40555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40556 for as_dir in $PATH 40557 do 40558 IFS=$as_save_IFS 40559 test -z "$as_dir" && as_dir=. 40560 for ac_exec_ext in '' $ac_executable_extensions; do 40561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40562 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40564 break 2 40565 fi 40566 done 40567 done 40568 IFS=$as_save_IFS 40569 40570 ;; 40571 esac 40572 fi 40573 BUILD_LD=$ac_cv_path_BUILD_LD 40574 if test -n "$BUILD_LD"; then 40575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40576 $as_echo "$BUILD_LD" >&6; } 40577 else 40578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40579 $as_echo "no" >&6; } 40580 fi 40581 40582 40583 if test "x$BUILD_LD" = x; then 40584 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40585 fi 40586 else 40587 # Otherwise we believe it is a complete path. Use it as it is. 40588 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 40589 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 40590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 40591 $as_echo_n "checking for BUILD_LD... " >&6; } 40592 if test ! -x "$tool_specified"; then 40593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40594 $as_echo "not found" >&6; } 40595 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 40596 fi 40597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40598 $as_echo "$tool_specified" >&6; } 40599 fi 40600 fi 40601 fi 40602 40603 40604 40605 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40606 40607 # First separate the path from the arguments. This will split at the first 40608 # space. 40609 complete="$BUILD_LD" 40610 path="${complete%% *}" 40611 tmp="$complete EOL" 40612 arguments="${tmp#* }" 40613 40614 # Input might be given as Windows format, start by converting to 40615 # unix format. 40616 new_path=`$CYGPATH -u "$path"` 40617 40618 # Now try to locate executable using which 40619 new_path=`$WHICH "$new_path" 2> /dev/null` 40620 # bat and cmd files are not always considered executable in cygwin causing which 40621 # to not find them 40622 if test "x$new_path" = x \ 40623 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40624 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40625 new_path=`$CYGPATH -u "$path"` 40626 fi 40627 if test "x$new_path" = x; then 40628 # Oops. Which didn't find the executable. 40629 # The splitting of arguments from the executable at a space might have been incorrect, 40630 # since paths with space are more likely in Windows. Give it another try with the whole 40631 # argument. 40632 path="$complete" 40633 arguments="EOL" 40634 new_path=`$CYGPATH -u "$path"` 40635 new_path=`$WHICH "$new_path" 2> /dev/null` 40636 # bat and cmd files are not always considered executable in cygwin causing which 40637 # to not find them 40638 if test "x$new_path" = x \ 40639 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40640 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40641 new_path=`$CYGPATH -u "$path"` 40642 fi 40643 if test "x$new_path" = x; then 40644 # It's still not found. Now this is an unrecoverable error. 40645 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40646 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40647 has_space=`$ECHO "$complete" | $GREP " "` 40648 if test "x$has_space" != x; then 40649 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40650 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40651 fi 40652 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40653 fi 40654 fi 40655 40656 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40657 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40658 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40659 # "foo.exe" is OK but "foo" is an error. 40660 # 40661 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40662 # It is also a way to make sure we got the proper file name for the real test later on. 40663 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40664 if test "x$test_shortpath" = x; then 40665 # Short path failed, file does not exist as specified. 40666 # Try adding .exe or .cmd 40667 if test -f "${new_path}.exe"; then 40668 input_to_shortpath="${new_path}.exe" 40669 elif test -f "${new_path}.cmd"; then 40670 input_to_shortpath="${new_path}.cmd" 40671 else 40672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 40673 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 40674 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40675 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40676 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40677 fi 40678 else 40679 input_to_shortpath="$new_path" 40680 fi 40681 40682 # Call helper function which possibly converts this using DOS-style short mode. 40683 # If so, the updated path is stored in $new_path. 40684 new_path="$input_to_shortpath" 40685 40686 input_path="$input_to_shortpath" 40687 # Check if we need to convert this using DOS-style short mode. If the path 40688 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40689 # take no chances and rewrite it. 40690 # Note: m4 eats our [], so we need to use [ and ] instead. 40691 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40692 if test "x$has_forbidden_chars" != x; then 40693 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40694 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40695 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40696 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40697 # Going to short mode and back again did indeed matter. Since short mode is 40698 # case insensitive, let's make it lowercase to improve readability. 40699 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40700 # Now convert it back to Unix-stile (cygpath) 40701 input_path=`$CYGPATH -u "$shortmode_path"` 40702 new_path="$input_path" 40703 fi 40704 fi 40705 40706 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40707 if test "x$test_cygdrive_prefix" = x; then 40708 # As a simple fix, exclude /usr/bin since it's not a real path. 40709 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40710 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40711 # a path prefixed by /cygdrive for fixpath to work. 40712 new_path="$CYGWIN_ROOT_PATH$input_path" 40713 fi 40714 fi 40715 40716 # remove trailing .exe if any 40717 new_path="${new_path/%.exe/}" 40718 40719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40720 40721 # First separate the path from the arguments. This will split at the first 40722 # space. 40723 complete="$BUILD_LD" 40724 path="${complete%% *}" 40725 tmp="$complete EOL" 40726 arguments="${tmp#* }" 40727 40728 # Input might be given as Windows format, start by converting to 40729 # unix format. 40730 new_path="$path" 40731 40732 windows_path="$new_path" 40733 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40734 unix_path=`$CYGPATH -u "$windows_path"` 40735 new_path="$unix_path" 40736 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40737 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40738 new_path="$unix_path" 40739 fi 40740 40741 40742 # Now try to locate executable using which 40743 new_path=`$WHICH "$new_path" 2> /dev/null` 40744 40745 if test "x$new_path" = x; then 40746 # Oops. Which didn't find the executable. 40747 # The splitting of arguments from the executable at a space might have been incorrect, 40748 # since paths with space are more likely in Windows. Give it another try with the whole 40749 # argument. 40750 path="$complete" 40751 arguments="EOL" 40752 new_path="$path" 40753 40754 windows_path="$new_path" 40755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40756 unix_path=`$CYGPATH -u "$windows_path"` 40757 new_path="$unix_path" 40758 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40759 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40760 new_path="$unix_path" 40761 fi 40762 40763 40764 new_path=`$WHICH "$new_path" 2> /dev/null` 40765 # bat and cmd files are not always considered executable in MSYS causing which 40766 # to not find them 40767 if test "x$new_path" = x \ 40768 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40769 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40770 new_path="$path" 40771 40772 windows_path="$new_path" 40773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40774 unix_path=`$CYGPATH -u "$windows_path"` 40775 new_path="$unix_path" 40776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40777 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40778 new_path="$unix_path" 40779 fi 40780 40781 fi 40782 40783 if test "x$new_path" = x; then 40784 # It's still not found. Now this is an unrecoverable error. 40785 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40786 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40787 has_space=`$ECHO "$complete" | $GREP " "` 40788 if test "x$has_space" != x; then 40789 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40790 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40791 fi 40792 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40793 fi 40794 fi 40795 40796 # Now new_path has a complete unix path to the binary 40797 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40798 # Keep paths in /bin as-is, but remove trailing .exe if any 40799 new_path="${new_path/%.exe/}" 40800 # Do not save /bin paths to all_fixpath_prefixes! 40801 else 40802 # Not in mixed or Windows style, start by that. 40803 new_path=`cmd //c echo $new_path` 40804 40805 input_path="$new_path" 40806 # Check if we need to convert this using DOS-style short mode. If the path 40807 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40808 # take no chances and rewrite it. 40809 # Note: m4 eats our [], so we need to use [ and ] instead. 40810 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40811 if test "x$has_forbidden_chars" != x; then 40812 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40813 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40814 fi 40815 40816 # Output is in $new_path 40817 40818 windows_path="$new_path" 40819 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40820 unix_path=`$CYGPATH -u "$windows_path"` 40821 new_path="$unix_path" 40822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40823 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40824 new_path="$unix_path" 40825 fi 40826 40827 # remove trailing .exe if any 40828 new_path="${new_path/%.exe/}" 40829 40830 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40831 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40832 fi 40833 40834 else 40835 # We're on a posix platform. Hooray! :) 40836 # First separate the path from the arguments. This will split at the first 40837 # space. 40838 complete="$BUILD_LD" 40839 path="${complete%% *}" 40840 tmp="$complete EOL" 40841 arguments="${tmp#* }" 40842 40843 # Cannot rely on the command "which" here since it doesn't always work. 40844 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40845 if test -z "$is_absolute_path"; then 40846 # Path to executable is not absolute. Find it. 40847 IFS_save="$IFS" 40848 IFS=: 40849 for p in $PATH; do 40850 if test -f "$p/$path" && test -x "$p/$path"; then 40851 new_path="$p/$path" 40852 break 40853 fi 40854 done 40855 IFS="$IFS_save" 40856 else 40857 # This is an absolute path, we can use it without further modifications. 40858 new_path="$path" 40859 fi 40860 40861 if test "x$new_path" = x; then 40862 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40863 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40864 has_space=`$ECHO "$complete" | $GREP " "` 40865 if test "x$has_space" != x; then 40866 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40867 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40868 fi 40869 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40870 fi 40871 fi 40872 40873 # Now join together the path and the arguments once again 40874 if test "x$arguments" != xEOL; then 40875 new_complete="$new_path ${arguments% *}" 40876 else 40877 new_complete="$new_path" 40878 fi 40879 40880 if test "x$complete" != "x$new_complete"; then 40881 BUILD_LD="$new_complete" 40882 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40883 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40884 fi 40885 40886 else 40887 # If we are not cross compiling, use the normal target compilers for 40888 # building the build platform executables. 40889 BUILD_CC="$CC" 40890 BUILD_CXX="$CXX" 40891 BUILD_LD="$LD" 40892 fi 40893 40894 40895 40896 40897 40898 40899 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40900 # For hotspot, we need these in Windows mixed path, 40901 # so rewrite them all. Need added .exe suffix. 40902 HOTSPOT_CXX="$CXX.exe" 40903 HOTSPOT_LD="$LD.exe" 40904 HOTSPOT_MT="$MT.exe" 40905 HOTSPOT_RC="$RC.exe" 40906 40907 unix_path="$HOTSPOT_CXX" 40908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40909 windows_path=`$CYGPATH -m "$unix_path"` 40910 HOTSPOT_CXX="$windows_path" 40911 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40912 windows_path=`cmd //c echo $unix_path` 40913 HOTSPOT_CXX="$windows_path" 40914 fi 40915 40916 40917 unix_path="$HOTSPOT_LD" 40918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40919 windows_path=`$CYGPATH -m "$unix_path"` 40920 HOTSPOT_LD="$windows_path" 40921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40922 windows_path=`cmd //c echo $unix_path` 40923 HOTSPOT_LD="$windows_path" 40924 fi 40925 40926 40927 unix_path="$HOTSPOT_MT" 40928 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40929 windows_path=`$CYGPATH -m "$unix_path"` 40930 HOTSPOT_MT="$windows_path" 40931 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40932 windows_path=`cmd //c echo $unix_path` 40933 HOTSPOT_MT="$windows_path" 40934 fi 40935 40936 40937 unix_path="$HOTSPOT_RC" 40938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40939 windows_path=`$CYGPATH -m "$unix_path"` 40940 HOTSPOT_RC="$windows_path" 40941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40942 windows_path=`cmd //c echo $unix_path` 40943 HOTSPOT_RC="$windows_path" 40944 fi 40945 40946 40947 40948 else 40949 HOTSPOT_CXX="$CXX" 40950 HOTSPOT_LD="$LD" 40951 fi 40952 40953 40954 40955 if test "x$TOOLCHAIN_TYPE" = xclang; then 40956 USE_CLANG=true 40957 fi 40958 40959 40960 # LDEXE is the linker to use, when creating executables. Not really used. 40961 # FIXME: These should just be removed! 40962 LDEXE="$LD" 40963 LDEXECXX="$LDCXX" 40964 40965 40966 40967 40968 40969 40970 # The package path is used only on macosx? 40971 # FIXME: clean this up, and/or move it elsewhere. 40972 PACKAGE_PATH=/opt/local 40973 40974 40975 # Check for extra potential brokenness. 40976 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40977 # On Windows, double-check that we got the right compiler. 40978 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40979 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40980 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40981 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 40982 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 40983 fi 40984 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40985 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40986 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40987 fi 40988 fi 40989 fi 40990 40991 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40992 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40993 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40994 # This is later checked when setting flags. 40995 40996 # "-Og" suppported for GCC 4.8 and later 40997 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 40998 40999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 41000 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 41001 supports=yes 41002 41003 saved_cflags="$CFLAGS" 41004 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 41005 ac_ext=c 41006 ac_cpp='$CPP $CPPFLAGS' 41007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41009 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41010 41011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41012 /* end confdefs.h. */ 41013 int i; 41014 _ACEOF 41015 if ac_fn_c_try_compile "$LINENO"; then : 41016 41017 else 41018 supports=no 41019 fi 41020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41021 ac_ext=cpp 41022 ac_cpp='$CXXCPP $CPPFLAGS' 41023 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41024 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41025 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41026 41027 CFLAGS="$saved_cflags" 41028 41029 saved_cxxflags="$CXXFLAGS" 41030 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 41031 ac_ext=cpp 41032 ac_cpp='$CXXCPP $CPPFLAGS' 41033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41036 41037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41038 /* end confdefs.h. */ 41039 int i; 41040 _ACEOF 41041 if ac_fn_cxx_try_compile "$LINENO"; then : 41042 41043 else 41044 supports=no 41045 fi 41046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41047 ac_ext=cpp 41048 ac_cpp='$CXXCPP $CPPFLAGS' 41049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41052 41053 CXXFLAGS="$saved_cxxflags" 41054 41055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41056 $as_echo "$supports" >&6; } 41057 if test "x$supports" = "xyes" ; then 41058 HAS_CFLAG_OPTIMIZE_DEBUG=true 41059 else 41060 HAS_CFLAG_OPTIMIZE_DEBUG=false 41061 fi 41062 41063 41064 # "-fsanitize=undefined" supported for GCC 4.9 and later 41065 CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG="-fsanitize=undefined -fsanitize-recover" 41066 41067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG\"" >&5 41068 $as_echo_n "checking if compiler supports \"$CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG\"... " >&6; } 41069 supports=yes 41070 41071 saved_cflags="$CFLAGS" 41072 CFLAGS="$CFLAGS $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG" 41073 ac_ext=c 41074 ac_cpp='$CPP $CPPFLAGS' 41075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41077 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41078 41079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41080 /* end confdefs.h. */ 41081 int i; 41082 _ACEOF 41083 if ac_fn_c_try_compile "$LINENO"; then : 41084 41085 else 41086 supports=no 41087 fi 41088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41089 ac_ext=cpp 41090 ac_cpp='$CXXCPP $CPPFLAGS' 41091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41094 41095 CFLAGS="$saved_cflags" 41096 41097 saved_cxxflags="$CXXFLAGS" 41098 CXXFLAGS="$CXXFLAG $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG" 41099 ac_ext=cpp 41100 ac_cpp='$CXXCPP $CPPFLAGS' 41101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41104 41105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41106 /* end confdefs.h. */ 41107 int i; 41108 _ACEOF 41109 if ac_fn_cxx_try_compile "$LINENO"; then : 41110 41111 else 41112 supports=no 41113 fi 41114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41115 ac_ext=cpp 41116 ac_cpp='$CXXCPP $CPPFLAGS' 41117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41120 41121 CXXFLAGS="$saved_cxxflags" 41122 41123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41124 $as_echo "$supports" >&6; } 41125 if test "x$supports" = "xyes" ; then 41126 HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR=true 41127 else 41128 HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR=false 41129 fi 41130 41131 41132 # "-z relro" supported in GNU binutils 2.17 and later 41133 LINKER_RELRO_FLAG="-Xlinker -z -Xlinker relro" 41134 41135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 41136 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 41137 supports=yes 41138 41139 saved_ldflags="$LDFLAGS" 41140 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 41141 ac_ext=c 41142 ac_cpp='$CPP $CPPFLAGS' 41143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41145 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41146 41147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41148 /* end confdefs.h. */ 41149 41150 int 41151 main () 41152 { 41153 41154 ; 41155 return 0; 41156 } 41157 _ACEOF 41158 if ac_fn_c_try_link "$LINENO"; then : 41159 41160 else 41161 supports=no 41162 fi 41163 rm -f core conftest.err conftest.$ac_objext \ 41164 conftest$ac_exeext conftest.$ac_ext 41165 ac_ext=cpp 41166 ac_cpp='$CXXCPP $CPPFLAGS' 41167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41170 41171 LDFLAGS="$saved_ldflags" 41172 41173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41174 $as_echo "$supports" >&6; } 41175 if test "x$supports" = "xyes" ; then 41176 HAS_LINKER_RELRO=true 41177 else 41178 HAS_LINKER_RELRO=false 41179 fi 41180 41181 41182 # "-z now" supported in GNU binutils 2.11 and later 41183 LINKER_NOW_FLAG="-Xlinker -z -Xlinker now" 41184 41185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 41186 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 41187 supports=yes 41188 41189 saved_ldflags="$LDFLAGS" 41190 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 41191 ac_ext=c 41192 ac_cpp='$CPP $CPPFLAGS' 41193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41195 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41196 41197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41198 /* end confdefs.h. */ 41199 41200 int 41201 main () 41202 { 41203 41204 ; 41205 return 0; 41206 } 41207 _ACEOF 41208 if ac_fn_c_try_link "$LINENO"; then : 41209 41210 else 41211 supports=no 41212 fi 41213 rm -f core conftest.err conftest.$ac_objext \ 41214 conftest$ac_exeext conftest.$ac_ext 41215 ac_ext=cpp 41216 ac_cpp='$CXXCPP $CPPFLAGS' 41217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41220 41221 LDFLAGS="$saved_ldflags" 41222 41223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41224 $as_echo "$supports" >&6; } 41225 if test "x$supports" = "xyes" ; then 41226 HAS_LINKER_NOW=true 41227 else 41228 HAS_LINKER_NOW=false 41229 fi 41230 41231 fi 41232 41233 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 41234 # in executable.' 41235 USING_BROKEN_SUSE_LD=no 41236 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 41237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 41238 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 41239 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 41240 $ECHO "int main() { }" > main.c 41241 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 41242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41243 $as_echo "no" >&6; } 41244 USING_BROKEN_SUSE_LD=no 41245 else 41246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41247 $as_echo "yes" >&6; } 41248 USING_BROKEN_SUSE_LD=yes 41249 fi 41250 rm -rf version-script.map main.c a.out 41251 fi 41252 41253 41254 41255 # Setup the JTReg Regression Test Harness. 41256 41257 41258 # Check whether --with-jtreg was given. 41259 if test "${with_jtreg+set}" = set; then : 41260 withval=$with_jtreg; 41261 else 41262 with_jtreg=no 41263 fi 41264 41265 41266 if test "x$with_jtreg" = xno; then 41267 # jtreg disabled 41268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41269 $as_echo_n "checking for jtreg... " >&6; } 41270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41271 $as_echo "no" >&6; } 41272 else 41273 if test "x$with_jtreg" != xyes; then 41274 # with path specified. 41275 JT_HOME="$with_jtreg" 41276 fi 41277 41278 if test "x$JT_HOME" != x; then 41279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41280 $as_echo_n "checking for jtreg... " >&6; } 41281 41282 # use JT_HOME enviroment var. 41283 41284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41285 41286 # Input might be given as Windows format, start by converting to 41287 # unix format. 41288 path="$JT_HOME" 41289 new_path=`$CYGPATH -u "$path"` 41290 41291 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41292 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41293 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41294 # "foo.exe" is OK but "foo" is an error. 41295 # 41296 # This test is therefore slightly more accurate than "test -f" to check for file precense. 41297 # It is also a way to make sure we got the proper file name for the real test later on. 41298 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41299 if test "x$test_shortpath" = x; then 41300 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41301 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41302 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 41303 fi 41304 41305 # Call helper function which possibly converts this using DOS-style short mode. 41306 # If so, the updated path is stored in $new_path. 41307 41308 input_path="$new_path" 41309 # Check if we need to convert this using DOS-style short mode. If the path 41310 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41311 # take no chances and rewrite it. 41312 # Note: m4 eats our [], so we need to use [ and ] instead. 41313 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41314 if test "x$has_forbidden_chars" != x; then 41315 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41316 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41317 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41318 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41319 # Going to short mode and back again did indeed matter. Since short mode is 41320 # case insensitive, let's make it lowercase to improve readability. 41321 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41322 # Now convert it back to Unix-stile (cygpath) 41323 input_path=`$CYGPATH -u "$shortmode_path"` 41324 new_path="$input_path" 41325 fi 41326 fi 41327 41328 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41329 if test "x$test_cygdrive_prefix" = x; then 41330 # As a simple fix, exclude /usr/bin since it's not a real path. 41331 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 41332 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41333 # a path prefixed by /cygdrive for fixpath to work. 41334 new_path="$CYGWIN_ROOT_PATH$input_path" 41335 fi 41336 fi 41337 41338 41339 if test "x$path" != "x$new_path"; then 41340 JT_HOME="$new_path" 41341 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41342 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41343 fi 41344 41345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41346 41347 path="$JT_HOME" 41348 has_colon=`$ECHO $path | $GREP ^.:` 41349 new_path="$path" 41350 if test "x$has_colon" = x; then 41351 # Not in mixed or Windows style, start by that. 41352 new_path=`cmd //c echo $path` 41353 fi 41354 41355 41356 input_path="$new_path" 41357 # Check if we need to convert this using DOS-style short mode. If the path 41358 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41359 # take no chances and rewrite it. 41360 # Note: m4 eats our [], so we need to use [ and ] instead. 41361 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41362 if test "x$has_forbidden_chars" != x; then 41363 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41364 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41365 fi 41366 41367 41368 windows_path="$new_path" 41369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41370 unix_path=`$CYGPATH -u "$windows_path"` 41371 new_path="$unix_path" 41372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41374 new_path="$unix_path" 41375 fi 41376 41377 if test "x$path" != "x$new_path"; then 41378 JT_HOME="$new_path" 41379 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41380 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41381 fi 41382 41383 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41384 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41385 41386 else 41387 # We're on a posix platform. Hooray! :) 41388 path="$JT_HOME" 41389 has_space=`$ECHO "$path" | $GREP " "` 41390 if test "x$has_space" != x; then 41391 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41392 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41393 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 41394 fi 41395 41396 # Use eval to expand a potential ~ 41397 eval path="$path" 41398 if test ! -f "$path" && test ! -d "$path"; then 41399 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 41400 fi 41401 41402 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 41403 fi 41404 41405 41406 # jtreg win32 script works for everybody 41407 JTREGEXE="$JT_HOME/win32/bin/jtreg" 41408 41409 if test ! -f "$JTREGEXE"; then 41410 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 41411 fi 41412 41413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41414 $as_echo "$JTREGEXE" >&6; } 41415 else 41416 # try to find jtreg on path 41417 41418 41419 41420 # Publish this variable in the help. 41421 41422 41423 if test "x$JTREGEXE" = x; then 41424 # The variable is not set by user, try to locate tool using the code snippet 41425 for ac_prog in jtreg 41426 do 41427 # Extract the first word of "$ac_prog", so it can be a program name with args. 41428 set dummy $ac_prog; ac_word=$2 41429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41430 $as_echo_n "checking for $ac_word... " >&6; } 41431 if ${ac_cv_path_JTREGEXE+:} false; then : 41432 $as_echo_n "(cached) " >&6 41433 else 41434 case $JTREGEXE in 41435 [\\/]* | ?:[\\/]*) 41436 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41437 ;; 41438 *) 41439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41440 for as_dir in $PATH 41441 do 41442 IFS=$as_save_IFS 41443 test -z "$as_dir" && as_dir=. 41444 for ac_exec_ext in '' $ac_executable_extensions; do 41445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41446 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41448 break 2 41449 fi 41450 done 41451 done 41452 IFS=$as_save_IFS 41453 41454 ;; 41455 esac 41456 fi 41457 JTREGEXE=$ac_cv_path_JTREGEXE 41458 if test -n "$JTREGEXE"; then 41459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41460 $as_echo "$JTREGEXE" >&6; } 41461 else 41462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41463 $as_echo "no" >&6; } 41464 fi 41465 41466 41467 test -n "$JTREGEXE" && break 41468 done 41469 41470 else 41471 # The variable is set, but is it from the command line or the environment? 41472 41473 # Try to remove the string !JTREGEXE! from our list. 41474 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 41475 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41476 # If it failed, the variable was not from the command line. Ignore it, 41477 # but warn the user (except for BASH, which is always set by the calling BASH). 41478 if test "xJTREGEXE" != xBASH; then 41479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 41480 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 41481 fi 41482 # Try to locate tool using the code snippet 41483 for ac_prog in jtreg 41484 do 41485 # Extract the first word of "$ac_prog", so it can be a program name with args. 41486 set dummy $ac_prog; ac_word=$2 41487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41488 $as_echo_n "checking for $ac_word... " >&6; } 41489 if ${ac_cv_path_JTREGEXE+:} false; then : 41490 $as_echo_n "(cached) " >&6 41491 else 41492 case $JTREGEXE in 41493 [\\/]* | ?:[\\/]*) 41494 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41495 ;; 41496 *) 41497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41498 for as_dir in $PATH 41499 do 41500 IFS=$as_save_IFS 41501 test -z "$as_dir" && as_dir=. 41502 for ac_exec_ext in '' $ac_executable_extensions; do 41503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41504 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41506 break 2 41507 fi 41508 done 41509 done 41510 IFS=$as_save_IFS 41511 41512 ;; 41513 esac 41514 fi 41515 JTREGEXE=$ac_cv_path_JTREGEXE 41516 if test -n "$JTREGEXE"; then 41517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41518 $as_echo "$JTREGEXE" >&6; } 41519 else 41520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41521 $as_echo "no" >&6; } 41522 fi 41523 41524 41525 test -n "$JTREGEXE" && break 41526 done 41527 41528 else 41529 # If it succeeded, then it was overridden by the user. We will use it 41530 # for the tool. 41531 41532 # First remove it from the list of overridden variables, so we can test 41533 # for unknown variables in the end. 41534 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41535 41536 # Check if the provided tool contains a complete path. 41537 tool_specified="$JTREGEXE" 41538 tool_basename="${tool_specified##*/}" 41539 if test "x$tool_basename" = "x$tool_specified"; then 41540 # A command without a complete path is provided, search $PATH. 41541 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 41542 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 41543 # Extract the first word of "$tool_basename", so it can be a program name with args. 41544 set dummy $tool_basename; ac_word=$2 41545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41546 $as_echo_n "checking for $ac_word... " >&6; } 41547 if ${ac_cv_path_JTREGEXE+:} false; then : 41548 $as_echo_n "(cached) " >&6 41549 else 41550 case $JTREGEXE in 41551 [\\/]* | ?:[\\/]*) 41552 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41553 ;; 41554 *) 41555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41556 for as_dir in $PATH 41557 do 41558 IFS=$as_save_IFS 41559 test -z "$as_dir" && as_dir=. 41560 for ac_exec_ext in '' $ac_executable_extensions; do 41561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41562 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41564 break 2 41565 fi 41566 done 41567 done 41568 IFS=$as_save_IFS 41569 41570 ;; 41571 esac 41572 fi 41573 JTREGEXE=$ac_cv_path_JTREGEXE 41574 if test -n "$JTREGEXE"; then 41575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41576 $as_echo "$JTREGEXE" >&6; } 41577 else 41578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41579 $as_echo "no" >&6; } 41580 fi 41581 41582 41583 if test "x$JTREGEXE" = x; then 41584 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41585 fi 41586 else 41587 # Otherwise we believe it is a complete path. Use it as it is. 41588 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 41589 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 41590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 41591 $as_echo_n "checking for JTREGEXE... " >&6; } 41592 if test ! -x "$tool_specified"; then 41593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41594 $as_echo "not found" >&6; } 41595 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 41596 fi 41597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41598 $as_echo "$tool_specified" >&6; } 41599 fi 41600 fi 41601 fi 41602 41603 41604 41605 if test "x$JTREGEXE" = x; then 41606 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 41607 fi 41608 41609 41610 JT_HOME="`$DIRNAME $JTREGEXE`" 41611 fi 41612 fi 41613 41614 41615 41616 41617 41618 41619 # Option used to tell the compiler whether to create 32- or 64-bit executables 41620 if test "x$TOOLCHAIN_TYPE" = xxlc; then 41621 COMPILER_TARGET_BITS_FLAG="-q" 41622 else 41623 COMPILER_TARGET_BITS_FLAG="-m" 41624 fi 41625 41626 41627 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 41628 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41629 ARFLAGS="-r" 41630 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41631 ARFLAGS="-X64" 41632 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 41633 # lib.exe is used as AR to create static libraries. 41634 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 41635 else 41636 ARFLAGS="" 41637 fi 41638 41639 41640 ## Setup strip. 41641 # FIXME: should this really be per platform, or should it be per toolchain type? 41642 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 41643 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 41644 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41645 STRIPFLAGS="-g" 41646 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 41647 STRIPFLAGS="-x" 41648 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41649 STRIPFLAGS="-S" 41650 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41651 STRIPFLAGS="-X32_64" 41652 fi 41653 41654 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41655 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 41656 fi 41657 41658 41659 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41660 # FIXME: break out into MCSFLAGS 41661 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 41662 fi 41663 41664 41665 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41666 CC_OUT_OPTION=-Fo 41667 EXE_OUT_OPTION=-out: 41668 LD_OUT_OPTION=-out: 41669 AR_OUT_OPTION=-out: 41670 else 41671 # The option used to specify the target .o,.a or .so file. 41672 # When compiling, how to specify the to be created object file. 41673 CC_OUT_OPTION='-o$(SPACE)' 41674 # When linking, how to specify the to be created executable. 41675 EXE_OUT_OPTION='-o$(SPACE)' 41676 # When linking, how to specify the to be created dynamically linkable library. 41677 LD_OUT_OPTION='-o$(SPACE)' 41678 # When archiving, how to specify the to be create static archive for object files. 41679 AR_OUT_OPTION='rcs$(SPACE)' 41680 fi 41681 41682 41683 41684 41685 41686 # On Windows, we need to set RC flags. 41687 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41688 RC_FLAGS="-nologo -l 0x409 -r" 41689 if test "x$VARIANT" = xOPT; then 41690 RC_FLAGS="$RC_FLAGS -d NDEBUG" 41691 fi 41692 41693 # The version variables used to create RC_FLAGS may be overridden 41694 # in a custom configure script, or possibly the command line. 41695 # Let those variables be expanded at make time in spec.gmk. 41696 # The \$ are escaped to the shell, and the $(...) variables 41697 # are evaluated by make. 41698 RC_FLAGS="$RC_FLAGS \ 41699 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 41700 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 41701 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 41702 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 41703 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 41704 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 41705 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 41706 fi 41707 41708 41709 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41710 # silence copyright notice and other headers. 41711 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 41712 fi 41713 41714 if test "x$SYSROOT" != "x"; then 41715 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41716 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41717 # Solaris Studio does not have a concept of sysroot. Instead we must 41718 # make sure the default include and lib dirs are appended to each 41719 # compile and link command line. 41720 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 41721 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 41722 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 41723 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 41724 fi 41725 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41726 # Apple only wants -isysroot <path>, but we also need -iframework<path>/System/Library/Frameworks 41727 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\" -iframework\"$SYSROOT/System/Library/Frameworks\"" 41728 SYSROOT_LDFLAGS=$SYSROOT_CFLAGS 41729 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41730 SYSROOT_CFLAGS="--sysroot=\"$SYSROOT\"" 41731 SYSROOT_LDFLAGS="--sysroot=\"$SYSROOT\"" 41732 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41733 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 41734 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 41735 fi 41736 # Propagate the sysroot args to hotspot 41737 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 41738 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 41739 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 41740 fi 41741 41742 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 41743 # set this here so it doesn't have to be peppered throughout the forest 41744 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41745 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41746 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41747 fi 41748 41749 41750 41751 41752 41753 # FIXME: Currently we must test this after toolchain but before flags. Fix! 41754 41755 # Now we can test some aspects on the target using configure macros. 41756 41757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41758 $as_echo_n "checking for ANSI C header files... " >&6; } 41759 if ${ac_cv_header_stdc+:} false; then : 41760 $as_echo_n "(cached) " >&6 41761 else 41762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41763 /* end confdefs.h. */ 41764 #include <stdlib.h> 41765 #include <stdarg.h> 41766 #include <string.h> 41767 #include <float.h> 41768 41769 int 41770 main () 41771 { 41772 41773 ; 41774 return 0; 41775 } 41776 _ACEOF 41777 if ac_fn_cxx_try_compile "$LINENO"; then : 41778 ac_cv_header_stdc=yes 41779 else 41780 ac_cv_header_stdc=no 41781 fi 41782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41783 41784 if test $ac_cv_header_stdc = yes; then 41785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41787 /* end confdefs.h. */ 41788 #include <string.h> 41789 41790 _ACEOF 41791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41792 $EGREP "memchr" >/dev/null 2>&1; then : 41793 41794 else 41795 ac_cv_header_stdc=no 41796 fi 41797 rm -f conftest* 41798 41799 fi 41800 41801 if test $ac_cv_header_stdc = yes; then 41802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41804 /* end confdefs.h. */ 41805 #include <stdlib.h> 41806 41807 _ACEOF 41808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41809 $EGREP "free" >/dev/null 2>&1; then : 41810 41811 else 41812 ac_cv_header_stdc=no 41813 fi 41814 rm -f conftest* 41815 41816 fi 41817 41818 if test $ac_cv_header_stdc = yes; then 41819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41820 if test "$cross_compiling" = yes; then : 41821 : 41822 else 41823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41824 /* end confdefs.h. */ 41825 #include <ctype.h> 41826 #include <stdlib.h> 41827 #if ((' ' & 0x0FF) == 0x020) 41828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41830 #else 41831 # define ISLOWER(c) \ 41832 (('a' <= (c) && (c) <= 'i') \ 41833 || ('j' <= (c) && (c) <= 'r') \ 41834 || ('s' <= (c) && (c) <= 'z')) 41835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41836 #endif 41837 41838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41839 int 41840 main () 41841 { 41842 int i; 41843 for (i = 0; i < 256; i++) 41844 if (XOR (islower (i), ISLOWER (i)) 41845 || toupper (i) != TOUPPER (i)) 41846 return 2; 41847 return 0; 41848 } 41849 _ACEOF 41850 if ac_fn_cxx_try_run "$LINENO"; then : 41851 41852 else 41853 ac_cv_header_stdc=no 41854 fi 41855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41856 conftest.$ac_objext conftest.beam conftest.$ac_ext 41857 fi 41858 41859 fi 41860 fi 41861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 41862 $as_echo "$ac_cv_header_stdc" >&6; } 41863 if test $ac_cv_header_stdc = yes; then 41864 41865 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 41866 41867 fi 41868 41869 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 41870 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41871 inttypes.h stdint.h unistd.h 41872 do : 41873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41874 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 41875 " 41876 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41877 cat >>confdefs.h <<_ACEOF 41878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41879 _ACEOF 41880 41881 fi 41882 41883 done 41884 41885 41886 41887 ############################################################################### 41888 # 41889 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 41890 # (The JVM can use 32 or 64 bit Java pointers but that decision 41891 # is made at runtime.) 41892 # 41893 41894 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 41895 # Always specify -m flag on Solaris 41896 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 41897 41898 # When we add flags to the "official" CFLAGS etc, we need to 41899 # keep track of these additions in ADDED_CFLAGS etc. These 41900 # will later be checked to make sure only controlled additions 41901 # have been made to CFLAGS etc. 41902 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41903 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41904 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41905 41906 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41907 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41908 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41909 41910 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41911 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41912 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41913 41914 elif test "x$COMPILE_TYPE" = xreduced; then 41915 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41916 # Specify -m if running reduced on other Posix platforms 41917 41918 # When we add flags to the "official" CFLAGS etc, we need to 41919 # keep track of these additions in ADDED_CFLAGS etc. These 41920 # will later be checked to make sure only controlled additions 41921 # have been made to CFLAGS etc. 41922 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41923 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41924 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41925 41926 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41927 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41928 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41929 41930 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41931 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41932 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41933 41934 fi 41935 fi 41936 41937 # Make compilation sanity check 41938 for ac_header in stdio.h 41939 do : 41940 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 41941 if test "x$ac_cv_header_stdio_h" = xyes; then : 41942 cat >>confdefs.h <<_ACEOF 41943 #define HAVE_STDIO_H 1 41944 _ACEOF 41945 41946 else 41947 41948 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 41949 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 41950 if test "x$COMPILE_TYPE" = xreduced; then 41951 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 41952 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 41953 elif test "x$COMPILE_TYPE" = xcross; then 41954 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 41955 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 41956 fi 41957 as_fn_error $? "Cannot continue." "$LINENO" 5 41958 41959 fi 41960 41961 done 41962 41963 41964 # The cast to long int works around a bug in the HP C Compiler 41965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41967 # This bug is HP SR number 8606223364. 41968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41969 $as_echo_n "checking size of int *... " >&6; } 41970 if ${ac_cv_sizeof_int_p+:} false; then : 41971 $as_echo_n "(cached) " >&6 41972 else 41973 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41974 41975 else 41976 if test "$ac_cv_type_int_p" = yes; then 41977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41979 as_fn_error 77 "cannot compute sizeof (int *) 41980 See \`config.log' for more details" "$LINENO" 5; } 41981 else 41982 ac_cv_sizeof_int_p=0 41983 fi 41984 fi 41985 41986 fi 41987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41988 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41989 41990 41991 41992 cat >>confdefs.h <<_ACEOF 41993 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41994 _ACEOF 41995 41996 41997 41998 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 41999 if test "x$ac_cv_sizeof_int_p" = x; then 42000 # The test failed, lets stick to the assumed value. 42001 { $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 42002 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 42003 else 42004 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 42005 42006 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 42007 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 42008 # Let's try to implicitely set the compilers target architecture and retry the test 42009 { $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 42010 $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;} 42011 { $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 42012 $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;} 42013 42014 # When we add flags to the "official" CFLAGS etc, we need to 42015 # keep track of these additions in ADDED_CFLAGS etc. These 42016 # will later be checked to make sure only controlled additions 42017 # have been made to CFLAGS etc. 42018 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42019 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42020 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42021 42022 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 42023 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 42024 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 42025 42026 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 42027 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 42028 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 42029 42030 42031 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 42032 unset ac_cv_sizeof_int_p 42033 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 42034 cat >>confdefs.h <<_ACEOF 42035 #undef SIZEOF_INT_P 42036 _ACEOF 42037 42038 # The cast to long int works around a bug in the HP C Compiler 42039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 42040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 42041 # This bug is HP SR number 8606223364. 42042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 42043 $as_echo_n "checking size of int *... " >&6; } 42044 if ${ac_cv_sizeof_int_p+:} false; then : 42045 $as_echo_n "(cached) " >&6 42046 else 42047 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 42048 42049 else 42050 if test "$ac_cv_type_int_p" = yes; then 42051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 42052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 42053 as_fn_error 77 "cannot compute sizeof (int *) 42054 See \`config.log' for more details" "$LINENO" 5; } 42055 else 42056 ac_cv_sizeof_int_p=0 42057 fi 42058 fi 42059 42060 fi 42061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 42062 $as_echo "$ac_cv_sizeof_int_p" >&6; } 42063 42064 42065 42066 cat >>confdefs.h <<_ACEOF 42067 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 42068 _ACEOF 42069 42070 42071 42072 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 42073 42074 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 42075 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 42076 fi 42077 fi 42078 fi 42079 42080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 42081 $as_echo_n "checking for target address size... " >&6; } 42082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 42083 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 42084 42085 42086 ############################################################################### 42087 # 42088 # Is the target little of big endian? 42089 # 42090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 42091 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 42092 if ${ac_cv_c_bigendian+:} false; then : 42093 $as_echo_n "(cached) " >&6 42094 else 42095 ac_cv_c_bigendian=unknown 42096 # See if we're dealing with a universal compiler. 42097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42098 /* end confdefs.h. */ 42099 #ifndef __APPLE_CC__ 42100 not a universal capable compiler 42101 #endif 42102 typedef int dummy; 42103 42104 _ACEOF 42105 if ac_fn_cxx_try_compile "$LINENO"; then : 42106 42107 # Check for potential -arch flags. It is not universal unless 42108 # there are at least two -arch flags with different values. 42109 ac_arch= 42110 ac_prev= 42111 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 42112 if test -n "$ac_prev"; then 42113 case $ac_word in 42114 i?86 | x86_64 | ppc | ppc64) 42115 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 42116 ac_arch=$ac_word 42117 else 42118 ac_cv_c_bigendian=universal 42119 break 42120 fi 42121 ;; 42122 esac 42123 ac_prev= 42124 elif test "x$ac_word" = "x-arch"; then 42125 ac_prev=arch 42126 fi 42127 done 42128 fi 42129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42130 if test $ac_cv_c_bigendian = unknown; then 42131 # See if sys/param.h defines the BYTE_ORDER macro. 42132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42133 /* end confdefs.h. */ 42134 #include <sys/types.h> 42135 #include <sys/param.h> 42136 42137 int 42138 main () 42139 { 42140 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 42141 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 42142 && LITTLE_ENDIAN) 42143 bogus endian macros 42144 #endif 42145 42146 ; 42147 return 0; 42148 } 42149 _ACEOF 42150 if ac_fn_cxx_try_compile "$LINENO"; then : 42151 # It does; now see whether it defined to BIG_ENDIAN or not. 42152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42153 /* end confdefs.h. */ 42154 #include <sys/types.h> 42155 #include <sys/param.h> 42156 42157 int 42158 main () 42159 { 42160 #if BYTE_ORDER != BIG_ENDIAN 42161 not big endian 42162 #endif 42163 42164 ; 42165 return 0; 42166 } 42167 _ACEOF 42168 if ac_fn_cxx_try_compile "$LINENO"; then : 42169 ac_cv_c_bigendian=yes 42170 else 42171 ac_cv_c_bigendian=no 42172 fi 42173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42174 fi 42175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42176 fi 42177 if test $ac_cv_c_bigendian = unknown; then 42178 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 42179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42180 /* end confdefs.h. */ 42181 #include <limits.h> 42182 42183 int 42184 main () 42185 { 42186 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 42187 bogus endian macros 42188 #endif 42189 42190 ; 42191 return 0; 42192 } 42193 _ACEOF 42194 if ac_fn_cxx_try_compile "$LINENO"; then : 42195 # It does; now see whether it defined to _BIG_ENDIAN or not. 42196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42197 /* end confdefs.h. */ 42198 #include <limits.h> 42199 42200 int 42201 main () 42202 { 42203 #ifndef _BIG_ENDIAN 42204 not big endian 42205 #endif 42206 42207 ; 42208 return 0; 42209 } 42210 _ACEOF 42211 if ac_fn_cxx_try_compile "$LINENO"; then : 42212 ac_cv_c_bigendian=yes 42213 else 42214 ac_cv_c_bigendian=no 42215 fi 42216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42217 fi 42218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42219 fi 42220 if test $ac_cv_c_bigendian = unknown; then 42221 # Compile a test program. 42222 if test "$cross_compiling" = yes; then : 42223 # Try to guess by grepping values from an object file. 42224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42225 /* end confdefs.h. */ 42226 short int ascii_mm[] = 42227 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 42228 short int ascii_ii[] = 42229 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 42230 int use_ascii (int i) { 42231 return ascii_mm[i] + ascii_ii[i]; 42232 } 42233 short int ebcdic_ii[] = 42234 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 42235 short int ebcdic_mm[] = 42236 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 42237 int use_ebcdic (int i) { 42238 return ebcdic_mm[i] + ebcdic_ii[i]; 42239 } 42240 extern int foo; 42241 42242 int 42243 main () 42244 { 42245 return use_ascii (foo) == use_ebcdic (foo); 42246 ; 42247 return 0; 42248 } 42249 _ACEOF 42250 if ac_fn_cxx_try_compile "$LINENO"; then : 42251 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 42252 ac_cv_c_bigendian=yes 42253 fi 42254 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 42255 if test "$ac_cv_c_bigendian" = unknown; then 42256 ac_cv_c_bigendian=no 42257 else 42258 # finding both strings is unlikely to happen, but who knows? 42259 ac_cv_c_bigendian=unknown 42260 fi 42261 fi 42262 fi 42263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42264 else 42265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42266 /* end confdefs.h. */ 42267 $ac_includes_default 42268 int 42269 main () 42270 { 42271 42272 /* Are we little or big endian? From Harbison&Steele. */ 42273 union 42274 { 42275 long int l; 42276 char c[sizeof (long int)]; 42277 } u; 42278 u.l = 1; 42279 return u.c[sizeof (long int) - 1] == 1; 42280 42281 ; 42282 return 0; 42283 } 42284 _ACEOF 42285 if ac_fn_cxx_try_run "$LINENO"; then : 42286 ac_cv_c_bigendian=no 42287 else 42288 ac_cv_c_bigendian=yes 42289 fi 42290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42291 conftest.$ac_objext conftest.beam conftest.$ac_ext 42292 fi 42293 42294 fi 42295 fi 42296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 42297 $as_echo "$ac_cv_c_bigendian" >&6; } 42298 case $ac_cv_c_bigendian in #( 42299 yes) 42300 ENDIAN="big";; #( 42301 no) 42302 ENDIAN="little" ;; #( 42303 universal) 42304 ENDIAN="universal_endianness" 42305 ;; #( 42306 *) 42307 ENDIAN="unknown" ;; 42308 esac 42309 42310 42311 if test "x$ENDIAN" = xuniversal_endianness; then 42312 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 42313 fi 42314 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 42315 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 42316 fi 42317 42318 42319 # Configure flags for the tools 42320 42321 ############################################################################### 42322 # 42323 # How to compile shared libraries. 42324 # 42325 42326 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42327 PICFLAG="-fPIC" 42328 C_FLAG_REORDER='' 42329 CXX_FLAG_REORDER='' 42330 42331 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42332 # Linking is different on MacOSX 42333 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42334 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42335 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42336 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42337 SET_SHARED_LIBRARY_MAPFILE='' 42338 else 42339 # Default works for linux, might work on other platforms as well. 42340 SHARED_LIBRARY_FLAGS='-shared' 42341 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42342 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42343 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42344 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42345 fi 42346 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42347 PICFLAG='' 42348 C_FLAG_REORDER='' 42349 CXX_FLAG_REORDER='' 42350 42351 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42352 # Linking is different on MacOSX 42353 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42354 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42355 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42356 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42357 SET_SHARED_LIBRARY_MAPFILE='' 42358 else 42359 # Default works for linux, might work on other platforms as well. 42360 SHARED_LIBRARY_FLAGS='-shared' 42361 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42362 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42363 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42364 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42365 fi 42366 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42367 PICFLAG="-KPIC" 42368 C_FLAG_REORDER='-xF' 42369 CXX_FLAG_REORDER='-xF' 42370 SHARED_LIBRARY_FLAGS="-G" 42371 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 42372 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42373 SET_SHARED_LIBRARY_NAME='' 42374 SET_SHARED_LIBRARY_MAPFILE='-M$1' 42375 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42376 PICFLAG="-qpic=large" 42377 C_FLAG_REORDER='' 42378 CXX_FLAG_REORDER='' 42379 SHARED_LIBRARY_FLAGS="-qmkshrobj" 42380 SET_EXECUTABLE_ORIGIN="" 42381 SET_SHARED_LIBRARY_ORIGIN='' 42382 SET_SHARED_LIBRARY_NAME='' 42383 SET_SHARED_LIBRARY_MAPFILE='' 42384 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42385 PICFLAG="" 42386 C_FLAG_REORDER='' 42387 CXX_FLAG_REORDER='' 42388 SHARED_LIBRARY_FLAGS="-LD" 42389 SET_EXECUTABLE_ORIGIN='' 42390 SET_SHARED_LIBRARY_ORIGIN='' 42391 SET_SHARED_LIBRARY_NAME='' 42392 SET_SHARED_LIBRARY_MAPFILE='' 42393 fi 42394 42395 42396 42397 42398 42399 42400 42401 42402 42403 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42404 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 42405 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 42406 CFLAGS_JDKLIB_EXTRA='-xstrconst' 42407 fi 42408 # The (cross) compiler is now configured, we can now test capabilities 42409 # of the target platform. 42410 42411 42412 42413 ############################################################################### 42414 # 42415 # Setup the opt flags for different compilers 42416 # and different operating systems. 42417 # 42418 42419 # FIXME: this was indirectly the old default, but just inherited. 42420 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42421 # C_FLAG_DEPS="-MMD -MF" 42422 # fi 42423 42424 # Generate make dependency files 42425 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42426 C_FLAG_DEPS="-MMD -MF" 42427 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42428 C_FLAG_DEPS="-MMD -MF" 42429 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42430 C_FLAG_DEPS="-xMMD -xMF" 42431 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42432 C_FLAG_DEPS="-qmakedep=gcc -MF" 42433 fi 42434 CXX_FLAG_DEPS="$C_FLAG_DEPS" 42435 42436 42437 42438 # Debug symbols 42439 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42440 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 42441 # reduce from default "-g2" option to save space 42442 CFLAGS_DEBUG_SYMBOLS="-g1" 42443 CXXFLAGS_DEBUG_SYMBOLS="-g1" 42444 else 42445 CFLAGS_DEBUG_SYMBOLS="-g" 42446 CXXFLAGS_DEBUG_SYMBOLS="-g" 42447 fi 42448 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42449 CFLAGS_DEBUG_SYMBOLS="-g" 42450 CXXFLAGS_DEBUG_SYMBOLS="-g" 42451 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42452 CFLAGS_DEBUG_SYMBOLS="-g -xs" 42453 # FIXME: likely a bug, this disables debug symbols rather than enables them 42454 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 42455 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42456 CFLAGS_DEBUG_SYMBOLS="-g" 42457 CXXFLAGS_DEBUG_SYMBOLS="-g" 42458 fi 42459 42460 42461 42462 # bounds, memory and behavior checking options 42463 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42464 case $DEBUG_LEVEL in 42465 release ) 42466 # no adjustment 42467 ;; 42468 fastdebug ) 42469 # Add compile time bounds checks. 42470 CFLAGS_DEBUG_OPTIONS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1" 42471 CXXFLAGS_DEBUG_OPTIONS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1" 42472 ;; 42473 slowdebug ) 42474 # Add runtime bounds checks and symbol info. 42475 CFLAGS_DEBUG_OPTIONS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all --param ssp-buffer-size=1" 42476 CXXFLAGS_DEBUG_OPTIONS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all --param ssp-buffer-size=1" 42477 if test "x$HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" = "xtrue"; then 42478 CFLAGS_DEBUG_OPTIONS="$CFLAGS_DEBUG_OPTIONS $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG" 42479 CXXFLAGS_DEBUG_OPTIONS="$CXXFLAGS_DEBUG_OPTIONS $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG" 42480 fi 42481 ;; 42482 esac 42483 fi 42484 42485 42486 42487 # Optimization levels 42488 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42489 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 42490 42491 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 42492 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 42493 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 42494 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 42495 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 42496 C_O_FLAG_DEBUG="-xregs=no%frameptr" 42497 C_O_FLAG_NONE="-xregs=no%frameptr" 42498 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 42499 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 42500 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 42501 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 42502 CXX_O_FLAG_NONE="-xregs=no%frameptr" 42503 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42504 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 42505 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 42506 fi 42507 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42508 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 42509 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42510 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42511 C_O_FLAG_DEBUG="" 42512 C_O_FLAG_NONE="" 42513 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 42514 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42515 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42516 C_O_FLAG_DEBUG="" 42517 CXX_O_FLAG_NONE="" 42518 fi 42519 else 42520 # The remaining toolchains share opt flags between CC and CXX; 42521 # setup for C and duplicate afterwards. 42522 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42523 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42524 # On MacOSX we optimize for size, something 42525 # we should do for all platforms? 42526 C_O_FLAG_HIGHEST="-Os" 42527 C_O_FLAG_HI="-Os" 42528 C_O_FLAG_NORM="-Os" 42529 else 42530 C_O_FLAG_HIGHEST="-O3" 42531 C_O_FLAG_HI="-O3" 42532 C_O_FLAG_NORM="-O2" 42533 fi 42534 C_O_FLAG_DEBUG="-O0" 42535 C_O_FLAG_NONE="-O0" 42536 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42537 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42538 # On MacOSX we optimize for size, something 42539 # we should do for all platforms? 42540 C_O_FLAG_HIGHEST="-Os" 42541 C_O_FLAG_HI="-Os" 42542 C_O_FLAG_NORM="-Os" 42543 else 42544 C_O_FLAG_HIGHEST="-O3" 42545 C_O_FLAG_HI="-O3" 42546 C_O_FLAG_NORM="-O2" 42547 fi 42548 C_O_FLAG_DEBUG="-O0" 42549 C_O_FLAG_NONE="-O0" 42550 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42551 C_O_FLAG_HIGHEST="-O3" 42552 C_O_FLAG_HI="-O3 -qstrict" 42553 C_O_FLAG_NORM="-O2" 42554 C_O_FLAG_DEBUG="-qnoopt" 42555 C_O_FLAG_NONE="-qnoop" 42556 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42557 C_O_FLAG_HIGHEST="-O2" 42558 C_O_FLAG_HI="-O1" 42559 C_O_FLAG_NORM="-O1" 42560 C_O_FLAG_DEBUG="-Od" 42561 C_O_FLAG_NONE="-Od" 42562 fi 42563 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 42564 CXX_O_FLAG_HI="$C_O_FLAG_HI" 42565 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 42566 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 42567 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 42568 fi 42569 42570 # Adjust optimization flags according to debug level. 42571 case $DEBUG_LEVEL in 42572 release ) 42573 # no adjustment 42574 ;; 42575 fastdebug ) 42576 # Not quite so much optimization 42577 C_O_FLAG_HI="$C_O_FLAG_NORM" 42578 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42579 ;; 42580 slowdebug ) 42581 # Disable optimization 42582 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 42583 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 42584 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 42585 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 42586 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 42587 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 42588 ;; 42589 esac 42590 42591 42592 42593 42594 42595 42596 42597 42598 42599 42600 42601 42602 42603 # Special extras... 42604 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42605 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42606 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42607 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42608 fi 42609 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42610 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 42611 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42612 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42613 fi 42614 42615 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 42616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 42617 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 42618 fi 42619 42620 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 42621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 42622 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 42623 fi 42624 42625 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 42626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 42627 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 42628 fi 42629 42630 42631 # Check whether --with-extra-cflags was given. 42632 if test "${with_extra_cflags+set}" = set; then : 42633 withval=$with_extra_cflags; 42634 fi 42635 42636 42637 42638 # Check whether --with-extra-cxxflags was given. 42639 if test "${with_extra_cxxflags+set}" = set; then : 42640 withval=$with_extra_cxxflags; 42641 fi 42642 42643 42644 42645 # Check whether --with-extra-ldflags was given. 42646 if test "${with_extra_ldflags+set}" = set; then : 42647 withval=$with_extra_ldflags; 42648 fi 42649 42650 42651 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 42652 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 42653 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 42654 42655 # Hotspot needs these set in their legacy form 42656 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 42657 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 42658 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 42659 42660 42661 42662 42663 42664 ############################################################################### 42665 # 42666 # Now setup the CFLAGS and LDFLAGS for the JDK build. 42667 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 42668 # 42669 42670 # Setup compiler/platform specific flags into 42671 # CFLAGS_JDK - C Compiler flags 42672 # CXXFLAGS_JDK - C++ Compiler flags 42673 # COMMON_CCXXFLAGS_JDK - common to C and C++ 42674 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42675 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 42676 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 42677 case $OPENJDK_TARGET_CPU_ARCH in 42678 arm ) 42679 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42680 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42681 ;; 42682 ppc ) 42683 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42684 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42685 ;; 42686 * ) 42687 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 42688 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42689 ;; 42690 esac 42691 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42692 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 42693 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 42694 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 42695 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 42696 fi 42697 42698 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42699 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42700 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42701 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42702 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42703 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42704 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42705 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 42706 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42707 -DWIN32 -DIAL" 42708 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42709 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42710 else 42711 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 42712 fi 42713 fi 42714 42715 ############################################################################### 42716 42717 # Adjust flags according to debug level. 42718 case $DEBUG_LEVEL in 42719 fastdebug | slowdebug ) 42720 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 42721 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 42722 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42723 ;; 42724 release ) 42725 ;; 42726 * ) 42727 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42728 ;; 42729 esac 42730 42731 # Setup LP64 42732 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 42733 42734 # Set some common defines. These works for all compilers, but assume 42735 # -D is universally accepted. 42736 42737 # Setup endianness 42738 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42739 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42740 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42741 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42742 # Note: -Dmacro is the same as #define macro 1 42743 # -Dmacro= is the same as #define macro 42744 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42745 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42746 else 42747 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42748 fi 42749 else 42750 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42751 # are defined in the system? 42752 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42753 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42754 else 42755 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 42756 fi 42757 fi 42758 42759 # Setup target OS define. Use OS target name but in upper case. 42760 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42761 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42762 42763 # Setup target CPU 42764 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42765 42766 # Setup debug/release defines 42767 if test "x$DEBUG_LEVEL" = xrelease; then 42768 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 42769 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42770 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 42771 fi 42772 else 42773 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 42774 fi 42775 42776 # Setup release name 42777 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42778 42779 42780 # Set some additional per-OS defines. 42781 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42782 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42783 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42784 # FIXME: PPC64 should not be here. 42785 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64" 42786 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42787 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42788 fi 42789 42790 # Additional macosx handling 42791 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42792 # Setting these parameters makes it an error to link to macosx APIs that are 42793 # newer than the given OS version and makes the linked binaries compatible 42794 # even if built on a newer version of the OS. 42795 # The expected format is X.Y.Z 42796 MACOSX_VERSION_MIN=10.7.0 42797 42798 42799 # The macro takes the version with no dots, ex: 1070 42800 # Let the flags variables get resolved in make for easier override on make 42801 # command line. 42802 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42803 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42804 fi 42805 42806 # Setup some hard coded includes 42807 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42808 -I${JDK_OUTPUTDIR}/include \ 42809 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ 42810 -I${JDK_TOPDIR}/src/share/javavm/export \ 42811 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \ 42812 -I${JDK_TOPDIR}/src/share/native/common \ 42813 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" 42814 42815 # The shared libraries are compiled using the picflag. 42816 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42817 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 42818 42819 # Executable flags 42820 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42821 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42822 42823 42824 42825 42826 42827 42828 # Setup LDFLAGS et al. 42829 # 42830 42831 # Now this is odd. The JDK native libraries have to link against libjvm.so 42832 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42833 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42834 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42835 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42836 # libraries will link to whatever is in memory. Yuck. 42837 # 42838 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42839 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42840 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42841 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42842 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42843 fi 42844 # TODO: make -debug optional "--disable-full-debug-symbols" 42845 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42846 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 42847 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42848 # We have previously set HAS_GNU_HASH if this is the case 42849 if test -n "$HAS_GNU_HASH"; then 42850 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both" 42851 fi 42852 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42853 # And since we now know that the linker is gnu, then add -z defs, to forbid 42854 # undefined symbols in object files. 42855 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 42856 case $DEBUG_LEVEL in 42857 release ) 42858 # tell linker to optimize libraries. 42859 # Should this be supplied to the OSS linker as well? 42860 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42861 ;; 42862 slowdebug ) 42863 if test "x$HAS_LINKER_NOW" = "xtrue"; then 42864 # do relocations at load 42865 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 42866 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 42867 fi 42868 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42869 # mark relocations read only 42870 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42871 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42872 fi 42873 ;; 42874 fastdebug ) 42875 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42876 # mark relocations read only 42877 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42878 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42879 fi 42880 ;; 42881 * ) 42882 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42883 ;; 42884 esac 42885 fi 42886 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42887 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42888 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42889 fi 42890 42891 if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then 42892 # If undefined behaviour detection is enabled then we need to tell linker. 42893 case $DEBUG_LEVEL in 42894 release | fastdebug ) 42895 ;; 42896 slowdebug ) 42897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" >&5 42898 $as_echo "$as_me: WARNING: $HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" >&2;} 42899 if test "x$HAS_CFLAG_DETECT_UNDEFINED_BEHAVIOR" = "xtrue"; then 42900 # enable undefined behaviour checking 42901 LDFLAGS_JDK="$LDFLAGS_JDK `$ECHO -n $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG | sed -e "s/ *\(^ \+\)/ -Xlinker \1/g"`" 42902 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK `$ECHO -n $CFLAG_DETECT_UNDEFINED_BEHAVIOR_FLAG | sed -e "s/ *\(^ \+\)/ -Xlinker \1/g"`" 42903 fi 42904 ;; 42905 * ) 42906 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42907 ;; 42908 esac 42909 fi 42910 42911 # Customize LDFLAGS for executables 42912 42913 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42914 42915 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42916 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42917 LDFLAGS_STACK_SIZE=1048576 42918 else 42919 LDFLAGS_STACK_SIZE=327680 42920 fi 42921 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 42922 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 42923 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42924 fi 42925 42926 # Customize LDFLAGS for libs 42927 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 42928 42929 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42930 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -dll -libpath:${JDK_OUTPUTDIR}/lib" 42931 LDFLAGS_JDKLIB_SUFFIX="" 42932 else 42933 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS} \ 42934 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 42935 42936 # On some platforms (mac) the linker warns about non existing -L dirs. 42937 # Add server first if available. Linking aginst client does not always produce the same results. 42938 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42939 # Default to server for other variants. 42940 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42941 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42942 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42943 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 42944 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42945 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42946 else 42947 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42948 fi 42949 42950 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42951 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42952 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42953 fi 42954 fi 42955 42956 42957 42958 42959 42960 42961 42962 42963 # Some Zero and Shark settings. 42964 # ZERO_ARCHFLAG tells the compiler which mode to build for 42965 case "${OPENJDK_TARGET_CPU}" in 42966 s390) 42967 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42968 ;; 42969 *) 42970 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42971 esac 42972 42973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 42974 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42975 supports=yes 42976 42977 saved_cflags="$CFLAGS" 42978 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42979 ac_ext=c 42980 ac_cpp='$CPP $CPPFLAGS' 42981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42983 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42984 42985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42986 /* end confdefs.h. */ 42987 int i; 42988 _ACEOF 42989 if ac_fn_c_try_compile "$LINENO"; then : 42990 42991 else 42992 supports=no 42993 fi 42994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42995 ac_ext=cpp 42996 ac_cpp='$CXXCPP $CPPFLAGS' 42997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43000 43001 CFLAGS="$saved_cflags" 43002 43003 saved_cxxflags="$CXXFLAGS" 43004 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 43005 ac_ext=cpp 43006 ac_cpp='$CXXCPP $CPPFLAGS' 43007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43010 43011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43012 /* end confdefs.h. */ 43013 int i; 43014 _ACEOF 43015 if ac_fn_cxx_try_compile "$LINENO"; then : 43016 43017 else 43018 supports=no 43019 fi 43020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43021 ac_ext=cpp 43022 ac_cpp='$CXXCPP $CPPFLAGS' 43023 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43024 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43025 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43026 43027 CXXFLAGS="$saved_cxxflags" 43028 43029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 43030 $as_echo "$supports" >&6; } 43031 if test "x$supports" = "xyes" ; then 43032 : 43033 else 43034 ZERO_ARCHFLAG="" 43035 fi 43036 43037 43038 43039 # Check that the compiler supports -mX (or -qX on AIX) flags 43040 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 43041 43042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 43043 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 43044 supports=yes 43045 43046 saved_cflags="$CFLAGS" 43047 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 43048 ac_ext=c 43049 ac_cpp='$CPP $CPPFLAGS' 43050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43052 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43053 43054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43055 /* end confdefs.h. */ 43056 int i; 43057 _ACEOF 43058 if ac_fn_c_try_compile "$LINENO"; then : 43059 43060 else 43061 supports=no 43062 fi 43063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43064 ac_ext=cpp 43065 ac_cpp='$CXXCPP $CPPFLAGS' 43066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43069 43070 CFLAGS="$saved_cflags" 43071 43072 saved_cxxflags="$CXXFLAGS" 43073 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 43074 ac_ext=cpp 43075 ac_cpp='$CXXCPP $CPPFLAGS' 43076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43079 43080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43081 /* end confdefs.h. */ 43082 int i; 43083 _ACEOF 43084 if ac_fn_cxx_try_compile "$LINENO"; then : 43085 43086 else 43087 supports=no 43088 fi 43089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43090 ac_ext=cpp 43091 ac_cpp='$CXXCPP $CPPFLAGS' 43092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43095 43096 CXXFLAGS="$saved_cxxflags" 43097 43098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 43099 $as_echo "$supports" >&6; } 43100 if test "x$supports" = "xyes" ; then 43101 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 43102 else 43103 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 43104 fi 43105 43106 43107 43108 case "${TOOLCHAIN_TYPE}" in 43109 microsoft) 43110 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 43111 ;; 43112 solstudio) 43113 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 43114 ;; 43115 gcc) 43116 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43117 ;; 43118 clang) 43119 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43120 ;; 43121 esac 43122 43123 43124 43125 # Setup debug symbols (need objcopy from the toolchain for that) 43126 43127 # 43128 # ENABLE_DEBUG_SYMBOLS 43129 # This must be done after the toolchain is setup, since we're looking at objcopy. 43130 # 43131 # Check whether --enable-debug-symbols was given. 43132 if test "${enable_debug_symbols+set}" = set; then : 43133 enableval=$enable_debug_symbols; 43134 fi 43135 43136 43137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 43138 $as_echo_n "checking if we should generate debug symbols... " >&6; } 43139 43140 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 43141 # explicit enabling of enable-debug-symbols and can't find objcopy 43142 # this is an error 43143 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 43144 fi 43145 43146 if test "x$enable_debug_symbols" = "xyes"; then 43147 ENABLE_DEBUG_SYMBOLS=true 43148 elif test "x$enable_debug_symbols" = "xno"; then 43149 ENABLE_DEBUG_SYMBOLS=false 43150 else 43151 # Default is on if objcopy is found 43152 if test "x$OBJCOPY" != x; then 43153 ENABLE_DEBUG_SYMBOLS=true 43154 # MacOS X and Windows don't use objcopy but default is on for those OSes 43155 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 43156 ENABLE_DEBUG_SYMBOLS=true 43157 else 43158 ENABLE_DEBUG_SYMBOLS=false 43159 fi 43160 fi 43161 43162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 43163 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 43164 43165 # 43166 # ZIP_DEBUGINFO_FILES 43167 # 43168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 43169 $as_echo_n "checking if we should zip debug-info files... " >&6; } 43170 # Check whether --enable-zip-debug-info was given. 43171 if test "${enable_zip_debug_info+set}" = set; then : 43172 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 43173 else 43174 enable_zip_debug_info="yes" 43175 fi 43176 43177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 43178 $as_echo "${enable_zip_debug_info}" >&6; } 43179 43180 if test "x${enable_zip_debug_info}" = "xno"; then 43181 ZIP_DEBUGINFO_FILES=false 43182 else 43183 ZIP_DEBUGINFO_FILES=true 43184 fi 43185 43186 43187 43188 43189 43190 ############################################################################### 43191 # 43192 # Check dependencies for external and internal libraries. 43193 # 43194 ############################################################################### 43195 43196 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 43197 43198 # When using cygwin or msys, we need a wrapper binary that renames 43199 # /cygdrive/c/ arguments into c:/ arguments and peeks into 43200 # @files and rewrites these too! This wrapper binary is 43201 # called fixpath. 43202 FIXPATH= 43203 if test "x$OPENJDK_BUILD_OS" = xwindows; then 43204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 43205 $as_echo_n "checking if fixpath can be created... " >&6; } 43206 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 43207 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 43208 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 43209 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 43210 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 43211 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 43212 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 43213 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 43214 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 43215 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 43216 43217 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 43218 # @ was chosen as separator to minimize risk of other tools messing around with it 43219 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 43220 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 43221 43222 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 43223 fi 43224 rm -f $OUTPUT_ROOT/fixpath* 43225 cd $OUTPUT_ROOT 43226 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 43227 cd $CURDIR 43228 43229 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 43230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43231 $as_echo "no" >&6; } 43232 cat $OUTPUT_ROOT/fixpath1.log 43233 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 43234 fi 43235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43236 $as_echo "yes" >&6; } 43237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 43238 $as_echo_n "checking if fixpath.exe works... " >&6; } 43239 cd $OUTPUT_ROOT 43240 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 43241 cd $CURDIR 43242 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 43243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43244 $as_echo "no" >&6; } 43245 cat $OUTPUT_ROOT/fixpath2.log 43246 as_fn_error $? "fixpath did not work!" "$LINENO" 5 43247 fi 43248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43249 $as_echo "yes" >&6; } 43250 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 43251 fi 43252 43253 43254 43255 43256 43257 43258 ############################################################################### 43259 # 43260 # OS specific settings that we never will need to probe. 43261 # 43262 if test "x$OPENJDK_TARGET_OS" = xlinux; then 43263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 43264 $as_echo_n "checking what is not needed on Linux?... " >&6; } 43265 PULSE_NOT_NEEDED=yes 43266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 43267 $as_echo "pulse" >&6; } 43268 fi 43269 43270 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 43272 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 43273 ALSA_NOT_NEEDED=yes 43274 PULSE_NOT_NEEDED=yes 43275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43276 $as_echo "alsa pulse" >&6; } 43277 fi 43278 43279 if test "x$OPENJDK_TARGET_OS" = xaix; then 43280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 43281 $as_echo_n "checking what is not needed on AIX?... " >&6; } 43282 ALSA_NOT_NEEDED=yes 43283 PULSE_NOT_NEEDED=yes 43284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43285 $as_echo "alsa pulse" >&6; } 43286 fi 43287 43288 43289 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 43291 $as_echo_n "checking what is not needed on Windows?... " >&6; } 43292 CUPS_NOT_NEEDED=yes 43293 ALSA_NOT_NEEDED=yes 43294 PULSE_NOT_NEEDED=yes 43295 X11_NOT_NEEDED=yes 43296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 43297 $as_echo "alsa cups pulse x11" >&6; } 43298 fi 43299 43300 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 43302 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 43303 ALSA_NOT_NEEDED=yes 43304 PULSE_NOT_NEEDED=yes 43305 X11_NOT_NEEDED=yes 43306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 43307 $as_echo "alsa pulse x11" >&6; } 43308 fi 43309 43310 if test "x$OPENJDK_TARGET_OS" = xbsd; then 43311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 43312 $as_echo_n "checking what is not needed on bsd?... " >&6; } 43313 ALSA_NOT_NEEDED=yes 43314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 43315 $as_echo "alsa" >&6; } 43316 fi 43317 43318 if test "x$OPENJDK" = "xfalse"; then 43319 FREETYPE_NOT_NEEDED=yes 43320 fi 43321 43322 if test "x$SUPPORT_HEADFUL" = xno; then 43323 X11_NOT_NEEDED=yes 43324 fi 43325 43326 43327 43328 ############################################################################### 43329 # 43330 # Check for X Windows 43331 # 43332 43333 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 43334 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 43335 # --x-libraries for the sysroot, if that seems to be correct. 43336 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 43337 if test "x$SYSROOT" != "x"; then 43338 if test "x$x_includes" = xNONE; then 43339 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 43340 x_includes="$SYSROOT/usr/X11R6/include" 43341 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 43342 x_includes="$SYSROOT/usr/include" 43343 fi 43344 fi 43345 if test "x$x_libraries" = xNONE; then 43346 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 43347 x_libraries="$SYSROOT/usr/X11R6/lib" 43348 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43349 x_libraries="$SYSROOT/usr/lib64" 43350 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 43351 x_libraries="$SYSROOT/usr/lib" 43352 fi 43353 fi 43354 fi 43355 fi 43356 43357 # Now let autoconf do it's magic 43358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 43359 $as_echo_n "checking for X... " >&6; } 43360 43361 43362 # Check whether --with-x was given. 43363 if test "${with_x+set}" = set; then : 43364 withval=$with_x; 43365 fi 43366 43367 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 43368 if test "x$with_x" = xno; then 43369 # The user explicitly disabled X. 43370 have_x=disabled 43371 else 43372 case $x_includes,$x_libraries in #( 43373 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 43374 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 43375 $as_echo_n "(cached) " >&6 43376 else 43377 # One or both of the vars are not set, and there is no cached value. 43378 ac_x_includes=no ac_x_libraries=no 43379 rm -f -r conftest.dir 43380 if mkdir conftest.dir; then 43381 cd conftest.dir 43382 cat >Imakefile <<'_ACEOF' 43383 incroot: 43384 @echo incroot='${INCROOT}' 43385 usrlibdir: 43386 @echo usrlibdir='${USRLIBDIR}' 43387 libdir: 43388 @echo libdir='${LIBDIR}' 43389 _ACEOF 43390 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 43391 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 43392 for ac_var in incroot usrlibdir libdir; do 43393 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 43394 done 43395 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 43396 for ac_extension in a so sl dylib la dll; do 43397 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 43398 test -f "$ac_im_libdir/libX11.$ac_extension"; then 43399 ac_im_usrlibdir=$ac_im_libdir; break 43400 fi 43401 done 43402 # Screen out bogus values from the imake configuration. They are 43403 # bogus both because they are the default anyway, and because 43404 # using them would break gcc on systems where it needs fixed includes. 43405 case $ac_im_incroot in 43406 /usr/include) ac_x_includes= ;; 43407 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 43408 esac 43409 case $ac_im_usrlibdir in 43410 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 43411 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 43412 esac 43413 fi 43414 cd .. 43415 rm -f -r conftest.dir 43416 fi 43417 43418 # Standard set of common directories for X headers. 43419 # Check X11 before X11Rn because it is often a symlink to the current release. 43420 ac_x_header_dirs=' 43421 /usr/X11/include 43422 /usr/X11R7/include 43423 /usr/X11R6/include 43424 /usr/X11R5/include 43425 /usr/X11R4/include 43426 43427 /usr/include/X11 43428 /usr/include/X11R7 43429 /usr/include/X11R6 43430 /usr/include/X11R5 43431 /usr/include/X11R4 43432 43433 /usr/local/X11/include 43434 /usr/local/X11R7/include 43435 /usr/local/X11R6/include 43436 /usr/local/X11R5/include 43437 /usr/local/X11R4/include 43438 43439 /usr/local/include/X11 43440 /usr/local/include/X11R7 43441 /usr/local/include/X11R6 43442 /usr/local/include/X11R5 43443 /usr/local/include/X11R4 43444 43445 /usr/X386/include 43446 /usr/x386/include 43447 /usr/XFree86/include/X11 43448 43449 /usr/include 43450 /usr/local/include 43451 /usr/unsupported/include 43452 /usr/athena/include 43453 /usr/local/x11r5/include 43454 /usr/lpp/Xamples/include 43455 43456 /usr/openwin/include 43457 /usr/openwin/share/include' 43458 43459 if test "$ac_x_includes" = no; then 43460 # Guess where to find include files, by looking for Xlib.h. 43461 # First, try using that file with no special directory specified. 43462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43463 /* end confdefs.h. */ 43464 #include <X11/Xlib.h> 43465 _ACEOF 43466 if ac_fn_cxx_try_cpp "$LINENO"; then : 43467 # We can compile using X headers with no special include directory. 43468 ac_x_includes= 43469 else 43470 for ac_dir in $ac_x_header_dirs; do 43471 if test -r "$ac_dir/X11/Xlib.h"; then 43472 ac_x_includes=$ac_dir 43473 break 43474 fi 43475 done 43476 fi 43477 rm -f conftest.err conftest.i conftest.$ac_ext 43478 fi # $ac_x_includes = no 43479 43480 if test "$ac_x_libraries" = no; then 43481 # Check for the libraries. 43482 # See if we find them without any special options. 43483 # Don't add to $LIBS permanently. 43484 ac_save_LIBS=$LIBS 43485 LIBS="-lX11 $LIBS" 43486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43487 /* end confdefs.h. */ 43488 #include <X11/Xlib.h> 43489 int 43490 main () 43491 { 43492 XrmInitialize () 43493 ; 43494 return 0; 43495 } 43496 _ACEOF 43497 if ac_fn_cxx_try_link "$LINENO"; then : 43498 LIBS=$ac_save_LIBS 43499 # We can link X programs with no special library path. 43500 ac_x_libraries= 43501 else 43502 LIBS=$ac_save_LIBS 43503 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 43504 do 43505 # Don't even attempt the hair of trying to link an X program! 43506 for ac_extension in a so sl dylib la dll; do 43507 if test -r "$ac_dir/libX11.$ac_extension"; then 43508 ac_x_libraries=$ac_dir 43509 break 2 43510 fi 43511 done 43512 done 43513 fi 43514 rm -f core conftest.err conftest.$ac_objext \ 43515 conftest$ac_exeext conftest.$ac_ext 43516 fi # $ac_x_libraries = no 43517 43518 case $ac_x_includes,$ac_x_libraries in #( 43519 no,* | *,no | *\'*) 43520 # Didn't find X, or a directory has "'" in its name. 43521 ac_cv_have_x="have_x=no";; #( 43522 *) 43523 # Record where we found X for the cache. 43524 ac_cv_have_x="have_x=yes\ 43525 ac_x_includes='$ac_x_includes'\ 43526 ac_x_libraries='$ac_x_libraries'" 43527 esac 43528 fi 43529 ;; #( 43530 *) have_x=yes;; 43531 esac 43532 eval "$ac_cv_have_x" 43533 fi # $with_x != no 43534 43535 if test "$have_x" != yes; then 43536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 43537 $as_echo "$have_x" >&6; } 43538 no_x=yes 43539 else 43540 # If each of the values was on the command line, it overrides each guess. 43541 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 43542 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 43543 # Update the cache value to reflect the command line values. 43544 ac_cv_have_x="have_x=yes\ 43545 ac_x_includes='$x_includes'\ 43546 ac_x_libraries='$x_libraries'" 43547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 43548 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 43549 fi 43550 43551 if test "$no_x" = yes; then 43552 # Not all programs may use this symbol, but it does not hurt to define it. 43553 43554 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 43555 43556 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 43557 else 43558 if test -n "$x_includes"; then 43559 X_CFLAGS="$X_CFLAGS -I$x_includes" 43560 fi 43561 43562 # It would also be nice to do this for all -L options, not just this one. 43563 if test -n "$x_libraries"; then 43564 X_LIBS="$X_LIBS -L$x_libraries" 43565 # For Solaris; some versions of Sun CC require a space after -R and 43566 # others require no space. Words are not sufficient . . . . 43567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 43568 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 43569 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 43570 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 43571 ac_cxx_werror_flag=yes 43572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43573 /* end confdefs.h. */ 43574 43575 int 43576 main () 43577 { 43578 43579 ; 43580 return 0; 43581 } 43582 _ACEOF 43583 if ac_fn_cxx_try_link "$LINENO"; then : 43584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43585 $as_echo "no" >&6; } 43586 X_LIBS="$X_LIBS -R$x_libraries" 43587 else 43588 LIBS="$ac_xsave_LIBS -R $x_libraries" 43589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43590 /* end confdefs.h. */ 43591 43592 int 43593 main () 43594 { 43595 43596 ; 43597 return 0; 43598 } 43599 _ACEOF 43600 if ac_fn_cxx_try_link "$LINENO"; then : 43601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43602 $as_echo "yes" >&6; } 43603 X_LIBS="$X_LIBS -R $x_libraries" 43604 else 43605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43606 $as_echo "neither works" >&6; } 43607 fi 43608 rm -f core conftest.err conftest.$ac_objext \ 43609 conftest$ac_exeext conftest.$ac_ext 43610 fi 43611 rm -f core conftest.err conftest.$ac_objext \ 43612 conftest$ac_exeext conftest.$ac_ext 43613 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43614 LIBS=$ac_xsave_LIBS 43615 fi 43616 43617 # Check for system-dependent libraries X programs must link with. 43618 # Do this before checking for the system-independent R6 libraries 43619 # (-lICE), since we may need -lsocket or whatever for X linking. 43620 43621 if test "$ISC" = yes; then 43622 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43623 else 43624 # Martyn Johnson says this is needed for Ultrix, if the X 43625 # libraries were built with DECnet support. And Karl Berry says 43626 # the Alpha needs dnet_stub (dnet does not exist). 43627 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43629 /* end confdefs.h. */ 43630 43631 /* Override any GCC internal prototype to avoid an error. 43632 Use char because int might match the return type of a GCC 43633 builtin and then its argument prototype would still apply. */ 43634 #ifdef __cplusplus 43635 extern "C" 43636 #endif 43637 char XOpenDisplay (); 43638 int 43639 main () 43640 { 43641 return XOpenDisplay (); 43642 ; 43643 return 0; 43644 } 43645 _ACEOF 43646 if ac_fn_cxx_try_link "$LINENO"; then : 43647 43648 else 43649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43650 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43651 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43652 $as_echo_n "(cached) " >&6 43653 else 43654 ac_check_lib_save_LIBS=$LIBS 43655 LIBS="-ldnet $LIBS" 43656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43657 /* end confdefs.h. */ 43658 43659 /* Override any GCC internal prototype to avoid an error. 43660 Use char because int might match the return type of a GCC 43661 builtin and then its argument prototype would still apply. */ 43662 #ifdef __cplusplus 43663 extern "C" 43664 #endif 43665 char dnet_ntoa (); 43666 int 43667 main () 43668 { 43669 return dnet_ntoa (); 43670 ; 43671 return 0; 43672 } 43673 _ACEOF 43674 if ac_fn_cxx_try_link "$LINENO"; then : 43675 ac_cv_lib_dnet_dnet_ntoa=yes 43676 else 43677 ac_cv_lib_dnet_dnet_ntoa=no 43678 fi 43679 rm -f core conftest.err conftest.$ac_objext \ 43680 conftest$ac_exeext conftest.$ac_ext 43681 LIBS=$ac_check_lib_save_LIBS 43682 fi 43683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43684 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43685 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43686 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43687 fi 43688 43689 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43691 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43692 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43693 $as_echo_n "(cached) " >&6 43694 else 43695 ac_check_lib_save_LIBS=$LIBS 43696 LIBS="-ldnet_stub $LIBS" 43697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43698 /* end confdefs.h. */ 43699 43700 /* Override any GCC internal prototype to avoid an error. 43701 Use char because int might match the return type of a GCC 43702 builtin and then its argument prototype would still apply. */ 43703 #ifdef __cplusplus 43704 extern "C" 43705 #endif 43706 char dnet_ntoa (); 43707 int 43708 main () 43709 { 43710 return dnet_ntoa (); 43711 ; 43712 return 0; 43713 } 43714 _ACEOF 43715 if ac_fn_cxx_try_link "$LINENO"; then : 43716 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43717 else 43718 ac_cv_lib_dnet_stub_dnet_ntoa=no 43719 fi 43720 rm -f core conftest.err conftest.$ac_objext \ 43721 conftest$ac_exeext conftest.$ac_ext 43722 LIBS=$ac_check_lib_save_LIBS 43723 fi 43724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43725 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43726 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43727 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43728 fi 43729 43730 fi 43731 fi 43732 rm -f core conftest.err conftest.$ac_objext \ 43733 conftest$ac_exeext conftest.$ac_ext 43734 LIBS="$ac_xsave_LIBS" 43735 43736 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43737 # to get the SysV transport functions. 43738 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43739 # needs -lnsl. 43740 # The nsl library prevents programs from opening the X display 43741 # on Irix 5.2, according to T.E. Dickey. 43742 # The functions gethostbyname, getservbyname, and inet_addr are 43743 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43744 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43745 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43746 43747 fi 43748 43749 if test $ac_cv_func_gethostbyname = no; then 43750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43751 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43752 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43753 $as_echo_n "(cached) " >&6 43754 else 43755 ac_check_lib_save_LIBS=$LIBS 43756 LIBS="-lnsl $LIBS" 43757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43758 /* end confdefs.h. */ 43759 43760 /* Override any GCC internal prototype to avoid an error. 43761 Use char because int might match the return type of a GCC 43762 builtin and then its argument prototype would still apply. */ 43763 #ifdef __cplusplus 43764 extern "C" 43765 #endif 43766 char gethostbyname (); 43767 int 43768 main () 43769 { 43770 return gethostbyname (); 43771 ; 43772 return 0; 43773 } 43774 _ACEOF 43775 if ac_fn_cxx_try_link "$LINENO"; then : 43776 ac_cv_lib_nsl_gethostbyname=yes 43777 else 43778 ac_cv_lib_nsl_gethostbyname=no 43779 fi 43780 rm -f core conftest.err conftest.$ac_objext \ 43781 conftest$ac_exeext conftest.$ac_ext 43782 LIBS=$ac_check_lib_save_LIBS 43783 fi 43784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43785 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43786 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43787 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43788 fi 43789 43790 if test $ac_cv_lib_nsl_gethostbyname = no; then 43791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43792 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43793 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43794 $as_echo_n "(cached) " >&6 43795 else 43796 ac_check_lib_save_LIBS=$LIBS 43797 LIBS="-lbsd $LIBS" 43798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43799 /* end confdefs.h. */ 43800 43801 /* Override any GCC internal prototype to avoid an error. 43802 Use char because int might match the return type of a GCC 43803 builtin and then its argument prototype would still apply. */ 43804 #ifdef __cplusplus 43805 extern "C" 43806 #endif 43807 char gethostbyname (); 43808 int 43809 main () 43810 { 43811 return gethostbyname (); 43812 ; 43813 return 0; 43814 } 43815 _ACEOF 43816 if ac_fn_cxx_try_link "$LINENO"; then : 43817 ac_cv_lib_bsd_gethostbyname=yes 43818 else 43819 ac_cv_lib_bsd_gethostbyname=no 43820 fi 43821 rm -f core conftest.err conftest.$ac_objext \ 43822 conftest$ac_exeext conftest.$ac_ext 43823 LIBS=$ac_check_lib_save_LIBS 43824 fi 43825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43826 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43827 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43829 fi 43830 43831 fi 43832 fi 43833 43834 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43835 # socket/setsockopt and other routines are undefined under SCO ODT 43836 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43837 # on later versions), says Simon Leinen: it contains gethostby* 43838 # variants that don't use the name server (or something). -lsocket 43839 # must be given before -lnsl if both are needed. We assume that 43840 # if connect needs -lnsl, so does gethostbyname. 43841 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43842 if test "x$ac_cv_func_connect" = xyes; then : 43843 43844 fi 43845 43846 if test $ac_cv_func_connect = no; then 43847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43848 $as_echo_n "checking for connect in -lsocket... " >&6; } 43849 if ${ac_cv_lib_socket_connect+:} false; then : 43850 $as_echo_n "(cached) " >&6 43851 else 43852 ac_check_lib_save_LIBS=$LIBS 43853 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43855 /* end confdefs.h. */ 43856 43857 /* Override any GCC internal prototype to avoid an error. 43858 Use char because int might match the return type of a GCC 43859 builtin and then its argument prototype would still apply. */ 43860 #ifdef __cplusplus 43861 extern "C" 43862 #endif 43863 char connect (); 43864 int 43865 main () 43866 { 43867 return connect (); 43868 ; 43869 return 0; 43870 } 43871 _ACEOF 43872 if ac_fn_cxx_try_link "$LINENO"; then : 43873 ac_cv_lib_socket_connect=yes 43874 else 43875 ac_cv_lib_socket_connect=no 43876 fi 43877 rm -f core conftest.err conftest.$ac_objext \ 43878 conftest$ac_exeext conftest.$ac_ext 43879 LIBS=$ac_check_lib_save_LIBS 43880 fi 43881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43882 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43883 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43884 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43885 fi 43886 43887 fi 43888 43889 # Guillermo Gomez says -lposix is necessary on A/UX. 43890 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43891 if test "x$ac_cv_func_remove" = xyes; then : 43892 43893 fi 43894 43895 if test $ac_cv_func_remove = no; then 43896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43897 $as_echo_n "checking for remove in -lposix... " >&6; } 43898 if ${ac_cv_lib_posix_remove+:} false; then : 43899 $as_echo_n "(cached) " >&6 43900 else 43901 ac_check_lib_save_LIBS=$LIBS 43902 LIBS="-lposix $LIBS" 43903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43904 /* end confdefs.h. */ 43905 43906 /* Override any GCC internal prototype to avoid an error. 43907 Use char because int might match the return type of a GCC 43908 builtin and then its argument prototype would still apply. */ 43909 #ifdef __cplusplus 43910 extern "C" 43911 #endif 43912 char remove (); 43913 int 43914 main () 43915 { 43916 return remove (); 43917 ; 43918 return 0; 43919 } 43920 _ACEOF 43921 if ac_fn_cxx_try_link "$LINENO"; then : 43922 ac_cv_lib_posix_remove=yes 43923 else 43924 ac_cv_lib_posix_remove=no 43925 fi 43926 rm -f core conftest.err conftest.$ac_objext \ 43927 conftest$ac_exeext conftest.$ac_ext 43928 LIBS=$ac_check_lib_save_LIBS 43929 fi 43930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43931 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43932 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43933 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43934 fi 43935 43936 fi 43937 43938 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43939 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43940 if test "x$ac_cv_func_shmat" = xyes; then : 43941 43942 fi 43943 43944 if test $ac_cv_func_shmat = no; then 43945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43946 $as_echo_n "checking for shmat in -lipc... " >&6; } 43947 if ${ac_cv_lib_ipc_shmat+:} false; then : 43948 $as_echo_n "(cached) " >&6 43949 else 43950 ac_check_lib_save_LIBS=$LIBS 43951 LIBS="-lipc $LIBS" 43952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43953 /* end confdefs.h. */ 43954 43955 /* Override any GCC internal prototype to avoid an error. 43956 Use char because int might match the return type of a GCC 43957 builtin and then its argument prototype would still apply. */ 43958 #ifdef __cplusplus 43959 extern "C" 43960 #endif 43961 char shmat (); 43962 int 43963 main () 43964 { 43965 return shmat (); 43966 ; 43967 return 0; 43968 } 43969 _ACEOF 43970 if ac_fn_cxx_try_link "$LINENO"; then : 43971 ac_cv_lib_ipc_shmat=yes 43972 else 43973 ac_cv_lib_ipc_shmat=no 43974 fi 43975 rm -f core conftest.err conftest.$ac_objext \ 43976 conftest$ac_exeext conftest.$ac_ext 43977 LIBS=$ac_check_lib_save_LIBS 43978 fi 43979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43980 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43981 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43983 fi 43984 43985 fi 43986 fi 43987 43988 # Check for libraries that X11R6 Xt/Xaw programs need. 43989 ac_save_LDFLAGS=$LDFLAGS 43990 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43991 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43992 # check for ICE first), but we must link in the order -lSM -lICE or 43993 # we get undefined symbols. So assume we have SM if we have ICE. 43994 # These have to be linked with before -lX11, unlike the other 43995 # libraries we check for below, so use a different variable. 43996 # John Interrante, Karl Berry 43997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43998 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43999 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 44000 $as_echo_n "(cached) " >&6 44001 else 44002 ac_check_lib_save_LIBS=$LIBS 44003 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 44004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44005 /* end confdefs.h. */ 44006 44007 /* Override any GCC internal prototype to avoid an error. 44008 Use char because int might match the return type of a GCC 44009 builtin and then its argument prototype would still apply. */ 44010 #ifdef __cplusplus 44011 extern "C" 44012 #endif 44013 char IceConnectionNumber (); 44014 int 44015 main () 44016 { 44017 return IceConnectionNumber (); 44018 ; 44019 return 0; 44020 } 44021 _ACEOF 44022 if ac_fn_cxx_try_link "$LINENO"; then : 44023 ac_cv_lib_ICE_IceConnectionNumber=yes 44024 else 44025 ac_cv_lib_ICE_IceConnectionNumber=no 44026 fi 44027 rm -f core conftest.err conftest.$ac_objext \ 44028 conftest$ac_exeext conftest.$ac_ext 44029 LIBS=$ac_check_lib_save_LIBS 44030 fi 44031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 44032 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 44033 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 44034 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 44035 fi 44036 44037 LDFLAGS=$ac_save_LDFLAGS 44038 44039 fi 44040 44041 44042 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 44043 # this doesn't make sense so we remove it. 44044 if test "x$COMPILE_TYPE" = xcross; then 44045 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 44046 fi 44047 44048 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 44049 44050 # Print a helpful message on how to acquire the necessary build dependency. 44051 # x11 is the help tag: freetype, cups, pulse, alsa etc 44052 MISSING_DEPENDENCY=x11 44053 44054 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44055 cygwin_help $MISSING_DEPENDENCY 44056 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44057 msys_help $MISSING_DEPENDENCY 44058 else 44059 PKGHANDLER_COMMAND= 44060 44061 case $PKGHANDLER in 44062 apt-get) 44063 apt_help $MISSING_DEPENDENCY ;; 44064 yum) 44065 yum_help $MISSING_DEPENDENCY ;; 44066 port) 44067 port_help $MISSING_DEPENDENCY ;; 44068 pkgutil) 44069 pkgutil_help $MISSING_DEPENDENCY ;; 44070 pkgadd) 44071 pkgadd_help $MISSING_DEPENDENCY ;; 44072 esac 44073 44074 if test "x$PKGHANDLER_COMMAND" != x; then 44075 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44076 fi 44077 fi 44078 44079 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 44080 fi 44081 44082 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44083 OPENWIN_HOME="/usr/openwin" 44084 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 44085 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44086 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 44087 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44088 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 44089 fi 44090 44091 # 44092 # Weird Sol10 something check...TODO change to try compile 44093 # 44094 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then 44095 if test "`uname -r`" = "5.10"; then 44096 if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then 44097 X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS" 44098 fi 44099 fi 44100 fi 44101 44102 ac_ext=c 44103 ac_cpp='$CPP $CPPFLAGS' 44104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44106 ac_compiler_gnu=$ac_cv_c_compiler_gnu 44107 44108 OLD_CFLAGS="$CFLAGS" 44109 CFLAGS="$CFLAGS $X_CFLAGS" 44110 44111 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 44112 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 44113 do : 44114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44115 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 44116 # include <X11/Xlib.h> 44117 # include <X11/Xutil.h> 44118 44119 44120 " 44121 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44122 cat >>confdefs.h <<_ACEOF 44123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44124 _ACEOF 44125 X11_A_OK=yes 44126 else 44127 X11_A_OK=no; break 44128 fi 44129 44130 done 44131 44132 44133 CFLAGS="$OLD_CFLAGS" 44134 ac_ext=cpp 44135 ac_cpp='$CXXCPP $CPPFLAGS' 44136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44139 44140 44141 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 44142 44143 # Print a helpful message on how to acquire the necessary build dependency. 44144 # x11 is the help tag: freetype, cups, pulse, alsa etc 44145 MISSING_DEPENDENCY=x11 44146 44147 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44148 cygwin_help $MISSING_DEPENDENCY 44149 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44150 msys_help $MISSING_DEPENDENCY 44151 else 44152 PKGHANDLER_COMMAND= 44153 44154 case $PKGHANDLER in 44155 apt-get) 44156 apt_help $MISSING_DEPENDENCY ;; 44157 yum) 44158 yum_help $MISSING_DEPENDENCY ;; 44159 port) 44160 port_help $MISSING_DEPENDENCY ;; 44161 pkgutil) 44162 pkgutil_help $MISSING_DEPENDENCY ;; 44163 pkgadd) 44164 pkgadd_help $MISSING_DEPENDENCY ;; 44165 esac 44166 44167 if test "x$PKGHANDLER_COMMAND" != x; then 44168 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44169 fi 44170 fi 44171 44172 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 44173 fi 44174 44175 44176 44177 44178 44179 44180 ############################################################################### 44181 # 44182 # The common unix printing system cups is used to print from java. 44183 # 44184 44185 # Check whether --with-cups was given. 44186 if test "${with_cups+set}" = set; then : 44187 withval=$with_cups; 44188 fi 44189 44190 44191 # Check whether --with-cups-include was given. 44192 if test "${with_cups_include+set}" = set; then : 44193 withval=$with_cups_include; 44194 fi 44195 44196 44197 if test "x$CUPS_NOT_NEEDED" = xyes; then 44198 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 44199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 44200 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 44201 fi 44202 CUPS_CFLAGS= 44203 else 44204 CUPS_FOUND=no 44205 44206 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 44207 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 44208 fi 44209 44210 if test "x${with_cups}" != x; then 44211 CUPS_CFLAGS="-I${with_cups}/include" 44212 CUPS_FOUND=yes 44213 fi 44214 if test "x${with_cups_include}" != x; then 44215 CUPS_CFLAGS="-I${with_cups_include}" 44216 CUPS_FOUND=yes 44217 fi 44218 if test "x$CUPS_FOUND" = xno; then 44219 44220 44221 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44222 # Source the builddeps file again, to make sure it uses the latest variables! 44223 . $builddepsfile 44224 # Look for a target and build machine specific resource! 44225 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44226 if test "x$resource" = x; then 44227 # Ok, lets instead look for a target specific resource 44228 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 44229 fi 44230 if test "x$resource" = x; then 44231 # Ok, lets instead look for a build specific resource 44232 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 44233 fi 44234 if test "x$resource" = x; then 44235 # Ok, lets instead look for a generic resource 44236 # (The cups comes from M4 and not the shell, thus no need for eval here.) 44237 resource=${builddep_cups} 44238 fi 44239 if test "x$resource" != x; then 44240 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 44241 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 44242 # If the resource in the builddeps.conf file is an existing directory, 44243 # for example /java/linux/cups 44244 if test -d ${resource}; then 44245 depdir=${resource} 44246 else 44247 44248 # cups is for example mymodule 44249 # $resource is for example libs/general/libmymod_1_2_3.zip 44250 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44251 # $with_builddeps_dir is for example /localhome/builddeps 44252 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44253 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44254 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44255 filename=`basename $resource` 44256 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44257 filebase=${filename%%.*} 44258 extension=${filename#*.} 44259 installdir=$with_builddeps_dir/$filebase 44260 if test ! -f $installdir/$filename.unpacked; then 44261 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 44262 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44263 if test ! -d $installdir; then 44264 mkdir -p $installdir 44265 fi 44266 if test ! -d $installdir; then 44267 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44268 fi 44269 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 44270 touch $tmpfile 44271 if test ! -f $tmpfile; then 44272 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44273 fi 44274 44275 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44276 # $tmpfile is the local file name for the downloaded file. 44277 VALID_TOOL=no 44278 if test "x$BDEPS_FTP" = xwget; then 44279 VALID_TOOL=yes 44280 wget -O $tmpfile $with_builddeps_server/$resource 44281 fi 44282 if test "x$BDEPS_FTP" = xlftp; then 44283 VALID_TOOL=yes 44284 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44285 fi 44286 if test "x$BDEPS_FTP" = xftp; then 44287 VALID_TOOL=yes 44288 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44289 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44290 FTPUSERPWD=${FTPSERVER%%@*} 44291 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44292 FTPUSER=${userpwd%%:*} 44293 FTPPWD=${userpwd#*@} 44294 FTPSERVER=${FTPSERVER#*@} 44295 else 44296 FTPUSER=ftp 44297 FTPPWD=ftp 44298 fi 44299 # the "pass" command does not work on some 44300 # ftp clients (read ftp.exe) but if it works, 44301 # passive mode is better! 44302 ( \ 44303 echo "user $FTPUSER $FTPPWD" ; \ 44304 echo "pass" ; \ 44305 echo "bin" ; \ 44306 echo "get $FTPPATH $tmpfile" ; \ 44307 ) | ftp -in $FTPSERVER 44308 fi 44309 if test "x$VALID_TOOL" != xyes; then 44310 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44311 fi 44312 44313 mv $tmpfile $installdir/$filename 44314 if test ! -s $installdir/$filename; then 44315 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44316 fi 44317 case "$extension" in 44318 zip) echo "Unzipping $installdir/$filename..." 44319 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44320 ;; 44321 tar.gz) echo "Untaring $installdir/$filename..." 44322 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44323 ;; 44324 tgz) echo "Untaring $installdir/$filename..." 44325 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44326 ;; 44327 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44328 ;; 44329 esac 44330 fi 44331 if test -f $installdir/$filename.unpacked; then 44332 depdir=$installdir 44333 fi 44334 44335 fi 44336 # Source the builddeps file again, because in the previous command, the depdir 44337 # was updated to point at the current build dependency install directory. 44338 . $builddepsfile 44339 # Now extract variables from the builddeps.conf files. 44340 theroot=${builddep_cups_ROOT} 44341 thecflags=${builddep_cups_CFLAGS} 44342 thelibs=${builddep_cups_LIBS} 44343 if test "x$depdir" = x; then 44344 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 44345 fi 44346 CUPS=$depdir 44347 if test "x$theroot" != x; then 44348 CUPS="$theroot" 44349 fi 44350 if test "x$thecflags" != x; then 44351 CUPS_CFLAGS="$thecflags" 44352 fi 44353 if test "x$thelibs" != x; then 44354 CUPS_LIBS="$thelibs" 44355 fi 44356 CUPS_FOUND=yes 44357 44358 fi 44359 44360 fi 44361 44362 fi 44363 if test "x$CUPS_FOUND" = xno; then 44364 # Are the cups headers installed in the default /usr/include location? 44365 for ac_header in cups/cups.h cups/ppd.h 44366 do : 44367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44368 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 44369 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44370 cat >>confdefs.h <<_ACEOF 44371 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44372 _ACEOF 44373 44374 CUPS_FOUND=yes 44375 CUPS_CFLAGS= 44376 DEFAULT_CUPS=yes 44377 44378 44379 fi 44380 44381 done 44382 44383 fi 44384 if test "x$CUPS_FOUND" = xno; then 44385 # Getting nervous now? Lets poke around for standard Solaris third-party 44386 # package installation locations. 44387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 44388 $as_echo_n "checking for cups headers... " >&6; } 44389 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 44390 # An SFW package seems to be installed! 44391 CUPS_FOUND=yes 44392 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 44393 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 44394 # A CSW package seems to be installed! 44395 CUPS_FOUND=yes 44396 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 44397 fi 44398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 44399 $as_echo "$CUPS_FOUND" >&6; } 44400 fi 44401 if test "x$CUPS_FOUND" = xno; then 44402 44403 # Print a helpful message on how to acquire the necessary build dependency. 44404 # cups is the help tag: freetype, cups, pulse, alsa etc 44405 MISSING_DEPENDENCY=cups 44406 44407 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44408 cygwin_help $MISSING_DEPENDENCY 44409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44410 msys_help $MISSING_DEPENDENCY 44411 else 44412 PKGHANDLER_COMMAND= 44413 44414 case $PKGHANDLER in 44415 apt-get) 44416 apt_help $MISSING_DEPENDENCY ;; 44417 yum) 44418 yum_help $MISSING_DEPENDENCY ;; 44419 port) 44420 port_help $MISSING_DEPENDENCY ;; 44421 pkgutil) 44422 pkgutil_help $MISSING_DEPENDENCY ;; 44423 pkgadd) 44424 pkgadd_help $MISSING_DEPENDENCY ;; 44425 esac 44426 44427 if test "x$PKGHANDLER_COMMAND" != x; then 44428 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44429 fi 44430 fi 44431 44432 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 44433 fi 44434 fi 44435 44436 44437 44438 44439 44440 44441 ############################################################################### 44442 # 44443 # The ubiquitous freetype library is used to render fonts. 44444 # 44445 44446 # Check whether --with-freetype was given. 44447 if test "${with_freetype+set}" = set; then : 44448 withval=$with_freetype; 44449 fi 44450 44451 44452 # Check whether --with-freetype-include was given. 44453 if test "${with_freetype_include+set}" = set; then : 44454 withval=$with_freetype_include; 44455 fi 44456 44457 44458 # Check whether --with-freetype-lib was given. 44459 if test "${with_freetype_lib+set}" = set; then : 44460 withval=$with_freetype_lib; 44461 fi 44462 44463 # Check whether --enable-freetype-bundling was given. 44464 if test "${enable_freetype_bundling+set}" = set; then : 44465 enableval=$enable_freetype_bundling; 44466 fi 44467 44468 44469 FREETYPE_CFLAGS= 44470 FREETYPE_LIBS= 44471 FREETYPE_BUNDLE_LIB_PATH= 44472 44473 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 44474 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 44476 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 44477 fi 44478 if test "x$enable_freetype_bundling" != x; then 44479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 44480 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 44481 fi 44482 else 44483 # freetype is needed to build; go get it! 44484 44485 BUNDLE_FREETYPE="$enable_freetype_bundling" 44486 44487 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44488 # User has specified settings 44489 44490 if test "x$BUNDLE_FREETYPE" = x; then 44491 # If not specified, default is to bundle freetype 44492 BUNDLE_FREETYPE=yes 44493 fi 44494 44495 if test "x$with_freetype" != x; then 44496 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44497 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44498 fi 44499 44500 # Allow --with-freetype-lib and --with-freetype-include to override 44501 if test "x$with_freetype_include" != x; then 44502 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44503 fi 44504 if test "x$with_freetype_lib" != x; then 44505 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44506 fi 44507 44508 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44509 # Okay, we got it. Check that it works. 44510 44511 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44512 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44513 METHOD="--with-freetype" 44514 44515 # First check if the files exists. 44516 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44517 # We found an arbitrary include file. That's a good sign. 44518 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44519 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44520 FOUND_FREETYPE=yes 44521 44522 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44523 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44524 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44525 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44526 FOUND_FREETYPE=no 44527 else 44528 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44529 # On Windows, we will need both .lib and .dll file. 44530 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44531 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44532 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44533 FOUND_FREETYPE=no 44534 fi 44535 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44536 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44537 # Found lib in isa dir, use that instead. 44538 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44539 fi 44540 fi 44541 fi 44542 44543 if test "x$FOUND_FREETYPE" = xyes; then 44544 44545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44546 44547 # Input might be given as Windows format, start by converting to 44548 # unix format. 44549 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44550 new_path=`$CYGPATH -u "$path"` 44551 44552 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44553 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44554 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44555 # "foo.exe" is OK but "foo" is an error. 44556 # 44557 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44558 # It is also a way to make sure we got the proper file name for the real test later on. 44559 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44560 if test "x$test_shortpath" = x; then 44561 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44562 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44563 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44564 fi 44565 44566 # Call helper function which possibly converts this using DOS-style short mode. 44567 # If so, the updated path is stored in $new_path. 44568 44569 input_path="$new_path" 44570 # Check if we need to convert this using DOS-style short mode. If the path 44571 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44572 # take no chances and rewrite it. 44573 # Note: m4 eats our [], so we need to use [ and ] instead. 44574 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44575 if test "x$has_forbidden_chars" != x; then 44576 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44577 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44578 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44579 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44580 # Going to short mode and back again did indeed matter. Since short mode is 44581 # case insensitive, let's make it lowercase to improve readability. 44582 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44583 # Now convert it back to Unix-stile (cygpath) 44584 input_path=`$CYGPATH -u "$shortmode_path"` 44585 new_path="$input_path" 44586 fi 44587 fi 44588 44589 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44590 if test "x$test_cygdrive_prefix" = x; then 44591 # As a simple fix, exclude /usr/bin since it's not a real path. 44592 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44593 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44594 # a path prefixed by /cygdrive for fixpath to work. 44595 new_path="$CYGWIN_ROOT_PATH$input_path" 44596 fi 44597 fi 44598 44599 44600 if test "x$path" != "x$new_path"; then 44601 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44602 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44603 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44604 fi 44605 44606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44607 44608 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44609 has_colon=`$ECHO $path | $GREP ^.:` 44610 new_path="$path" 44611 if test "x$has_colon" = x; then 44612 # Not in mixed or Windows style, start by that. 44613 new_path=`cmd //c echo $path` 44614 fi 44615 44616 44617 input_path="$new_path" 44618 # Check if we need to convert this using DOS-style short mode. If the path 44619 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44620 # take no chances and rewrite it. 44621 # Note: m4 eats our [], so we need to use [ and ] instead. 44622 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44623 if test "x$has_forbidden_chars" != x; then 44624 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44625 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44626 fi 44627 44628 44629 windows_path="$new_path" 44630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44631 unix_path=`$CYGPATH -u "$windows_path"` 44632 new_path="$unix_path" 44633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44634 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44635 new_path="$unix_path" 44636 fi 44637 44638 if test "x$path" != "x$new_path"; then 44639 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44640 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44641 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44642 fi 44643 44644 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44645 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44646 44647 else 44648 # We're on a posix platform. Hooray! :) 44649 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44650 has_space=`$ECHO "$path" | $GREP " "` 44651 if test "x$has_space" != x; then 44652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44653 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44654 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44655 fi 44656 44657 # Use eval to expand a potential ~ 44658 eval path="$path" 44659 if test ! -f "$path" && test ! -d "$path"; then 44660 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44661 fi 44662 44663 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44664 fi 44665 44666 44667 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44668 44669 # Input might be given as Windows format, start by converting to 44670 # unix format. 44671 path="$POTENTIAL_FREETYPE_LIB_PATH" 44672 new_path=`$CYGPATH -u "$path"` 44673 44674 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44675 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44676 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44677 # "foo.exe" is OK but "foo" is an error. 44678 # 44679 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44680 # It is also a way to make sure we got the proper file name for the real test later on. 44681 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44682 if test "x$test_shortpath" = x; then 44683 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44684 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44685 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44686 fi 44687 44688 # Call helper function which possibly converts this using DOS-style short mode. 44689 # If so, the updated path is stored in $new_path. 44690 44691 input_path="$new_path" 44692 # Check if we need to convert this using DOS-style short mode. If the path 44693 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44694 # take no chances and rewrite it. 44695 # Note: m4 eats our [], so we need to use [ and ] instead. 44696 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44697 if test "x$has_forbidden_chars" != x; then 44698 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44699 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44700 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44701 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44702 # Going to short mode and back again did indeed matter. Since short mode is 44703 # case insensitive, let's make it lowercase to improve readability. 44704 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44705 # Now convert it back to Unix-stile (cygpath) 44706 input_path=`$CYGPATH -u "$shortmode_path"` 44707 new_path="$input_path" 44708 fi 44709 fi 44710 44711 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44712 if test "x$test_cygdrive_prefix" = x; then 44713 # As a simple fix, exclude /usr/bin since it's not a real path. 44714 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44715 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44716 # a path prefixed by /cygdrive for fixpath to work. 44717 new_path="$CYGWIN_ROOT_PATH$input_path" 44718 fi 44719 fi 44720 44721 44722 if test "x$path" != "x$new_path"; then 44723 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44724 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44725 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44726 fi 44727 44728 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44729 44730 path="$POTENTIAL_FREETYPE_LIB_PATH" 44731 has_colon=`$ECHO $path | $GREP ^.:` 44732 new_path="$path" 44733 if test "x$has_colon" = x; then 44734 # Not in mixed or Windows style, start by that. 44735 new_path=`cmd //c echo $path` 44736 fi 44737 44738 44739 input_path="$new_path" 44740 # Check if we need to convert this using DOS-style short mode. If the path 44741 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44742 # take no chances and rewrite it. 44743 # Note: m4 eats our [], so we need to use [ and ] instead. 44744 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44745 if test "x$has_forbidden_chars" != x; then 44746 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44747 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44748 fi 44749 44750 44751 windows_path="$new_path" 44752 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44753 unix_path=`$CYGPATH -u "$windows_path"` 44754 new_path="$unix_path" 44755 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44756 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44757 new_path="$unix_path" 44758 fi 44759 44760 if test "x$path" != "x$new_path"; then 44761 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44762 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44763 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44764 fi 44765 44766 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44767 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44768 44769 else 44770 # We're on a posix platform. Hooray! :) 44771 path="$POTENTIAL_FREETYPE_LIB_PATH" 44772 has_space=`$ECHO "$path" | $GREP " "` 44773 if test "x$has_space" != x; then 44774 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44775 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44776 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44777 fi 44778 44779 # Use eval to expand a potential ~ 44780 eval path="$path" 44781 if test ! -f "$path" && test ! -d "$path"; then 44782 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44783 fi 44784 44785 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44786 fi 44787 44788 44789 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44791 $as_echo_n "checking for freetype includes... " >&6; } 44792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44793 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44794 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44796 $as_echo_n "checking for freetype libraries... " >&6; } 44797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44798 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44799 fi 44800 44801 if test "x$FOUND_FREETYPE" != xyes; then 44802 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 44803 fi 44804 else 44805 # User specified only one of lib or include. This is an error. 44806 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 44807 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 44808 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 44809 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 44810 else 44811 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 44812 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 44813 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 44814 fi 44815 fi 44816 else 44817 # User did not specify settings, but we need freetype. Try to locate it. 44818 44819 if test "x$BUNDLE_FREETYPE" = x; then 44820 # If not specified, default is to bundle freetype only on windows 44821 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44822 BUNDLE_FREETYPE=yes 44823 else 44824 BUNDLE_FREETYPE=no 44825 fi 44826 fi 44827 44828 if test "x$FOUND_FREETYPE" != xyes; then 44829 # Check builddeps 44830 44831 44832 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44833 # Source the builddeps file again, to make sure it uses the latest variables! 44834 . $builddepsfile 44835 # Look for a target and build machine specific resource! 44836 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44837 if test "x$resource" = x; then 44838 # Ok, lets instead look for a target specific resource 44839 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 44840 fi 44841 if test "x$resource" = x; then 44842 # Ok, lets instead look for a build specific resource 44843 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 44844 fi 44845 if test "x$resource" = x; then 44846 # Ok, lets instead look for a generic resource 44847 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 44848 resource=${builddep_freetype2} 44849 fi 44850 if test "x$resource" != x; then 44851 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 44852 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 44853 # If the resource in the builddeps.conf file is an existing directory, 44854 # for example /java/linux/cups 44855 if test -d ${resource}; then 44856 depdir=${resource} 44857 else 44858 44859 # freetype2 is for example mymodule 44860 # $resource is for example libs/general/libmymod_1_2_3.zip 44861 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44862 # $with_builddeps_dir is for example /localhome/builddeps 44863 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44864 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44865 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44866 filename=`basename $resource` 44867 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44868 filebase=${filename%%.*} 44869 extension=${filename#*.} 44870 installdir=$with_builddeps_dir/$filebase 44871 if test ! -f $installdir/$filename.unpacked; then 44872 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 44873 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44874 if test ! -d $installdir; then 44875 mkdir -p $installdir 44876 fi 44877 if test ! -d $installdir; then 44878 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44879 fi 44880 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 44881 touch $tmpfile 44882 if test ! -f $tmpfile; then 44883 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44884 fi 44885 44886 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44887 # $tmpfile is the local file name for the downloaded file. 44888 VALID_TOOL=no 44889 if test "x$BDEPS_FTP" = xwget; then 44890 VALID_TOOL=yes 44891 wget -O $tmpfile $with_builddeps_server/$resource 44892 fi 44893 if test "x$BDEPS_FTP" = xlftp; then 44894 VALID_TOOL=yes 44895 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44896 fi 44897 if test "x$BDEPS_FTP" = xftp; then 44898 VALID_TOOL=yes 44899 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44900 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44901 FTPUSERPWD=${FTPSERVER%%@*} 44902 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44903 FTPUSER=${userpwd%%:*} 44904 FTPPWD=${userpwd#*@} 44905 FTPSERVER=${FTPSERVER#*@} 44906 else 44907 FTPUSER=ftp 44908 FTPPWD=ftp 44909 fi 44910 # the "pass" command does not work on some 44911 # ftp clients (read ftp.exe) but if it works, 44912 # passive mode is better! 44913 ( \ 44914 echo "user $FTPUSER $FTPPWD" ; \ 44915 echo "pass" ; \ 44916 echo "bin" ; \ 44917 echo "get $FTPPATH $tmpfile" ; \ 44918 ) | ftp -in $FTPSERVER 44919 fi 44920 if test "x$VALID_TOOL" != xyes; then 44921 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44922 fi 44923 44924 mv $tmpfile $installdir/$filename 44925 if test ! -s $installdir/$filename; then 44926 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44927 fi 44928 case "$extension" in 44929 zip) echo "Unzipping $installdir/$filename..." 44930 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44931 ;; 44932 tar.gz) echo "Untaring $installdir/$filename..." 44933 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44934 ;; 44935 tgz) echo "Untaring $installdir/$filename..." 44936 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44937 ;; 44938 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44939 ;; 44940 esac 44941 fi 44942 if test -f $installdir/$filename.unpacked; then 44943 depdir=$installdir 44944 fi 44945 44946 fi 44947 # Source the builddeps file again, because in the previous command, the depdir 44948 # was updated to point at the current build dependency install directory. 44949 . $builddepsfile 44950 # Now extract variables from the builddeps.conf files. 44951 theroot=${builddep_freetype2_ROOT} 44952 thecflags=${builddep_freetype2_CFLAGS} 44953 thelibs=${builddep_freetype2_LIBS} 44954 if test "x$depdir" = x; then 44955 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 44956 fi 44957 FREETYPE=$depdir 44958 if test "x$theroot" != x; then 44959 FREETYPE="$theroot" 44960 fi 44961 if test "x$thecflags" != x; then 44962 FREETYPE_CFLAGS="$thecflags" 44963 fi 44964 if test "x$thelibs" != x; then 44965 FREETYPE_LIBS="$thelibs" 44966 fi 44967 FOUND_FREETYPE=yes 44968 else FOUND_FREETYPE=no 44969 44970 fi 44971 else FOUND_FREETYPE=no 44972 44973 fi 44974 44975 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 44976 if test "x$FOUND_FREETYPE" = xyes; then 44977 if test "x$BUNDLE_FREETYPE" = xyes; then 44978 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 44979 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 44980 FOUND_FREETYPE=no 44981 else 44982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 44983 $as_echo_n "checking for freetype... " >&6; } 44984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 44985 $as_echo "yes (using builddeps)" >&6; } 44986 fi 44987 fi 44988 fi 44989 44990 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 44991 if test "x$SYSROOT" = x; then 44992 if test "x$FOUND_FREETYPE" != xyes; then 44993 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 44994 if test "x$PKG_CONFIG" != x; then 44995 44996 pkg_failed=no 44997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 44998 $as_echo_n "checking for FREETYPE... " >&6; } 44999 45000 if test -n "$FREETYPE_CFLAGS"; then 45001 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 45002 elif test -n "$PKG_CONFIG"; then 45003 if test -n "$PKG_CONFIG" && \ 45004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45005 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45006 ac_status=$? 45007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45008 test $ac_status = 0; }; then 45009 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 45010 else 45011 pkg_failed=yes 45012 fi 45013 else 45014 pkg_failed=untried 45015 fi 45016 if test -n "$FREETYPE_LIBS"; then 45017 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 45018 elif test -n "$PKG_CONFIG"; then 45019 if test -n "$PKG_CONFIG" && \ 45020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45021 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45022 ac_status=$? 45023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45024 test $ac_status = 0; }; then 45025 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 45026 else 45027 pkg_failed=yes 45028 fi 45029 else 45030 pkg_failed=untried 45031 fi 45032 45033 45034 45035 if test $pkg_failed = yes; then 45036 45037 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45038 _pkg_short_errors_supported=yes 45039 else 45040 _pkg_short_errors_supported=no 45041 fi 45042 if test $_pkg_short_errors_supported = yes; then 45043 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 45044 else 45045 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 45046 fi 45047 # Put the nasty error message in config.log where it belongs 45048 echo "$FREETYPE_PKG_ERRORS" >&5 45049 45050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45051 $as_echo "no" >&6; } 45052 FOUND_FREETYPE=no 45053 elif test $pkg_failed = untried; then 45054 FOUND_FREETYPE=no 45055 else 45056 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 45057 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 45058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45059 $as_echo "yes" >&6; } 45060 FOUND_FREETYPE=yes 45061 fi 45062 if test "x$FOUND_FREETYPE" = xyes; then 45063 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 45064 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 45065 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 45066 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 45067 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 45068 fi 45069 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45070 if test "x$BUNDLE_FREETYPE" = xyes; then 45071 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 45072 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 45073 FOUND_FREETYPE=no 45074 else 45075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45076 $as_echo_n "checking for freetype... " >&6; } 45077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 45078 $as_echo "yes (using pkg-config)" >&6; } 45079 fi 45080 fi 45081 fi 45082 fi 45083 fi 45084 45085 if test "x$FOUND_FREETYPE" != xyes; then 45086 # Check in well-known locations 45087 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45088 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 45089 45090 windows_path="$FREETYPE_BASE_DIR" 45091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45092 unix_path=`$CYGPATH -u "$windows_path"` 45093 FREETYPE_BASE_DIR="$unix_path" 45094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45095 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45096 FREETYPE_BASE_DIR="$unix_path" 45097 fi 45098 45099 45100 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45101 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45102 METHOD="well-known location" 45103 45104 # First check if the files exists. 45105 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45106 # We found an arbitrary include file. That's a good sign. 45107 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45108 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45109 FOUND_FREETYPE=yes 45110 45111 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45112 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45113 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45114 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45115 FOUND_FREETYPE=no 45116 else 45117 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45118 # On Windows, we will need both .lib and .dll file. 45119 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45120 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45121 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45122 FOUND_FREETYPE=no 45123 fi 45124 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45125 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45126 # Found lib in isa dir, use that instead. 45127 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45128 fi 45129 fi 45130 fi 45131 45132 if test "x$FOUND_FREETYPE" = xyes; then 45133 45134 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45135 45136 # Input might be given as Windows format, start by converting to 45137 # unix format. 45138 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45139 new_path=`$CYGPATH -u "$path"` 45140 45141 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45142 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45143 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45144 # "foo.exe" is OK but "foo" is an error. 45145 # 45146 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45147 # It is also a way to make sure we got the proper file name for the real test later on. 45148 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45149 if test "x$test_shortpath" = x; then 45150 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45151 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45152 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45153 fi 45154 45155 # Call helper function which possibly converts this using DOS-style short mode. 45156 # If so, the updated path is stored in $new_path. 45157 45158 input_path="$new_path" 45159 # Check if we need to convert this using DOS-style short mode. If the path 45160 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45161 # take no chances and rewrite it. 45162 # Note: m4 eats our [], so we need to use [ and ] instead. 45163 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45164 if test "x$has_forbidden_chars" != x; then 45165 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45166 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45167 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45168 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45169 # Going to short mode and back again did indeed matter. Since short mode is 45170 # case insensitive, let's make it lowercase to improve readability. 45171 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45172 # Now convert it back to Unix-stile (cygpath) 45173 input_path=`$CYGPATH -u "$shortmode_path"` 45174 new_path="$input_path" 45175 fi 45176 fi 45177 45178 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45179 if test "x$test_cygdrive_prefix" = x; then 45180 # As a simple fix, exclude /usr/bin since it's not a real path. 45181 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45182 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45183 # a path prefixed by /cygdrive for fixpath to work. 45184 new_path="$CYGWIN_ROOT_PATH$input_path" 45185 fi 45186 fi 45187 45188 45189 if test "x$path" != "x$new_path"; then 45190 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45191 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45192 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45193 fi 45194 45195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45196 45197 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45198 has_colon=`$ECHO $path | $GREP ^.:` 45199 new_path="$path" 45200 if test "x$has_colon" = x; then 45201 # Not in mixed or Windows style, start by that. 45202 new_path=`cmd //c echo $path` 45203 fi 45204 45205 45206 input_path="$new_path" 45207 # Check if we need to convert this using DOS-style short mode. If the path 45208 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45209 # take no chances and rewrite it. 45210 # Note: m4 eats our [], so we need to use [ and ] instead. 45211 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45212 if test "x$has_forbidden_chars" != x; then 45213 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45214 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45215 fi 45216 45217 45218 windows_path="$new_path" 45219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45220 unix_path=`$CYGPATH -u "$windows_path"` 45221 new_path="$unix_path" 45222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45223 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45224 new_path="$unix_path" 45225 fi 45226 45227 if test "x$path" != "x$new_path"; then 45228 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45229 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45230 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45231 fi 45232 45233 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45234 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45235 45236 else 45237 # We're on a posix platform. Hooray! :) 45238 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45239 has_space=`$ECHO "$path" | $GREP " "` 45240 if test "x$has_space" != x; then 45241 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45242 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45243 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45244 fi 45245 45246 # Use eval to expand a potential ~ 45247 eval path="$path" 45248 if test ! -f "$path" && test ! -d "$path"; then 45249 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45250 fi 45251 45252 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45253 fi 45254 45255 45256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45257 45258 # Input might be given as Windows format, start by converting to 45259 # unix format. 45260 path="$POTENTIAL_FREETYPE_LIB_PATH" 45261 new_path=`$CYGPATH -u "$path"` 45262 45263 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45264 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45265 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45266 # "foo.exe" is OK but "foo" is an error. 45267 # 45268 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45269 # It is also a way to make sure we got the proper file name for the real test later on. 45270 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45271 if test "x$test_shortpath" = x; then 45272 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45273 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45274 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45275 fi 45276 45277 # Call helper function which possibly converts this using DOS-style short mode. 45278 # If so, the updated path is stored in $new_path. 45279 45280 input_path="$new_path" 45281 # Check if we need to convert this using DOS-style short mode. If the path 45282 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45283 # take no chances and rewrite it. 45284 # Note: m4 eats our [], so we need to use [ and ] instead. 45285 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45286 if test "x$has_forbidden_chars" != x; then 45287 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45288 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45289 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45290 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45291 # Going to short mode and back again did indeed matter. Since short mode is 45292 # case insensitive, let's make it lowercase to improve readability. 45293 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45294 # Now convert it back to Unix-stile (cygpath) 45295 input_path=`$CYGPATH -u "$shortmode_path"` 45296 new_path="$input_path" 45297 fi 45298 fi 45299 45300 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45301 if test "x$test_cygdrive_prefix" = x; then 45302 # As a simple fix, exclude /usr/bin since it's not a real path. 45303 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45304 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45305 # a path prefixed by /cygdrive for fixpath to work. 45306 new_path="$CYGWIN_ROOT_PATH$input_path" 45307 fi 45308 fi 45309 45310 45311 if test "x$path" != "x$new_path"; then 45312 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45313 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45314 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45315 fi 45316 45317 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45318 45319 path="$POTENTIAL_FREETYPE_LIB_PATH" 45320 has_colon=`$ECHO $path | $GREP ^.:` 45321 new_path="$path" 45322 if test "x$has_colon" = x; then 45323 # Not in mixed or Windows style, start by that. 45324 new_path=`cmd //c echo $path` 45325 fi 45326 45327 45328 input_path="$new_path" 45329 # Check if we need to convert this using DOS-style short mode. If the path 45330 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45331 # take no chances and rewrite it. 45332 # Note: m4 eats our [], so we need to use [ and ] instead. 45333 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45334 if test "x$has_forbidden_chars" != x; then 45335 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45336 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45337 fi 45338 45339 45340 windows_path="$new_path" 45341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45342 unix_path=`$CYGPATH -u "$windows_path"` 45343 new_path="$unix_path" 45344 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45345 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45346 new_path="$unix_path" 45347 fi 45348 45349 if test "x$path" != "x$new_path"; then 45350 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45351 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45352 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45353 fi 45354 45355 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45356 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45357 45358 else 45359 # We're on a posix platform. Hooray! :) 45360 path="$POTENTIAL_FREETYPE_LIB_PATH" 45361 has_space=`$ECHO "$path" | $GREP " "` 45362 if test "x$has_space" != x; then 45363 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45364 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45365 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45366 fi 45367 45368 # Use eval to expand a potential ~ 45369 eval path="$path" 45370 if test ! -f "$path" && test ! -d "$path"; then 45371 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45372 fi 45373 45374 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45375 fi 45376 45377 45378 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45380 $as_echo_n "checking for freetype includes... " >&6; } 45381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45382 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45383 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45385 $as_echo_n "checking for freetype libraries... " >&6; } 45386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45387 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45388 fi 45389 45390 if test "x$FOUND_FREETYPE" != xyes; then 45391 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45392 45393 windows_path="$FREETYPE_BASE_DIR" 45394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45395 unix_path=`$CYGPATH -u "$windows_path"` 45396 FREETYPE_BASE_DIR="$unix_path" 45397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45399 FREETYPE_BASE_DIR="$unix_path" 45400 fi 45401 45402 45403 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45404 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45405 METHOD="well-known location" 45406 45407 # First check if the files exists. 45408 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45409 # We found an arbitrary include file. That's a good sign. 45410 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45411 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45412 FOUND_FREETYPE=yes 45413 45414 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45415 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45416 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45417 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45418 FOUND_FREETYPE=no 45419 else 45420 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45421 # On Windows, we will need both .lib and .dll file. 45422 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45423 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45424 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45425 FOUND_FREETYPE=no 45426 fi 45427 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45428 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45429 # Found lib in isa dir, use that instead. 45430 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45431 fi 45432 fi 45433 fi 45434 45435 if test "x$FOUND_FREETYPE" = xyes; then 45436 45437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45438 45439 # Input might be given as Windows format, start by converting to 45440 # unix format. 45441 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45442 new_path=`$CYGPATH -u "$path"` 45443 45444 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45445 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45446 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45447 # "foo.exe" is OK but "foo" is an error. 45448 # 45449 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45450 # It is also a way to make sure we got the proper file name for the real test later on. 45451 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45452 if test "x$test_shortpath" = x; then 45453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45454 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45455 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45456 fi 45457 45458 # Call helper function which possibly converts this using DOS-style short mode. 45459 # If so, the updated path is stored in $new_path. 45460 45461 input_path="$new_path" 45462 # Check if we need to convert this using DOS-style short mode. If the path 45463 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45464 # take no chances and rewrite it. 45465 # Note: m4 eats our [], so we need to use [ and ] instead. 45466 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45467 if test "x$has_forbidden_chars" != x; then 45468 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45469 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45470 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45471 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45472 # Going to short mode and back again did indeed matter. Since short mode is 45473 # case insensitive, let's make it lowercase to improve readability. 45474 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45475 # Now convert it back to Unix-stile (cygpath) 45476 input_path=`$CYGPATH -u "$shortmode_path"` 45477 new_path="$input_path" 45478 fi 45479 fi 45480 45481 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45482 if test "x$test_cygdrive_prefix" = x; then 45483 # As a simple fix, exclude /usr/bin since it's not a real path. 45484 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45485 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45486 # a path prefixed by /cygdrive for fixpath to work. 45487 new_path="$CYGWIN_ROOT_PATH$input_path" 45488 fi 45489 fi 45490 45491 45492 if test "x$path" != "x$new_path"; then 45493 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45494 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45495 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45496 fi 45497 45498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45499 45500 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45501 has_colon=`$ECHO $path | $GREP ^.:` 45502 new_path="$path" 45503 if test "x$has_colon" = x; then 45504 # Not in mixed or Windows style, start by that. 45505 new_path=`cmd //c echo $path` 45506 fi 45507 45508 45509 input_path="$new_path" 45510 # Check if we need to convert this using DOS-style short mode. If the path 45511 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45512 # take no chances and rewrite it. 45513 # Note: m4 eats our [], so we need to use [ and ] instead. 45514 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45515 if test "x$has_forbidden_chars" != x; then 45516 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45517 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45518 fi 45519 45520 45521 windows_path="$new_path" 45522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45523 unix_path=`$CYGPATH -u "$windows_path"` 45524 new_path="$unix_path" 45525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45526 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45527 new_path="$unix_path" 45528 fi 45529 45530 if test "x$path" != "x$new_path"; then 45531 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45532 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45533 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45534 fi 45535 45536 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45537 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45538 45539 else 45540 # We're on a posix platform. Hooray! :) 45541 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45542 has_space=`$ECHO "$path" | $GREP " "` 45543 if test "x$has_space" != x; then 45544 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45545 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45546 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45547 fi 45548 45549 # Use eval to expand a potential ~ 45550 eval path="$path" 45551 if test ! -f "$path" && test ! -d "$path"; then 45552 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45553 fi 45554 45555 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45556 fi 45557 45558 45559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45560 45561 # Input might be given as Windows format, start by converting to 45562 # unix format. 45563 path="$POTENTIAL_FREETYPE_LIB_PATH" 45564 new_path=`$CYGPATH -u "$path"` 45565 45566 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45567 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45568 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45569 # "foo.exe" is OK but "foo" is an error. 45570 # 45571 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45572 # It is also a way to make sure we got the proper file name for the real test later on. 45573 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45574 if test "x$test_shortpath" = x; then 45575 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45576 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45577 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45578 fi 45579 45580 # Call helper function which possibly converts this using DOS-style short mode. 45581 # If so, the updated path is stored in $new_path. 45582 45583 input_path="$new_path" 45584 # Check if we need to convert this using DOS-style short mode. If the path 45585 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45586 # take no chances and rewrite it. 45587 # Note: m4 eats our [], so we need to use [ and ] instead. 45588 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45589 if test "x$has_forbidden_chars" != x; then 45590 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45591 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45592 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45593 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45594 # Going to short mode and back again did indeed matter. Since short mode is 45595 # case insensitive, let's make it lowercase to improve readability. 45596 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45597 # Now convert it back to Unix-stile (cygpath) 45598 input_path=`$CYGPATH -u "$shortmode_path"` 45599 new_path="$input_path" 45600 fi 45601 fi 45602 45603 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45604 if test "x$test_cygdrive_prefix" = x; then 45605 # As a simple fix, exclude /usr/bin since it's not a real path. 45606 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45607 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45608 # a path prefixed by /cygdrive for fixpath to work. 45609 new_path="$CYGWIN_ROOT_PATH$input_path" 45610 fi 45611 fi 45612 45613 45614 if test "x$path" != "x$new_path"; then 45615 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45617 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45618 fi 45619 45620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45621 45622 path="$POTENTIAL_FREETYPE_LIB_PATH" 45623 has_colon=`$ECHO $path | $GREP ^.:` 45624 new_path="$path" 45625 if test "x$has_colon" = x; then 45626 # Not in mixed or Windows style, start by that. 45627 new_path=`cmd //c echo $path` 45628 fi 45629 45630 45631 input_path="$new_path" 45632 # Check if we need to convert this using DOS-style short mode. If the path 45633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45634 # take no chances and rewrite it. 45635 # Note: m4 eats our [], so we need to use [ and ] instead. 45636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45637 if test "x$has_forbidden_chars" != x; then 45638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45639 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45640 fi 45641 45642 45643 windows_path="$new_path" 45644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45645 unix_path=`$CYGPATH -u "$windows_path"` 45646 new_path="$unix_path" 45647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45649 new_path="$unix_path" 45650 fi 45651 45652 if test "x$path" != "x$new_path"; then 45653 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45654 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45655 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45656 fi 45657 45658 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45659 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45660 45661 else 45662 # We're on a posix platform. Hooray! :) 45663 path="$POTENTIAL_FREETYPE_LIB_PATH" 45664 has_space=`$ECHO "$path" | $GREP " "` 45665 if test "x$has_space" != x; then 45666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45667 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45668 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45669 fi 45670 45671 # Use eval to expand a potential ~ 45672 eval path="$path" 45673 if test ! -f "$path" && test ! -d "$path"; then 45674 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45675 fi 45676 45677 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45678 fi 45679 45680 45681 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45683 $as_echo_n "checking for freetype includes... " >&6; } 45684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45685 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45686 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45688 $as_echo_n "checking for freetype libraries... " >&6; } 45689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45690 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45691 fi 45692 45693 fi 45694 else 45695 FREETYPE_BASE_DIR="$SYSROOT/usr" 45696 45697 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45698 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45699 METHOD="well-known location" 45700 45701 # First check if the files exists. 45702 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45703 # We found an arbitrary include file. That's a good sign. 45704 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45705 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45706 FOUND_FREETYPE=yes 45707 45708 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45709 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45710 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45711 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45712 FOUND_FREETYPE=no 45713 else 45714 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45715 # On Windows, we will need both .lib and .dll file. 45716 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45717 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45718 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45719 FOUND_FREETYPE=no 45720 fi 45721 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45722 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45723 # Found lib in isa dir, use that instead. 45724 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45725 fi 45726 fi 45727 fi 45728 45729 if test "x$FOUND_FREETYPE" = xyes; then 45730 45731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45732 45733 # Input might be given as Windows format, start by converting to 45734 # unix format. 45735 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45736 new_path=`$CYGPATH -u "$path"` 45737 45738 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45739 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45740 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45741 # "foo.exe" is OK but "foo" is an error. 45742 # 45743 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45744 # It is also a way to make sure we got the proper file name for the real test later on. 45745 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45746 if test "x$test_shortpath" = x; then 45747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45748 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45749 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45750 fi 45751 45752 # Call helper function which possibly converts this using DOS-style short mode. 45753 # If so, the updated path is stored in $new_path. 45754 45755 input_path="$new_path" 45756 # Check if we need to convert this using DOS-style short mode. If the path 45757 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45758 # take no chances and rewrite it. 45759 # Note: m4 eats our [], so we need to use [ and ] instead. 45760 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45761 if test "x$has_forbidden_chars" != x; then 45762 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45763 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45764 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45765 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45766 # Going to short mode and back again did indeed matter. Since short mode is 45767 # case insensitive, let's make it lowercase to improve readability. 45768 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45769 # Now convert it back to Unix-stile (cygpath) 45770 input_path=`$CYGPATH -u "$shortmode_path"` 45771 new_path="$input_path" 45772 fi 45773 fi 45774 45775 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45776 if test "x$test_cygdrive_prefix" = x; then 45777 # As a simple fix, exclude /usr/bin since it's not a real path. 45778 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45779 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45780 # a path prefixed by /cygdrive for fixpath to work. 45781 new_path="$CYGWIN_ROOT_PATH$input_path" 45782 fi 45783 fi 45784 45785 45786 if test "x$path" != "x$new_path"; then 45787 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45788 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45789 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45790 fi 45791 45792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45793 45794 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45795 has_colon=`$ECHO $path | $GREP ^.:` 45796 new_path="$path" 45797 if test "x$has_colon" = x; then 45798 # Not in mixed or Windows style, start by that. 45799 new_path=`cmd //c echo $path` 45800 fi 45801 45802 45803 input_path="$new_path" 45804 # Check if we need to convert this using DOS-style short mode. If the path 45805 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45806 # take no chances and rewrite it. 45807 # Note: m4 eats our [], so we need to use [ and ] instead. 45808 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45809 if test "x$has_forbidden_chars" != x; then 45810 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45811 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45812 fi 45813 45814 45815 windows_path="$new_path" 45816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45817 unix_path=`$CYGPATH -u "$windows_path"` 45818 new_path="$unix_path" 45819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45820 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45821 new_path="$unix_path" 45822 fi 45823 45824 if test "x$path" != "x$new_path"; then 45825 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45826 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45827 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45828 fi 45829 45830 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45831 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45832 45833 else 45834 # We're on a posix platform. Hooray! :) 45835 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45836 has_space=`$ECHO "$path" | $GREP " "` 45837 if test "x$has_space" != x; then 45838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45839 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45840 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45841 fi 45842 45843 # Use eval to expand a potential ~ 45844 eval path="$path" 45845 if test ! -f "$path" && test ! -d "$path"; then 45846 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45847 fi 45848 45849 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45850 fi 45851 45852 45853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45854 45855 # Input might be given as Windows format, start by converting to 45856 # unix format. 45857 path="$POTENTIAL_FREETYPE_LIB_PATH" 45858 new_path=`$CYGPATH -u "$path"` 45859 45860 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45861 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45862 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45863 # "foo.exe" is OK but "foo" is an error. 45864 # 45865 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45866 # It is also a way to make sure we got the proper file name for the real test later on. 45867 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45868 if test "x$test_shortpath" = x; then 45869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45870 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45871 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45872 fi 45873 45874 # Call helper function which possibly converts this using DOS-style short mode. 45875 # If so, the updated path is stored in $new_path. 45876 45877 input_path="$new_path" 45878 # Check if we need to convert this using DOS-style short mode. If the path 45879 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45880 # take no chances and rewrite it. 45881 # Note: m4 eats our [], so we need to use [ and ] instead. 45882 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45883 if test "x$has_forbidden_chars" != x; then 45884 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45885 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45886 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45887 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45888 # Going to short mode and back again did indeed matter. Since short mode is 45889 # case insensitive, let's make it lowercase to improve readability. 45890 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45891 # Now convert it back to Unix-stile (cygpath) 45892 input_path=`$CYGPATH -u "$shortmode_path"` 45893 new_path="$input_path" 45894 fi 45895 fi 45896 45897 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45898 if test "x$test_cygdrive_prefix" = x; then 45899 # As a simple fix, exclude /usr/bin since it's not a real path. 45900 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45901 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45902 # a path prefixed by /cygdrive for fixpath to work. 45903 new_path="$CYGWIN_ROOT_PATH$input_path" 45904 fi 45905 fi 45906 45907 45908 if test "x$path" != "x$new_path"; then 45909 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45910 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45911 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45912 fi 45913 45914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45915 45916 path="$POTENTIAL_FREETYPE_LIB_PATH" 45917 has_colon=`$ECHO $path | $GREP ^.:` 45918 new_path="$path" 45919 if test "x$has_colon" = x; then 45920 # Not in mixed or Windows style, start by that. 45921 new_path=`cmd //c echo $path` 45922 fi 45923 45924 45925 input_path="$new_path" 45926 # Check if we need to convert this using DOS-style short mode. If the path 45927 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45928 # take no chances and rewrite it. 45929 # Note: m4 eats our [], so we need to use [ and ] instead. 45930 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45931 if test "x$has_forbidden_chars" != x; then 45932 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45933 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45934 fi 45935 45936 45937 windows_path="$new_path" 45938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45939 unix_path=`$CYGPATH -u "$windows_path"` 45940 new_path="$unix_path" 45941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45942 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45943 new_path="$unix_path" 45944 fi 45945 45946 if test "x$path" != "x$new_path"; then 45947 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45948 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45949 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45950 fi 45951 45952 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45953 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45954 45955 else 45956 # We're on a posix platform. Hooray! :) 45957 path="$POTENTIAL_FREETYPE_LIB_PATH" 45958 has_space=`$ECHO "$path" | $GREP " "` 45959 if test "x$has_space" != x; then 45960 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45961 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45962 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45963 fi 45964 45965 # Use eval to expand a potential ~ 45966 eval path="$path" 45967 if test ! -f "$path" && test ! -d "$path"; then 45968 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45969 fi 45970 45971 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45972 fi 45973 45974 45975 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45977 $as_echo_n "checking for freetype includes... " >&6; } 45978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45979 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45980 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45982 $as_echo_n "checking for freetype libraries... " >&6; } 45983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45984 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45985 fi 45986 45987 45988 if test "x$FOUND_FREETYPE" != xyes; then 45989 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 45990 45991 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45992 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45993 METHOD="well-known location" 45994 45995 # First check if the files exists. 45996 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45997 # We found an arbitrary include file. That's a good sign. 45998 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45999 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46000 FOUND_FREETYPE=yes 46001 46002 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46003 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46004 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46005 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46006 FOUND_FREETYPE=no 46007 else 46008 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46009 # On Windows, we will need both .lib and .dll file. 46010 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46011 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46012 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46013 FOUND_FREETYPE=no 46014 fi 46015 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46016 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46017 # Found lib in isa dir, use that instead. 46018 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46019 fi 46020 fi 46021 fi 46022 46023 if test "x$FOUND_FREETYPE" = xyes; then 46024 46025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46026 46027 # Input might be given as Windows format, start by converting to 46028 # unix format. 46029 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46030 new_path=`$CYGPATH -u "$path"` 46031 46032 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46033 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46034 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46035 # "foo.exe" is OK but "foo" is an error. 46036 # 46037 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46038 # It is also a way to make sure we got the proper file name for the real test later on. 46039 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46040 if test "x$test_shortpath" = x; then 46041 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46042 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46043 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46044 fi 46045 46046 # Call helper function which possibly converts this using DOS-style short mode. 46047 # If so, the updated path is stored in $new_path. 46048 46049 input_path="$new_path" 46050 # Check if we need to convert this using DOS-style short mode. If the path 46051 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46052 # take no chances and rewrite it. 46053 # Note: m4 eats our [], so we need to use [ and ] instead. 46054 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46055 if test "x$has_forbidden_chars" != x; then 46056 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46057 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46058 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46059 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46060 # Going to short mode and back again did indeed matter. Since short mode is 46061 # case insensitive, let's make it lowercase to improve readability. 46062 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46063 # Now convert it back to Unix-stile (cygpath) 46064 input_path=`$CYGPATH -u "$shortmode_path"` 46065 new_path="$input_path" 46066 fi 46067 fi 46068 46069 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46070 if test "x$test_cygdrive_prefix" = x; then 46071 # As a simple fix, exclude /usr/bin since it's not a real path. 46072 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46073 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46074 # a path prefixed by /cygdrive for fixpath to work. 46075 new_path="$CYGWIN_ROOT_PATH$input_path" 46076 fi 46077 fi 46078 46079 46080 if test "x$path" != "x$new_path"; then 46081 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46082 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46083 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46084 fi 46085 46086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46087 46088 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46089 has_colon=`$ECHO $path | $GREP ^.:` 46090 new_path="$path" 46091 if test "x$has_colon" = x; then 46092 # Not in mixed or Windows style, start by that. 46093 new_path=`cmd //c echo $path` 46094 fi 46095 46096 46097 input_path="$new_path" 46098 # Check if we need to convert this using DOS-style short mode. If the path 46099 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46100 # take no chances and rewrite it. 46101 # Note: m4 eats our [], so we need to use [ and ] instead. 46102 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46103 if test "x$has_forbidden_chars" != x; then 46104 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46105 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46106 fi 46107 46108 46109 windows_path="$new_path" 46110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46111 unix_path=`$CYGPATH -u "$windows_path"` 46112 new_path="$unix_path" 46113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46114 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46115 new_path="$unix_path" 46116 fi 46117 46118 if test "x$path" != "x$new_path"; then 46119 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46120 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46121 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46122 fi 46123 46124 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46125 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46126 46127 else 46128 # We're on a posix platform. Hooray! :) 46129 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46130 has_space=`$ECHO "$path" | $GREP " "` 46131 if test "x$has_space" != x; then 46132 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46133 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46134 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46135 fi 46136 46137 # Use eval to expand a potential ~ 46138 eval path="$path" 46139 if test ! -f "$path" && test ! -d "$path"; then 46140 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46141 fi 46142 46143 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46144 fi 46145 46146 46147 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46148 46149 # Input might be given as Windows format, start by converting to 46150 # unix format. 46151 path="$POTENTIAL_FREETYPE_LIB_PATH" 46152 new_path=`$CYGPATH -u "$path"` 46153 46154 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46155 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46156 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46157 # "foo.exe" is OK but "foo" is an error. 46158 # 46159 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46160 # It is also a way to make sure we got the proper file name for the real test later on. 46161 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46162 if test "x$test_shortpath" = x; then 46163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46164 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46165 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46166 fi 46167 46168 # Call helper function which possibly converts this using DOS-style short mode. 46169 # If so, the updated path is stored in $new_path. 46170 46171 input_path="$new_path" 46172 # Check if we need to convert this using DOS-style short mode. If the path 46173 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46174 # take no chances and rewrite it. 46175 # Note: m4 eats our [], so we need to use [ and ] instead. 46176 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46177 if test "x$has_forbidden_chars" != x; then 46178 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46179 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46180 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46181 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46182 # Going to short mode and back again did indeed matter. Since short mode is 46183 # case insensitive, let's make it lowercase to improve readability. 46184 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46185 # Now convert it back to Unix-stile (cygpath) 46186 input_path=`$CYGPATH -u "$shortmode_path"` 46187 new_path="$input_path" 46188 fi 46189 fi 46190 46191 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46192 if test "x$test_cygdrive_prefix" = x; then 46193 # As a simple fix, exclude /usr/bin since it's not a real path. 46194 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46195 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46196 # a path prefixed by /cygdrive for fixpath to work. 46197 new_path="$CYGWIN_ROOT_PATH$input_path" 46198 fi 46199 fi 46200 46201 46202 if test "x$path" != "x$new_path"; then 46203 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46204 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46205 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46206 fi 46207 46208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46209 46210 path="$POTENTIAL_FREETYPE_LIB_PATH" 46211 has_colon=`$ECHO $path | $GREP ^.:` 46212 new_path="$path" 46213 if test "x$has_colon" = x; then 46214 # Not in mixed or Windows style, start by that. 46215 new_path=`cmd //c echo $path` 46216 fi 46217 46218 46219 input_path="$new_path" 46220 # Check if we need to convert this using DOS-style short mode. If the path 46221 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46222 # take no chances and rewrite it. 46223 # Note: m4 eats our [], so we need to use [ and ] instead. 46224 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46225 if test "x$has_forbidden_chars" != x; then 46226 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46227 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46228 fi 46229 46230 46231 windows_path="$new_path" 46232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46233 unix_path=`$CYGPATH -u "$windows_path"` 46234 new_path="$unix_path" 46235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46236 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46237 new_path="$unix_path" 46238 fi 46239 46240 if test "x$path" != "x$new_path"; then 46241 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46242 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46243 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46244 fi 46245 46246 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46247 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46248 46249 else 46250 # We're on a posix platform. Hooray! :) 46251 path="$POTENTIAL_FREETYPE_LIB_PATH" 46252 has_space=`$ECHO "$path" | $GREP " "` 46253 if test "x$has_space" != x; then 46254 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46255 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46256 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46257 fi 46258 46259 # Use eval to expand a potential ~ 46260 eval path="$path" 46261 if test ! -f "$path" && test ! -d "$path"; then 46262 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46263 fi 46264 46265 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46266 fi 46267 46268 46269 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46271 $as_echo_n "checking for freetype includes... " >&6; } 46272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46273 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46274 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46276 $as_echo_n "checking for freetype libraries... " >&6; } 46277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46278 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46279 fi 46280 46281 fi 46282 46283 if test "x$FOUND_FREETYPE" != xyes; then 46284 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46285 46286 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46287 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46288 METHOD="well-known location" 46289 46290 # First check if the files exists. 46291 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46292 # We found an arbitrary include file. That's a good sign. 46293 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46294 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46295 FOUND_FREETYPE=yes 46296 46297 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46298 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46299 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46300 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46301 FOUND_FREETYPE=no 46302 else 46303 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46304 # On Windows, we will need both .lib and .dll file. 46305 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46306 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46307 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46308 FOUND_FREETYPE=no 46309 fi 46310 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46311 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46312 # Found lib in isa dir, use that instead. 46313 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46314 fi 46315 fi 46316 fi 46317 46318 if test "x$FOUND_FREETYPE" = xyes; then 46319 46320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46321 46322 # Input might be given as Windows format, start by converting to 46323 # unix format. 46324 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46325 new_path=`$CYGPATH -u "$path"` 46326 46327 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46328 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46329 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46330 # "foo.exe" is OK but "foo" is an error. 46331 # 46332 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46333 # It is also a way to make sure we got the proper file name for the real test later on. 46334 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46335 if test "x$test_shortpath" = x; then 46336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46337 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46338 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46339 fi 46340 46341 # Call helper function which possibly converts this using DOS-style short mode. 46342 # If so, the updated path is stored in $new_path. 46343 46344 input_path="$new_path" 46345 # Check if we need to convert this using DOS-style short mode. If the path 46346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46347 # take no chances and rewrite it. 46348 # Note: m4 eats our [], so we need to use [ and ] instead. 46349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46350 if test "x$has_forbidden_chars" != x; then 46351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46352 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46353 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46354 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46355 # Going to short mode and back again did indeed matter. Since short mode is 46356 # case insensitive, let's make it lowercase to improve readability. 46357 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46358 # Now convert it back to Unix-stile (cygpath) 46359 input_path=`$CYGPATH -u "$shortmode_path"` 46360 new_path="$input_path" 46361 fi 46362 fi 46363 46364 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46365 if test "x$test_cygdrive_prefix" = x; then 46366 # As a simple fix, exclude /usr/bin since it's not a real path. 46367 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46368 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46369 # a path prefixed by /cygdrive for fixpath to work. 46370 new_path="$CYGWIN_ROOT_PATH$input_path" 46371 fi 46372 fi 46373 46374 46375 if test "x$path" != "x$new_path"; then 46376 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46378 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46379 fi 46380 46381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46382 46383 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46384 has_colon=`$ECHO $path | $GREP ^.:` 46385 new_path="$path" 46386 if test "x$has_colon" = x; then 46387 # Not in mixed or Windows style, start by that. 46388 new_path=`cmd //c echo $path` 46389 fi 46390 46391 46392 input_path="$new_path" 46393 # Check if we need to convert this using DOS-style short mode. If the path 46394 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46395 # take no chances and rewrite it. 46396 # Note: m4 eats our [], so we need to use [ and ] instead. 46397 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46398 if test "x$has_forbidden_chars" != x; then 46399 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46400 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46401 fi 46402 46403 46404 windows_path="$new_path" 46405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46406 unix_path=`$CYGPATH -u "$windows_path"` 46407 new_path="$unix_path" 46408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46410 new_path="$unix_path" 46411 fi 46412 46413 if test "x$path" != "x$new_path"; then 46414 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46415 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46416 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46417 fi 46418 46419 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46420 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46421 46422 else 46423 # We're on a posix platform. Hooray! :) 46424 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46425 has_space=`$ECHO "$path" | $GREP " "` 46426 if test "x$has_space" != x; then 46427 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46428 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46429 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46430 fi 46431 46432 # Use eval to expand a potential ~ 46433 eval path="$path" 46434 if test ! -f "$path" && test ! -d "$path"; then 46435 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46436 fi 46437 46438 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46439 fi 46440 46441 46442 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46443 46444 # Input might be given as Windows format, start by converting to 46445 # unix format. 46446 path="$POTENTIAL_FREETYPE_LIB_PATH" 46447 new_path=`$CYGPATH -u "$path"` 46448 46449 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46450 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46451 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46452 # "foo.exe" is OK but "foo" is an error. 46453 # 46454 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46455 # It is also a way to make sure we got the proper file name for the real test later on. 46456 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46457 if test "x$test_shortpath" = x; then 46458 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46459 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46460 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46461 fi 46462 46463 # Call helper function which possibly converts this using DOS-style short mode. 46464 # If so, the updated path is stored in $new_path. 46465 46466 input_path="$new_path" 46467 # Check if we need to convert this using DOS-style short mode. If the path 46468 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46469 # take no chances and rewrite it. 46470 # Note: m4 eats our [], so we need to use [ and ] instead. 46471 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46472 if test "x$has_forbidden_chars" != x; then 46473 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46474 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46475 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46476 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46477 # Going to short mode and back again did indeed matter. Since short mode is 46478 # case insensitive, let's make it lowercase to improve readability. 46479 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46480 # Now convert it back to Unix-stile (cygpath) 46481 input_path=`$CYGPATH -u "$shortmode_path"` 46482 new_path="$input_path" 46483 fi 46484 fi 46485 46486 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46487 if test "x$test_cygdrive_prefix" = x; then 46488 # As a simple fix, exclude /usr/bin since it's not a real path. 46489 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46490 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46491 # a path prefixed by /cygdrive for fixpath to work. 46492 new_path="$CYGWIN_ROOT_PATH$input_path" 46493 fi 46494 fi 46495 46496 46497 if test "x$path" != "x$new_path"; then 46498 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46499 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46500 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46501 fi 46502 46503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46504 46505 path="$POTENTIAL_FREETYPE_LIB_PATH" 46506 has_colon=`$ECHO $path | $GREP ^.:` 46507 new_path="$path" 46508 if test "x$has_colon" = x; then 46509 # Not in mixed or Windows style, start by that. 46510 new_path=`cmd //c echo $path` 46511 fi 46512 46513 46514 input_path="$new_path" 46515 # Check if we need to convert this using DOS-style short mode. If the path 46516 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46517 # take no chances and rewrite it. 46518 # Note: m4 eats our [], so we need to use [ and ] instead. 46519 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46520 if test "x$has_forbidden_chars" != x; then 46521 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46522 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46523 fi 46524 46525 46526 windows_path="$new_path" 46527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46528 unix_path=`$CYGPATH -u "$windows_path"` 46529 new_path="$unix_path" 46530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46531 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46532 new_path="$unix_path" 46533 fi 46534 46535 if test "x$path" != "x$new_path"; then 46536 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46537 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46538 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46539 fi 46540 46541 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46542 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46543 46544 else 46545 # We're on a posix platform. Hooray! :) 46546 path="$POTENTIAL_FREETYPE_LIB_PATH" 46547 has_space=`$ECHO "$path" | $GREP " "` 46548 if test "x$has_space" != x; then 46549 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46550 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46551 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46552 fi 46553 46554 # Use eval to expand a potential ~ 46555 eval path="$path" 46556 if test ! -f "$path" && test ! -d "$path"; then 46557 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46558 fi 46559 46560 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46561 fi 46562 46563 46564 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46566 $as_echo_n "checking for freetype includes... " >&6; } 46567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46568 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46569 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46571 $as_echo_n "checking for freetype libraries... " >&6; } 46572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46573 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46574 fi 46575 46576 fi 46577 46578 if test "x$FOUND_FREETYPE" != xyes; then 46579 FREETYPE_BASE_DIR="$SYSROOT/usr" 46580 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46581 46582 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46583 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 46584 METHOD="well-known location" 46585 46586 # First check if the files exists. 46587 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46588 # We found an arbitrary include file. That's a good sign. 46589 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46590 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46591 FOUND_FREETYPE=yes 46592 46593 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46594 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46595 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46596 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46597 FOUND_FREETYPE=no 46598 else 46599 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46600 # On Windows, we will need both .lib and .dll file. 46601 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46602 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46603 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46604 FOUND_FREETYPE=no 46605 fi 46606 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46607 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46608 # Found lib in isa dir, use that instead. 46609 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46610 fi 46611 fi 46612 fi 46613 46614 if test "x$FOUND_FREETYPE" = xyes; then 46615 46616 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46617 46618 # Input might be given as Windows format, start by converting to 46619 # unix format. 46620 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46621 new_path=`$CYGPATH -u "$path"` 46622 46623 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46624 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46625 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46626 # "foo.exe" is OK but "foo" is an error. 46627 # 46628 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46629 # It is also a way to make sure we got the proper file name for the real test later on. 46630 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46631 if test "x$test_shortpath" = x; then 46632 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46633 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46634 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46635 fi 46636 46637 # Call helper function which possibly converts this using DOS-style short mode. 46638 # If so, the updated path is stored in $new_path. 46639 46640 input_path="$new_path" 46641 # Check if we need to convert this using DOS-style short mode. If the path 46642 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46643 # take no chances and rewrite it. 46644 # Note: m4 eats our [], so we need to use [ and ] instead. 46645 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46646 if test "x$has_forbidden_chars" != x; then 46647 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46648 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46649 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46650 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46651 # Going to short mode and back again did indeed matter. Since short mode is 46652 # case insensitive, let's make it lowercase to improve readability. 46653 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46654 # Now convert it back to Unix-stile (cygpath) 46655 input_path=`$CYGPATH -u "$shortmode_path"` 46656 new_path="$input_path" 46657 fi 46658 fi 46659 46660 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46661 if test "x$test_cygdrive_prefix" = x; then 46662 # As a simple fix, exclude /usr/bin since it's not a real path. 46663 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46664 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46665 # a path prefixed by /cygdrive for fixpath to work. 46666 new_path="$CYGWIN_ROOT_PATH$input_path" 46667 fi 46668 fi 46669 46670 46671 if test "x$path" != "x$new_path"; then 46672 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46673 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46674 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46675 fi 46676 46677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46678 46679 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46680 has_colon=`$ECHO $path | $GREP ^.:` 46681 new_path="$path" 46682 if test "x$has_colon" = x; then 46683 # Not in mixed or Windows style, start by that. 46684 new_path=`cmd //c echo $path` 46685 fi 46686 46687 46688 input_path="$new_path" 46689 # Check if we need to convert this using DOS-style short mode. If the path 46690 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46691 # take no chances and rewrite it. 46692 # Note: m4 eats our [], so we need to use [ and ] instead. 46693 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46694 if test "x$has_forbidden_chars" != x; then 46695 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46696 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46697 fi 46698 46699 46700 windows_path="$new_path" 46701 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46702 unix_path=`$CYGPATH -u "$windows_path"` 46703 new_path="$unix_path" 46704 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46705 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46706 new_path="$unix_path" 46707 fi 46708 46709 if test "x$path" != "x$new_path"; then 46710 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46711 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46712 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46713 fi 46714 46715 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46716 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46717 46718 else 46719 # We're on a posix platform. Hooray! :) 46720 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46721 has_space=`$ECHO "$path" | $GREP " "` 46722 if test "x$has_space" != x; then 46723 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46724 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46725 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46726 fi 46727 46728 # Use eval to expand a potential ~ 46729 eval path="$path" 46730 if test ! -f "$path" && test ! -d "$path"; then 46731 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46732 fi 46733 46734 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46735 fi 46736 46737 46738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46739 46740 # Input might be given as Windows format, start by converting to 46741 # unix format. 46742 path="$POTENTIAL_FREETYPE_LIB_PATH" 46743 new_path=`$CYGPATH -u "$path"` 46744 46745 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46746 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46747 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46748 # "foo.exe" is OK but "foo" is an error. 46749 # 46750 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46751 # It is also a way to make sure we got the proper file name for the real test later on. 46752 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46753 if test "x$test_shortpath" = x; then 46754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46755 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46756 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46757 fi 46758 46759 # Call helper function which possibly converts this using DOS-style short mode. 46760 # If so, the updated path is stored in $new_path. 46761 46762 input_path="$new_path" 46763 # Check if we need to convert this using DOS-style short mode. If the path 46764 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46765 # take no chances and rewrite it. 46766 # Note: m4 eats our [], so we need to use [ and ] instead. 46767 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46768 if test "x$has_forbidden_chars" != x; then 46769 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46770 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46771 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46772 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46773 # Going to short mode and back again did indeed matter. Since short mode is 46774 # case insensitive, let's make it lowercase to improve readability. 46775 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46776 # Now convert it back to Unix-stile (cygpath) 46777 input_path=`$CYGPATH -u "$shortmode_path"` 46778 new_path="$input_path" 46779 fi 46780 fi 46781 46782 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46783 if test "x$test_cygdrive_prefix" = x; then 46784 # As a simple fix, exclude /usr/bin since it's not a real path. 46785 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46786 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46787 # a path prefixed by /cygdrive for fixpath to work. 46788 new_path="$CYGWIN_ROOT_PATH$input_path" 46789 fi 46790 fi 46791 46792 46793 if test "x$path" != "x$new_path"; then 46794 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46795 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46796 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46797 fi 46798 46799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46800 46801 path="$POTENTIAL_FREETYPE_LIB_PATH" 46802 has_colon=`$ECHO $path | $GREP ^.:` 46803 new_path="$path" 46804 if test "x$has_colon" = x; then 46805 # Not in mixed or Windows style, start by that. 46806 new_path=`cmd //c echo $path` 46807 fi 46808 46809 46810 input_path="$new_path" 46811 # Check if we need to convert this using DOS-style short mode. If the path 46812 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46813 # take no chances and rewrite it. 46814 # Note: m4 eats our [], so we need to use [ and ] instead. 46815 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46816 if test "x$has_forbidden_chars" != x; then 46817 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46818 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46819 fi 46820 46821 46822 windows_path="$new_path" 46823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46824 unix_path=`$CYGPATH -u "$windows_path"` 46825 new_path="$unix_path" 46826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46827 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46828 new_path="$unix_path" 46829 fi 46830 46831 if test "x$path" != "x$new_path"; then 46832 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46833 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46834 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46835 fi 46836 46837 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46838 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46839 46840 else 46841 # We're on a posix platform. Hooray! :) 46842 path="$POTENTIAL_FREETYPE_LIB_PATH" 46843 has_space=`$ECHO "$path" | $GREP " "` 46844 if test "x$has_space" != x; then 46845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46846 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46847 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46848 fi 46849 46850 # Use eval to expand a potential ~ 46851 eval path="$path" 46852 if test ! -f "$path" && test ! -d "$path"; then 46853 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46854 fi 46855 46856 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46857 fi 46858 46859 46860 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46862 $as_echo_n "checking for freetype includes... " >&6; } 46863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46864 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46865 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46867 $as_echo_n "checking for freetype libraries... " >&6; } 46868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46869 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46870 fi 46871 46872 else 46873 46874 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46875 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 46876 METHOD="well-known location" 46877 46878 # First check if the files exists. 46879 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46880 # We found an arbitrary include file. That's a good sign. 46881 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46882 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46883 FOUND_FREETYPE=yes 46884 46885 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46886 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46887 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46888 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46889 FOUND_FREETYPE=no 46890 else 46891 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46892 # On Windows, we will need both .lib and .dll file. 46893 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46894 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46895 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46896 FOUND_FREETYPE=no 46897 fi 46898 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46899 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46900 # Found lib in isa dir, use that instead. 46901 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46902 fi 46903 fi 46904 fi 46905 46906 if test "x$FOUND_FREETYPE" = xyes; then 46907 46908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46909 46910 # Input might be given as Windows format, start by converting to 46911 # unix format. 46912 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46913 new_path=`$CYGPATH -u "$path"` 46914 46915 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46916 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46917 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46918 # "foo.exe" is OK but "foo" is an error. 46919 # 46920 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46921 # It is also a way to make sure we got the proper file name for the real test later on. 46922 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46923 if test "x$test_shortpath" = x; then 46924 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46925 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46926 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46927 fi 46928 46929 # Call helper function which possibly converts this using DOS-style short mode. 46930 # If so, the updated path is stored in $new_path. 46931 46932 input_path="$new_path" 46933 # Check if we need to convert this using DOS-style short mode. If the path 46934 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46935 # take no chances and rewrite it. 46936 # Note: m4 eats our [], so we need to use [ and ] instead. 46937 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46938 if test "x$has_forbidden_chars" != x; then 46939 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46940 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46941 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46942 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46943 # Going to short mode and back again did indeed matter. Since short mode is 46944 # case insensitive, let's make it lowercase to improve readability. 46945 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46946 # Now convert it back to Unix-stile (cygpath) 46947 input_path=`$CYGPATH -u "$shortmode_path"` 46948 new_path="$input_path" 46949 fi 46950 fi 46951 46952 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46953 if test "x$test_cygdrive_prefix" = x; then 46954 # As a simple fix, exclude /usr/bin since it's not a real path. 46955 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46956 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46957 # a path prefixed by /cygdrive for fixpath to work. 46958 new_path="$CYGWIN_ROOT_PATH$input_path" 46959 fi 46960 fi 46961 46962 46963 if test "x$path" != "x$new_path"; then 46964 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46965 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46966 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46967 fi 46968 46969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46970 46971 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46972 has_colon=`$ECHO $path | $GREP ^.:` 46973 new_path="$path" 46974 if test "x$has_colon" = x; then 46975 # Not in mixed or Windows style, start by that. 46976 new_path=`cmd //c echo $path` 46977 fi 46978 46979 46980 input_path="$new_path" 46981 # Check if we need to convert this using DOS-style short mode. If the path 46982 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46983 # take no chances and rewrite it. 46984 # Note: m4 eats our [], so we need to use [ and ] instead. 46985 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46986 if test "x$has_forbidden_chars" != x; then 46987 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46988 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46989 fi 46990 46991 46992 windows_path="$new_path" 46993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46994 unix_path=`$CYGPATH -u "$windows_path"` 46995 new_path="$unix_path" 46996 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46997 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46998 new_path="$unix_path" 46999 fi 47000 47001 if test "x$path" != "x$new_path"; then 47002 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47003 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47004 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47005 fi 47006 47007 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47008 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47009 47010 else 47011 # We're on a posix platform. Hooray! :) 47012 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47013 has_space=`$ECHO "$path" | $GREP " "` 47014 if test "x$has_space" != x; then 47015 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47016 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47017 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47018 fi 47019 47020 # Use eval to expand a potential ~ 47021 eval path="$path" 47022 if test ! -f "$path" && test ! -d "$path"; then 47023 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47024 fi 47025 47026 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47027 fi 47028 47029 47030 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47031 47032 # Input might be given as Windows format, start by converting to 47033 # unix format. 47034 path="$POTENTIAL_FREETYPE_LIB_PATH" 47035 new_path=`$CYGPATH -u "$path"` 47036 47037 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47038 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47039 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47040 # "foo.exe" is OK but "foo" is an error. 47041 # 47042 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47043 # It is also a way to make sure we got the proper file name for the real test later on. 47044 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47045 if test "x$test_shortpath" = x; then 47046 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47047 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47048 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47049 fi 47050 47051 # Call helper function which possibly converts this using DOS-style short mode. 47052 # If so, the updated path is stored in $new_path. 47053 47054 input_path="$new_path" 47055 # Check if we need to convert this using DOS-style short mode. If the path 47056 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47057 # take no chances and rewrite it. 47058 # Note: m4 eats our [], so we need to use [ and ] instead. 47059 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47060 if test "x$has_forbidden_chars" != x; then 47061 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47062 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47063 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47064 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47065 # Going to short mode and back again did indeed matter. Since short mode is 47066 # case insensitive, let's make it lowercase to improve readability. 47067 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47068 # Now convert it back to Unix-stile (cygpath) 47069 input_path=`$CYGPATH -u "$shortmode_path"` 47070 new_path="$input_path" 47071 fi 47072 fi 47073 47074 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47075 if test "x$test_cygdrive_prefix" = x; then 47076 # As a simple fix, exclude /usr/bin since it's not a real path. 47077 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47078 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47079 # a path prefixed by /cygdrive for fixpath to work. 47080 new_path="$CYGWIN_ROOT_PATH$input_path" 47081 fi 47082 fi 47083 47084 47085 if test "x$path" != "x$new_path"; then 47086 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47087 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47088 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47089 fi 47090 47091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47092 47093 path="$POTENTIAL_FREETYPE_LIB_PATH" 47094 has_colon=`$ECHO $path | $GREP ^.:` 47095 new_path="$path" 47096 if test "x$has_colon" = x; then 47097 # Not in mixed or Windows style, start by that. 47098 new_path=`cmd //c echo $path` 47099 fi 47100 47101 47102 input_path="$new_path" 47103 # Check if we need to convert this using DOS-style short mode. If the path 47104 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47105 # take no chances and rewrite it. 47106 # Note: m4 eats our [], so we need to use [ and ] instead. 47107 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47108 if test "x$has_forbidden_chars" != x; then 47109 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47110 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47111 fi 47112 47113 47114 windows_path="$new_path" 47115 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47116 unix_path=`$CYGPATH -u "$windows_path"` 47117 new_path="$unix_path" 47118 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47119 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47120 new_path="$unix_path" 47121 fi 47122 47123 if test "x$path" != "x$new_path"; then 47124 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47125 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47126 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47127 fi 47128 47129 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47130 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47131 47132 else 47133 # We're on a posix platform. Hooray! :) 47134 path="$POTENTIAL_FREETYPE_LIB_PATH" 47135 has_space=`$ECHO "$path" | $GREP " "` 47136 if test "x$has_space" != x; then 47137 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47138 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47139 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47140 fi 47141 47142 # Use eval to expand a potential ~ 47143 eval path="$path" 47144 if test ! -f "$path" && test ! -d "$path"; then 47145 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47146 fi 47147 47148 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47149 fi 47150 47151 47152 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47154 $as_echo_n "checking for freetype includes... " >&6; } 47155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47156 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47157 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47159 $as_echo_n "checking for freetype libraries... " >&6; } 47160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47161 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47162 fi 47163 47164 if test "x$FOUND_FREETYPE" != xyes; then 47165 47166 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47167 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47168 METHOD="well-known location" 47169 47170 # First check if the files exists. 47171 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47172 # We found an arbitrary include file. That's a good sign. 47173 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47174 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47175 FOUND_FREETYPE=yes 47176 47177 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 47178 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47179 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47180 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47181 FOUND_FREETYPE=no 47182 else 47183 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47184 # On Windows, we will need both .lib and .dll file. 47185 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 47186 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 47187 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 47188 FOUND_FREETYPE=no 47189 fi 47190 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47191 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47192 # Found lib in isa dir, use that instead. 47193 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47194 fi 47195 fi 47196 fi 47197 47198 if test "x$FOUND_FREETYPE" = xyes; then 47199 47200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47201 47202 # Input might be given as Windows format, start by converting to 47203 # unix format. 47204 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47205 new_path=`$CYGPATH -u "$path"` 47206 47207 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47208 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47209 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47210 # "foo.exe" is OK but "foo" is an error. 47211 # 47212 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47213 # It is also a way to make sure we got the proper file name for the real test later on. 47214 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47215 if test "x$test_shortpath" = x; then 47216 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47217 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47218 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47219 fi 47220 47221 # Call helper function which possibly converts this using DOS-style short mode. 47222 # If so, the updated path is stored in $new_path. 47223 47224 input_path="$new_path" 47225 # Check if we need to convert this using DOS-style short mode. If the path 47226 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47227 # take no chances and rewrite it. 47228 # Note: m4 eats our [], so we need to use [ and ] instead. 47229 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47230 if test "x$has_forbidden_chars" != x; then 47231 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47232 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47233 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47234 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47235 # Going to short mode and back again did indeed matter. Since short mode is 47236 # case insensitive, let's make it lowercase to improve readability. 47237 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47238 # Now convert it back to Unix-stile (cygpath) 47239 input_path=`$CYGPATH -u "$shortmode_path"` 47240 new_path="$input_path" 47241 fi 47242 fi 47243 47244 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47245 if test "x$test_cygdrive_prefix" = x; then 47246 # As a simple fix, exclude /usr/bin since it's not a real path. 47247 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47248 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47249 # a path prefixed by /cygdrive for fixpath to work. 47250 new_path="$CYGWIN_ROOT_PATH$input_path" 47251 fi 47252 fi 47253 47254 47255 if test "x$path" != "x$new_path"; then 47256 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47257 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47258 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47259 fi 47260 47261 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47262 47263 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47264 has_colon=`$ECHO $path | $GREP ^.:` 47265 new_path="$path" 47266 if test "x$has_colon" = x; then 47267 # Not in mixed or Windows style, start by that. 47268 new_path=`cmd //c echo $path` 47269 fi 47270 47271 47272 input_path="$new_path" 47273 # Check if we need to convert this using DOS-style short mode. If the path 47274 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47275 # take no chances and rewrite it. 47276 # Note: m4 eats our [], so we need to use [ and ] instead. 47277 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47278 if test "x$has_forbidden_chars" != x; then 47279 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47280 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47281 fi 47282 47283 47284 windows_path="$new_path" 47285 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47286 unix_path=`$CYGPATH -u "$windows_path"` 47287 new_path="$unix_path" 47288 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47289 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47290 new_path="$unix_path" 47291 fi 47292 47293 if test "x$path" != "x$new_path"; then 47294 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47295 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47296 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47297 fi 47298 47299 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47300 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47301 47302 else 47303 # We're on a posix platform. Hooray! :) 47304 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47305 has_space=`$ECHO "$path" | $GREP " "` 47306 if test "x$has_space" != x; then 47307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47308 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47309 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47310 fi 47311 47312 # Use eval to expand a potential ~ 47313 eval path="$path" 47314 if test ! -f "$path" && test ! -d "$path"; then 47315 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47316 fi 47317 47318 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47319 fi 47320 47321 47322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47323 47324 # Input might be given as Windows format, start by converting to 47325 # unix format. 47326 path="$POTENTIAL_FREETYPE_LIB_PATH" 47327 new_path=`$CYGPATH -u "$path"` 47328 47329 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47330 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47331 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47332 # "foo.exe" is OK but "foo" is an error. 47333 # 47334 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47335 # It is also a way to make sure we got the proper file name for the real test later on. 47336 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47337 if test "x$test_shortpath" = x; then 47338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47339 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47340 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47341 fi 47342 47343 # Call helper function which possibly converts this using DOS-style short mode. 47344 # If so, the updated path is stored in $new_path. 47345 47346 input_path="$new_path" 47347 # Check if we need to convert this using DOS-style short mode. If the path 47348 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47349 # take no chances and rewrite it. 47350 # Note: m4 eats our [], so we need to use [ and ] instead. 47351 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47352 if test "x$has_forbidden_chars" != x; then 47353 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47354 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47355 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47356 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47357 # Going to short mode and back again did indeed matter. Since short mode is 47358 # case insensitive, let's make it lowercase to improve readability. 47359 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47360 # Now convert it back to Unix-stile (cygpath) 47361 input_path=`$CYGPATH -u "$shortmode_path"` 47362 new_path="$input_path" 47363 fi 47364 fi 47365 47366 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47367 if test "x$test_cygdrive_prefix" = x; then 47368 # As a simple fix, exclude /usr/bin since it's not a real path. 47369 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47370 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47371 # a path prefixed by /cygdrive for fixpath to work. 47372 new_path="$CYGWIN_ROOT_PATH$input_path" 47373 fi 47374 fi 47375 47376 47377 if test "x$path" != "x$new_path"; then 47378 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47379 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47380 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47381 fi 47382 47383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47384 47385 path="$POTENTIAL_FREETYPE_LIB_PATH" 47386 has_colon=`$ECHO $path | $GREP ^.:` 47387 new_path="$path" 47388 if test "x$has_colon" = x; then 47389 # Not in mixed or Windows style, start by that. 47390 new_path=`cmd //c echo $path` 47391 fi 47392 47393 47394 input_path="$new_path" 47395 # Check if we need to convert this using DOS-style short mode. If the path 47396 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47397 # take no chances and rewrite it. 47398 # Note: m4 eats our [], so we need to use [ and ] instead. 47399 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47400 if test "x$has_forbidden_chars" != x; then 47401 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47402 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47403 fi 47404 47405 47406 windows_path="$new_path" 47407 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47408 unix_path=`$CYGPATH -u "$windows_path"` 47409 new_path="$unix_path" 47410 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47411 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47412 new_path="$unix_path" 47413 fi 47414 47415 if test "x$path" != "x$new_path"; then 47416 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47417 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47418 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47419 fi 47420 47421 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47422 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47423 47424 else 47425 # We're on a posix platform. Hooray! :) 47426 path="$POTENTIAL_FREETYPE_LIB_PATH" 47427 has_space=`$ECHO "$path" | $GREP " "` 47428 if test "x$has_space" != x; then 47429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47430 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47431 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47432 fi 47433 47434 # Use eval to expand a potential ~ 47435 eval path="$path" 47436 if test ! -f "$path" && test ! -d "$path"; then 47437 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47438 fi 47439 47440 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47441 fi 47442 47443 47444 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47446 $as_echo_n "checking for freetype includes... " >&6; } 47447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47448 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47449 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47451 $as_echo_n "checking for freetype libraries... " >&6; } 47452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47453 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47454 fi 47455 47456 fi 47457 fi 47458 fi 47459 fi 47460 fi # end check in well-known locations 47461 47462 if test "x$FOUND_FREETYPE" != xyes; then 47463 47464 # Print a helpful message on how to acquire the necessary build dependency. 47465 # freetype is the help tag: freetype, cups, pulse, alsa etc 47466 MISSING_DEPENDENCY=freetype 47467 47468 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47469 cygwin_help $MISSING_DEPENDENCY 47470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47471 msys_help $MISSING_DEPENDENCY 47472 else 47473 PKGHANDLER_COMMAND= 47474 47475 case $PKGHANDLER in 47476 apt-get) 47477 apt_help $MISSING_DEPENDENCY ;; 47478 yum) 47479 yum_help $MISSING_DEPENDENCY ;; 47480 port) 47481 port_help $MISSING_DEPENDENCY ;; 47482 pkgutil) 47483 pkgutil_help $MISSING_DEPENDENCY ;; 47484 pkgadd) 47485 pkgadd_help $MISSING_DEPENDENCY ;; 47486 esac 47487 47488 if test "x$PKGHANDLER_COMMAND" != x; then 47489 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47490 fi 47491 fi 47492 47493 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 47494 fi 47495 fi # end user specified settings 47496 47497 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 47498 if test "x$FREETYPE_CFLAGS" = x; then 47499 47500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47501 47502 # Input might be given as Windows format, start by converting to 47503 # unix format. 47504 path="$FREETYPE_INCLUDE_PATH" 47505 new_path=`$CYGPATH -u "$path"` 47506 47507 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47508 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47509 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47510 # "foo.exe" is OK but "foo" is an error. 47511 # 47512 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47513 # It is also a way to make sure we got the proper file name for the real test later on. 47514 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47515 if test "x$test_shortpath" = x; then 47516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47517 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47518 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 47519 fi 47520 47521 # Call helper function which possibly converts this using DOS-style short mode. 47522 # If so, the updated path is stored in $new_path. 47523 47524 input_path="$new_path" 47525 # Check if we need to convert this using DOS-style short mode. If the path 47526 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47527 # take no chances and rewrite it. 47528 # Note: m4 eats our [], so we need to use [ and ] instead. 47529 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47530 if test "x$has_forbidden_chars" != x; then 47531 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47532 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47533 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47534 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47535 # Going to short mode and back again did indeed matter. Since short mode is 47536 # case insensitive, let's make it lowercase to improve readability. 47537 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47538 # Now convert it back to Unix-stile (cygpath) 47539 input_path=`$CYGPATH -u "$shortmode_path"` 47540 new_path="$input_path" 47541 fi 47542 fi 47543 47544 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47545 if test "x$test_cygdrive_prefix" = x; then 47546 # As a simple fix, exclude /usr/bin since it's not a real path. 47547 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47548 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47549 # a path prefixed by /cygdrive for fixpath to work. 47550 new_path="$CYGWIN_ROOT_PATH$input_path" 47551 fi 47552 fi 47553 47554 47555 if test "x$path" != "x$new_path"; then 47556 FREETYPE_INCLUDE_PATH="$new_path" 47557 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47558 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47559 fi 47560 47561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47562 47563 path="$FREETYPE_INCLUDE_PATH" 47564 has_colon=`$ECHO $path | $GREP ^.:` 47565 new_path="$path" 47566 if test "x$has_colon" = x; then 47567 # Not in mixed or Windows style, start by that. 47568 new_path=`cmd //c echo $path` 47569 fi 47570 47571 47572 input_path="$new_path" 47573 # Check if we need to convert this using DOS-style short mode. If the path 47574 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47575 # take no chances and rewrite it. 47576 # Note: m4 eats our [], so we need to use [ and ] instead. 47577 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47578 if test "x$has_forbidden_chars" != x; then 47579 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47580 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47581 fi 47582 47583 47584 windows_path="$new_path" 47585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47586 unix_path=`$CYGPATH -u "$windows_path"` 47587 new_path="$unix_path" 47588 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47589 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47590 new_path="$unix_path" 47591 fi 47592 47593 if test "x$path" != "x$new_path"; then 47594 FREETYPE_INCLUDE_PATH="$new_path" 47595 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47596 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47597 fi 47598 47599 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47600 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47601 47602 else 47603 # We're on a posix platform. Hooray! :) 47604 path="$FREETYPE_INCLUDE_PATH" 47605 has_space=`$ECHO "$path" | $GREP " "` 47606 if test "x$has_space" != x; then 47607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47608 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47609 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47610 fi 47611 47612 # Use eval to expand a potential ~ 47613 eval path="$path" 47614 if test ! -f "$path" && test ! -d "$path"; then 47615 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47616 fi 47617 47618 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47619 fi 47620 47621 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 47622 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 47623 else 47624 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 47625 fi 47626 fi 47627 47628 if test "x$FREETYPE_LIBS" = x; then 47629 47630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47631 47632 # Input might be given as Windows format, start by converting to 47633 # unix format. 47634 path="$FREETYPE_LIB_PATH" 47635 new_path=`$CYGPATH -u "$path"` 47636 47637 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47638 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47639 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47640 # "foo.exe" is OK but "foo" is an error. 47641 # 47642 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47643 # It is also a way to make sure we got the proper file name for the real test later on. 47644 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47645 if test "x$test_shortpath" = x; then 47646 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47647 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47648 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 47649 fi 47650 47651 # Call helper function which possibly converts this using DOS-style short mode. 47652 # If so, the updated path is stored in $new_path. 47653 47654 input_path="$new_path" 47655 # Check if we need to convert this using DOS-style short mode. If the path 47656 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47657 # take no chances and rewrite it. 47658 # Note: m4 eats our [], so we need to use [ and ] instead. 47659 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47660 if test "x$has_forbidden_chars" != x; then 47661 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47662 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47663 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47664 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47665 # Going to short mode and back again did indeed matter. Since short mode is 47666 # case insensitive, let's make it lowercase to improve readability. 47667 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47668 # Now convert it back to Unix-stile (cygpath) 47669 input_path=`$CYGPATH -u "$shortmode_path"` 47670 new_path="$input_path" 47671 fi 47672 fi 47673 47674 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47675 if test "x$test_cygdrive_prefix" = x; then 47676 # As a simple fix, exclude /usr/bin since it's not a real path. 47677 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47678 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47679 # a path prefixed by /cygdrive for fixpath to work. 47680 new_path="$CYGWIN_ROOT_PATH$input_path" 47681 fi 47682 fi 47683 47684 47685 if test "x$path" != "x$new_path"; then 47686 FREETYPE_LIB_PATH="$new_path" 47687 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 47688 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47689 fi 47690 47691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47692 47693 path="$FREETYPE_LIB_PATH" 47694 has_colon=`$ECHO $path | $GREP ^.:` 47695 new_path="$path" 47696 if test "x$has_colon" = x; then 47697 # Not in mixed or Windows style, start by that. 47698 new_path=`cmd //c echo $path` 47699 fi 47700 47701 47702 input_path="$new_path" 47703 # Check if we need to convert this using DOS-style short mode. If the path 47704 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47705 # take no chances and rewrite it. 47706 # Note: m4 eats our [], so we need to use [ and ] instead. 47707 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47708 if test "x$has_forbidden_chars" != x; then 47709 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47710 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47711 fi 47712 47713 47714 windows_path="$new_path" 47715 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47716 unix_path=`$CYGPATH -u "$windows_path"` 47717 new_path="$unix_path" 47718 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47719 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47720 new_path="$unix_path" 47721 fi 47722 47723 if test "x$path" != "x$new_path"; then 47724 FREETYPE_LIB_PATH="$new_path" 47725 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 47726 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47727 fi 47728 47729 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47730 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47731 47732 else 47733 # We're on a posix platform. Hooray! :) 47734 path="$FREETYPE_LIB_PATH" 47735 has_space=`$ECHO "$path" | $GREP " "` 47736 if test "x$has_space" != x; then 47737 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47738 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47739 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47740 fi 47741 47742 # Use eval to expand a potential ~ 47743 eval path="$path" 47744 if test ! -f "$path" && test ! -d "$path"; then 47745 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47746 fi 47747 47748 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47749 fi 47750 47751 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47752 FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib" 47753 else 47754 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype" 47755 fi 47756 fi 47757 47758 # Try to compile it 47759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 47760 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 47761 ac_ext=cpp 47762 ac_cpp='$CXXCPP $CPPFLAGS' 47763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47766 47767 PREV_CXXCFLAGS="$CXXFLAGS" 47768 PREV_LIBS="$LIBS" 47769 PREV_CXX="$CXX" 47770 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 47771 LIBS="$LIBS $FREETYPE_LIBS" 47772 CXX="$FIXPATH $CXX" 47773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47774 /* end confdefs.h. */ 47775 47776 #include<ft2build.h> 47777 #include FT_FREETYPE_H 47778 int main () { 47779 FT_Init_FreeType(NULL); 47780 return 0; 47781 } 47782 47783 _ACEOF 47784 if ac_fn_cxx_try_link "$LINENO"; then : 47785 47786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47787 $as_echo "yes" >&6; } 47788 47789 else 47790 47791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47792 $as_echo "no" >&6; } 47793 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 47794 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 47795 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 47796 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 47797 47798 47799 # Print a helpful message on how to acquire the necessary build dependency. 47800 # freetype is the help tag: freetype, cups, pulse, alsa etc 47801 MISSING_DEPENDENCY=freetype 47802 47803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47804 cygwin_help $MISSING_DEPENDENCY 47805 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47806 msys_help $MISSING_DEPENDENCY 47807 else 47808 PKGHANDLER_COMMAND= 47809 47810 case $PKGHANDLER in 47811 apt-get) 47812 apt_help $MISSING_DEPENDENCY ;; 47813 yum) 47814 yum_help $MISSING_DEPENDENCY ;; 47815 port) 47816 port_help $MISSING_DEPENDENCY ;; 47817 pkgutil) 47818 pkgutil_help $MISSING_DEPENDENCY ;; 47819 pkgadd) 47820 pkgadd_help $MISSING_DEPENDENCY ;; 47821 esac 47822 47823 if test "x$PKGHANDLER_COMMAND" != x; then 47824 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47825 fi 47826 fi 47827 47828 47829 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 47830 47831 47832 fi 47833 rm -f core conftest.err conftest.$ac_objext \ 47834 conftest$ac_exeext conftest.$ac_ext 47835 CXXCFLAGS="$PREV_CXXFLAGS" 47836 LIBS="$PREV_LIBS" 47837 CXX="$PREV_CXX" 47838 ac_ext=cpp 47839 ac_cpp='$CXXCPP $CPPFLAGS' 47840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47843 47844 47845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 47846 $as_echo_n "checking if we should bundle freetype... " >&6; } 47847 if test "x$BUNDLE_FREETYPE" = xyes; then 47848 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 47849 fi 47850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 47851 $as_echo "$BUNDLE_FREETYPE" >&6; } 47852 47853 fi # end freetype needed 47854 47855 47856 47857 47858 47859 47860 47861 ############################################################################### 47862 # 47863 # Check for alsa headers and libraries. Used on Linux/GNU systems. 47864 # 47865 47866 # Check whether --with-alsa was given. 47867 if test "${with_alsa+set}" = set; then : 47868 withval=$with_alsa; 47869 fi 47870 47871 47872 # Check whether --with-alsa-include was given. 47873 if test "${with_alsa_include+set}" = set; then : 47874 withval=$with_alsa_include; 47875 fi 47876 47877 47878 # Check whether --with-alsa-lib was given. 47879 if test "${with_alsa_lib+set}" = set; then : 47880 withval=$with_alsa_lib; 47881 fi 47882 47883 47884 if test "x$ALSA_NOT_NEEDED" = xyes; then 47885 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 47886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 47887 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 47888 fi 47889 ALSA_CFLAGS= 47890 ALSA_LIBS= 47891 else 47892 ALSA_FOUND=no 47893 47894 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 47895 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 47896 fi 47897 47898 if test "x${with_alsa}" != x; then 47899 ALSA_LIBS="-L${with_alsa}/lib -lasound" 47900 ALSA_CFLAGS="-I${with_alsa}/include" 47901 ALSA_FOUND=yes 47902 fi 47903 if test "x${with_alsa_include}" != x; then 47904 ALSA_CFLAGS="-I${with_alsa_include}" 47905 ALSA_FOUND=yes 47906 fi 47907 if test "x${with_alsa_lib}" != x; then 47908 ALSA_LIBS="-L${with_alsa_lib} -lasound" 47909 ALSA_FOUND=yes 47910 fi 47911 if test "x$ALSA_FOUND" = xno; then 47912 47913 47914 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 47915 # Source the builddeps file again, to make sure it uses the latest variables! 47916 . $builddepsfile 47917 # Look for a target and build machine specific resource! 47918 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 47919 if test "x$resource" = x; then 47920 # Ok, lets instead look for a target specific resource 47921 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 47922 fi 47923 if test "x$resource" = x; then 47924 # Ok, lets instead look for a build specific resource 47925 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 47926 fi 47927 if test "x$resource" = x; then 47928 # Ok, lets instead look for a generic resource 47929 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 47930 resource=${builddep_alsa} 47931 fi 47932 if test "x$resource" != x; then 47933 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 47934 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 47935 # If the resource in the builddeps.conf file is an existing directory, 47936 # for example /java/linux/cups 47937 if test -d ${resource}; then 47938 depdir=${resource} 47939 else 47940 47941 # alsa is for example mymodule 47942 # $resource is for example libs/general/libmymod_1_2_3.zip 47943 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 47944 # $with_builddeps_dir is for example /localhome/builddeps 47945 # depdir is the name of the variable into which we store the depdir, eg MYMOD 47946 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 47947 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 47948 filename=`basename $resource` 47949 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 47950 filebase=${filename%%.*} 47951 extension=${filename#*.} 47952 installdir=$with_builddeps_dir/$filebase 47953 if test ! -f $installdir/$filename.unpacked; then 47954 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 47955 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 47956 if test ! -d $installdir; then 47957 mkdir -p $installdir 47958 fi 47959 if test ! -d $installdir; then 47960 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 47961 fi 47962 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 47963 touch $tmpfile 47964 if test ! -f $tmpfile; then 47965 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 47966 fi 47967 47968 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 47969 # $tmpfile is the local file name for the downloaded file. 47970 VALID_TOOL=no 47971 if test "x$BDEPS_FTP" = xwget; then 47972 VALID_TOOL=yes 47973 wget -O $tmpfile $with_builddeps_server/$resource 47974 fi 47975 if test "x$BDEPS_FTP" = xlftp; then 47976 VALID_TOOL=yes 47977 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 47978 fi 47979 if test "x$BDEPS_FTP" = xftp; then 47980 VALID_TOOL=yes 47981 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 47982 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 47983 FTPUSERPWD=${FTPSERVER%%@*} 47984 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 47985 FTPUSER=${userpwd%%:*} 47986 FTPPWD=${userpwd#*@} 47987 FTPSERVER=${FTPSERVER#*@} 47988 else 47989 FTPUSER=ftp 47990 FTPPWD=ftp 47991 fi 47992 # the "pass" command does not work on some 47993 # ftp clients (read ftp.exe) but if it works, 47994 # passive mode is better! 47995 ( \ 47996 echo "user $FTPUSER $FTPPWD" ; \ 47997 echo "pass" ; \ 47998 echo "bin" ; \ 47999 echo "get $FTPPATH $tmpfile" ; \ 48000 ) | ftp -in $FTPSERVER 48001 fi 48002 if test "x$VALID_TOOL" != xyes; then 48003 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 48004 fi 48005 48006 mv $tmpfile $installdir/$filename 48007 if test ! -s $installdir/$filename; then 48008 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 48009 fi 48010 case "$extension" in 48011 zip) echo "Unzipping $installdir/$filename..." 48012 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 48013 ;; 48014 tar.gz) echo "Untaring $installdir/$filename..." 48015 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48016 ;; 48017 tgz) echo "Untaring $installdir/$filename..." 48018 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48019 ;; 48020 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 48021 ;; 48022 esac 48023 fi 48024 if test -f $installdir/$filename.unpacked; then 48025 depdir=$installdir 48026 fi 48027 48028 fi 48029 # Source the builddeps file again, because in the previous command, the depdir 48030 # was updated to point at the current build dependency install directory. 48031 . $builddepsfile 48032 # Now extract variables from the builddeps.conf files. 48033 theroot=${builddep_alsa_ROOT} 48034 thecflags=${builddep_alsa_CFLAGS} 48035 thelibs=${builddep_alsa_LIBS} 48036 if test "x$depdir" = x; then 48037 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 48038 fi 48039 ALSA=$depdir 48040 if test "x$theroot" != x; then 48041 ALSA="$theroot" 48042 fi 48043 if test "x$thecflags" != x; then 48044 ALSA_CFLAGS="$thecflags" 48045 fi 48046 if test "x$thelibs" != x; then 48047 ALSA_LIBS="$thelibs" 48048 fi 48049 ALSA_FOUND=yes 48050 else ALSA_FOUND=no 48051 48052 fi 48053 else ALSA_FOUND=no 48054 48055 fi 48056 48057 fi 48058 # Do not try pkg-config if we have a sysroot set. 48059 if test "x$SYSROOT" = x; then 48060 if test "x$ALSA_FOUND" = xno; then 48061 48062 pkg_failed=no 48063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 48064 $as_echo_n "checking for ALSA... " >&6; } 48065 48066 if test -n "$ALSA_CFLAGS"; then 48067 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 48068 elif test -n "$PKG_CONFIG"; then 48069 if test -n "$PKG_CONFIG" && \ 48070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48071 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48072 ac_status=$? 48073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48074 test $ac_status = 0; }; then 48075 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 48076 else 48077 pkg_failed=yes 48078 fi 48079 else 48080 pkg_failed=untried 48081 fi 48082 if test -n "$ALSA_LIBS"; then 48083 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 48084 elif test -n "$PKG_CONFIG"; then 48085 if test -n "$PKG_CONFIG" && \ 48086 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48087 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48088 ac_status=$? 48089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48090 test $ac_status = 0; }; then 48091 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 48092 else 48093 pkg_failed=yes 48094 fi 48095 else 48096 pkg_failed=untried 48097 fi 48098 48099 48100 48101 if test $pkg_failed = yes; then 48102 48103 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48104 _pkg_short_errors_supported=yes 48105 else 48106 _pkg_short_errors_supported=no 48107 fi 48108 if test $_pkg_short_errors_supported = yes; then 48109 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 48110 else 48111 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 48112 fi 48113 # Put the nasty error message in config.log where it belongs 48114 echo "$ALSA_PKG_ERRORS" >&5 48115 48116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48117 $as_echo "no" >&6; } 48118 ALSA_FOUND=no 48119 elif test $pkg_failed = untried; then 48120 ALSA_FOUND=no 48121 else 48122 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 48123 ALSA_LIBS=$pkg_cv_ALSA_LIBS 48124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48125 $as_echo "yes" >&6; } 48126 ALSA_FOUND=yes 48127 fi 48128 fi 48129 fi 48130 if test "x$ALSA_FOUND" = xno; then 48131 for ac_header in alsa/asoundlib.h 48132 do : 48133 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 48134 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 48135 cat >>confdefs.h <<_ACEOF 48136 #define HAVE_ALSA_ASOUNDLIB_H 1 48137 _ACEOF 48138 48139 ALSA_FOUND=yes 48140 ALSA_CFLAGS=-Iignoreme 48141 ALSA_LIBS=-lasound 48142 DEFAULT_ALSA=yes 48143 48144 else 48145 ALSA_FOUND=no 48146 fi 48147 48148 done 48149 48150 fi 48151 if test "x$ALSA_FOUND" = xno; then 48152 48153 # Print a helpful message on how to acquire the necessary build dependency. 48154 # alsa is the help tag: freetype, cups, pulse, alsa etc 48155 MISSING_DEPENDENCY=alsa 48156 48157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48158 cygwin_help $MISSING_DEPENDENCY 48159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48160 msys_help $MISSING_DEPENDENCY 48161 else 48162 PKGHANDLER_COMMAND= 48163 48164 case $PKGHANDLER in 48165 apt-get) 48166 apt_help $MISSING_DEPENDENCY ;; 48167 yum) 48168 yum_help $MISSING_DEPENDENCY ;; 48169 port) 48170 port_help $MISSING_DEPENDENCY ;; 48171 pkgutil) 48172 pkgutil_help $MISSING_DEPENDENCY ;; 48173 pkgadd) 48174 pkgadd_help $MISSING_DEPENDENCY ;; 48175 esac 48176 48177 if test "x$PKGHANDLER_COMMAND" != x; then 48178 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48179 fi 48180 fi 48181 48182 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 48183 fi 48184 fi 48185 48186 48187 48188 48189 48190 48191 ############################################################################### 48192 # 48193 # Check for the jpeg library 48194 # 48195 48196 48197 # Check whether --with-libjpeg was given. 48198 if test "${with_libjpeg+set}" = set; then : 48199 withval=$with_libjpeg; 48200 fi 48201 48202 48203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 48204 $as_echo_n "checking for which libjpeg to use... " >&6; } 48205 48206 # default is bundled 48207 DEFAULT_LIBJPEG=bundled 48208 48209 # 48210 # if user didn't specify, use DEFAULT_LIBJPEG 48211 # 48212 if test "x${with_libjpeg}" = "x"; then 48213 with_libjpeg=${DEFAULT_LIBJPEG} 48214 fi 48215 48216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 48217 $as_echo "${with_libjpeg}" >&6; } 48218 48219 if test "x${with_libjpeg}" = "xbundled"; then 48220 USE_EXTERNAL_LIBJPEG=false 48221 elif test "x${with_libjpeg}" = "xsystem"; then 48222 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 48223 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 48224 48225 else 48226 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 48227 fi 48228 48229 48230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 48231 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 48232 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 48233 $as_echo_n "(cached) " >&6 48234 else 48235 ac_check_lib_save_LIBS=$LIBS 48236 LIBS="-ljpeg $LIBS" 48237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48238 /* end confdefs.h. */ 48239 48240 /* Override any GCC internal prototype to avoid an error. 48241 Use char because int might match the return type of a GCC 48242 builtin and then its argument prototype would still apply. */ 48243 #ifdef __cplusplus 48244 extern "C" 48245 #endif 48246 char jpeg_CreateDecompress (); 48247 int 48248 main () 48249 { 48250 return jpeg_CreateDecompress (); 48251 ; 48252 return 0; 48253 } 48254 _ACEOF 48255 if ac_fn_cxx_try_link "$LINENO"; then : 48256 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 48257 else 48258 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 48259 fi 48260 rm -f core conftest.err conftest.$ac_objext \ 48261 conftest$ac_exeext conftest.$ac_ext 48262 LIBS=$ac_check_lib_save_LIBS 48263 fi 48264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 48265 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 48266 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 48267 cat >>confdefs.h <<_ACEOF 48268 #define HAVE_LIBJPEG 1 48269 _ACEOF 48270 48271 LIBS="-ljpeg $LIBS" 48272 48273 else 48274 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 48275 fi 48276 48277 48278 USE_EXTERNAL_LIBJPEG=true 48279 else 48280 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 48281 fi 48282 48283 48284 48285 ############################################################################### 48286 # 48287 # Check for the gif library 48288 # 48289 48290 48291 # Check whether --with-giflib was given. 48292 if test "${with_giflib+set}" = set; then : 48293 withval=$with_giflib; 48294 fi 48295 48296 48297 48298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 48299 $as_echo_n "checking for which giflib to use... " >&6; } 48300 48301 # default is bundled 48302 DEFAULT_GIFLIB=bundled 48303 48304 # 48305 # if user didn't specify, use DEFAULT_GIFLIB 48306 # 48307 if test "x${with_giflib}" = "x"; then 48308 with_giflib=${DEFAULT_GIFLIB} 48309 fi 48310 48311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 48312 $as_echo "${with_giflib}" >&6; } 48313 48314 if test "x${with_giflib}" = "xbundled"; then 48315 USE_EXTERNAL_LIBGIF=false 48316 elif test "x${with_giflib}" = "xsystem"; then 48317 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 48318 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 48319 48320 else 48321 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 48322 fi 48323 48324 48325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 48326 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 48327 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 48328 $as_echo_n "(cached) " >&6 48329 else 48330 ac_check_lib_save_LIBS=$LIBS 48331 LIBS="-lgif $LIBS" 48332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48333 /* end confdefs.h. */ 48334 48335 /* Override any GCC internal prototype to avoid an error. 48336 Use char because int might match the return type of a GCC 48337 builtin and then its argument prototype would still apply. */ 48338 #ifdef __cplusplus 48339 extern "C" 48340 #endif 48341 char DGifGetCode (); 48342 int 48343 main () 48344 { 48345 return DGifGetCode (); 48346 ; 48347 return 0; 48348 } 48349 _ACEOF 48350 if ac_fn_cxx_try_link "$LINENO"; then : 48351 ac_cv_lib_gif_DGifGetCode=yes 48352 else 48353 ac_cv_lib_gif_DGifGetCode=no 48354 fi 48355 rm -f core conftest.err conftest.$ac_objext \ 48356 conftest$ac_exeext conftest.$ac_ext 48357 LIBS=$ac_check_lib_save_LIBS 48358 fi 48359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 48360 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 48361 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 48362 cat >>confdefs.h <<_ACEOF 48363 #define HAVE_LIBGIF 1 48364 _ACEOF 48365 48366 LIBS="-lgif $LIBS" 48367 48368 else 48369 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 48370 fi 48371 48372 48373 USE_EXTERNAL_LIBGIF=true 48374 else 48375 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 48376 fi 48377 48378 48379 ############################################################################### 48380 # 48381 # Check for the lcms2 library 48382 # 48383 48384 48385 # Check whether --with-lcms was given. 48386 if test "${with_lcms+set}" = set; then : 48387 withval=$with_lcms; 48388 fi 48389 48390 48391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 48392 $as_echo_n "checking for which lcms to use... " >&6; } 48393 48394 DEFAULT_LCMS=bundled 48395 48396 # 48397 # If user didn't specify, use DEFAULT_LCMS 48398 # 48399 if test "x${with_lcms}" = "x"; then 48400 with_lcms=${DEFAULT_LCMS} 48401 fi 48402 48403 if test "x${with_lcms}" = "xbundled"; then 48404 USE_EXTERNAL_LCMS=false 48405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48406 $as_echo "bundled" >&6; } 48407 elif test "x${with_lcms}" = "xsystem"; then 48408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48409 $as_echo "system" >&6; } 48410 48411 pkg_failed=no 48412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 48413 $as_echo_n "checking for LCMS... " >&6; } 48414 48415 if test -n "$LCMS_CFLAGS"; then 48416 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 48417 elif test -n "$PKG_CONFIG"; then 48418 if test -n "$PKG_CONFIG" && \ 48419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 48420 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 48421 ac_status=$? 48422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48423 test $ac_status = 0; }; then 48424 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 48425 else 48426 pkg_failed=yes 48427 fi 48428 else 48429 pkg_failed=untried 48430 fi 48431 if test -n "$LCMS_LIBS"; then 48432 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 48433 elif test -n "$PKG_CONFIG"; then 48434 if test -n "$PKG_CONFIG" && \ 48435 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 48436 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 48437 ac_status=$? 48438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48439 test $ac_status = 0; }; then 48440 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 48441 else 48442 pkg_failed=yes 48443 fi 48444 else 48445 pkg_failed=untried 48446 fi 48447 48448 48449 48450 if test $pkg_failed = yes; then 48451 48452 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48453 _pkg_short_errors_supported=yes 48454 else 48455 _pkg_short_errors_supported=no 48456 fi 48457 if test $_pkg_short_errors_supported = yes; then 48458 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 48459 else 48460 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 48461 fi 48462 # Put the nasty error message in config.log where it belongs 48463 echo "$LCMS_PKG_ERRORS" >&5 48464 48465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48466 $as_echo "no" >&6; } 48467 LCMS_FOUND=no 48468 elif test $pkg_failed = untried; then 48469 LCMS_FOUND=no 48470 else 48471 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 48472 LCMS_LIBS=$pkg_cv_LCMS_LIBS 48473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48474 $as_echo "yes" >&6; } 48475 LCMS_FOUND=yes 48476 fi 48477 if test "x${LCMS_FOUND}" = "xyes"; then 48478 USE_EXTERNAL_LCMS=true 48479 else 48480 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 48481 fi 48482 else 48483 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 48484 fi 48485 48486 48487 48488 ############################################################################### 48489 # 48490 # Check for the png library 48491 # 48492 48493 48494 # Check whether --with-libpng was given. 48495 if test "${with_libpng+set}" = set; then : 48496 withval=$with_libpng; 48497 fi 48498 48499 48500 48501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 48502 $as_echo_n "checking for which libpng to use... " >&6; } 48503 48504 # default is bundled 48505 DEFAULT_LIBPNG=bundled 48506 48507 # 48508 # if user didn't specify, use DEFAULT_LIBPNG 48509 # 48510 if test "x${with_libpng}" = "x"; then 48511 with_libpng=${DEFAULT_LIBPNG} 48512 fi 48513 48514 if test "x${with_libpng}" = "xbundled"; then 48515 USE_EXTERNAL_LIBPNG=false 48516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48517 $as_echo "bundled" >&6; } 48518 elif test "x${with_libpng}" = "xsystem"; then 48519 48520 pkg_failed=no 48521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 48522 $as_echo_n "checking for PNG... " >&6; } 48523 48524 if test -n "$PNG_CFLAGS"; then 48525 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 48526 elif test -n "$PKG_CONFIG"; then 48527 if test -n "$PKG_CONFIG" && \ 48528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 48529 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 48530 ac_status=$? 48531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48532 test $ac_status = 0; }; then 48533 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 48534 else 48535 pkg_failed=yes 48536 fi 48537 else 48538 pkg_failed=untried 48539 fi 48540 if test -n "$PNG_LIBS"; then 48541 pkg_cv_PNG_LIBS="$PNG_LIBS" 48542 elif test -n "$PKG_CONFIG"; then 48543 if test -n "$PKG_CONFIG" && \ 48544 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 48545 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 48546 ac_status=$? 48547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48548 test $ac_status = 0; }; then 48549 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 48550 else 48551 pkg_failed=yes 48552 fi 48553 else 48554 pkg_failed=untried 48555 fi 48556 48557 48558 48559 if test $pkg_failed = yes; then 48560 48561 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48562 _pkg_short_errors_supported=yes 48563 else 48564 _pkg_short_errors_supported=no 48565 fi 48566 if test $_pkg_short_errors_supported = yes; then 48567 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 48568 else 48569 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 48570 fi 48571 # Put the nasty error message in config.log where it belongs 48572 echo "$PNG_PKG_ERRORS" >&5 48573 48574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48575 $as_echo "no" >&6; } 48576 LIBPNG_FOUND=no 48577 elif test $pkg_failed = untried; then 48578 LIBPNG_FOUND=no 48579 else 48580 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 48581 PNG_LIBS=$pkg_cv_PNG_LIBS 48582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48583 $as_echo "yes" >&6; } 48584 LIBPNG_FOUND=yes 48585 fi 48586 if test "x${LIBPNG_FOUND}" = "xyes"; then 48587 USE_EXTERNAL_LIBPNG=true 48588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48589 $as_echo "system" >&6; } 48590 else 48591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 48592 $as_echo "system not found" >&6; } 48593 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 48594 fi 48595 else 48596 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 48597 fi 48598 48599 48600 ############################################################################### 48601 # 48602 # Check for the zlib library 48603 # 48604 48605 48606 # Check whether --with-zlib was given. 48607 if test "${with_zlib+set}" = set; then : 48608 withval=$with_zlib; 48609 fi 48610 48611 48612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 48613 $as_echo_n "checking for compress in -lz... " >&6; } 48614 if ${ac_cv_lib_z_compress+:} false; then : 48615 $as_echo_n "(cached) " >&6 48616 else 48617 ac_check_lib_save_LIBS=$LIBS 48618 LIBS="-lz $LIBS" 48619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48620 /* end confdefs.h. */ 48621 48622 /* Override any GCC internal prototype to avoid an error. 48623 Use char because int might match the return type of a GCC 48624 builtin and then its argument prototype would still apply. */ 48625 #ifdef __cplusplus 48626 extern "C" 48627 #endif 48628 char compress (); 48629 int 48630 main () 48631 { 48632 return compress (); 48633 ; 48634 return 0; 48635 } 48636 _ACEOF 48637 if ac_fn_cxx_try_link "$LINENO"; then : 48638 ac_cv_lib_z_compress=yes 48639 else 48640 ac_cv_lib_z_compress=no 48641 fi 48642 rm -f core conftest.err conftest.$ac_objext \ 48643 conftest$ac_exeext conftest.$ac_ext 48644 LIBS=$ac_check_lib_save_LIBS 48645 fi 48646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 48647 $as_echo "$ac_cv_lib_z_compress" >&6; } 48648 if test "x$ac_cv_lib_z_compress" = xyes; then : 48649 ZLIB_FOUND=yes 48650 else 48651 ZLIB_FOUND=no 48652 fi 48653 48654 48655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 48656 $as_echo_n "checking for which zlib to use... " >&6; } 48657 48658 DEFAULT_ZLIB=bundled 48659 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48660 # 48661 # On macosx default is system...on others default is 48662 # 48663 DEFAULT_ZLIB=system 48664 fi 48665 48666 if test "x${ZLIB_FOUND}" != "xyes"; then 48667 # 48668 # If we don't find any system...set default to bundled 48669 # 48670 DEFAULT_ZLIB=bundled 48671 fi 48672 48673 # 48674 # If user didn't specify, use DEFAULT_ZLIB 48675 # 48676 if test "x${with_zlib}" = "x"; then 48677 with_zlib=${DEFAULT_ZLIB} 48678 fi 48679 48680 if test "x${with_zlib}" = "xbundled"; then 48681 USE_EXTERNAL_LIBZ=false 48682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48683 $as_echo "bundled" >&6; } 48684 elif test "x${with_zlib}" = "xsystem"; then 48685 if test "x${ZLIB_FOUND}" = "xyes"; then 48686 USE_EXTERNAL_LIBZ=true 48687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48688 $as_echo "system" >&6; } 48689 else 48690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 48691 $as_echo "system not found" >&6; } 48692 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 48693 fi 48694 else 48695 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 48696 fi 48697 48698 48699 48700 ############################################################################### 48701 LIBZIP_CAN_USE_MMAP=true 48702 48703 48704 48705 ############################################################################### 48706 # 48707 # Check if altzone exists in time.h 48708 # 48709 48710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48711 /* end confdefs.h. */ 48712 #include <time.h> 48713 int 48714 main () 48715 { 48716 return (int)altzone; 48717 ; 48718 return 0; 48719 } 48720 _ACEOF 48721 if ac_fn_cxx_try_link "$LINENO"; then : 48722 has_altzone=yes 48723 else 48724 has_altzone=no 48725 fi 48726 rm -f core conftest.err conftest.$ac_objext \ 48727 conftest$ac_exeext conftest.$ac_ext 48728 if test "x$has_altzone" = xyes; then 48729 48730 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 48731 48732 fi 48733 48734 ############################################################################### 48735 # 48736 # Check the maths library 48737 # 48738 48739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 48740 $as_echo_n "checking for cos in -lm... " >&6; } 48741 if ${ac_cv_lib_m_cos+:} false; then : 48742 $as_echo_n "(cached) " >&6 48743 else 48744 ac_check_lib_save_LIBS=$LIBS 48745 LIBS="-lm $LIBS" 48746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48747 /* end confdefs.h. */ 48748 48749 /* Override any GCC internal prototype to avoid an error. 48750 Use char because int might match the return type of a GCC 48751 builtin and then its argument prototype would still apply. */ 48752 #ifdef __cplusplus 48753 extern "C" 48754 #endif 48755 char cos (); 48756 int 48757 main () 48758 { 48759 return cos (); 48760 ; 48761 return 0; 48762 } 48763 _ACEOF 48764 if ac_fn_cxx_try_link "$LINENO"; then : 48765 ac_cv_lib_m_cos=yes 48766 else 48767 ac_cv_lib_m_cos=no 48768 fi 48769 rm -f core conftest.err conftest.$ac_objext \ 48770 conftest$ac_exeext conftest.$ac_ext 48771 LIBS=$ac_check_lib_save_LIBS 48772 fi 48773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 48774 $as_echo "$ac_cv_lib_m_cos" >&6; } 48775 if test "x$ac_cv_lib_m_cos" = xyes; then : 48776 cat >>confdefs.h <<_ACEOF 48777 #define HAVE_LIBM 1 48778 _ACEOF 48779 48780 LIBS="-lm $LIBS" 48781 48782 else 48783 48784 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 48785 $as_echo "$as_me: Maths library was not found" >&6;} 48786 48787 48788 fi 48789 48790 48791 48792 ############################################################################### 48793 # 48794 # Check for libdl.so 48795 48796 save_LIBS="$LIBS" 48797 LIBS="" 48798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 48799 $as_echo_n "checking for dlopen in -ldl... " >&6; } 48800 if ${ac_cv_lib_dl_dlopen+:} false; then : 48801 $as_echo_n "(cached) " >&6 48802 else 48803 ac_check_lib_save_LIBS=$LIBS 48804 LIBS="-ldl $LIBS" 48805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48806 /* end confdefs.h. */ 48807 48808 /* Override any GCC internal prototype to avoid an error. 48809 Use char because int might match the return type of a GCC 48810 builtin and then its argument prototype would still apply. */ 48811 #ifdef __cplusplus 48812 extern "C" 48813 #endif 48814 char dlopen (); 48815 int 48816 main () 48817 { 48818 return dlopen (); 48819 ; 48820 return 0; 48821 } 48822 _ACEOF 48823 if ac_fn_cxx_try_link "$LINENO"; then : 48824 ac_cv_lib_dl_dlopen=yes 48825 else 48826 ac_cv_lib_dl_dlopen=no 48827 fi 48828 rm -f core conftest.err conftest.$ac_objext \ 48829 conftest$ac_exeext conftest.$ac_ext 48830 LIBS=$ac_check_lib_save_LIBS 48831 fi 48832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 48833 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 48834 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 48835 cat >>confdefs.h <<_ACEOF 48836 #define HAVE_LIBDL 1 48837 _ACEOF 48838 48839 LIBS="-ldl $LIBS" 48840 48841 fi 48842 48843 LIBDL="$LIBS" 48844 48845 LIBS="$save_LIBS" 48846 48847 48848 ############################################################################### 48849 # 48850 # statically link libstdc++ before C++ ABI is stablized on Linux unless 48851 # dynamic build is configured on command line. 48852 # 48853 48854 # Check whether --with-stdc++lib was given. 48855 if test "${with_stdc__lib+set}" = set; then : 48856 withval=$with_stdc__lib; 48857 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 48858 && test "x$with_stdc__lib" != xdefault; then 48859 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 48860 fi 48861 48862 else 48863 with_stdc__lib=default 48864 48865 fi 48866 48867 48868 if test "x$OPENJDK_TARGET_OS" = xlinux; then 48869 # Test if -lstdc++ works. 48870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 48871 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 48872 ac_ext=cpp 48873 ac_cpp='$CXXCPP $CPPFLAGS' 48874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48877 48878 OLD_CXXFLAGS="$CXXFLAGS" 48879 CXXFLAGS="$CXXFLAGS -lstdc++" 48880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48881 /* end confdefs.h. */ 48882 48883 int 48884 main () 48885 { 48886 return 0; 48887 ; 48888 return 0; 48889 } 48890 _ACEOF 48891 if ac_fn_cxx_try_link "$LINENO"; then : 48892 has_dynamic_libstdcxx=yes 48893 else 48894 has_dynamic_libstdcxx=no 48895 fi 48896 rm -f core conftest.err conftest.$ac_objext \ 48897 conftest$ac_exeext conftest.$ac_ext 48898 CXXFLAGS="$OLD_CXXFLAGS" 48899 ac_ext=cpp 48900 ac_cpp='$CXXCPP $CPPFLAGS' 48901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48904 48905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 48906 $as_echo "$has_dynamic_libstdcxx" >&6; } 48907 48908 # Test if stdc++ can be linked statically. 48909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 48910 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 48911 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 48912 ac_ext=cpp 48913 ac_cpp='$CXXCPP $CPPFLAGS' 48914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48917 48918 OLD_LIBS="$LIBS" 48919 OLD_CXX="$CXX" 48920 LIBS="$STATIC_STDCXX_FLAGS" 48921 CXX="$CC" 48922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48923 /* end confdefs.h. */ 48924 48925 int 48926 main () 48927 { 48928 return 0; 48929 ; 48930 return 0; 48931 } 48932 _ACEOF 48933 if ac_fn_cxx_try_link "$LINENO"; then : 48934 has_static_libstdcxx=yes 48935 else 48936 has_static_libstdcxx=no 48937 fi 48938 rm -f core conftest.err conftest.$ac_objext \ 48939 conftest$ac_exeext conftest.$ac_ext 48940 LIBS="$OLD_LIBS" 48941 CXX="$OLD_CXX" 48942 ac_ext=cpp 48943 ac_cpp='$CXXCPP $CPPFLAGS' 48944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48947 48948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 48949 $as_echo "$has_static_libstdcxx" >&6; } 48950 48951 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 48952 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 48953 fi 48954 48955 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 48956 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 48957 fi 48958 48959 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 48960 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 48961 fi 48962 48963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 48964 $as_echo_n "checking how to link with libstdc++... " >&6; } 48965 # If dynamic was requested, it's available since it would fail above otherwise. 48966 # If dynamic wasn't requested, go with static unless it isn't available. 48967 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 48968 LIBCXX="$LIBCXX -lstdc++" 48969 LDCXX="$CXX" 48970 STATIC_CXX_SETTING="STATIC_CXX=false" 48971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 48972 $as_echo "dynamic" >&6; } 48973 else 48974 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 48975 LDCXX="$CC" 48976 STATIC_CXX_SETTING="STATIC_CXX=true" 48977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 48978 $as_echo "static" >&6; } 48979 fi 48980 fi 48981 48982 48983 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 48984 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 48985 48986 pkg_failed=no 48987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 48988 $as_echo_n "checking for LIBFFI... " >&6; } 48989 48990 if test -n "$LIBFFI_CFLAGS"; then 48991 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 48992 elif test -n "$PKG_CONFIG"; then 48993 if test -n "$PKG_CONFIG" && \ 48994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 48995 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 48996 ac_status=$? 48997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48998 test $ac_status = 0; }; then 48999 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 49000 else 49001 pkg_failed=yes 49002 fi 49003 else 49004 pkg_failed=untried 49005 fi 49006 if test -n "$LIBFFI_LIBS"; then 49007 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 49008 elif test -n "$PKG_CONFIG"; then 49009 if test -n "$PKG_CONFIG" && \ 49010 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49011 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49012 ac_status=$? 49013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49014 test $ac_status = 0; }; then 49015 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 49016 else 49017 pkg_failed=yes 49018 fi 49019 else 49020 pkg_failed=untried 49021 fi 49022 49023 49024 49025 if test $pkg_failed = yes; then 49026 49027 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49028 _pkg_short_errors_supported=yes 49029 else 49030 _pkg_short_errors_supported=no 49031 fi 49032 if test $_pkg_short_errors_supported = yes; then 49033 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 49034 else 49035 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 49036 fi 49037 # Put the nasty error message in config.log where it belongs 49038 echo "$LIBFFI_PKG_ERRORS" >&5 49039 49040 as_fn_error $? "Package requirements (libffi) were not met: 49041 49042 $LIBFFI_PKG_ERRORS 49043 49044 Consider adjusting the PKG_CONFIG_PATH environment variable if you 49045 installed software in a non-standard prefix. 49046 49047 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49048 and LIBFFI_LIBS to avoid the need to call pkg-config. 49049 See the pkg-config man page for more details. 49050 " "$LINENO" 5 49051 elif test $pkg_failed = untried; then 49052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49054 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 49055 is in your PATH or set the PKG_CONFIG environment variable to the full 49056 path to pkg-config. 49057 49058 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49059 and LIBFFI_LIBS to avoid the need to call pkg-config. 49060 See the pkg-config man page for more details. 49061 49062 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 49063 See \`config.log' for more details" "$LINENO" 5; } 49064 else 49065 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 49066 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 49067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49068 $as_echo "yes" >&6; } 49069 : 49070 fi 49071 49072 fi 49073 49074 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49075 # Extract the first word of "llvm-config", so it can be a program name with args. 49076 set dummy llvm-config; ac_word=$2 49077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49078 $as_echo_n "checking for $ac_word... " >&6; } 49079 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 49080 $as_echo_n "(cached) " >&6 49081 else 49082 if test -n "$LLVM_CONFIG"; then 49083 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 49084 else 49085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49086 for as_dir in $PATH 49087 do 49088 IFS=$as_save_IFS 49089 test -z "$as_dir" && as_dir=. 49090 for ac_exec_ext in '' $ac_executable_extensions; do 49091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49092 ac_cv_prog_LLVM_CONFIG="llvm-config" 49093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49094 break 2 49095 fi 49096 done 49097 done 49098 IFS=$as_save_IFS 49099 49100 fi 49101 fi 49102 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 49103 if test -n "$LLVM_CONFIG"; then 49104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 49105 $as_echo "$LLVM_CONFIG" >&6; } 49106 else 49107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49108 $as_echo "no" >&6; } 49109 fi 49110 49111 49112 49113 if test "x$LLVM_CONFIG" != xllvm-config; then 49114 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 49115 fi 49116 49117 llvm_components="jit mcjit engine nativecodegen native" 49118 unset LLVM_CFLAGS 49119 for flag in $("$LLVM_CONFIG" --cxxflags); do 49120 if echo "${flag}" | grep -q '^-[ID]'; then 49121 if test "${flag}" != "-D_DEBUG" ; then 49122 if test "${LLVM_CFLAGS}" != "" ; then 49123 LLVM_CFLAGS="${LLVM_CFLAGS} " 49124 fi 49125 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 49126 fi 49127 fi 49128 done 49129 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 49130 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 49131 49132 unset LLVM_LDFLAGS 49133 for flag in $("${LLVM_CONFIG}" --ldflags); do 49134 if echo "${flag}" | grep -q '^-L'; then 49135 if test "${LLVM_LDFLAGS}" != ""; then 49136 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 49137 fi 49138 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 49139 fi 49140 done 49141 49142 unset LLVM_LIBS 49143 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 49144 if echo "${flag}" | grep -q '^-l'; then 49145 if test "${LLVM_LIBS}" != ""; then 49146 LLVM_LIBS="${LLVM_LIBS} " 49147 fi 49148 LLVM_LIBS="${LLVM_LIBS}${flag}" 49149 fi 49150 done 49151 49152 49153 49154 49155 fi 49156 49157 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 49158 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 49159 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 49160 fi 49161 49162 # TODO better (platform agnostic) test 49163 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 49164 LIBCXX="-lstdc++" 49165 fi 49166 49167 49168 49169 49170 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49171 49172 49173 # Check whether --with-msvcr-dll was given. 49174 if test "${with_msvcr_dll+set}" = set; then : 49175 withval=$with_msvcr_dll; 49176 fi 49177 49178 49179 if test "x$with_msvcr_dll" != x; then 49180 # If given explicitely by user, do not probe. If not present, fail directly. 49181 49182 POSSIBLE_MSVCR_DLL="$with_msvcr_dll" 49183 METHOD="--with-msvcr-dll" 49184 if test -e "$POSSIBLE_MSVCR_DLL"; then 49185 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49186 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49187 49188 # Need to check if the found msvcr is correct architecture 49189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49190 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49191 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49193 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49194 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49195 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49196 CORRECT_MSVCR_ARCH="PE32 executable" 49197 else 49198 CORRECT_MSVCR_ARCH="PE32+ executable" 49199 fi 49200 else 49201 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49202 CORRECT_MSVCR_ARCH=386 49203 else 49204 CORRECT_MSVCR_ARCH=x86-64 49205 fi 49206 fi 49207 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49209 $as_echo "ok" >&6; } 49210 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49212 $as_echo_n "checking for msvcr100.dll... " >&6; } 49213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49214 $as_echo "$MSVCR_DLL" >&6; } 49215 else 49216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49217 $as_echo "incorrect, ignoring" >&6; } 49218 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49219 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49220 fi 49221 fi 49222 49223 if test "x$MSVCR_DLL" = x; then 49224 as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5 49225 fi 49226 fi 49227 49228 if test "x$MSVCR_DLL" = x; then 49229 # Probe: Using well-known location from Visual Studio 10.0 49230 if test "x$VCINSTALLDIR" != x; then 49231 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49232 49233 windows_path="$CYGWIN_VC_INSTALL_DIR" 49234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49235 unix_path=`$CYGPATH -u "$windows_path"` 49236 CYGWIN_VC_INSTALL_DIR="$unix_path" 49237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49239 CYGWIN_VC_INSTALL_DIR="$unix_path" 49240 fi 49241 49242 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49243 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll" 49244 else 49245 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll" 49246 fi 49247 49248 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49249 METHOD="well-known location in VCINSTALLDIR" 49250 if test -e "$POSSIBLE_MSVCR_DLL"; then 49251 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49252 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49253 49254 # Need to check if the found msvcr is correct architecture 49255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49256 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49257 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49259 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49260 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49261 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49262 CORRECT_MSVCR_ARCH="PE32 executable" 49263 else 49264 CORRECT_MSVCR_ARCH="PE32+ executable" 49265 fi 49266 else 49267 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49268 CORRECT_MSVCR_ARCH=386 49269 else 49270 CORRECT_MSVCR_ARCH=x86-64 49271 fi 49272 fi 49273 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49275 $as_echo "ok" >&6; } 49276 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49278 $as_echo_n "checking for msvcr100.dll... " >&6; } 49279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49280 $as_echo "$MSVCR_DLL" >&6; } 49281 else 49282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49283 $as_echo "incorrect, ignoring" >&6; } 49284 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49285 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49286 fi 49287 fi 49288 49289 fi 49290 fi 49291 49292 if test "x$MSVCR_DLL" = x; then 49293 # Probe: Check in the Boot JDK directory. 49294 POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll" 49295 49296 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49297 METHOD="well-known location in Boot JDK" 49298 if test -e "$POSSIBLE_MSVCR_DLL"; then 49299 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49300 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49301 49302 # Need to check if the found msvcr is correct architecture 49303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49304 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49305 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49306 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49307 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49308 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49309 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49310 CORRECT_MSVCR_ARCH="PE32 executable" 49311 else 49312 CORRECT_MSVCR_ARCH="PE32+ executable" 49313 fi 49314 else 49315 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49316 CORRECT_MSVCR_ARCH=386 49317 else 49318 CORRECT_MSVCR_ARCH=x86-64 49319 fi 49320 fi 49321 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49323 $as_echo "ok" >&6; } 49324 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49326 $as_echo_n "checking for msvcr100.dll... " >&6; } 49327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49328 $as_echo "$MSVCR_DLL" >&6; } 49329 else 49330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49331 $as_echo "incorrect, ignoring" >&6; } 49332 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49333 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49334 fi 49335 fi 49336 49337 fi 49338 49339 if test "x$MSVCR_DLL" = x; then 49340 # Probe: Look in the Windows system32 directory 49341 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 49342 49343 windows_path="$CYGWIN_SYSTEMROOT" 49344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49345 unix_path=`$CYGPATH -u "$windows_path"` 49346 CYGWIN_SYSTEMROOT="$unix_path" 49347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49349 CYGWIN_SYSTEMROOT="$unix_path" 49350 fi 49351 49352 POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll" 49353 49354 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49355 METHOD="well-known location in SYSTEMROOT" 49356 if test -e "$POSSIBLE_MSVCR_DLL"; then 49357 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49358 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49359 49360 # Need to check if the found msvcr is correct architecture 49361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49362 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49363 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49365 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49366 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49367 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49368 CORRECT_MSVCR_ARCH="PE32 executable" 49369 else 49370 CORRECT_MSVCR_ARCH="PE32+ executable" 49371 fi 49372 else 49373 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49374 CORRECT_MSVCR_ARCH=386 49375 else 49376 CORRECT_MSVCR_ARCH=x86-64 49377 fi 49378 fi 49379 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49381 $as_echo "ok" >&6; } 49382 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49384 $as_echo_n "checking for msvcr100.dll... " >&6; } 49385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49386 $as_echo "$MSVCR_DLL" >&6; } 49387 else 49388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49389 $as_echo "incorrect, ignoring" >&6; } 49390 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49391 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49392 fi 49393 fi 49394 49395 fi 49396 49397 if test "x$MSVCR_DLL" = x; then 49398 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 49399 if test "x$VS100COMNTOOLS" != x; then 49400 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 49401 49402 windows_path="$CYGWIN_VS_TOOLS_DIR" 49403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49404 unix_path=`$CYGPATH -u "$windows_path"` 49405 CYGWIN_VS_TOOLS_DIR="$unix_path" 49406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49408 CYGWIN_VS_TOOLS_DIR="$unix_path" 49409 fi 49410 49411 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49412 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1` 49413 else 49414 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1` 49415 fi 49416 49417 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49418 METHOD="search of VS100COMNTOOLS" 49419 if test -e "$POSSIBLE_MSVCR_DLL"; then 49420 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49421 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49422 49423 # Need to check if the found msvcr is correct architecture 49424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49425 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49426 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49428 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49429 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49430 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49431 CORRECT_MSVCR_ARCH="PE32 executable" 49432 else 49433 CORRECT_MSVCR_ARCH="PE32+ executable" 49434 fi 49435 else 49436 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49437 CORRECT_MSVCR_ARCH=386 49438 else 49439 CORRECT_MSVCR_ARCH=x86-64 49440 fi 49441 fi 49442 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49444 $as_echo "ok" >&6; } 49445 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49447 $as_echo_n "checking for msvcr100.dll... " >&6; } 49448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49449 $as_echo "$MSVCR_DLL" >&6; } 49450 else 49451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49452 $as_echo "incorrect, ignoring" >&6; } 49453 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49454 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49455 fi 49456 fi 49457 49458 fi 49459 fi 49460 49461 if test "x$MSVCR_DLL" = x; then 49462 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 49463 # (This was the original behaviour; kept since it might turn up something) 49464 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 49465 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49466 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1` 49467 else 49468 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 49469 if test "x$POSSIBLE_MSVCR_DLL" = x; then 49470 # We're grasping at straws now... 49471 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1` 49472 fi 49473 fi 49474 49475 49476 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49477 METHOD="search of VCINSTALLDIR" 49478 if test -e "$POSSIBLE_MSVCR_DLL"; then 49479 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49480 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49481 49482 # Need to check if the found msvcr is correct architecture 49483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49484 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49485 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49487 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49488 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49489 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49490 CORRECT_MSVCR_ARCH="PE32 executable" 49491 else 49492 CORRECT_MSVCR_ARCH="PE32+ executable" 49493 fi 49494 else 49495 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49496 CORRECT_MSVCR_ARCH=386 49497 else 49498 CORRECT_MSVCR_ARCH=x86-64 49499 fi 49500 fi 49501 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49503 $as_echo "ok" >&6; } 49504 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49506 $as_echo_n "checking for msvcr100.dll... " >&6; } 49507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49508 $as_echo "$MSVCR_DLL" >&6; } 49509 else 49510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49511 $as_echo "incorrect, ignoring" >&6; } 49512 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49513 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49514 fi 49515 fi 49516 49517 fi 49518 fi 49519 49520 if test "x$MSVCR_DLL" = x; then 49521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49522 $as_echo_n "checking for msvcr100.dll... " >&6; } 49523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49524 $as_echo "no" >&6; } 49525 as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5 49526 fi 49527 49528 49529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49530 49531 # Input might be given as Windows format, start by converting to 49532 # unix format. 49533 path="$MSVCR_DLL" 49534 new_path=`$CYGPATH -u "$path"` 49535 49536 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49537 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49538 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49539 # "foo.exe" is OK but "foo" is an error. 49540 # 49541 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49542 # It is also a way to make sure we got the proper file name for the real test later on. 49543 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49544 if test "x$test_shortpath" = x; then 49545 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 49546 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 49547 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 49548 fi 49549 49550 # Call helper function which possibly converts this using DOS-style short mode. 49551 # If so, the updated path is stored in $new_path. 49552 49553 input_path="$new_path" 49554 # Check if we need to convert this using DOS-style short mode. If the path 49555 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49556 # take no chances and rewrite it. 49557 # Note: m4 eats our [], so we need to use [ and ] instead. 49558 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49559 if test "x$has_forbidden_chars" != x; then 49560 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49561 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49562 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49563 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49564 # Going to short mode and back again did indeed matter. Since short mode is 49565 # case insensitive, let's make it lowercase to improve readability. 49566 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49567 # Now convert it back to Unix-stile (cygpath) 49568 input_path=`$CYGPATH -u "$shortmode_path"` 49569 new_path="$input_path" 49570 fi 49571 fi 49572 49573 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49574 if test "x$test_cygdrive_prefix" = x; then 49575 # As a simple fix, exclude /usr/bin since it's not a real path. 49576 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49577 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49578 # a path prefixed by /cygdrive for fixpath to work. 49579 new_path="$CYGWIN_ROOT_PATH$input_path" 49580 fi 49581 fi 49582 49583 49584 if test "x$path" != "x$new_path"; then 49585 MSVCR_DLL="$new_path" 49586 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 49587 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 49588 fi 49589 49590 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49591 49592 path="$MSVCR_DLL" 49593 has_colon=`$ECHO $path | $GREP ^.:` 49594 new_path="$path" 49595 if test "x$has_colon" = x; then 49596 # Not in mixed or Windows style, start by that. 49597 new_path=`cmd //c echo $path` 49598 fi 49599 49600 49601 input_path="$new_path" 49602 # Check if we need to convert this using DOS-style short mode. If the path 49603 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49604 # take no chances and rewrite it. 49605 # Note: m4 eats our [], so we need to use [ and ] instead. 49606 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49607 if test "x$has_forbidden_chars" != x; then 49608 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49609 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49610 fi 49611 49612 49613 windows_path="$new_path" 49614 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49615 unix_path=`$CYGPATH -u "$windows_path"` 49616 new_path="$unix_path" 49617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49618 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49619 new_path="$unix_path" 49620 fi 49621 49622 if test "x$path" != "x$new_path"; then 49623 MSVCR_DLL="$new_path" 49624 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 49625 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 49626 fi 49627 49628 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49629 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49630 49631 else 49632 # We're on a posix platform. Hooray! :) 49633 path="$MSVCR_DLL" 49634 has_space=`$ECHO "$path" | $GREP " "` 49635 if test "x$has_space" != x; then 49636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 49637 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 49638 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49639 fi 49640 49641 # Use eval to expand a potential ~ 49642 eval path="$path" 49643 if test ! -f "$path" && test ! -d "$path"; then 49644 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49645 fi 49646 49647 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 49648 fi 49649 49650 49651 49652 49653 # Check whether --with-dxsdk was given. 49654 if test "${with_dxsdk+set}" = set; then : 49655 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 49656 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 49657 fi 49658 49659 49660 49661 49662 # Check whether --with-dxsdk-lib was given. 49663 if test "${with_dxsdk_lib+set}" = set; then : 49664 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 49665 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 49666 fi 49667 49668 49669 49670 49671 # Check whether --with-dxsdk-include was given. 49672 if test "${with_dxsdk_include+set}" = set; then : 49673 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 49674 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 49675 fi 49676 49677 49678 fi 49679 49680 49681 49682 ############################################################################### 49683 # 49684 # We need to do some final tweaking, when everything else is done. 49685 # 49686 ############################################################################### 49687 49688 49689 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 49690 49691 49692 # The name of the Service Agent jar. 49693 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 49694 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49695 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 49696 fi 49697 49698 49699 49700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 49701 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 49702 49703 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then 49704 ENABLE_INTREE_EC=yes 49705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49706 $as_echo "yes" >&6; } 49707 else 49708 ENABLE_INTREE_EC=no 49709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49710 $as_echo "no" >&6; } 49711 fi 49712 49713 49714 49715 49716 ############################################################################### 49717 # 49718 # Configure parts of the build that only affect the build performance, 49719 # not the result. 49720 # 49721 ############################################################################### 49722 49723 49724 # How many cores do we have on this build system? 49725 49726 # Check whether --with-num-cores was given. 49727 if test "${with_num_cores+set}" = set; then : 49728 withval=$with_num_cores; 49729 fi 49730 49731 if test "x$with_num_cores" = x; then 49732 # The number of cores were not specified, try to probe them. 49733 49734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 49735 $as_echo_n "checking for number of cores... " >&6; } 49736 NUM_CORES=1 49737 FOUND_CORES=no 49738 49739 if test -f /proc/cpuinfo; then 49740 # Looks like a Linux (or cygwin) system 49741 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 49742 FOUND_CORES=yes 49743 elif test -x /usr/sbin/psrinfo; then 49744 # Looks like a Solaris system 49745 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 49746 FOUND_CORES=yes 49747 elif test -x /usr/sbin/system_profiler; then 49748 # Looks like a MacOSX system 49749 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 49750 FOUND_CORES=yes 49751 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 49752 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 49753 FOUND_CORES=yes 49754 elif test -n "$NUMBER_OF_PROCESSORS"; then 49755 # On windows, look in the env 49756 NUM_CORES=$NUMBER_OF_PROCESSORS 49757 FOUND_CORES=yes 49758 fi 49759 49760 if test "x$FOUND_CORES" = xyes; then 49761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 49762 $as_echo "$NUM_CORES" >&6; } 49763 else 49764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 49765 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 49766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 49767 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 49768 fi 49769 49770 else 49771 NUM_CORES=$with_num_cores 49772 fi 49773 49774 49775 49776 # How much memory do we have on this build system? 49777 49778 # Check whether --with-memory-size was given. 49779 if test "${with_memory_size+set}" = set; then : 49780 withval=$with_memory_size; 49781 fi 49782 49783 if test "x$with_memory_size" = x; then 49784 # The memory size was not specified, try to probe it. 49785 49786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 49787 $as_echo_n "checking for memory size... " >&6; } 49788 # Default to 1024 MB 49789 MEMORY_SIZE=1024 49790 FOUND_MEM=no 49791 49792 if test -f /proc/meminfo; then 49793 # Looks like a Linux (or cygwin) system 49794 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 49795 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 49796 FOUND_MEM=yes 49797 elif test -x /usr/sbin/prtconf; then 49798 # Looks like a Solaris or AIX system 49799 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 49800 FOUND_MEM=yes 49801 elif test -x /usr/sbin/system_profiler; then 49802 # Looks like a MacOSX system 49803 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 49804 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 49805 FOUND_MEM=yes 49806 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 49807 # Windows, but without cygwin 49808 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 49809 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 49810 FOUND_MEM=yes 49811 fi 49812 49813 if test "x$FOUND_MEM" = xyes; then 49814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 49815 $as_echo "$MEMORY_SIZE MB" >&6; } 49816 else 49817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 49818 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 49819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 49820 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 49821 fi 49822 49823 else 49824 MEMORY_SIZE=$with_memory_size 49825 fi 49826 49827 49828 49829 # Provide a decent default number of parallel jobs for make depending on 49830 # number of cores, amount of memory and machine architecture. 49831 49832 # Check whether --with-jobs was given. 49833 if test "${with_jobs+set}" = set; then : 49834 withval=$with_jobs; 49835 fi 49836 49837 if test "x$with_jobs" = x; then 49838 # Number of jobs was not specified, calculate. 49839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 49840 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 49841 # Approximate memory in GB, rounding up a bit. 49842 memory_gb=`expr $MEMORY_SIZE / 1100` 49843 # Pick the lowest of memory in gb and number of cores. 49844 if test "$memory_gb" -lt "$NUM_CORES"; then 49845 JOBS="$memory_gb" 49846 else 49847 JOBS="$NUM_CORES" 49848 # On bigger machines, leave some room for other processes to run 49849 if test "$JOBS" -gt "4"; then 49850 JOBS=`expr $JOBS '*' 90 / 100` 49851 fi 49852 fi 49853 # Cap number of jobs to 16 49854 if test "$JOBS" -gt "16"; then 49855 JOBS=16 49856 fi 49857 if test "$JOBS" -eq "0"; then 49858 JOBS=1 49859 fi 49860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 49861 $as_echo "$JOBS" >&6; } 49862 else 49863 JOBS=$with_jobs 49864 fi 49865 49866 49867 49868 # Setup smart javac (after cores and memory have been setup) 49869 49870 49871 # Check whether --with-sjavac-server-java was given. 49872 if test "${with_sjavac_server_java+set}" = set; then : 49873 withval=$with_sjavac_server_java; 49874 fi 49875 49876 49877 if test "x$with_sjavac_server_java" != x; then 49878 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 49879 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 49880 if test "x$FOUND_VERSION" = x; then 49881 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 49882 fi 49883 else 49884 SJAVAC_SERVER_JAVA="" 49885 # Hotspot specific options. 49886 49887 $ECHO "Check if jvm arg is ok: -verbosegc" >&5 49888 $ECHO "Command: $JAVA -verbosegc -version" >&5 49889 OUTPUT=`$JAVA -verbosegc -version 2>&1` 49890 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 49891 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 49892 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 49893 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc" 49894 JVM_ARG_OK=true 49895 else 49896 $ECHO "Arg failed:" >&5 49897 $ECHO "$OUTPUT" >&5 49898 JVM_ARG_OK=false 49899 fi 49900 49901 # JRockit specific options. 49902 49903 $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5 49904 $ECHO "Command: $JAVA -Xverbose:gc -version" >&5 49905 OUTPUT=`$JAVA -Xverbose:gc -version 2>&1` 49906 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 49907 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 49908 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 49909 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc" 49910 JVM_ARG_OK=true 49911 else 49912 $ECHO "Arg failed:" >&5 49913 $ECHO "$OUTPUT" >&5 49914 JVM_ARG_OK=false 49915 fi 49916 49917 SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA" 49918 fi 49919 49920 49921 if test "$MEMORY_SIZE" -gt "2500"; then 49922 49923 $ECHO "Check if jvm arg is ok: -d64" >&5 49924 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 49925 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 49926 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 49927 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 49928 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 49929 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 49930 JVM_ARG_OK=true 49931 else 49932 $ECHO "Arg failed:" >&5 49933 $ECHO "$OUTPUT" >&5 49934 JVM_ARG_OK=false 49935 fi 49936 49937 if test "$JVM_ARG_OK" = true; then 49938 JVM_64BIT=true 49939 JVM_ARG_OK=false 49940 fi 49941 fi 49942 49943 if test "$JVM_64BIT" = true; then 49944 if test "$MEMORY_SIZE" -gt "17000"; then 49945 49946 $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5 49947 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5 49948 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1` 49949 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 49950 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 49951 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 49952 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G" 49953 JVM_ARG_OK=true 49954 else 49955 $ECHO "Arg failed:" >&5 49956 $ECHO "$OUTPUT" >&5 49957 JVM_ARG_OK=false 49958 fi 49959 49960 fi 49961 if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then 49962 49963 $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5 49964 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5 49965 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1` 49966 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 49967 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 49968 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 49969 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G" 49970 JVM_ARG_OK=true 49971 else 49972 $ECHO "Arg failed:" >&5 49973 $ECHO "$OUTPUT" >&5 49974 JVM_ARG_OK=false 49975 fi 49976 49977 fi 49978 if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then 49979 49980 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5 49981 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5 49982 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1` 49983 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 49984 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 49985 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 49986 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G" 49987 JVM_ARG_OK=true 49988 else 49989 $ECHO "Arg failed:" >&5 49990 $ECHO "$OUTPUT" >&5 49991 JVM_ARG_OK=false 49992 fi 49993 49994 fi 49995 if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then 49996 49997 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5 49998 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5 49999 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1` 50000 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50001 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50002 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50003 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M" 50004 JVM_ARG_OK=true 50005 else 50006 $ECHO "Arg failed:" >&5 50007 $ECHO "$OUTPUT" >&5 50008 JVM_ARG_OK=false 50009 fi 50010 50011 fi 50012 fi 50013 if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then 50014 50015 $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5 50016 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5 50017 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1` 50018 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50019 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50020 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50021 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M" 50022 JVM_ARG_OK=true 50023 else 50024 $ECHO "Arg failed:" >&5 50025 $ECHO "$OUTPUT" >&5 50026 JVM_ARG_OK=false 50027 fi 50028 50029 fi 50030 if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then 50031 50032 $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5 50033 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5 50034 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1` 50035 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50036 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50037 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50038 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M" 50039 JVM_ARG_OK=true 50040 else 50041 $ECHO "Arg failed:" >&5 50042 $ECHO "$OUTPUT" >&5 50043 JVM_ARG_OK=false 50044 fi 50045 50046 fi 50047 if test "$JVM_ARG_OK" = false; then 50048 50049 $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5 50050 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5 50051 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1` 50052 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50053 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50054 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50055 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M" 50056 JVM_ARG_OK=true 50057 else 50058 $ECHO "Arg failed:" >&5 50059 $ECHO "$OUTPUT" >&5 50060 JVM_ARG_OK=false 50061 fi 50062 50063 fi 50064 50065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 50066 $as_echo_n "checking whether to use sjavac... " >&6; } 50067 # Check whether --enable-sjavac was given. 50068 if test "${enable_sjavac+set}" = set; then : 50069 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 50070 else 50071 ENABLE_SJAVAC='no' 50072 fi 50073 50074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 50075 $as_echo "$ENABLE_SJAVAC" >&6; } 50076 50077 50078 if test "x$ENABLE_SJAVAC" = xyes; then 50079 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 50080 else 50081 SJAVAC_SERVER_DIR= 50082 fi 50083 50084 50085 50086 # Can the C/C++ compiler use precompiled headers? 50087 50088 50089 ############################################################################### 50090 # 50091 # Can the C/C++ compiler use precompiled headers? 50092 # 50093 # Check whether --enable-precompiled-headers was given. 50094 if test "${enable_precompiled_headers+set}" = set; then : 50095 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 50096 else 50097 ENABLE_PRECOMPH=yes 50098 fi 50099 50100 50101 USE_PRECOMPILED_HEADER=1 50102 if test "x$ENABLE_PRECOMPH" = xno; then 50103 USE_PRECOMPILED_HEADER=0 50104 fi 50105 50106 if test "x$ENABLE_PRECOMPH" = xyes; then 50107 # Check that the compiler actually supports precomp headers. 50108 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 50110 $as_echo_n "checking that precompiled headers work... " >&6; } 50111 echo "int alfa();" > conftest.h 50112 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 50113 if test ! -f conftest.hpp.gch; then 50114 USE_PRECOMPILED_HEADER=0 50115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50116 $as_echo "no" >&6; } 50117 else 50118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50119 $as_echo "yes" >&6; } 50120 fi 50121 rm -f conftest.h conftest.hpp.gch 50122 fi 50123 fi 50124 50125 50126 50127 50128 # Setup use of ccache, if available 50129 50130 # Check whether --enable-ccache was given. 50131 if test "${enable_ccache+set}" = set; then : 50132 enableval=$enable_ccache; 50133 fi 50134 50135 50136 CCACHE= 50137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 50138 $as_echo_n "checking is ccache enabled... " >&6; } 50139 ENABLE_CCACHE=$enable_ccache 50140 if test "x$enable_ccache" = xyes; then 50141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50142 $as_echo "yes" >&6; } 50143 OLD_PATH="$PATH" 50144 if test "x$TOOLCHAIN_PATH" != x; then 50145 PATH=$TOOLCHAIN_PATH:$PATH 50146 fi 50147 50148 50149 50150 # Publish this variable in the help. 50151 50152 50153 if test "x$CCACHE" = x; then 50154 # The variable is not set by user, try to locate tool using the code snippet 50155 for ac_prog in ccache 50156 do 50157 # Extract the first word of "$ac_prog", so it can be a program name with args. 50158 set dummy $ac_prog; ac_word=$2 50159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50160 $as_echo_n "checking for $ac_word... " >&6; } 50161 if ${ac_cv_path_CCACHE+:} false; then : 50162 $as_echo_n "(cached) " >&6 50163 else 50164 case $CCACHE in 50165 [\\/]* | ?:[\\/]*) 50166 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50167 ;; 50168 *) 50169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50170 for as_dir in $PATH 50171 do 50172 IFS=$as_save_IFS 50173 test -z "$as_dir" && as_dir=. 50174 for ac_exec_ext in '' $ac_executable_extensions; do 50175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50176 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50178 break 2 50179 fi 50180 done 50181 done 50182 IFS=$as_save_IFS 50183 50184 ;; 50185 esac 50186 fi 50187 CCACHE=$ac_cv_path_CCACHE 50188 if test -n "$CCACHE"; then 50189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50190 $as_echo "$CCACHE" >&6; } 50191 else 50192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50193 $as_echo "no" >&6; } 50194 fi 50195 50196 50197 test -n "$CCACHE" && break 50198 done 50199 50200 else 50201 # The variable is set, but is it from the command line or the environment? 50202 50203 # Try to remove the string !CCACHE! from our list. 50204 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 50205 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 50206 # If it failed, the variable was not from the command line. Ignore it, 50207 # but warn the user (except for BASH, which is always set by the calling BASH). 50208 if test "xCCACHE" != xBASH; then 50209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 50210 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 50211 fi 50212 # Try to locate tool using the code snippet 50213 for ac_prog in ccache 50214 do 50215 # Extract the first word of "$ac_prog", so it can be a program name with args. 50216 set dummy $ac_prog; ac_word=$2 50217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50218 $as_echo_n "checking for $ac_word... " >&6; } 50219 if ${ac_cv_path_CCACHE+:} false; then : 50220 $as_echo_n "(cached) " >&6 50221 else 50222 case $CCACHE in 50223 [\\/]* | ?:[\\/]*) 50224 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50225 ;; 50226 *) 50227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50228 for as_dir in $PATH 50229 do 50230 IFS=$as_save_IFS 50231 test -z "$as_dir" && as_dir=. 50232 for ac_exec_ext in '' $ac_executable_extensions; do 50233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50234 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50236 break 2 50237 fi 50238 done 50239 done 50240 IFS=$as_save_IFS 50241 50242 ;; 50243 esac 50244 fi 50245 CCACHE=$ac_cv_path_CCACHE 50246 if test -n "$CCACHE"; then 50247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50248 $as_echo "$CCACHE" >&6; } 50249 else 50250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50251 $as_echo "no" >&6; } 50252 fi 50253 50254 50255 test -n "$CCACHE" && break 50256 done 50257 50258 else 50259 # If it succeeded, then it was overridden by the user. We will use it 50260 # for the tool. 50261 50262 # First remove it from the list of overridden variables, so we can test 50263 # for unknown variables in the end. 50264 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 50265 50266 # Check if the provided tool contains a complete path. 50267 tool_specified="$CCACHE" 50268 tool_basename="${tool_specified##*/}" 50269 if test "x$tool_basename" = "x$tool_specified"; then 50270 # A command without a complete path is provided, search $PATH. 50271 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 50272 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 50273 # Extract the first word of "$tool_basename", so it can be a program name with args. 50274 set dummy $tool_basename; ac_word=$2 50275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50276 $as_echo_n "checking for $ac_word... " >&6; } 50277 if ${ac_cv_path_CCACHE+:} false; then : 50278 $as_echo_n "(cached) " >&6 50279 else 50280 case $CCACHE in 50281 [\\/]* | ?:[\\/]*) 50282 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50283 ;; 50284 *) 50285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50286 for as_dir in $PATH 50287 do 50288 IFS=$as_save_IFS 50289 test -z "$as_dir" && as_dir=. 50290 for ac_exec_ext in '' $ac_executable_extensions; do 50291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50292 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50294 break 2 50295 fi 50296 done 50297 done 50298 IFS=$as_save_IFS 50299 50300 ;; 50301 esac 50302 fi 50303 CCACHE=$ac_cv_path_CCACHE 50304 if test -n "$CCACHE"; then 50305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50306 $as_echo "$CCACHE" >&6; } 50307 else 50308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50309 $as_echo "no" >&6; } 50310 fi 50311 50312 50313 if test "x$CCACHE" = x; then 50314 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 50315 fi 50316 else 50317 # Otherwise we believe it is a complete path. Use it as it is. 50318 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 50319 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 50320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 50321 $as_echo_n "checking for CCACHE... " >&6; } 50322 if test ! -x "$tool_specified"; then 50323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 50324 $as_echo "not found" >&6; } 50325 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 50326 fi 50327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 50328 $as_echo "$tool_specified" >&6; } 50329 fi 50330 fi 50331 fi 50332 50333 50334 50335 if test "x$CCACHE" = x; then 50336 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 50337 fi 50338 50339 50340 CCACHE_STATUS="enabled" 50341 PATH="$OLD_PATH" 50342 elif test "x$enable_ccache" = xno; then 50343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 50344 $as_echo "no, explicitly disabled" >&6; } 50345 elif test "x$enable_ccache" = x; then 50346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50347 $as_echo "no" >&6; } 50348 else 50349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 50350 $as_echo "unknown" >&6; } 50351 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 50352 fi 50353 50354 50355 50356 # Check whether --with-ccache-dir was given. 50357 if test "${with_ccache_dir+set}" = set; then : 50358 withval=$with_ccache_dir; 50359 fi 50360 50361 50362 if test "x$with_ccache_dir" != x; then 50363 # When using a non home ccache directory, assume the use is to share ccache files 50364 # with other users. Thus change the umask. 50365 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 50366 if test "x$CCACHE" = x; then 50367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 50368 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 50369 fi 50370 fi 50371 50372 if test "x$CCACHE" != x; then 50373 50374 if test "x$CCACHE" != x; then 50375 # Only use ccache if it is 3.1.4 or later, which supports 50376 # precompiled headers. 50377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 50378 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 50379 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 50380 if test "x$HAS_GOOD_CCACHE" = x; then 50381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 50382 $as_echo "no, disabling ccache" >&6; } 50383 CCACHE= 50384 CCACHE_STATUS="disabled" 50385 else 50386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50387 $as_echo "yes" >&6; } 50388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 50389 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 50390 PUSHED_FLAGS="$CXXFLAGS" 50391 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 50392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50393 /* end confdefs.h. */ 50394 50395 int 50396 main () 50397 { 50398 50399 ; 50400 return 0; 50401 } 50402 _ACEOF 50403 if ac_fn_cxx_try_compile "$LINENO"; then : 50404 CC_KNOWS_CCACHE_TRICK=yes 50405 else 50406 CC_KNOWS_CCACHE_TRICK=no 50407 fi 50408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50409 CXXFLAGS="$PUSHED_FLAGS" 50410 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 50411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50412 $as_echo "yes" >&6; } 50413 else 50414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 50415 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 50416 CCACHE= 50417 CCACHE_STATUS="disabled" 50418 fi 50419 fi 50420 fi 50421 50422 if test "x$CCACHE" != x; then 50423 CCACHE_SLOPPINESS=time_macros 50424 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 50425 CCACHE_FLAGS=-fpch-preprocess 50426 50427 if test "x$SET_CCACHE_DIR" != x; then 50428 mkdir -p $CCACHE_DIR > /dev/null 2>&1 50429 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 50430 fi 50431 fi 50432 50433 fi 50434 50435 50436 ############################################################################### 50437 # 50438 # And now the finish... 50439 # 50440 ############################################################################### 50441 50442 # Check for some common pitfalls 50443 50444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50445 file_to_test="$SRC_ROOT/LICENSE" 50446 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 50447 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 50448 fi 50449 fi 50450 50451 50452 # Did user specify any unknown variables? 50453 50454 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 50455 # Replace the separating ! with spaces before presenting for end user. 50456 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 50457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 50458 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 50459 fi 50460 50461 50462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 50463 $as_echo_n "checking if build directory is on local disk... " >&6; } 50464 50465 # df -l lists only local disks; if the given directory is not found then 50466 # a non-zero exit code is given 50467 if test "x$DF" = x; then 50468 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50469 # msys does not have df; use Windows "net use" instead. 50470 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 50471 if test "x$IS_NETWORK_DISK" = x; then 50472 OUTPUT_DIR_IS_LOCAL="yes" 50473 else 50474 OUTPUT_DIR_IS_LOCAL="no" 50475 fi 50476 else 50477 # No df here, say it's local 50478 OUTPUT_DIR_IS_LOCAL="yes" 50479 fi 50480 else 50481 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 50482 OUTPUT_DIR_IS_LOCAL="yes" 50483 else 50484 OUTPUT_DIR_IS_LOCAL="no" 50485 fi 50486 fi 50487 50488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 50489 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 50490 50491 50492 50493 # Check if the user has any old-style ALT_ variables set. 50494 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 50495 50496 # Before generating output files, test if they exist. If they do, this is a reconfigure. 50497 # Since we can't properly handle the dependencies for this, warn the user about the situation 50498 if test -e $OUTPUT_ROOT/spec.gmk; then 50499 IS_RECONFIGURE=yes 50500 else 50501 IS_RECONFIGURE=no 50502 fi 50503 50504 50505 # At the end, call the custom hook. (Dummy macro if no custom sources available) 50506 50507 50508 # We're messing a bit with internal autoconf variables to put the config.status 50509 # in the output directory instead of the current directory. 50510 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 50511 50512 # Create the actual output files. Now the main work of configure is done. 50513 cat >confcache <<\_ACEOF 50514 # This file is a shell script that caches the results of configure 50515 # tests run on this system so they can be shared between configure 50516 # scripts and configure runs, see configure's option --config-cache. 50517 # It is not useful on other systems. If it contains results you don't 50518 # want to keep, you may remove or edit it. 50519 # 50520 # config.status only pays attention to the cache file if you give it 50521 # the --recheck option to rerun configure. 50522 # 50523 # `ac_cv_env_foo' variables (set or unset) will be overridden when 50524 # loading this file, other *unset* `ac_cv_foo' will be assigned the 50525 # following values. 50526 50527 _ACEOF 50528 50529 # The following way of writing the cache mishandles newlines in values, 50530 # but we know of no workaround that is simple, portable, and efficient. 50531 # So, we kill variables containing newlines. 50532 # Ultrix sh set writes to stderr and can't be redirected directly, 50533 # and sets the high bit in the cache file unless we assign to the vars. 50534 ( 50535 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 50536 eval ac_val=\$$ac_var 50537 case $ac_val in #( 50538 *${as_nl}*) 50539 case $ac_var in #( 50540 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 50541 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 50542 esac 50543 case $ac_var in #( 50544 _ | IFS | as_nl) ;; #( 50545 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 50546 *) { eval $ac_var=; unset $ac_var;} ;; 50547 esac ;; 50548 esac 50549 done 50550 50551 (set) 2>&1 | 50552 case $as_nl`(ac_space=' '; set) 2>&1` in #( 50553 *${as_nl}ac_space=\ *) 50554 # `set' does not quote correctly, so add quotes: double-quote 50555 # substitution turns \\\\ into \\, and sed turns \\ into \. 50556 sed -n \ 50557 "s/'/'\\\\''/g; 50558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 50559 ;; #( 50560 *) 50561 # `set' quotes correctly as required by POSIX, so do not add quotes. 50562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 50563 ;; 50564 esac | 50565 sort 50566 ) | 50567 sed ' 50568 /^ac_cv_env_/b end 50569 t clear 50570 :clear 50571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 50572 t end 50573 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 50574 :end' >>confcache 50575 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 50576 if test -w "$cache_file"; then 50577 if test "x$cache_file" != "x/dev/null"; then 50578 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 50579 $as_echo "$as_me: updating cache $cache_file" >&6;} 50580 if test ! -f "$cache_file" || test -h "$cache_file"; then 50581 cat confcache >"$cache_file" 50582 else 50583 case $cache_file in #( 50584 */* | ?:*) 50585 mv -f confcache "$cache_file"$$ && 50586 mv -f "$cache_file"$$ "$cache_file" ;; #( 50587 *) 50588 mv -f confcache "$cache_file" ;; 50589 esac 50590 fi 50591 fi 50592 else 50593 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 50594 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 50595 fi 50596 fi 50597 rm -f confcache 50598 50599 test "x$prefix" = xNONE && prefix=$ac_default_prefix 50600 # Let make expand exec_prefix. 50601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 50602 50603 DEFS=-DHAVE_CONFIG_H 50604 50605 ac_libobjs= 50606 ac_ltlibobjs= 50607 U= 50608 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 50609 # 1. Remove the extension, and $U if already installed. 50610 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 50611 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 50612 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 50613 # will be set to the directory where LIBOBJS objects are built. 50614 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 50615 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 50616 done 50617 LIBOBJS=$ac_libobjs 50618 50619 LTLIBOBJS=$ac_ltlibobjs 50620 50621 50622 50623 : "${CONFIG_STATUS=./config.status}" 50624 ac_write_fail=0 50625 ac_clean_files_save=$ac_clean_files 50626 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 50627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 50628 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 50629 as_write_fail=0 50630 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 50631 #! $SHELL 50632 # Generated by $as_me. 50633 # Run this file to recreate the current configuration. 50634 # Compiler output produced by configure, useful for debugging 50635 # configure, is in config.log if it exists. 50636 50637 debug=false 50638 ac_cs_recheck=false 50639 ac_cs_silent=false 50640 50641 SHELL=\${CONFIG_SHELL-$SHELL} 50642 export SHELL 50643 _ASEOF 50644 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 50645 ## -------------------- ## 50646 ## M4sh Initialization. ## 50647 ## -------------------- ## 50648 50649 # Be more Bourne compatible 50650 DUALCASE=1; export DUALCASE # for MKS sh 50651 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 50652 emulate sh 50653 NULLCMD=: 50654 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 50655 # is contrary to our usage. Disable this feature. 50656 alias -g '${1+"$@"}'='"$@"' 50657 setopt NO_GLOB_SUBST 50658 else 50659 case `(set -o) 2>/dev/null` in #( 50660 *posix*) : 50661 set -o posix ;; #( 50662 *) : 50663 ;; 50664 esac 50665 fi 50666 50667 50668 as_nl=' 50669 ' 50670 export as_nl 50671 # Printing a long string crashes Solaris 7 /usr/bin/printf. 50672 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 50673 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 50674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 50675 # Prefer a ksh shell builtin over an external printf program on Solaris, 50676 # but without wasting forks for bash or zsh. 50677 if test -z "$BASH_VERSION$ZSH_VERSION" \ 50678 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 50679 as_echo='print -r --' 50680 as_echo_n='print -rn --' 50681 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50682 as_echo='printf %s\n' 50683 as_echo_n='printf %s' 50684 else 50685 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 50686 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 50687 as_echo_n='/usr/ucb/echo -n' 50688 else 50689 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 50690 as_echo_n_body='eval 50691 arg=$1; 50692 case $arg in #( 50693 *"$as_nl"*) 50694 expr "X$arg" : "X\\(.*\\)$as_nl"; 50695 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 50696 esac; 50697 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 50698 ' 50699 export as_echo_n_body 50700 as_echo_n='sh -c $as_echo_n_body as_echo' 50701 fi 50702 export as_echo_body 50703 as_echo='sh -c $as_echo_body as_echo' 50704 fi 50705 50706 # The user is always right. 50707 if test "${PATH_SEPARATOR+set}" != set; then 50708 PATH_SEPARATOR=: 50709 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 50710 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 50711 PATH_SEPARATOR=';' 50712 } 50713 fi 50714 50715 50716 # IFS 50717 # We need space, tab and new line, in precisely that order. Quoting is 50718 # there to prevent editors from complaining about space-tab. 50719 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 50720 # splitting by setting IFS to empty value.) 50721 IFS=" "" $as_nl" 50722 50723 # Find who we are. Look in the path if we contain no directory separator. 50724 as_myself= 50725 case $0 in #(( 50726 *[\\/]* ) as_myself=$0 ;; 50727 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50728 for as_dir in $PATH 50729 do 50730 IFS=$as_save_IFS 50731 test -z "$as_dir" && as_dir=. 50732 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 50733 done 50734 IFS=$as_save_IFS 50735 50736 ;; 50737 esac 50738 # We did not find ourselves, most probably we were run as `sh COMMAND' 50739 # in which case we are not to be found in the path. 50740 if test "x$as_myself" = x; then 50741 as_myself=$0 50742 fi 50743 if test ! -f "$as_myself"; then 50744 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 50745 exit 1 50746 fi 50747 50748 # Unset variables that we do not need and which cause bugs (e.g. in 50749 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 50750 # suppresses any "Segmentation fault" message there. '((' could 50751 # trigger a bug in pdksh 5.2.14. 50752 for as_var in BASH_ENV ENV MAIL MAILPATH 50753 do eval test x\${$as_var+set} = xset \ 50754 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 50755 done 50756 PS1='$ ' 50757 PS2='> ' 50758 PS4='+ ' 50759 50760 # NLS nuisances. 50761 LC_ALL=C 50762 export LC_ALL 50763 LANGUAGE=C 50764 export LANGUAGE 50765 50766 # CDPATH. 50767 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 50768 50769 50770 # as_fn_error STATUS ERROR [LINENO LOG_FD] 50771 # ---------------------------------------- 50772 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 50773 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 50774 # script with STATUS, using 1 if that was 0. 50775 as_fn_error () 50776 { 50777 as_status=$1; test $as_status -eq 0 && as_status=1 50778 if test "$4"; then 50779 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 50780 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 50781 fi 50782 $as_echo "$as_me: error: $2" >&2 50783 as_fn_exit $as_status 50784 } # as_fn_error 50785 50786 50787 # as_fn_set_status STATUS 50788 # ----------------------- 50789 # Set $? to STATUS, without forking. 50790 as_fn_set_status () 50791 { 50792 return $1 50793 } # as_fn_set_status 50794 50795 # as_fn_exit STATUS 50796 # ----------------- 50797 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 50798 as_fn_exit () 50799 { 50800 set +e 50801 as_fn_set_status $1 50802 exit $1 50803 } # as_fn_exit 50804 50805 # as_fn_unset VAR 50806 # --------------- 50807 # Portably unset VAR. 50808 as_fn_unset () 50809 { 50810 { eval $1=; unset $1;} 50811 } 50812 as_unset=as_fn_unset 50813 # as_fn_append VAR VALUE 50814 # ---------------------- 50815 # Append the text in VALUE to the end of the definition contained in VAR. Take 50816 # advantage of any shell optimizations that allow amortized linear growth over 50817 # repeated appends, instead of the typical quadratic growth present in naive 50818 # implementations. 50819 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 50820 eval 'as_fn_append () 50821 { 50822 eval $1+=\$2 50823 }' 50824 else 50825 as_fn_append () 50826 { 50827 eval $1=\$$1\$2 50828 } 50829 fi # as_fn_append 50830 50831 # as_fn_arith ARG... 50832 # ------------------ 50833 # Perform arithmetic evaluation on the ARGs, and store the result in the 50834 # global $as_val. Take advantage of shells that can avoid forks. The arguments 50835 # must be portable across $(()) and expr. 50836 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 50837 eval 'as_fn_arith () 50838 { 50839 as_val=$(( $* )) 50840 }' 50841 else 50842 as_fn_arith () 50843 { 50844 as_val=`expr "$@" || test $? -eq 1` 50845 } 50846 fi # as_fn_arith 50847 50848 50849 if expr a : '\(a\)' >/dev/null 2>&1 && 50850 test "X`expr 00001 : '.*\(...\)'`" = X001; then 50851 as_expr=expr 50852 else 50853 as_expr=false 50854 fi 50855 50856 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 50857 as_basename=basename 50858 else 50859 as_basename=false 50860 fi 50861 50862 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 50863 as_dirname=dirname 50864 else 50865 as_dirname=false 50866 fi 50867 50868 as_me=`$as_basename -- "$0" || 50869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 50870 X"$0" : 'X\(//\)$' \| \ 50871 X"$0" : 'X\(/\)' \| . 2>/dev/null || 50872 $as_echo X/"$0" | 50873 sed '/^.*\/\([^/][^/]*\)\/*$/{ 50874 s//\1/ 50875 q 50876 } 50877 /^X\/\(\/\/\)$/{ 50878 s//\1/ 50879 q 50880 } 50881 /^X\/\(\/\).*/{ 50882 s//\1/ 50883 q 50884 } 50885 s/.*/./; q'` 50886 50887 # Avoid depending upon Character Ranges. 50888 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 50889 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 50890 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 50891 as_cr_digits='0123456789' 50892 as_cr_alnum=$as_cr_Letters$as_cr_digits 50893 50894 ECHO_C= ECHO_N= ECHO_T= 50895 case `echo -n x` in #((((( 50896 -n*) 50897 case `echo 'xy\c'` in 50898 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 50899 xy) ECHO_C='\c';; 50900 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 50901 ECHO_T=' ';; 50902 esac;; 50903 *) 50904 ECHO_N='-n';; 50905 esac 50906 50907 rm -f conf$$ conf$$.exe conf$$.file 50908 if test -d conf$$.dir; then 50909 rm -f conf$$.dir/conf$$.file 50910 else 50911 rm -f conf$$.dir 50912 mkdir conf$$.dir 2>/dev/null 50913 fi 50914 if (echo >conf$$.file) 2>/dev/null; then 50915 if ln -s conf$$.file conf$$ 2>/dev/null; then 50916 as_ln_s='ln -s' 50917 # ... but there are two gotchas: 50918 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 50919 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 50920 # In both cases, we have to default to `cp -pR'. 50921 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 50922 as_ln_s='cp -pR' 50923 elif ln conf$$.file conf$$ 2>/dev/null; then 50924 as_ln_s=ln 50925 else 50926 as_ln_s='cp -pR' 50927 fi 50928 else 50929 as_ln_s='cp -pR' 50930 fi 50931 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 50932 rmdir conf$$.dir 2>/dev/null 50933 50934 50935 # as_fn_mkdir_p 50936 # ------------- 50937 # Create "$as_dir" as a directory, including parents if necessary. 50938 as_fn_mkdir_p () 50939 { 50940 50941 case $as_dir in #( 50942 -*) as_dir=./$as_dir;; 50943 esac 50944 test -d "$as_dir" || eval $as_mkdir_p || { 50945 as_dirs= 50946 while :; do 50947 case $as_dir in #( 50948 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 50949 *) as_qdir=$as_dir;; 50950 esac 50951 as_dirs="'$as_qdir' $as_dirs" 50952 as_dir=`$as_dirname -- "$as_dir" || 50953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 50954 X"$as_dir" : 'X\(//\)[^/]' \| \ 50955 X"$as_dir" : 'X\(//\)$' \| \ 50956 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 50957 $as_echo X"$as_dir" | 50958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 50959 s//\1/ 50960 q 50961 } 50962 /^X\(\/\/\)[^/].*/{ 50963 s//\1/ 50964 q 50965 } 50966 /^X\(\/\/\)$/{ 50967 s//\1/ 50968 q 50969 } 50970 /^X\(\/\).*/{ 50971 s//\1/ 50972 q 50973 } 50974 s/.*/./; q'` 50975 test -d "$as_dir" && break 50976 done 50977 test -z "$as_dirs" || eval "mkdir $as_dirs" 50978 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 50979 50980 50981 } # as_fn_mkdir_p 50982 if mkdir -p . 2>/dev/null; then 50983 as_mkdir_p='mkdir -p "$as_dir"' 50984 else 50985 test -d ./-p && rmdir ./-p 50986 as_mkdir_p=false 50987 fi 50988 50989 50990 # as_fn_executable_p FILE 50991 # ----------------------- 50992 # Test if FILE is an executable regular file. 50993 as_fn_executable_p () 50994 { 50995 test -f "$1" && test -x "$1" 50996 } # as_fn_executable_p 50997 as_test_x='test -x' 50998 as_executable_p=as_fn_executable_p 50999 51000 # Sed expression to map a string onto a valid CPP name. 51001 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 51002 51003 # Sed expression to map a string onto a valid variable name. 51004 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 51005 51006 51007 exec 6>&1 51008 ## ----------------------------------- ## 51009 ## Main body of $CONFIG_STATUS script. ## 51010 ## ----------------------------------- ## 51011 _ASEOF 51012 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 51013 51014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51015 # Save the log message, to keep $0 and so on meaningful, and to 51016 # report actual input values of CONFIG_FILES etc. instead of their 51017 # values after options handling. 51018 ac_log=" 51019 This file was extended by OpenJDK $as_me jdk9, which was 51020 generated by GNU Autoconf 2.69. Invocation command line was 51021 51022 CONFIG_FILES = $CONFIG_FILES 51023 CONFIG_HEADERS = $CONFIG_HEADERS 51024 CONFIG_LINKS = $CONFIG_LINKS 51025 CONFIG_COMMANDS = $CONFIG_COMMANDS 51026 $ $0 $@ 51027 51028 on `(hostname || uname -n) 2>/dev/null | sed 1q` 51029 " 51030 51031 _ACEOF 51032 51033 case $ac_config_files in *" 51034 "*) set x $ac_config_files; shift; ac_config_files=$*;; 51035 esac 51036 51037 case $ac_config_headers in *" 51038 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 51039 esac 51040 51041 51042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51043 # Files that config.status was made for. 51044 config_files="$ac_config_files" 51045 config_headers="$ac_config_headers" 51046 51047 _ACEOF 51048 51049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51050 ac_cs_usage="\ 51051 \`$as_me' instantiates files and other configuration actions 51052 from templates according to the current configuration. Unless the files 51053 and actions are specified as TAGs, all are instantiated by default. 51054 51055 Usage: $0 [OPTION]... [TAG]... 51056 51057 -h, --help print this help, then exit 51058 -V, --version print version number and configuration settings, then exit 51059 --config print configuration, then exit 51060 -q, --quiet, --silent 51061 do not print progress messages 51062 -d, --debug don't remove temporary files 51063 --recheck update $as_me by reconfiguring in the same conditions 51064 --file=FILE[:TEMPLATE] 51065 instantiate the configuration file FILE 51066 --header=FILE[:TEMPLATE] 51067 instantiate the configuration header FILE 51068 51069 Configuration files: 51070 $config_files 51071 51072 Configuration headers: 51073 $config_headers 51074 51075 Report bugs to <build-dev@openjdk.java.net>. 51076 OpenJDK home page: <http://openjdk.java.net>." 51077 51078 _ACEOF 51079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51080 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 51081 ac_cs_version="\\ 51082 OpenJDK config.status jdk9 51083 configured by $0, generated by GNU Autoconf 2.69, 51084 with options \\"\$ac_cs_config\\" 51085 51086 Copyright (C) 2012 Free Software Foundation, Inc. 51087 This config.status script is free software; the Free Software Foundation 51088 gives unlimited permission to copy, distribute and modify it." 51089 51090 ac_pwd='$ac_pwd' 51091 srcdir='$srcdir' 51092 AWK='$AWK' 51093 test -n "\$AWK" || AWK=awk 51094 _ACEOF 51095 51096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51097 # The default lists apply if the user does not specify any file. 51098 ac_need_defaults=: 51099 while test $# != 0 51100 do 51101 case $1 in 51102 --*=?*) 51103 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51104 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 51105 ac_shift=: 51106 ;; 51107 --*=) 51108 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51109 ac_optarg= 51110 ac_shift=: 51111 ;; 51112 *) 51113 ac_option=$1 51114 ac_optarg=$2 51115 ac_shift=shift 51116 ;; 51117 esac 51118 51119 case $ac_option in 51120 # Handling of the options. 51121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 51122 ac_cs_recheck=: ;; 51123 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 51124 $as_echo "$ac_cs_version"; exit ;; 51125 --config | --confi | --conf | --con | --co | --c ) 51126 $as_echo "$ac_cs_config"; exit ;; 51127 --debug | --debu | --deb | --de | --d | -d ) 51128 debug=: ;; 51129 --file | --fil | --fi | --f ) 51130 $ac_shift 51131 case $ac_optarg in 51132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 51133 '') as_fn_error $? "missing file argument" ;; 51134 esac 51135 as_fn_append CONFIG_FILES " '$ac_optarg'" 51136 ac_need_defaults=false;; 51137 --header | --heade | --head | --hea ) 51138 $ac_shift 51139 case $ac_optarg in 51140 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 51141 esac 51142 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 51143 ac_need_defaults=false;; 51144 --he | --h) 51145 # Conflict between --help and --header 51146 as_fn_error $? "ambiguous option: \`$1' 51147 Try \`$0 --help' for more information.";; 51148 --help | --hel | -h ) 51149 $as_echo "$ac_cs_usage"; exit ;; 51150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 51151 | -silent | --silent | --silen | --sile | --sil | --si | --s) 51152 ac_cs_silent=: ;; 51153 51154 # This is an error. 51155 -*) as_fn_error $? "unrecognized option: \`$1' 51156 Try \`$0 --help' for more information." ;; 51157 51158 *) as_fn_append ac_config_targets " $1" 51159 ac_need_defaults=false ;; 51160 51161 esac 51162 shift 51163 done 51164 51165 ac_configure_extra_args= 51166 51167 if $ac_cs_silent; then 51168 exec 6>/dev/null 51169 ac_configure_extra_args="$ac_configure_extra_args --silent" 51170 fi 51171 51172 _ACEOF 51173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51174 if \$ac_cs_recheck; then 51175 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 51176 shift 51177 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 51178 CONFIG_SHELL='$SHELL' 51179 export CONFIG_SHELL 51180 exec "\$@" 51181 fi 51182 51183 _ACEOF 51184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51185 exec 5>>config.log 51186 { 51187 echo 51188 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 51189 ## Running $as_me. ## 51190 _ASBOX 51191 $as_echo "$ac_log" 51192 } >&5 51193 51194 _ACEOF 51195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51196 _ACEOF 51197 51198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51199 51200 # Handling of arguments. 51201 for ac_config_target in $ac_config_targets 51202 do 51203 case $ac_config_target in 51204 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 51205 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 51206 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 51207 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 51208 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 51209 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 51210 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 51211 51212 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 51213 esac 51214 done 51215 51216 51217 # If the user did not use the arguments to specify the items to instantiate, 51218 # then the envvar interface is used. Set only those that are not. 51219 # We use the long form for the default assignment because of an extremely 51220 # bizarre bug on SunOS 4.1.3. 51221 if $ac_need_defaults; then 51222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 51223 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 51224 fi 51225 51226 # Have a temporary directory for convenience. Make it in the build tree 51227 # simply because there is no reason against having it here, and in addition, 51228 # creating and moving files from /tmp can sometimes cause problems. 51229 # Hook for its removal unless debugging. 51230 # Note that there is a small window in which the directory will not be cleaned: 51231 # after its creation but before its name has been assigned to `$tmp'. 51232 $debug || 51233 { 51234 tmp= ac_tmp= 51235 trap 'exit_status=$? 51236 : "${ac_tmp:=$tmp}" 51237 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 51238 ' 0 51239 trap 'as_fn_exit 1' 1 2 13 15 51240 } 51241 # Create a (secure) tmp directory for tmp files. 51242 51243 { 51244 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 51245 test -d "$tmp" 51246 } || 51247 { 51248 tmp=./conf$$-$RANDOM 51249 (umask 077 && mkdir "$tmp") 51250 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 51251 ac_tmp=$tmp 51252 51253 # Set up the scripts for CONFIG_FILES section. 51254 # No need to generate them if there are no CONFIG_FILES. 51255 # This happens for instance with `./config.status config.h'. 51256 if test -n "$CONFIG_FILES"; then 51257 51258 51259 ac_cr=`echo X | tr X '\015'` 51260 # On cygwin, bash can eat \r inside `` if the user requested igncr. 51261 # But we know of no other shell where ac_cr would be empty at this 51262 # point, so we can use a bashism as a fallback. 51263 if test "x$ac_cr" = x; then 51264 eval ac_cr=\$\'\\r\' 51265 fi 51266 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 51267 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 51268 ac_cs_awk_cr='\\r' 51269 else 51270 ac_cs_awk_cr=$ac_cr 51271 fi 51272 51273 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 51274 _ACEOF 51275 51276 51277 { 51278 echo "cat >conf$$subs.awk <<_ACEOF" && 51279 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 51280 echo "_ACEOF" 51281 } >conf$$subs.sh || 51282 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51283 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 51284 ac_delim='%!_!# ' 51285 for ac_last_try in false false false false false :; do 51286 . ./conf$$subs.sh || 51287 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51288 51289 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 51290 if test $ac_delim_n = $ac_delim_num; then 51291 break 51292 elif $ac_last_try; then 51293 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51294 else 51295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 51296 fi 51297 done 51298 rm -f conf$$subs.sh 51299 51300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51301 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 51302 _ACEOF 51303 sed -n ' 51304 h 51305 s/^/S["/; s/!.*/"]=/ 51306 p 51307 g 51308 s/^[^!]*!// 51309 :repl 51310 t repl 51311 s/'"$ac_delim"'$// 51312 t delim 51313 :nl 51314 h 51315 s/\(.\{148\}\)..*/\1/ 51316 t more1 51317 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 51318 p 51319 n 51320 b repl 51321 :more1 51322 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 51323 p 51324 g 51325 s/.\{148\}// 51326 t nl 51327 :delim 51328 h 51329 s/\(.\{148\}\)..*/\1/ 51330 t more2 51331 s/["\\]/\\&/g; s/^/"/; s/$/"/ 51332 p 51333 b 51334 :more2 51335 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 51336 p 51337 g 51338 s/.\{148\}// 51339 t delim 51340 ' <conf$$subs.awk | sed ' 51341 /^[^""]/{ 51342 N 51343 s/\n// 51344 } 51345 ' >>$CONFIG_STATUS || ac_write_fail=1 51346 rm -f conf$$subs.awk 51347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51348 _ACAWK 51349 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 51350 for (key in S) S_is_set[key] = 1 51351 FS = "" 51352 51353 } 51354 { 51355 line = $ 0 51356 nfields = split(line, field, "@") 51357 substed = 0 51358 len = length(field[1]) 51359 for (i = 2; i < nfields; i++) { 51360 key = field[i] 51361 keylen = length(key) 51362 if (S_is_set[key]) { 51363 value = S[key] 51364 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 51365 len += length(value) + length(field[++i]) 51366 substed = 1 51367 } else 51368 len += 1 + keylen 51369 } 51370 51371 print line 51372 } 51373 51374 _ACAWK 51375 _ACEOF 51376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51377 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 51378 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 51379 else 51380 cat 51381 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 51382 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 51383 _ACEOF 51384 51385 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 51386 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 51387 # trailing colons and then remove the whole line if VPATH becomes empty 51388 # (actually we leave an empty line to preserve line numbers). 51389 if test "x$srcdir" = x.; then 51390 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 51391 h 51392 s/// 51393 s/^/:/ 51394 s/[ ]*$/:/ 51395 s/:\$(srcdir):/:/g 51396 s/:\${srcdir}:/:/g 51397 s/:@srcdir@:/:/g 51398 s/^:*// 51399 s/:*$// 51400 x 51401 s/\(=[ ]*\).*/\1/ 51402 G 51403 s/\n// 51404 s/^[^=]*=[ ]*$// 51405 }' 51406 fi 51407 51408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51409 fi # test -n "$CONFIG_FILES" 51410 51411 # Set up the scripts for CONFIG_HEADERS section. 51412 # No need to generate them if there are no CONFIG_HEADERS. 51413 # This happens for instance with `./config.status Makefile'. 51414 if test -n "$CONFIG_HEADERS"; then 51415 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 51416 BEGIN { 51417 _ACEOF 51418 51419 # Transform confdefs.h into an awk script `defines.awk', embedded as 51420 # here-document in config.status, that substitutes the proper values into 51421 # config.h.in to produce config.h. 51422 51423 # Create a delimiter string that does not exist in confdefs.h, to ease 51424 # handling of long lines. 51425 ac_delim='%!_!# ' 51426 for ac_last_try in false false :; do 51427 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 51428 if test -z "$ac_tt"; then 51429 break 51430 elif $ac_last_try; then 51431 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 51432 else 51433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 51434 fi 51435 done 51436 51437 # For the awk script, D is an array of macro values keyed by name, 51438 # likewise P contains macro parameters if any. Preserve backslash 51439 # newline sequences. 51440 51441 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 51442 sed -n ' 51443 s/.\{148\}/&'"$ac_delim"'/g 51444 t rset 51445 :rset 51446 s/^[ ]*#[ ]*define[ ][ ]*/ / 51447 t def 51448 d 51449 :def 51450 s/\\$// 51451 t bsnl 51452 s/["\\]/\\&/g 51453 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 51454 D["\1"]=" \3"/p 51455 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 51456 d 51457 :bsnl 51458 s/["\\]/\\&/g 51459 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 51460 D["\1"]=" \3\\\\\\n"\\/p 51461 t cont 51462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 51463 t cont 51464 d 51465 :cont 51466 n 51467 s/.\{148\}/&'"$ac_delim"'/g 51468 t clear 51469 :clear 51470 s/\\$// 51471 t bsnlc 51472 s/["\\]/\\&/g; s/^/"/; s/$/"/p 51473 d 51474 :bsnlc 51475 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 51476 b cont 51477 ' <confdefs.h | sed ' 51478 s/'"$ac_delim"'/"\\\ 51479 "/g' >>$CONFIG_STATUS || ac_write_fail=1 51480 51481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51482 for (key in D) D_is_set[key] = 1 51483 FS = "" 51484 } 51485 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 51486 line = \$ 0 51487 split(line, arg, " ") 51488 if (arg[1] == "#") { 51489 defundef = arg[2] 51490 mac1 = arg[3] 51491 } else { 51492 defundef = substr(arg[1], 2) 51493 mac1 = arg[2] 51494 } 51495 split(mac1, mac2, "(") #) 51496 macro = mac2[1] 51497 prefix = substr(line, 1, index(line, defundef) - 1) 51498 if (D_is_set[macro]) { 51499 # Preserve the white space surrounding the "#". 51500 print prefix "define", macro P[macro] D[macro] 51501 next 51502 } else { 51503 # Replace #undef with comments. This is necessary, for example, 51504 # in the case of _POSIX_SOURCE, which is predefined and required 51505 # on some systems where configure will not decide to define it. 51506 if (defundef == "undef") { 51507 print "/*", prefix defundef, macro, "*/" 51508 next 51509 } 51510 } 51511 } 51512 { print } 51513 _ACAWK 51514 _ACEOF 51515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51516 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 51517 fi # test -n "$CONFIG_HEADERS" 51518 51519 51520 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 51521 shift 51522 for ac_tag 51523 do 51524 case $ac_tag in 51525 :[FHLC]) ac_mode=$ac_tag; continue;; 51526 esac 51527 case $ac_mode$ac_tag in 51528 :[FHL]*:*);; 51529 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 51530 :[FH]-) ac_tag=-:-;; 51531 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 51532 esac 51533 ac_save_IFS=$IFS 51534 IFS=: 51535 set x $ac_tag 51536 IFS=$ac_save_IFS 51537 shift 51538 ac_file=$1 51539 shift 51540 51541 case $ac_mode in 51542 :L) ac_source=$1;; 51543 :[FH]) 51544 ac_file_inputs= 51545 for ac_f 51546 do 51547 case $ac_f in 51548 -) ac_f="$ac_tmp/stdin";; 51549 *) # Look for the file first in the build tree, then in the source tree 51550 # (if the path is not absolute). The absolute path cannot be DOS-style, 51551 # because $ac_f cannot contain `:'. 51552 test -f "$ac_f" || 51553 case $ac_f in 51554 [\\/$]*) false;; 51555 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 51556 esac || 51557 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 51558 esac 51559 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 51560 as_fn_append ac_file_inputs " '$ac_f'" 51561 done 51562 51563 # Let's still pretend it is `configure' which instantiates (i.e., don't 51564 # use $as_me), people would be surprised to read: 51565 # /* config.h. Generated by config.status. */ 51566 configure_input='Generated from '` 51567 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 51568 `' by configure.' 51569 if test x"$ac_file" != x-; then 51570 configure_input="$ac_file. $configure_input" 51571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 51572 $as_echo "$as_me: creating $ac_file" >&6;} 51573 fi 51574 # Neutralize special characters interpreted by sed in replacement strings. 51575 case $configure_input in #( 51576 *\&* | *\|* | *\\* ) 51577 ac_sed_conf_input=`$as_echo "$configure_input" | 51578 sed 's/[\\\\&|]/\\\\&/g'`;; #( 51579 *) ac_sed_conf_input=$configure_input;; 51580 esac 51581 51582 case $ac_tag in 51583 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 51584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 51585 esac 51586 ;; 51587 esac 51588 51589 ac_dir=`$as_dirname -- "$ac_file" || 51590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 51591 X"$ac_file" : 'X\(//\)[^/]' \| \ 51592 X"$ac_file" : 'X\(//\)$' \| \ 51593 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 51594 $as_echo X"$ac_file" | 51595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 51596 s//\1/ 51597 q 51598 } 51599 /^X\(\/\/\)[^/].*/{ 51600 s//\1/ 51601 q 51602 } 51603 /^X\(\/\/\)$/{ 51604 s//\1/ 51605 q 51606 } 51607 /^X\(\/\).*/{ 51608 s//\1/ 51609 q 51610 } 51611 s/.*/./; q'` 51612 as_dir="$ac_dir"; as_fn_mkdir_p 51613 ac_builddir=. 51614 51615 case "$ac_dir" in 51616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 51617 *) 51618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 51619 # A ".." for each directory in $ac_dir_suffix. 51620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 51621 case $ac_top_builddir_sub in 51622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 51623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 51624 esac ;; 51625 esac 51626 ac_abs_top_builddir=$ac_pwd 51627 ac_abs_builddir=$ac_pwd$ac_dir_suffix 51628 # for backward compatibility: 51629 ac_top_builddir=$ac_top_build_prefix 51630 51631 case $srcdir in 51632 .) # We are building in place. 51633 ac_srcdir=. 51634 ac_top_srcdir=$ac_top_builddir_sub 51635 ac_abs_top_srcdir=$ac_pwd ;; 51636 [\\/]* | ?:[\\/]* ) # Absolute name. 51637 ac_srcdir=$srcdir$ac_dir_suffix; 51638 ac_top_srcdir=$srcdir 51639 ac_abs_top_srcdir=$srcdir ;; 51640 *) # Relative name. 51641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 51642 ac_top_srcdir=$ac_top_build_prefix$srcdir 51643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 51644 esac 51645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 51646 51647 51648 case $ac_mode in 51649 :F) 51650 # 51651 # CONFIG_FILE 51652 # 51653 51654 _ACEOF 51655 51656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51657 # If the template does not know about datarootdir, expand it. 51658 # FIXME: This hack should be removed a few years after 2.60. 51659 ac_datarootdir_hack=; ac_datarootdir_seen= 51660 ac_sed_dataroot=' 51661 /datarootdir/ { 51662 p 51663 q 51664 } 51665 /@datadir@/p 51666 /@docdir@/p 51667 /@infodir@/p 51668 /@localedir@/p 51669 /@mandir@/p' 51670 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 51671 *datarootdir*) ac_datarootdir_seen=yes;; 51672 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 51673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 51674 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 51675 _ACEOF 51676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51677 ac_datarootdir_hack=' 51678 s&@datadir@&$datadir&g 51679 s&@docdir@&$docdir&g 51680 s&@infodir@&$infodir&g 51681 s&@localedir@&$localedir&g 51682 s&@mandir@&$mandir&g 51683 s&\\\${datarootdir}&$datarootdir&g' ;; 51684 esac 51685 _ACEOF 51686 51687 # Neutralize VPATH when `$srcdir' = `.'. 51688 # Shell code in configure.ac might set extrasub. 51689 # FIXME: do we really want to maintain this feature? 51690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51691 ac_sed_extra="$ac_vpsub 51692 $extrasub 51693 _ACEOF 51694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51695 :t 51696 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 51697 s|@configure_input@|$ac_sed_conf_input|;t t 51698 s&@top_builddir@&$ac_top_builddir_sub&;t t 51699 s&@top_build_prefix@&$ac_top_build_prefix&;t t 51700 s&@srcdir@&$ac_srcdir&;t t 51701 s&@abs_srcdir@&$ac_abs_srcdir&;t t 51702 s&@top_srcdir@&$ac_top_srcdir&;t t 51703 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 51704 s&@builddir@&$ac_builddir&;t t 51705 s&@abs_builddir@&$ac_abs_builddir&;t t 51706 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 51707 $ac_datarootdir_hack 51708 " 51709 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 51710 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 51711 51712 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 51713 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 51714 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 51715 "$ac_tmp/out"`; test -z "$ac_out"; } && 51716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 51717 which seems to be undefined. Please make sure it is defined" >&5 51718 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 51719 which seems to be undefined. Please make sure it is defined" >&2;} 51720 51721 rm -f "$ac_tmp/stdin" 51722 case $ac_file in 51723 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 51724 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 51725 esac \ 51726 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 51727 ;; 51728 :H) 51729 # 51730 # CONFIG_HEADER 51731 # 51732 if test x"$ac_file" != x-; then 51733 { 51734 $as_echo "/* $configure_input */" \ 51735 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 51736 } >"$ac_tmp/config.h" \ 51737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 51738 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 51739 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 51740 $as_echo "$as_me: $ac_file is unchanged" >&6;} 51741 else 51742 rm -f "$ac_file" 51743 mv "$ac_tmp/config.h" "$ac_file" \ 51744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 51745 fi 51746 else 51747 $as_echo "/* $configure_input */" \ 51748 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 51749 || as_fn_error $? "could not create -" "$LINENO" 5 51750 fi 51751 ;; 51752 51753 51754 esac 51755 51756 done # for ac_tag 51757 51758 51759 as_fn_exit 0 51760 _ACEOF 51761 ac_clean_files=$ac_clean_files_save 51762 51763 test $ac_write_fail = 0 || 51764 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 51765 51766 51767 # configure is writing to config.log, and then calls config.status. 51768 # config.status does its own redirection, appending to config.log. 51769 # Unfortunately, on DOS this fails, as config.log is still kept open 51770 # by configure, so config.status won't be able to write to it; its 51771 # output is simply discarded. So we exec the FD to /dev/null, 51772 # effectively closing config.log, so it can be properly (re)opened and 51773 # appended to by config.status. When coming back to configure, we 51774 # need to make the FD available again. 51775 if test "$no_create" != yes; then 51776 ac_cs_success=: 51777 ac_config_status_args= 51778 test "$silent" = yes && 51779 ac_config_status_args="$ac_config_status_args --quiet" 51780 exec 5>/dev/null 51781 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 51782 exec 5>>config.log 51783 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 51784 # would make configure fail if this is the last instruction. 51785 $ac_cs_success || as_fn_exit 1 51786 fi 51787 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 51788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 51789 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 51790 fi 51791 51792 51793 # Try to move the config.log file to the output directory. 51794 if test -e ./config.log; then 51795 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 51796 fi 51797 51798 # Make the compare script executable 51799 $CHMOD +x $OUTPUT_ROOT/compare.sh 51800 51801 # Finally output some useful information to the user 51802 51803 # Finally output some useful information to the user 51804 51805 printf "\n" 51806 printf "====================================================\n" 51807 if test "x$no_create" != "xyes"; then 51808 if test "x$IS_RECONFIGURE" != "xyes"; then 51809 printf "A new configuration has been successfully created in\n %s\n" "$OUTPUT_ROOT" 51810 else 51811 printf "The existing configuration has been successfully updated in\n %s\n" "$OUTPUT_ROOT" 51812 fi 51813 else 51814 if test "x$IS_RECONFIGURE" != "xyes"; then 51815 printf "A configuration has been successfully checked but not created\n" 51816 else 51817 printf "The existing configuration has been successfully checked in\n %s\n" "$OUTPUT_ROOT" 51818 fi 51819 fi 51820 if test "x$CONFIGURE_COMMAND_LINE" != x; then 51821 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 51822 else 51823 printf "using default settings.\n" 51824 fi 51825 51826 printf "\n" 51827 printf "Configuration summary:\n" 51828 printf "* Debug level: $DEBUG_LEVEL\n" 51829 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 51830 printf "* JDK variant: $JDK_VARIANT\n" 51831 printf "* JVM variants: $with_jvm_variants\n" 51832 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 51833 51834 printf "\n" 51835 printf "Tools summary:\n" 51836 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 51837 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 51838 fi 51839 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 51840 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 51841 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 51842 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 51843 51844 printf "\n" 51845 printf "Build performance summary:\n" 51846 printf "* Cores to use: $JOBS\n" 51847 printf "* Memory limit: $MEMORY_SIZE MB\n" 51848 if test "x$CCACHE_STATUS" != "x"; then 51849 printf "* ccache status: $CCACHE_STATUS\n" 51850 fi 51851 printf "\n" 51852 51853 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 51854 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 51855 printf "will result in longer build times.\n" 51856 printf "\n" 51857 fi 51858 51859 if test "x$FOUND_ALT_VARIABLES" != "x"; then 51860 printf "WARNING: You have old-style ALT_ environment variables set.\n" 51861 printf "These are not respected, and will be ignored. It is recommended\n" 51862 printf "that you clean your environment. The following variables are set:\n" 51863 printf "$FOUND_ALT_VARIABLES\n" 51864 printf "\n" 51865 fi 51866 51867 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 51868 printf "WARNING: Your build output directory is not on a local disk.\n" 51869 printf "This will severely degrade build performance!\n" 51870 printf "It is recommended that you create an output directory on a local disk,\n" 51871 printf "and run the configure script again from that directory.\n" 51872 printf "\n" 51873 fi 51874 51875 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 51876 printf "WARNING: The result of this configuration has overridden an older\n" 51877 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 51878 printf "proper build. Failure to do so might result in strange build problems.\n" 51879 printf "\n" 51880 fi 51881 51882 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 51883 printf "WARNING: The result of this configuration was not saved.\n" 51884 printf "You should run without '--no-create | -n' to create the configuration.\n" 51885 printf "\n" 51886 fi 51887