1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk9' 590 PACKAGE_STRING='OpenJDK jdk9' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CFLAGS_CCACHE 633 CCACHE 634 USE_PRECOMPILED_HEADER 635 SJAVAC_SERVER_DIR 636 ENABLE_SJAVAC 637 SJAVAC_SERVER_JAVA_FLAGS 638 SJAVAC_SERVER_JAVA 639 JAVA_TOOL_FLAGS_SMALL 640 JAVA_FLAGS_SMALL 641 JAVA_FLAGS_BIG 642 JAVA_FLAGS 643 JOBS 644 MEMORY_SIZE 645 NUM_CORES 646 ENABLE_INTREE_EC 647 SALIB_NAME 648 HOTSPOT_MAKE_ARGS 649 MSVCP_DLL 650 MSVCR_DLL 651 LIBCXX 652 LLVM_LIBS 653 LLVM_LDFLAGS 654 LLVM_CFLAGS 655 LLVM_CONFIG 656 LIBFFI_LIBS 657 LIBFFI_CFLAGS 658 STATIC_CXX_SETTING 659 LIBDL 660 LIBM 661 LIBZIP_CAN_USE_MMAP 662 USE_EXTERNAL_LIBZ 663 USE_EXTERNAL_LIBPNG 664 PNG_LIBS 665 PNG_CFLAGS 666 USE_EXTERNAL_LCMS 667 LCMS_LIBS 668 LCMS_CFLAGS 669 USE_EXTERNAL_LIBGIF 670 USE_EXTERNAL_LIBJPEG 671 ALSA_LIBS 672 ALSA_CFLAGS 673 FREETYPE_BUNDLE_LIB_PATH 674 FREETYPE_LIBS 675 FREETYPE_CFLAGS 676 CUPS_CFLAGS 677 X_EXTRA_LIBS 678 X_LIBS 679 X_PRE_LIBS 680 X_CFLAGS 681 XMKMF 682 FIXPATH 683 GCOV_ENABLED 684 ZIP_DEBUGINFO_FILES 685 ENABLE_DEBUG_SYMBOLS 686 CFLAGS_WARNINGS_ARE_ERRORS 687 DISABLE_WARNING_PREFIX 688 COMPILER_SUPPORTS_TARGET_BITS_FLAG 689 ZERO_ARCHFLAG 690 LDFLAGS_TESTEXE_SUFFIX 691 LDFLAGS_TESTLIB_SUFFIX 692 LDFLAGS_TESTEXE 693 LDFLAGS_TESTLIB 694 LDFLAGS_CXX_JDK 695 LDFLAGS_JDKEXE_SUFFIX 696 LDFLAGS_JDKLIB_SUFFIX 697 LDFLAGS_JDKEXE 698 LDFLAGS_JDKLIB 699 CXXFLAGS_TESTEXE 700 CXXFLAGS_TESTLIB 701 CFLAGS_TESTEXE 702 CFLAGS_TESTLIB 703 CXXFLAGS_JDKEXE 704 CXXFLAGS_JDKLIB 705 CFLAGS_JDKEXE 706 CFLAGS_JDKLIB 707 MACOSX_VERSION_MIN 708 LEGACY_EXTRA_LDFLAGS 709 LEGACY_EXTRA_CXXFLAGS 710 LEGACY_EXTRA_CFLAGS 711 CXX_O_FLAG_NONE 712 CXX_O_FLAG_DEBUG 713 CXX_O_FLAG_NORM 714 CXX_O_FLAG_HI 715 CXX_O_FLAG_HIGHEST 716 C_O_FLAG_NONE 717 C_O_FLAG_DEBUG 718 C_O_FLAG_NORM 719 C_O_FLAG_HI 720 C_O_FLAG_HIGHEST 721 CXXFLAGS_DEBUG_OPTIONS 722 CFLAGS_DEBUG_OPTIONS 723 CXXFLAGS_DEBUG_SYMBOLS 724 CFLAGS_DEBUG_SYMBOLS 725 CXX_FLAG_DEPS 726 C_FLAG_DEPS 727 SET_SHARED_LIBRARY_MAPFILE 728 SET_SHARED_LIBRARY_NAME 729 SET_SHARED_LIBRARY_ORIGIN 730 SET_EXECUTABLE_ORIGIN 731 SHARED_LIBRARY_FLAGS 732 CXX_FLAG_REORDER 733 C_FLAG_REORDER 734 SYSROOT_LDFLAGS 735 SYSROOT_CFLAGS 736 RC_FLAGS 737 AR_OUT_OPTION 738 LD_OUT_OPTION 739 EXE_OUT_OPTION 740 CC_OUT_OPTION 741 POST_MCS_CMD 742 POST_STRIP_CMD 743 ARFLAGS 744 COMPILER_TARGET_BITS_FLAG 745 JT_HOME 746 JTREGEXE 747 USING_BROKEN_SUSE_LD 748 PACKAGE_PATH 749 LDEXECXX 750 LDEXE 751 USE_CLANG 752 HOTSPOT_LD 753 HOTSPOT_CXX 754 HOTSPOT_RC 755 HOTSPOT_MT 756 BUILD_LD 757 BUILD_CXX 758 BUILD_CC 759 ac_ct_OBJDUMP 760 OBJDUMP 761 ac_ct_OBJCOPY 762 OBJCOPY 763 ac_ct_NM 764 ac_ct_STRIP 765 MCS 766 GNM 767 NM 768 STRIP 769 MSBUILD 770 DUMPBIN 771 RC 772 MT 773 LIPO 774 ac_ct_AR 775 AR 776 AS 777 LDCXX 778 LD 779 CXXCPP 780 CPP 781 ac_ct_CXX 782 CXXFLAGS 783 CXX 784 ac_ct_PROPER_COMPILER_CXX 785 PROPER_COMPILER_CXX 786 TOOLCHAIN_PATH_CXX 787 POTENTIAL_CXX 788 OBJEXT 789 EXEEXT 790 ac_ct_CC 791 CPPFLAGS 792 LDFLAGS 793 CFLAGS 794 CC 795 ac_ct_PROPER_COMPILER_CC 796 PROPER_COMPILER_CC 797 TOOLCHAIN_PATH_CC 798 POTENTIAL_CC 799 VS_LIB 800 VS_INCLUDE 801 VS_PATH 802 CYGWIN_LINK 803 EXE_SUFFIX 804 OBJ_SUFFIX 805 STATIC_LIBRARY 806 SHARED_LIBRARY 807 STATIC_LIBRARY_SUFFIX 808 SHARED_LIBRARY_SUFFIX 809 LIBRARY_PREFIX 810 TOOLCHAIN_TYPE 811 BUILD_HOTSPOT 812 HOTSPOT_DIST 813 BUILD_OUTPUT 814 OVERRIDE_SRC_ROOT 815 ADD_SRC_ROOT 816 JDK_TOPDIR 817 NASHORN_TOPDIR 818 HOTSPOT_TOPDIR 819 JAXWS_TOPDIR 820 JAXP_TOPDIR 821 CORBA_TOPDIR 822 LANGTOOLS_TOPDIR 823 JAVAC_FLAGS 824 BOOT_JDK_SOURCETARGET 825 JARSIGNER 826 NATIVE2ASCII 827 JAR 828 JAVAH 829 JAVAC 830 JAVA 831 BOOT_JDK 832 JAVA_CHECK 833 JAVAC_CHECK 834 COOKED_BUILD_NUMBER 835 JDK_VERSION 836 COPYRIGHT_YEAR 837 MACOSX_BUNDLE_ID_BASE 838 MACOSX_BUNDLE_NAME_BASE 839 COMPANY_NAME 840 JDK_RC_PLATFORM_NAME 841 PRODUCT_SUFFIX 842 PRODUCT_NAME 843 LAUNCHER_NAME 844 MILESTONE 845 JDK_BUILD_NUMBER 846 JDK_UPDATE_VERSION 847 JDK_MICRO_VERSION 848 JDK_MINOR_VERSION 849 JDK_MAJOR_VERSION 850 USER_RELEASE_SUFFIX 851 COMPRESS_JARS 852 RMICONNECTOR_IIOP 853 UNLIMITED_CRYPTO 854 CACERTS_FILE 855 TEST_IN_BUILD 856 BUILD_HEADLESS 857 SUPPORT_HEADFUL 858 SUPPORT_HEADLESS 859 BDEPS_FTP 860 BDEPS_UNZIP 861 OS_VERSION_MICRO 862 OS_VERSION_MINOR 863 OS_VERSION_MAJOR 864 PKG_CONFIG 865 BASH_ARGS 866 CODESIGN 867 XATTR 868 DSYMUTIL 869 IS_GNU_TIME 870 TIME 871 STAT 872 HG 873 READELF 874 OTOOL 875 LDD 876 ZIP 877 UNZIP 878 FIND_DELETE 879 OUTPUT_SYNC 880 OUTPUT_SYNC_SUPPORTED 881 MAKE 882 CHECK_TOOLSDIR_MAKE 883 CHECK_TOOLSDIR_GMAKE 884 CHECK_MAKE 885 CHECK_GMAKE 886 PKGHANDLER 887 OUTPUT_ROOT 888 CONF_NAME 889 SPEC 890 SDKROOT 891 XCODEBUILD 892 BUILD_VARIANT_RELEASE 893 DEBUG_CLASSFILES 894 FASTDEBUG 895 VARIANT 896 DEBUG_LEVEL 897 MACOSX_UNIVERSAL 898 INCLUDE_SA 899 JVM_VARIANT_CORE 900 JVM_VARIANT_ZEROSHARK 901 JVM_VARIANT_ZERO 902 JVM_VARIANT_KERNEL 903 JVM_VARIANT_MINIMAL1 904 JVM_VARIANT_CLIENT 905 JVM_VARIANT_SERVER 906 JVM_VARIANTS 907 JVM_INTERPRETER 908 JDK_VARIANT 909 SET_OPENJDK 910 CANONICAL_TOPDIR 911 ORIGINAL_TOPDIR 912 TOPDIR 913 PATH_SEP 914 ZERO_ARCHDEF 915 DEFINE_CROSS_COMPILE_ARCH 916 LP64 917 OPENJDK_TARGET_OS_EXPORT_DIR 918 OPENJDK_TARGET_CPU_JLI_CFLAGS 919 OPENJDK_TARGET_CPU_OSARCH 920 OPENJDK_TARGET_CPU_ISADIR 921 OPENJDK_TARGET_CPU_LIBDIR 922 OPENJDK_TARGET_CPU_LEGACY_LIB 923 OPENJDK_TARGET_CPU_LEGACY 924 REQUIRED_OS_VERSION 925 REQUIRED_OS_NAME 926 COMPILE_TYPE 927 OPENJDK_TARGET_CPU_ENDIAN 928 OPENJDK_TARGET_CPU_BITS 929 OPENJDK_TARGET_CPU_ARCH 930 OPENJDK_TARGET_CPU 931 OPENJDK_TARGET_OS_ENV 932 OPENJDK_TARGET_OS_TYPE 933 OPENJDK_TARGET_OS 934 OPENJDK_BUILD_CPU_ENDIAN 935 OPENJDK_BUILD_CPU_BITS 936 OPENJDK_BUILD_CPU_ARCH 937 OPENJDK_BUILD_CPU 938 OPENJDK_BUILD_OS_ENV 939 OPENJDK_BUILD_OS_TYPE 940 OPENJDK_BUILD_OS 941 OPENJDK_BUILD_AUTOCONF_NAME 942 OPENJDK_TARGET_AUTOCONF_NAME 943 target_os 944 target_vendor 945 target_cpu 946 target 947 host_os 948 host_vendor 949 host_cpu 950 host 951 build_os 952 build_vendor 953 build_cpu 954 build 955 CPIO 956 SETFILE 957 DF 958 READLINK 959 CYGPATH 960 SED 961 FGREP 962 EGREP 963 GREP 964 AWK 965 XARGS 966 WHICH 967 WC 968 UNIQ 969 UNAME 970 TR 971 TOUCH 972 TEE 973 TAR 974 TAIL 975 SORT 976 SH 977 RM 978 PRINTF 979 NAWK 980 MV 981 MKTEMP 982 MKDIR 983 LS 984 LN 985 HEAD 986 FIND 987 FILE 988 EXPR 989 ECHO 990 DIRNAME 991 DIFF 992 DATE 993 CUT 994 CP 995 COMM 996 CMP 997 CHMOD 998 CAT 999 BASH 1000 BASENAME 1001 DATE_WHEN_CONFIGURED 1002 ORIGINAL_PATH 1003 CONFIGURE_COMMAND_LINE 1004 target_alias 1005 host_alias 1006 build_alias 1007 LIBS 1008 ECHO_T 1009 ECHO_N 1010 ECHO_C 1011 DEFS 1012 mandir 1013 localedir 1014 libdir 1015 psdir 1016 pdfdir 1017 dvidir 1018 htmldir 1019 infodir 1020 docdir 1021 oldincludedir 1022 includedir 1023 localstatedir 1024 sharedstatedir 1025 sysconfdir 1026 datadir 1027 datarootdir 1028 libexecdir 1029 sbindir 1030 bindir 1031 program_transform_name 1032 prefix 1033 exec_prefix 1034 PACKAGE_URL 1035 PACKAGE_BUGREPORT 1036 PACKAGE_STRING 1037 PACKAGE_VERSION 1038 PACKAGE_TARNAME 1039 PACKAGE_NAME 1040 PATH_SEPARATOR 1041 SHELL' 1042 ac_subst_files='' 1043 ac_user_opts=' 1044 enable_option_checking 1045 with_target_bits 1046 enable_openjdk_only 1047 with_custom_make_dir 1048 with_jdk_variant 1049 with_jvm_interpreter 1050 with_jvm_variants 1051 enable_debug 1052 with_debug_level 1053 with_devkit 1054 with_sys_root 1055 with_sysroot 1056 with_tools_dir 1057 with_toolchain_path 1058 with_extra_path 1059 with_sdk_name 1060 with_conf_name 1061 with_output_sync 1062 with_builddeps_conf 1063 with_builddeps_server 1064 with_builddeps_dir 1065 with_builddeps_group 1066 enable_headful 1067 enable_hotspot_test_in_build 1068 with_cacerts_file 1069 enable_unlimited_crypto 1070 enable_rmiconnector_iiop 1071 with_milestone 1072 with_update_version 1073 with_user_release_suffix 1074 with_build_number 1075 with_copyright_year 1076 with_boot_jdk 1077 with_add_source_root 1078 with_override_source_root 1079 with_adds_and_overrides 1080 with_override_langtools 1081 with_override_corba 1082 with_override_jaxp 1083 with_override_jaxws 1084 with_override_hotspot 1085 with_override_nashorn 1086 with_override_jdk 1087 with_import_hotspot 1088 with_toolchain_type 1089 with_toolchain_version 1090 with_jtreg 1091 with_extra_cflags 1092 with_extra_cxxflags 1093 with_extra_ldflags 1094 enable_debug_symbols 1095 enable_zip_debug_info 1096 enable_native_coverage 1097 with_x 1098 with_cups 1099 with_cups_include 1100 with_freetype 1101 with_freetype_include 1102 with_freetype_lib 1103 with_freetype_src 1104 enable_freetype_bundling 1105 with_alsa 1106 with_alsa_include 1107 with_alsa_lib 1108 with_libjpeg 1109 with_giflib 1110 with_lcms 1111 with_libpng 1112 with_zlib 1113 with_stdc__lib 1114 with_msvcr_dll 1115 with_msvcp_dll 1116 with_dxsdk 1117 with_dxsdk_lib 1118 with_dxsdk_include 1119 with_num_cores 1120 with_memory_size 1121 with_jobs 1122 with_boot_jdk_jvmargs 1123 with_sjavac_server_java 1124 enable_sjavac 1125 enable_precompiled_headers 1126 enable_ccache 1127 with_ccache_dir 1128 ' 1129 ac_precious_vars='build_alias 1130 host_alias 1131 target_alias 1132 BASENAME 1133 BASH 1134 CAT 1135 CHMOD 1136 CMP 1137 COMM 1138 CP 1139 CUT 1140 DATE 1141 DIFF 1142 DIRNAME 1143 ECHO 1144 EXPR 1145 FILE 1146 FIND 1147 HEAD 1148 LN 1149 LS 1150 MKDIR 1151 MKTEMP 1152 MV 1153 NAWK 1154 PRINTF 1155 RM 1156 SH 1157 SORT 1158 TAIL 1159 TAR 1160 TEE 1161 TOUCH 1162 TR 1163 UNAME 1164 UNIQ 1165 WC 1166 WHICH 1167 XARGS 1168 AWK 1169 GREP 1170 EGREP 1171 FGREP 1172 SED 1173 CYGPATH 1174 READLINK 1175 DF 1176 SETFILE 1177 CPIO 1178 UNZIP 1179 ZIP 1180 LDD 1181 OTOOL 1182 READELF 1183 HG 1184 STAT 1185 TIME 1186 DSYMUTIL 1187 XATTR 1188 CODESIGN 1189 PKG_CONFIG 1190 JAVA 1191 JAVAC 1192 JAVAH 1193 JAR 1194 NATIVE2ASCII 1195 JARSIGNER 1196 CC 1197 CFLAGS 1198 LDFLAGS 1199 LIBS 1200 CPPFLAGS 1201 CXX 1202 CXXFLAGS 1203 CCC 1204 CPP 1205 CXXCPP 1206 AS 1207 AR 1208 LIPO 1209 STRIP 1210 NM 1211 GNM 1212 MCS 1213 OBJCOPY 1214 OBJDUMP 1215 BUILD_CC 1216 BUILD_CXX 1217 BUILD_LD 1218 JTREGEXE 1219 XMKMF 1220 FREETYPE_CFLAGS 1221 FREETYPE_LIBS 1222 ALSA_CFLAGS 1223 ALSA_LIBS 1224 LCMS_CFLAGS 1225 LCMS_LIBS 1226 PNG_CFLAGS 1227 PNG_LIBS 1228 LIBFFI_CFLAGS 1229 LIBFFI_LIBS 1230 CCACHE' 1231 1232 1233 # Initialize some variables set by options. 1234 ac_init_help= 1235 ac_init_version=false 1236 ac_unrecognized_opts= 1237 ac_unrecognized_sep= 1238 # The variables have the same names as the options, with 1239 # dashes changed to underlines. 1240 cache_file=/dev/null 1241 exec_prefix=NONE 1242 no_create= 1243 no_recursion= 1244 prefix=NONE 1245 program_prefix=NONE 1246 program_suffix=NONE 1247 program_transform_name=s,x,x, 1248 silent= 1249 site= 1250 srcdir= 1251 verbose= 1252 x_includes=NONE 1253 x_libraries=NONE 1254 1255 # Installation directory options. 1256 # These are left unexpanded so users can "make install exec_prefix=/foo" 1257 # and all the variables that are supposed to be based on exec_prefix 1258 # by default will actually change. 1259 # Use braces instead of parens because sh, perl, etc. also accept them. 1260 # (The list follows the same order as the GNU Coding Standards.) 1261 bindir='${exec_prefix}/bin' 1262 sbindir='${exec_prefix}/sbin' 1263 libexecdir='${exec_prefix}/libexec' 1264 datarootdir='${prefix}/share' 1265 datadir='${datarootdir}' 1266 sysconfdir='${prefix}/etc' 1267 sharedstatedir='${prefix}/com' 1268 localstatedir='${prefix}/var' 1269 includedir='${prefix}/include' 1270 oldincludedir='/usr/include' 1271 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1272 infodir='${datarootdir}/info' 1273 htmldir='${docdir}' 1274 dvidir='${docdir}' 1275 pdfdir='${docdir}' 1276 psdir='${docdir}' 1277 libdir='${exec_prefix}/lib' 1278 localedir='${datarootdir}/locale' 1279 mandir='${datarootdir}/man' 1280 1281 ac_prev= 1282 ac_dashdash= 1283 for ac_option 1284 do 1285 # If the previous option needs an argument, assign it. 1286 if test -n "$ac_prev"; then 1287 eval $ac_prev=\$ac_option 1288 ac_prev= 1289 continue 1290 fi 1291 1292 case $ac_option in 1293 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1294 *=) ac_optarg= ;; 1295 *) ac_optarg=yes ;; 1296 esac 1297 1298 # Accept the important Cygnus configure options, so we can diagnose typos. 1299 1300 case $ac_dashdash$ac_option in 1301 --) 1302 ac_dashdash=yes ;; 1303 1304 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1305 ac_prev=bindir ;; 1306 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1307 bindir=$ac_optarg ;; 1308 1309 -build | --build | --buil | --bui | --bu) 1310 ac_prev=build_alias ;; 1311 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1312 build_alias=$ac_optarg ;; 1313 1314 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1315 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1316 ac_prev=cache_file ;; 1317 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1318 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1319 cache_file=$ac_optarg ;; 1320 1321 --config-cache | -C) 1322 cache_file=config.cache ;; 1323 1324 -datadir | --datadir | --datadi | --datad) 1325 ac_prev=datadir ;; 1326 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1327 datadir=$ac_optarg ;; 1328 1329 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1330 | --dataroo | --dataro | --datar) 1331 ac_prev=datarootdir ;; 1332 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1333 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1334 datarootdir=$ac_optarg ;; 1335 1336 -disable-* | --disable-*) 1337 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1338 # Reject names that are not valid shell variable names. 1339 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1340 as_fn_error $? "invalid feature name: $ac_useropt" 1341 ac_useropt_orig=$ac_useropt 1342 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1343 case $ac_user_opts in 1344 *" 1345 "enable_$ac_useropt" 1346 "*) ;; 1347 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1348 ac_unrecognized_sep=', ';; 1349 esac 1350 eval enable_$ac_useropt=no ;; 1351 1352 -docdir | --docdir | --docdi | --doc | --do) 1353 ac_prev=docdir ;; 1354 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1355 docdir=$ac_optarg ;; 1356 1357 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1358 ac_prev=dvidir ;; 1359 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1360 dvidir=$ac_optarg ;; 1361 1362 -enable-* | --enable-*) 1363 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1364 # Reject names that are not valid shell variable names. 1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1366 as_fn_error $? "invalid feature name: $ac_useropt" 1367 ac_useropt_orig=$ac_useropt 1368 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1369 case $ac_user_opts in 1370 *" 1371 "enable_$ac_useropt" 1372 "*) ;; 1373 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1374 ac_unrecognized_sep=', ';; 1375 esac 1376 eval enable_$ac_useropt=\$ac_optarg ;; 1377 1378 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1379 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1380 | --exec | --exe | --ex) 1381 ac_prev=exec_prefix ;; 1382 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1383 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1384 | --exec=* | --exe=* | --ex=*) 1385 exec_prefix=$ac_optarg ;; 1386 1387 -gas | --gas | --ga | --g) 1388 # Obsolete; use --with-gas. 1389 with_gas=yes ;; 1390 1391 -help | --help | --hel | --he | -h) 1392 ac_init_help=long ;; 1393 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1394 ac_init_help=recursive ;; 1395 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1396 ac_init_help=short ;; 1397 1398 -host | --host | --hos | --ho) 1399 ac_prev=host_alias ;; 1400 -host=* | --host=* | --hos=* | --ho=*) 1401 host_alias=$ac_optarg ;; 1402 1403 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1404 ac_prev=htmldir ;; 1405 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1406 | --ht=*) 1407 htmldir=$ac_optarg ;; 1408 1409 -includedir | --includedir | --includedi | --included | --include \ 1410 | --includ | --inclu | --incl | --inc) 1411 ac_prev=includedir ;; 1412 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1413 | --includ=* | --inclu=* | --incl=* | --inc=*) 1414 includedir=$ac_optarg ;; 1415 1416 -infodir | --infodir | --infodi | --infod | --info | --inf) 1417 ac_prev=infodir ;; 1418 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1419 infodir=$ac_optarg ;; 1420 1421 -libdir | --libdir | --libdi | --libd) 1422 ac_prev=libdir ;; 1423 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1424 libdir=$ac_optarg ;; 1425 1426 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1427 | --libexe | --libex | --libe) 1428 ac_prev=libexecdir ;; 1429 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1430 | --libexe=* | --libex=* | --libe=*) 1431 libexecdir=$ac_optarg ;; 1432 1433 -localedir | --localedir | --localedi | --localed | --locale) 1434 ac_prev=localedir ;; 1435 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1436 localedir=$ac_optarg ;; 1437 1438 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1439 | --localstate | --localstat | --localsta | --localst | --locals) 1440 ac_prev=localstatedir ;; 1441 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1442 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1443 localstatedir=$ac_optarg ;; 1444 1445 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1446 ac_prev=mandir ;; 1447 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1448 mandir=$ac_optarg ;; 1449 1450 -nfp | --nfp | --nf) 1451 # Obsolete; use --without-fp. 1452 with_fp=no ;; 1453 1454 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1455 | --no-cr | --no-c | -n) 1456 no_create=yes ;; 1457 1458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1460 no_recursion=yes ;; 1461 1462 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1463 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1464 | --oldin | --oldi | --old | --ol | --o) 1465 ac_prev=oldincludedir ;; 1466 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1467 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1468 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1469 oldincludedir=$ac_optarg ;; 1470 1471 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1472 ac_prev=prefix ;; 1473 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1474 prefix=$ac_optarg ;; 1475 1476 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1477 | --program-pre | --program-pr | --program-p) 1478 ac_prev=program_prefix ;; 1479 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1480 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1481 program_prefix=$ac_optarg ;; 1482 1483 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1484 | --program-suf | --program-su | --program-s) 1485 ac_prev=program_suffix ;; 1486 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1487 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1488 program_suffix=$ac_optarg ;; 1489 1490 -program-transform-name | --program-transform-name \ 1491 | --program-transform-nam | --program-transform-na \ 1492 | --program-transform-n | --program-transform- \ 1493 | --program-transform | --program-transfor \ 1494 | --program-transfo | --program-transf \ 1495 | --program-trans | --program-tran \ 1496 | --progr-tra | --program-tr | --program-t) 1497 ac_prev=program_transform_name ;; 1498 -program-transform-name=* | --program-transform-name=* \ 1499 | --program-transform-nam=* | --program-transform-na=* \ 1500 | --program-transform-n=* | --program-transform-=* \ 1501 | --program-transform=* | --program-transfor=* \ 1502 | --program-transfo=* | --program-transf=* \ 1503 | --program-trans=* | --program-tran=* \ 1504 | --progr-tra=* | --program-tr=* | --program-t=*) 1505 program_transform_name=$ac_optarg ;; 1506 1507 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1508 ac_prev=pdfdir ;; 1509 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1510 pdfdir=$ac_optarg ;; 1511 1512 -psdir | --psdir | --psdi | --psd | --ps) 1513 ac_prev=psdir ;; 1514 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1515 psdir=$ac_optarg ;; 1516 1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1518 | -silent | --silent | --silen | --sile | --sil) 1519 silent=yes ;; 1520 1521 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1522 ac_prev=sbindir ;; 1523 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1524 | --sbi=* | --sb=*) 1525 sbindir=$ac_optarg ;; 1526 1527 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1528 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1529 | --sharedst | --shareds | --shared | --share | --shar \ 1530 | --sha | --sh) 1531 ac_prev=sharedstatedir ;; 1532 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1533 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1534 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1535 | --sha=* | --sh=*) 1536 sharedstatedir=$ac_optarg ;; 1537 1538 -site | --site | --sit) 1539 ac_prev=site ;; 1540 -site=* | --site=* | --sit=*) 1541 site=$ac_optarg ;; 1542 1543 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1544 ac_prev=srcdir ;; 1545 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1546 srcdir=$ac_optarg ;; 1547 1548 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1549 | --syscon | --sysco | --sysc | --sys | --sy) 1550 ac_prev=sysconfdir ;; 1551 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1552 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1553 sysconfdir=$ac_optarg ;; 1554 1555 -target | --target | --targe | --targ | --tar | --ta | --t) 1556 ac_prev=target_alias ;; 1557 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1558 target_alias=$ac_optarg ;; 1559 1560 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1561 verbose=yes ;; 1562 1563 -version | --version | --versio | --versi | --vers | -V) 1564 ac_init_version=: ;; 1565 1566 -with-* | --with-*) 1567 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1568 # Reject names that are not valid shell variable names. 1569 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1570 as_fn_error $? "invalid package name: $ac_useropt" 1571 ac_useropt_orig=$ac_useropt 1572 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1573 case $ac_user_opts in 1574 *" 1575 "with_$ac_useropt" 1576 "*) ;; 1577 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1578 ac_unrecognized_sep=', ';; 1579 esac 1580 eval with_$ac_useropt=\$ac_optarg ;; 1581 1582 -without-* | --without-*) 1583 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1584 # Reject names that are not valid shell variable names. 1585 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1586 as_fn_error $? "invalid package name: $ac_useropt" 1587 ac_useropt_orig=$ac_useropt 1588 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1589 case $ac_user_opts in 1590 *" 1591 "with_$ac_useropt" 1592 "*) ;; 1593 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1594 ac_unrecognized_sep=', ';; 1595 esac 1596 eval with_$ac_useropt=no ;; 1597 1598 --x) 1599 # Obsolete; use --with-x. 1600 with_x=yes ;; 1601 1602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1603 | --x-incl | --x-inc | --x-in | --x-i) 1604 ac_prev=x_includes ;; 1605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1607 x_includes=$ac_optarg ;; 1608 1609 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1611 ac_prev=x_libraries ;; 1612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1614 x_libraries=$ac_optarg ;; 1615 1616 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1617 Try \`$0 --help' for more information" 1618 ;; 1619 1620 *=*) 1621 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1622 # Reject names that are not valid shell variable names. 1623 case $ac_envvar in #( 1624 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1625 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1626 esac 1627 eval $ac_envvar=\$ac_optarg 1628 export $ac_envvar ;; 1629 1630 *) 1631 # FIXME: should be removed in autoconf 3.0. 1632 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1633 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1634 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1635 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1636 ;; 1637 1638 esac 1639 done 1640 1641 if test -n "$ac_prev"; then 1642 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1643 as_fn_error $? "missing argument to $ac_option" 1644 fi 1645 1646 if test -n "$ac_unrecognized_opts"; then 1647 case $enable_option_checking in 1648 no) ;; 1649 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1650 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1651 esac 1652 fi 1653 1654 # Check all directory arguments for consistency. 1655 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1656 datadir sysconfdir sharedstatedir localstatedir includedir \ 1657 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1658 libdir localedir mandir 1659 do 1660 eval ac_val=\$$ac_var 1661 # Remove trailing slashes. 1662 case $ac_val in 1663 */ ) 1664 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1665 eval $ac_var=\$ac_val;; 1666 esac 1667 # Be sure to have absolute directory names. 1668 case $ac_val in 1669 [\\/$]* | ?:[\\/]* ) continue;; 1670 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1671 esac 1672 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1673 done 1674 1675 # There might be people who depend on the old broken behavior: `$host' 1676 # used to hold the argument of --host etc. 1677 # FIXME: To remove some day. 1678 build=$build_alias 1679 host=$host_alias 1680 target=$target_alias 1681 1682 # FIXME: To remove some day. 1683 if test "x$host_alias" != x; then 1684 if test "x$build_alias" = x; then 1685 cross_compiling=maybe 1686 elif test "x$build_alias" != "x$host_alias"; then 1687 cross_compiling=yes 1688 fi 1689 fi 1690 1691 ac_tool_prefix= 1692 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1693 1694 test "$silent" = yes && exec 6>/dev/null 1695 1696 1697 ac_pwd=`pwd` && test -n "$ac_pwd" && 1698 ac_ls_di=`ls -di .` && 1699 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1700 as_fn_error $? "working directory cannot be determined" 1701 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1702 as_fn_error $? "pwd does not report name of working directory" 1703 1704 1705 # Find the source files, if location was not specified. 1706 if test -z "$srcdir"; then 1707 ac_srcdir_defaulted=yes 1708 # Try the directory containing this script, then the parent directory. 1709 ac_confdir=`$as_dirname -- "$as_myself" || 1710 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1711 X"$as_myself" : 'X\(//\)[^/]' \| \ 1712 X"$as_myself" : 'X\(//\)$' \| \ 1713 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1714 $as_echo X"$as_myself" | 1715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1716 s//\1/ 1717 q 1718 } 1719 /^X\(\/\/\)[^/].*/{ 1720 s//\1/ 1721 q 1722 } 1723 /^X\(\/\/\)$/{ 1724 s//\1/ 1725 q 1726 } 1727 /^X\(\/\).*/{ 1728 s//\1/ 1729 q 1730 } 1731 s/.*/./; q'` 1732 srcdir=$ac_confdir 1733 if test ! -r "$srcdir/$ac_unique_file"; then 1734 srcdir=.. 1735 fi 1736 else 1737 ac_srcdir_defaulted=no 1738 fi 1739 if test ! -r "$srcdir/$ac_unique_file"; then 1740 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1741 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1742 fi 1743 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1744 ac_abs_confdir=`( 1745 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1746 pwd)` 1747 # When building in place, set srcdir=. 1748 if test "$ac_abs_confdir" = "$ac_pwd"; then 1749 srcdir=. 1750 fi 1751 # Remove unnecessary trailing slashes from srcdir. 1752 # Double slashes in file names in object file debugging info 1753 # mess up M-x gdb in Emacs. 1754 case $srcdir in 1755 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1756 esac 1757 for ac_var in $ac_precious_vars; do 1758 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1759 eval ac_env_${ac_var}_value=\$${ac_var} 1760 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1761 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1762 done 1763 1764 # 1765 # Report the --help message. 1766 # 1767 if test "$ac_init_help" = "long"; then 1768 # Omit some internal or obsolete options to make the list less imposing. 1769 # This message is too long to be a string in the A/UX 3.1 sh. 1770 cat <<_ACEOF 1771 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1772 1773 Usage: $0 [OPTION]... [VAR=VALUE]... 1774 1775 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1776 VAR=VALUE. See below for descriptions of some of the useful variables. 1777 1778 Defaults for the options are specified in brackets. 1779 1780 Configuration: 1781 -h, --help display this help and exit 1782 --help=short display options specific to this package 1783 --help=recursive display the short help of all the included packages 1784 -V, --version display version information and exit 1785 -q, --quiet, --silent do not print \`checking ...' messages 1786 --cache-file=FILE cache test results in FILE [disabled] 1787 -C, --config-cache alias for \`--cache-file=config.cache' 1788 -n, --no-create do not create output files 1789 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1790 1791 Installation directories: 1792 --prefix=PREFIX install architecture-independent files in PREFIX 1793 [$ac_default_prefix] 1794 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1795 [PREFIX] 1796 1797 By default, \`make install' will install all the files in 1798 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1799 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1800 for instance \`--prefix=\$HOME'. 1801 1802 For better control, use the options below. 1803 1804 Fine tuning of the installation directories: 1805 --bindir=DIR user executables [EPREFIX/bin] 1806 --sbindir=DIR system admin executables [EPREFIX/sbin] 1807 --libexecdir=DIR program executables [EPREFIX/libexec] 1808 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1809 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1810 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1811 --libdir=DIR object code libraries [EPREFIX/lib] 1812 --includedir=DIR C header files [PREFIX/include] 1813 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1814 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1815 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1816 --infodir=DIR info documentation [DATAROOTDIR/info] 1817 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1818 --mandir=DIR man documentation [DATAROOTDIR/man] 1819 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1820 --htmldir=DIR html documentation [DOCDIR] 1821 --dvidir=DIR dvi documentation [DOCDIR] 1822 --pdfdir=DIR pdf documentation [DOCDIR] 1823 --psdir=DIR ps documentation [DOCDIR] 1824 _ACEOF 1825 1826 cat <<\_ACEOF 1827 1828 X features: 1829 --x-includes=DIR X include files are in DIR 1830 --x-libraries=DIR X library files are in DIR 1831 1832 System types: 1833 --build=BUILD configure for building on BUILD [guessed] 1834 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1835 --target=TARGET configure for building compilers for TARGET [HOST] 1836 _ACEOF 1837 fi 1838 1839 if test -n "$ac_init_help"; then 1840 case $ac_init_help in 1841 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1842 esac 1843 cat <<\_ACEOF 1844 1845 Optional Features: 1846 --disable-option-checking ignore unrecognized --enable/--with options 1847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1849 --enable-openjdk-only suppress building custom source even if present 1850 [disabled] 1851 --enable-debug set the debug level to fastdebug (shorthand for 1852 --with-debug-level=fastdebug) [disabled] 1853 --disable-headful disable building headful support (graphical UI 1854 support) [enabled] 1855 --enable-hotspot-test-in-build 1856 run the Queens test after Hotspot build [disabled] 1857 --enable-unlimited-crypto 1858 Enable unlimited crypto policy [disabled] 1859 --enable-rmiconnector-iiop 1860 enable the JMX RMIConnector iiop transport 1861 [disabled] 1862 --disable-debug-symbols disable generation of debug symbols [enabled] 1863 --disable-zip-debug-info 1864 disable zipping of debug-info files [enabled] 1865 --enable-native-coverage 1866 enable native compilation with code coverage 1867 data[disabled] 1868 --disable-freetype-bundling 1869 disable bundling of the freetype library with the 1870 build result [enabled on Windows or when using 1871 --with-freetype, disabled otherwise] 1872 --enable-sjavac use sjavac to do fast incremental compiles 1873 [disabled] 1874 --disable-precompiled-headers 1875 disable using precompiled headers when compiling C++ 1876 [enabled] 1877 --enable-ccache enable using ccache to speed up recompilations 1878 [disabled] 1879 1880 Optional Packages: 1881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1883 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1884 support it), e.g. --with-target-bits=32 [guessed] 1885 --with-custom-make-dir Deprecated. Option is kept for backwards 1886 compatibility and is ignored 1887 --with-jdk-variant JDK variant to build (normal) [normal] 1888 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1889 --with-jvm-variants JVM variants (separated by commas) to build (server, 1890 client, minimal1, kernel, zero, zeroshark, core) 1891 [server] 1892 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1893 optimized (HotSpot build only)) [release] 1894 --with-devkit use this devkit for compilers, tools and resources 1895 --with-sys-root alias for --with-sysroot for backwards compatability 1896 --with-sysroot use this directory as sysroot 1897 --with-tools-dir alias for --with-toolchain-path for backwards 1898 compatibility 1899 --with-toolchain-path prepend these directories when searching for 1900 toolchain binaries (compilers etc) 1901 --with-extra-path prepend these directories to the default path 1902 --with-sdk-name use the platform SDK of the given name. [macosx] 1903 --with-conf-name use this as the name of the configuration [generated 1904 from important configuration options] 1905 --with-output-sync set make output sync type if supported by make. 1906 [recurse] 1907 --with-builddeps-conf use this configuration file for the builddeps 1908 --with-builddeps-server download and use build dependencies from this server 1909 url 1910 --with-builddeps-dir store downloaded build dependencies here 1911 [/localhome/builddeps] 1912 --with-builddeps-group chgrp the downloaded build dependencies to this 1913 group 1914 --with-cacerts-file specify alternative cacerts file 1915 --with-milestone Set milestone value for build [internal] 1916 --with-update-version Set update version value for build [b00] 1917 --with-user-release-suffix 1918 Add a custom string to the version string if build 1919 number is not set.[username_builddateb00] 1920 --with-build-number Set build number value for build [b00] 1921 --with-copyright-year Set copyright year value for build [current year] 1922 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1923 --with-add-source-root for each and every source directory, look in this 1924 additional source root for the same directory; if it 1925 exists and have files in it, include it in the build 1926 --with-override-source-root 1927 for each and every source directory, look in this 1928 override source root for the same directory; if it 1929 exists, use that directory instead and ignore the 1930 directory in the original source root 1931 --with-adds-and-overrides 1932 use the subdirs 'adds' and 'overrides' in the 1933 specified directory as add-source-root and 1934 override-source-root 1935 --with-override-langtools 1936 use this langtools dir for the build 1937 --with-override-corba use this corba dir for the build 1938 --with-override-jaxp use this jaxp dir for the build 1939 --with-override-jaxws use this jaxws dir for the build 1940 --with-override-hotspot use this hotspot dir for the build 1941 --with-override-nashorn use this nashorn dir for the build 1942 --with-override-jdk use this jdk dir for the build 1943 --with-import-hotspot import hotspot binaries from this jdk image or 1944 hotspot build dist dir instead of building from 1945 source 1946 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1947 to show possible values [platform dependent] 1948 --with-toolchain-version 1949 the version of the toolchain to look for, use 1950 '--help' to show possible values [platform 1951 dependent] 1952 --with-jtreg Regression Test Harness [probed] 1953 --with-extra-cflags extra flags to be used when compiling jdk c-files 1954 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1955 --with-extra-ldflags extra flags to be used when linking jdk 1956 --with-x use the X Window System 1957 --with-cups specify prefix directory for the cups package 1958 (expecting the headers under PATH/include) 1959 --with-cups-include specify directory for the cups include files 1960 --with-freetype specify prefix directory for the freetype package 1961 (expecting the libraries under PATH/lib and the 1962 headers under PATH/include) 1963 --with-freetype-include specify directory for the freetype include files 1964 --with-freetype-lib specify directory for the freetype library 1965 --with-freetype-src specify directory with freetype sources to 1966 automatically build the library (experimental, 1967 Windows-only) 1968 --with-alsa specify prefix directory for the alsa package 1969 (expecting the libraries under PATH/lib and the 1970 headers under PATH/include) 1971 --with-alsa-include specify directory for the alsa include files 1972 --with-alsa-lib specify directory for the alsa library 1973 --with-libjpeg use libjpeg from build system or OpenJDK source 1974 (system, bundled) [bundled] 1975 --with-giflib use giflib from build system or OpenJDK source 1976 (system, bundled) [bundled] 1977 --with-lcms use lcms2 from build system or OpenJDK source 1978 (system, bundled) [bundled] 1979 --with-libpng use libpng from build system or OpenJDK source 1980 (system, bundled) [bundled] 1981 --with-zlib use zlib from build system or OpenJDK source 1982 (system, bundled) [bundled] 1983 --with-stdc++lib=<static>,<dynamic>,<default> 1984 force linking of the C++ runtime on Linux to either 1985 static or dynamic, default is static with dynamic as 1986 fallback 1987 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 1988 (Windows only) [probed] 1989 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 1990 (Windows only) [probed] 1991 --with-dxsdk Deprecated. Option is kept for backwards 1992 compatibility and is ignored 1993 --with-dxsdk-lib Deprecated. Option is kept for backwards 1994 compatibility and is ignored 1995 --with-dxsdk-include Deprecated. Option is kept for backwards 1996 compatibility and is ignored 1997 --with-num-cores number of cores in the build system, e.g. 1998 --with-num-cores=8 [probed] 1999 --with-memory-size memory (in MB) available in the build system, e.g. 2000 --with-memory-size=1024 [probed] 2001 --with-jobs number of parallel jobs to let make run [calculated 2002 based on cores and memory] 2003 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2004 invocations of boot JDK, overriding the default 2005 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2006 -enableassertions" 2007 --with-sjavac-server-java 2008 use this java binary for running the sjavac 2009 background server [Boot JDK java] 2010 --with-ccache-dir where to store ccache files [~/.ccache] 2011 2012 Some influential environment variables: 2013 BASENAME Override default value for BASENAME 2014 BASH Override default value for BASH 2015 CAT Override default value for CAT 2016 CHMOD Override default value for CHMOD 2017 CMP Override default value for CMP 2018 COMM Override default value for COMM 2019 CP Override default value for CP 2020 CUT Override default value for CUT 2021 DATE Override default value for DATE 2022 DIFF Override default value for DIFF 2023 DIRNAME Override default value for DIRNAME 2024 ECHO Override default value for ECHO 2025 EXPR Override default value for EXPR 2026 FILE Override default value for FILE 2027 FIND Override default value for FIND 2028 HEAD Override default value for HEAD 2029 LN Override default value for LN 2030 LS Override default value for LS 2031 MKDIR Override default value for MKDIR 2032 MKTEMP Override default value for MKTEMP 2033 MV Override default value for MV 2034 NAWK Override default value for NAWK 2035 PRINTF Override default value for PRINTF 2036 RM Override default value for RM 2037 SH Override default value for SH 2038 SORT Override default value for SORT 2039 TAIL Override default value for TAIL 2040 TAR Override default value for TAR 2041 TEE Override default value for TEE 2042 TOUCH Override default value for TOUCH 2043 TR Override default value for TR 2044 UNAME Override default value for UNAME 2045 UNIQ Override default value for UNIQ 2046 WC Override default value for WC 2047 WHICH Override default value for WHICH 2048 XARGS Override default value for XARGS 2049 AWK Override default value for AWK 2050 GREP Override default value for GREP 2051 EGREP Override default value for EGREP 2052 FGREP Override default value for FGREP 2053 SED Override default value for SED 2054 CYGPATH Override default value for CYGPATH 2055 READLINK Override default value for READLINK 2056 DF Override default value for DF 2057 SETFILE Override default value for SETFILE 2058 CPIO Override default value for CPIO 2059 UNZIP Override default value for UNZIP 2060 ZIP Override default value for ZIP 2061 LDD Override default value for LDD 2062 OTOOL Override default value for OTOOL 2063 READELF Override default value for READELF 2064 HG Override default value for HG 2065 STAT Override default value for STAT 2066 TIME Override default value for TIME 2067 DSYMUTIL Override default value for DSYMUTIL 2068 XATTR Override default value for XATTR 2069 CODESIGN Override default value for CODESIGN 2070 PKG_CONFIG path to pkg-config utility 2071 JAVA Override default value for JAVA 2072 JAVAC Override default value for JAVAC 2073 JAVAH Override default value for JAVAH 2074 JAR Override default value for JAR 2075 NATIVE2ASCII 2076 Override default value for NATIVE2ASCII 2077 JARSIGNER Override default value for JARSIGNER 2078 CC C compiler command 2079 CFLAGS C compiler flags 2080 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2081 nonstandard directory <lib dir> 2082 LIBS libraries to pass to the linker, e.g. -l<library> 2083 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2084 you have headers in a nonstandard directory <include dir> 2085 CXX C++ compiler command 2086 CXXFLAGS C++ compiler flags 2087 CPP C preprocessor 2088 CXXCPP C++ preprocessor 2089 AS Override default value for AS 2090 AR Override default value for AR 2091 LIPO Override default value for LIPO 2092 STRIP Override default value for STRIP 2093 NM Override default value for NM 2094 GNM Override default value for GNM 2095 MCS Override default value for MCS 2096 OBJCOPY Override default value for OBJCOPY 2097 OBJDUMP Override default value for OBJDUMP 2098 BUILD_CC Override default value for BUILD_CC 2099 BUILD_CXX Override default value for BUILD_CXX 2100 BUILD_LD Override default value for BUILD_LD 2101 JTREGEXE Override default value for JTREGEXE 2102 XMKMF Path to xmkmf, Makefile generator for X Window System 2103 FREETYPE_CFLAGS 2104 C compiler flags for FREETYPE, overriding pkg-config 2105 FREETYPE_LIBS 2106 linker flags for FREETYPE, overriding pkg-config 2107 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2108 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2109 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2110 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2111 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2112 PNG_LIBS linker flags for PNG, overriding pkg-config 2113 LIBFFI_CFLAGS 2114 C compiler flags for LIBFFI, overriding pkg-config 2115 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2116 CCACHE Override default value for CCACHE 2117 2118 Use these variables to override the choices made by `configure' or to help 2119 it to find libraries and programs with nonstandard names/locations. 2120 2121 Report bugs to <build-dev@openjdk.java.net>. 2122 OpenJDK home page: <http://openjdk.java.net>. 2123 _ACEOF 2124 ac_status=$? 2125 fi 2126 2127 if test "$ac_init_help" = "recursive"; then 2128 # If there are subdirs, report their specific --help. 2129 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2130 test -d "$ac_dir" || 2131 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2132 continue 2133 ac_builddir=. 2134 2135 case "$ac_dir" in 2136 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2137 *) 2138 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2139 # A ".." for each directory in $ac_dir_suffix. 2140 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2141 case $ac_top_builddir_sub in 2142 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2143 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2144 esac ;; 2145 esac 2146 ac_abs_top_builddir=$ac_pwd 2147 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2148 # for backward compatibility: 2149 ac_top_builddir=$ac_top_build_prefix 2150 2151 case $srcdir in 2152 .) # We are building in place. 2153 ac_srcdir=. 2154 ac_top_srcdir=$ac_top_builddir_sub 2155 ac_abs_top_srcdir=$ac_pwd ;; 2156 [\\/]* | ?:[\\/]* ) # Absolute name. 2157 ac_srcdir=$srcdir$ac_dir_suffix; 2158 ac_top_srcdir=$srcdir 2159 ac_abs_top_srcdir=$srcdir ;; 2160 *) # Relative name. 2161 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2162 ac_top_srcdir=$ac_top_build_prefix$srcdir 2163 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2164 esac 2165 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2166 2167 cd "$ac_dir" || { ac_status=$?; continue; } 2168 # Check for guested configure. 2169 if test -f "$ac_srcdir/configure.gnu"; then 2170 echo && 2171 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2172 elif test -f "$ac_srcdir/configure"; then 2173 echo && 2174 $SHELL "$ac_srcdir/configure" --help=recursive 2175 else 2176 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2177 fi || ac_status=$? 2178 cd "$ac_pwd" || { ac_status=$?; break; } 2179 done 2180 fi 2181 2182 test -n "$ac_init_help" && exit $ac_status 2183 if $ac_init_version; then 2184 cat <<\_ACEOF 2185 OpenJDK configure jdk9 2186 generated by GNU Autoconf 2.69 2187 2188 Copyright (C) 2012 Free Software Foundation, Inc. 2189 This configure script is free software; the Free Software Foundation 2190 gives unlimited permission to copy, distribute and modify it. 2191 _ACEOF 2192 exit 2193 fi 2194 2195 ## ------------------------ ## 2196 ## Autoconf initialization. ## 2197 ## ------------------------ ## 2198 2199 # ac_fn_c_try_compile LINENO 2200 # -------------------------- 2201 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2202 ac_fn_c_try_compile () 2203 { 2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2205 rm -f conftest.$ac_objext 2206 if { { ac_try="$ac_compile" 2207 case "(($ac_try" in 2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2209 *) ac_try_echo=$ac_try;; 2210 esac 2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2212 $as_echo "$ac_try_echo"; } >&5 2213 (eval "$ac_compile") 2>conftest.err 2214 ac_status=$? 2215 if test -s conftest.err; then 2216 grep -v '^ *+' conftest.err >conftest.er1 2217 cat conftest.er1 >&5 2218 mv -f conftest.er1 conftest.err 2219 fi 2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2221 test $ac_status = 0; } && { 2222 test -z "$ac_c_werror_flag" || 2223 test ! -s conftest.err 2224 } && test -s conftest.$ac_objext; then : 2225 ac_retval=0 2226 else 2227 $as_echo "$as_me: failed program was:" >&5 2228 sed 's/^/| /' conftest.$ac_ext >&5 2229 2230 ac_retval=1 2231 fi 2232 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2233 as_fn_set_status $ac_retval 2234 2235 } # ac_fn_c_try_compile 2236 2237 # ac_fn_cxx_try_compile LINENO 2238 # ---------------------------- 2239 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2240 ac_fn_cxx_try_compile () 2241 { 2242 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2243 rm -f conftest.$ac_objext 2244 if { { ac_try="$ac_compile" 2245 case "(($ac_try" in 2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2247 *) ac_try_echo=$ac_try;; 2248 esac 2249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2250 $as_echo "$ac_try_echo"; } >&5 2251 (eval "$ac_compile") 2>conftest.err 2252 ac_status=$? 2253 if test -s conftest.err; then 2254 grep -v '^ *+' conftest.err >conftest.er1 2255 cat conftest.er1 >&5 2256 mv -f conftest.er1 conftest.err 2257 fi 2258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2259 test $ac_status = 0; } && { 2260 test -z "$ac_cxx_werror_flag" || 2261 test ! -s conftest.err 2262 } && test -s conftest.$ac_objext; then : 2263 ac_retval=0 2264 else 2265 $as_echo "$as_me: failed program was:" >&5 2266 sed 's/^/| /' conftest.$ac_ext >&5 2267 2268 ac_retval=1 2269 fi 2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2271 as_fn_set_status $ac_retval 2272 2273 } # ac_fn_cxx_try_compile 2274 2275 # ac_fn_c_try_cpp LINENO 2276 # ---------------------- 2277 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2278 ac_fn_c_try_cpp () 2279 { 2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2281 if { { ac_try="$ac_cpp conftest.$ac_ext" 2282 case "(($ac_try" in 2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2284 *) ac_try_echo=$ac_try;; 2285 esac 2286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2287 $as_echo "$ac_try_echo"; } >&5 2288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2289 ac_status=$? 2290 if test -s conftest.err; then 2291 grep -v '^ *+' conftest.err >conftest.er1 2292 cat conftest.er1 >&5 2293 mv -f conftest.er1 conftest.err 2294 fi 2295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2296 test $ac_status = 0; } > conftest.i && { 2297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2298 test ! -s conftest.err 2299 }; then : 2300 ac_retval=0 2301 else 2302 $as_echo "$as_me: failed program was:" >&5 2303 sed 's/^/| /' conftest.$ac_ext >&5 2304 2305 ac_retval=1 2306 fi 2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2308 as_fn_set_status $ac_retval 2309 2310 } # ac_fn_c_try_cpp 2311 2312 # ac_fn_cxx_try_cpp LINENO 2313 # ------------------------ 2314 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2315 ac_fn_cxx_try_cpp () 2316 { 2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2318 if { { ac_try="$ac_cpp conftest.$ac_ext" 2319 case "(($ac_try" in 2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2321 *) ac_try_echo=$ac_try;; 2322 esac 2323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2324 $as_echo "$ac_try_echo"; } >&5 2325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2326 ac_status=$? 2327 if test -s conftest.err; then 2328 grep -v '^ *+' conftest.err >conftest.er1 2329 cat conftest.er1 >&5 2330 mv -f conftest.er1 conftest.err 2331 fi 2332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2333 test $ac_status = 0; } > conftest.i && { 2334 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2335 test ! -s conftest.err 2336 }; then : 2337 ac_retval=0 2338 else 2339 $as_echo "$as_me: failed program was:" >&5 2340 sed 's/^/| /' conftest.$ac_ext >&5 2341 2342 ac_retval=1 2343 fi 2344 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2345 as_fn_set_status $ac_retval 2346 2347 } # ac_fn_cxx_try_cpp 2348 2349 # ac_fn_c_try_link LINENO 2350 # ----------------------- 2351 # Try to link conftest.$ac_ext, and return whether this succeeded. 2352 ac_fn_c_try_link () 2353 { 2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2355 rm -f conftest.$ac_objext conftest$ac_exeext 2356 if { { ac_try="$ac_link" 2357 case "(($ac_try" in 2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2359 *) ac_try_echo=$ac_try;; 2360 esac 2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2362 $as_echo "$ac_try_echo"; } >&5 2363 (eval "$ac_link") 2>conftest.err 2364 ac_status=$? 2365 if test -s conftest.err; then 2366 grep -v '^ *+' conftest.err >conftest.er1 2367 cat conftest.er1 >&5 2368 mv -f conftest.er1 conftest.err 2369 fi 2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2371 test $ac_status = 0; } && { 2372 test -z "$ac_c_werror_flag" || 2373 test ! -s conftest.err 2374 } && test -s conftest$ac_exeext && { 2375 test "$cross_compiling" = yes || 2376 test -x conftest$ac_exeext 2377 }; then : 2378 ac_retval=0 2379 else 2380 $as_echo "$as_me: failed program was:" >&5 2381 sed 's/^/| /' conftest.$ac_ext >&5 2382 2383 ac_retval=1 2384 fi 2385 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2386 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2387 # interfere with the next link command; also delete a directory that is 2388 # left behind by Apple's compiler. We do this before executing the actions. 2389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2391 as_fn_set_status $ac_retval 2392 2393 } # ac_fn_c_try_link 2394 2395 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2396 # --------------------------------------------------------- 2397 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2398 # the include files in INCLUDES and setting the cache variable VAR 2399 # accordingly. 2400 ac_fn_cxx_check_header_mongrel () 2401 { 2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2403 if eval \${$3+:} false; then : 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2405 $as_echo_n "checking for $2... " >&6; } 2406 if eval \${$3+:} false; then : 2407 $as_echo_n "(cached) " >&6 2408 fi 2409 eval ac_res=\$$3 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2411 $as_echo "$ac_res" >&6; } 2412 else 2413 # Is the header compilable? 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2415 $as_echo_n "checking $2 usability... " >&6; } 2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2417 /* end confdefs.h. */ 2418 $4 2419 #include <$2> 2420 _ACEOF 2421 if ac_fn_cxx_try_compile "$LINENO"; then : 2422 ac_header_compiler=yes 2423 else 2424 ac_header_compiler=no 2425 fi 2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2428 $as_echo "$ac_header_compiler" >&6; } 2429 2430 # Is the header present? 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2432 $as_echo_n "checking $2 presence... " >&6; } 2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2434 /* end confdefs.h. */ 2435 #include <$2> 2436 _ACEOF 2437 if ac_fn_cxx_try_cpp "$LINENO"; then : 2438 ac_header_preproc=yes 2439 else 2440 ac_header_preproc=no 2441 fi 2442 rm -f conftest.err conftest.i conftest.$ac_ext 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2444 $as_echo "$ac_header_preproc" >&6; } 2445 2446 # So? What about this header? 2447 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2448 yes:no: ) 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2450 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2452 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2453 ;; 2454 no:yes:* ) 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2456 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2458 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2460 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2462 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2464 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2465 ( $as_echo "## ----------------------------------------- ## 2466 ## Report this to build-dev@openjdk.java.net ## 2467 ## ----------------------------------------- ##" 2468 ) | sed "s/^/$as_me: WARNING: /" >&2 2469 ;; 2470 esac 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2472 $as_echo_n "checking for $2... " >&6; } 2473 if eval \${$3+:} false; then : 2474 $as_echo_n "(cached) " >&6 2475 else 2476 eval "$3=\$ac_header_compiler" 2477 fi 2478 eval ac_res=\$$3 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2480 $as_echo "$ac_res" >&6; } 2481 fi 2482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2483 2484 } # ac_fn_cxx_check_header_mongrel 2485 2486 # ac_fn_cxx_try_run LINENO 2487 # ------------------------ 2488 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2489 # that executables *can* be run. 2490 ac_fn_cxx_try_run () 2491 { 2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2493 if { { ac_try="$ac_link" 2494 case "(($ac_try" in 2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2496 *) ac_try_echo=$ac_try;; 2497 esac 2498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2499 $as_echo "$ac_try_echo"; } >&5 2500 (eval "$ac_link") 2>&5 2501 ac_status=$? 2502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2503 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2504 { { case "(($ac_try" in 2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2506 *) ac_try_echo=$ac_try;; 2507 esac 2508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2509 $as_echo "$ac_try_echo"; } >&5 2510 (eval "$ac_try") 2>&5 2511 ac_status=$? 2512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2513 test $ac_status = 0; }; }; then : 2514 ac_retval=0 2515 else 2516 $as_echo "$as_me: program exited with status $ac_status" >&5 2517 $as_echo "$as_me: failed program was:" >&5 2518 sed 's/^/| /' conftest.$ac_ext >&5 2519 2520 ac_retval=$ac_status 2521 fi 2522 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2524 as_fn_set_status $ac_retval 2525 2526 } # ac_fn_cxx_try_run 2527 2528 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2529 # --------------------------------------------------------- 2530 # Tests whether HEADER exists and can be compiled using the include files in 2531 # INCLUDES, setting the cache variable VAR accordingly. 2532 ac_fn_cxx_check_header_compile () 2533 { 2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2536 $as_echo_n "checking for $2... " >&6; } 2537 if eval \${$3+:} false; then : 2538 $as_echo_n "(cached) " >&6 2539 else 2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2541 /* end confdefs.h. */ 2542 $4 2543 #include <$2> 2544 _ACEOF 2545 if ac_fn_cxx_try_compile "$LINENO"; then : 2546 eval "$3=yes" 2547 else 2548 eval "$3=no" 2549 fi 2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2551 fi 2552 eval ac_res=\$$3 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2554 $as_echo "$ac_res" >&6; } 2555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2556 2557 } # ac_fn_cxx_check_header_compile 2558 2559 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2560 # ---------------------------------------------- 2561 # Tries to find the compile-time value of EXPR in a program that includes 2562 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2563 # computed 2564 ac_fn_cxx_compute_int () 2565 { 2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2567 if test "$cross_compiling" = yes; then 2568 # Depending upon the size, compute the lo and hi bounds. 2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2570 /* end confdefs.h. */ 2571 $4 2572 int 2573 main () 2574 { 2575 static int test_array [1 - 2 * !(($2) >= 0)]; 2576 test_array [0] = 0; 2577 return test_array [0]; 2578 2579 ; 2580 return 0; 2581 } 2582 _ACEOF 2583 if ac_fn_cxx_try_compile "$LINENO"; then : 2584 ac_lo=0 ac_mid=0 2585 while :; do 2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2587 /* end confdefs.h. */ 2588 $4 2589 int 2590 main () 2591 { 2592 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2593 test_array [0] = 0; 2594 return test_array [0]; 2595 2596 ; 2597 return 0; 2598 } 2599 _ACEOF 2600 if ac_fn_cxx_try_compile "$LINENO"; then : 2601 ac_hi=$ac_mid; break 2602 else 2603 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2604 if test $ac_lo -le $ac_mid; then 2605 ac_lo= ac_hi= 2606 break 2607 fi 2608 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2609 fi 2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2611 done 2612 else 2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2614 /* end confdefs.h. */ 2615 $4 2616 int 2617 main () 2618 { 2619 static int test_array [1 - 2 * !(($2) < 0)]; 2620 test_array [0] = 0; 2621 return test_array [0]; 2622 2623 ; 2624 return 0; 2625 } 2626 _ACEOF 2627 if ac_fn_cxx_try_compile "$LINENO"; then : 2628 ac_hi=-1 ac_mid=-1 2629 while :; do 2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2631 /* end confdefs.h. */ 2632 $4 2633 int 2634 main () 2635 { 2636 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2637 test_array [0] = 0; 2638 return test_array [0]; 2639 2640 ; 2641 return 0; 2642 } 2643 _ACEOF 2644 if ac_fn_cxx_try_compile "$LINENO"; then : 2645 ac_lo=$ac_mid; break 2646 else 2647 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2648 if test $ac_mid -le $ac_hi; then 2649 ac_lo= ac_hi= 2650 break 2651 fi 2652 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2653 fi 2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2655 done 2656 else 2657 ac_lo= ac_hi= 2658 fi 2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2660 fi 2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2662 # Binary search between lo and hi bounds. 2663 while test "x$ac_lo" != "x$ac_hi"; do 2664 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2666 /* end confdefs.h. */ 2667 $4 2668 int 2669 main () 2670 { 2671 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2672 test_array [0] = 0; 2673 return test_array [0]; 2674 2675 ; 2676 return 0; 2677 } 2678 _ACEOF 2679 if ac_fn_cxx_try_compile "$LINENO"; then : 2680 ac_hi=$ac_mid 2681 else 2682 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2683 fi 2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2685 done 2686 case $ac_lo in #(( 2687 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2688 '') ac_retval=1 ;; 2689 esac 2690 else 2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2692 /* end confdefs.h. */ 2693 $4 2694 static long int longval () { return $2; } 2695 static unsigned long int ulongval () { return $2; } 2696 #include <stdio.h> 2697 #include <stdlib.h> 2698 int 2699 main () 2700 { 2701 2702 FILE *f = fopen ("conftest.val", "w"); 2703 if (! f) 2704 return 1; 2705 if (($2) < 0) 2706 { 2707 long int i = longval (); 2708 if (i != ($2)) 2709 return 1; 2710 fprintf (f, "%ld", i); 2711 } 2712 else 2713 { 2714 unsigned long int i = ulongval (); 2715 if (i != ($2)) 2716 return 1; 2717 fprintf (f, "%lu", i); 2718 } 2719 /* Do not output a trailing newline, as this causes \r\n confusion 2720 on some platforms. */ 2721 return ferror (f) || fclose (f) != 0; 2722 2723 ; 2724 return 0; 2725 } 2726 _ACEOF 2727 if ac_fn_cxx_try_run "$LINENO"; then : 2728 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2729 else 2730 ac_retval=1 2731 fi 2732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2733 conftest.$ac_objext conftest.beam conftest.$ac_ext 2734 rm -f conftest.val 2735 2736 fi 2737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2738 as_fn_set_status $ac_retval 2739 2740 } # ac_fn_cxx_compute_int 2741 2742 # ac_fn_cxx_try_link LINENO 2743 # ------------------------- 2744 # Try to link conftest.$ac_ext, and return whether this succeeded. 2745 ac_fn_cxx_try_link () 2746 { 2747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2748 rm -f conftest.$ac_objext conftest$ac_exeext 2749 if { { ac_try="$ac_link" 2750 case "(($ac_try" in 2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2752 *) ac_try_echo=$ac_try;; 2753 esac 2754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2755 $as_echo "$ac_try_echo"; } >&5 2756 (eval "$ac_link") 2>conftest.err 2757 ac_status=$? 2758 if test -s conftest.err; then 2759 grep -v '^ *+' conftest.err >conftest.er1 2760 cat conftest.er1 >&5 2761 mv -f conftest.er1 conftest.err 2762 fi 2763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2764 test $ac_status = 0; } && { 2765 test -z "$ac_cxx_werror_flag" || 2766 test ! -s conftest.err 2767 } && test -s conftest$ac_exeext && { 2768 test "$cross_compiling" = yes || 2769 test -x conftest$ac_exeext 2770 }; then : 2771 ac_retval=0 2772 else 2773 $as_echo "$as_me: failed program was:" >&5 2774 sed 's/^/| /' conftest.$ac_ext >&5 2775 2776 ac_retval=1 2777 fi 2778 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2779 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2780 # interfere with the next link command; also delete a directory that is 2781 # left behind by Apple's compiler. We do this before executing the actions. 2782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2784 as_fn_set_status $ac_retval 2785 2786 } # ac_fn_cxx_try_link 2787 2788 # ac_fn_cxx_check_func LINENO FUNC VAR 2789 # ------------------------------------ 2790 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2791 ac_fn_cxx_check_func () 2792 { 2793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2795 $as_echo_n "checking for $2... " >&6; } 2796 if eval \${$3+:} false; then : 2797 $as_echo_n "(cached) " >&6 2798 else 2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2800 /* end confdefs.h. */ 2801 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2802 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2803 #define $2 innocuous_$2 2804 2805 /* System header to define __stub macros and hopefully few prototypes, 2806 which can conflict with char $2 (); below. 2807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2808 <limits.h> exists even on freestanding compilers. */ 2809 2810 #ifdef __STDC__ 2811 # include <limits.h> 2812 #else 2813 # include <assert.h> 2814 #endif 2815 2816 #undef $2 2817 2818 /* Override any GCC internal prototype to avoid an error. 2819 Use char because int might match the return type of a GCC 2820 builtin and then its argument prototype would still apply. */ 2821 #ifdef __cplusplus 2822 extern "C" 2823 #endif 2824 char $2 (); 2825 /* The GNU C library defines this for functions which it implements 2826 to always fail with ENOSYS. Some functions are actually named 2827 something starting with __ and the normal name is an alias. */ 2828 #if defined __stub_$2 || defined __stub___$2 2829 choke me 2830 #endif 2831 2832 int 2833 main () 2834 { 2835 return $2 (); 2836 ; 2837 return 0; 2838 } 2839 _ACEOF 2840 if ac_fn_cxx_try_link "$LINENO"; then : 2841 eval "$3=yes" 2842 else 2843 eval "$3=no" 2844 fi 2845 rm -f core conftest.err conftest.$ac_objext \ 2846 conftest$ac_exeext conftest.$ac_ext 2847 fi 2848 eval ac_res=\$$3 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2850 $as_echo "$ac_res" >&6; } 2851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2852 2853 } # ac_fn_cxx_check_func 2854 2855 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2856 # ------------------------------------------------------- 2857 # Tests whether HEADER exists and can be compiled using the include files in 2858 # INCLUDES, setting the cache variable VAR accordingly. 2859 ac_fn_c_check_header_compile () 2860 { 2861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2863 $as_echo_n "checking for $2... " >&6; } 2864 if eval \${$3+:} false; then : 2865 $as_echo_n "(cached) " >&6 2866 else 2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2868 /* end confdefs.h. */ 2869 $4 2870 #include <$2> 2871 _ACEOF 2872 if ac_fn_c_try_compile "$LINENO"; then : 2873 eval "$3=yes" 2874 else 2875 eval "$3=no" 2876 fi 2877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2878 fi 2879 eval ac_res=\$$3 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2881 $as_echo "$ac_res" >&6; } 2882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2883 2884 } # ac_fn_c_check_header_compile 2885 cat >config.log <<_ACEOF 2886 This file contains any messages produced by compilers while 2887 running configure, to aid debugging if configure makes a mistake. 2888 2889 It was created by OpenJDK $as_me jdk9, which was 2890 generated by GNU Autoconf 2.69. Invocation command line was 2891 2892 $ $0 $@ 2893 2894 _ACEOF 2895 exec 5>>config.log 2896 { 2897 cat <<_ASUNAME 2898 ## --------- ## 2899 ## Platform. ## 2900 ## --------- ## 2901 2902 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2903 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2904 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2905 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2906 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2907 2908 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2909 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2910 2911 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2912 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2913 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2914 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2915 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2916 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2917 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2918 2919 _ASUNAME 2920 2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2922 for as_dir in $PATH 2923 do 2924 IFS=$as_save_IFS 2925 test -z "$as_dir" && as_dir=. 2926 $as_echo "PATH: $as_dir" 2927 done 2928 IFS=$as_save_IFS 2929 2930 } >&5 2931 2932 cat >&5 <<_ACEOF 2933 2934 2935 ## ----------- ## 2936 ## Core tests. ## 2937 ## ----------- ## 2938 2939 _ACEOF 2940 2941 2942 # Keep a trace of the command line. 2943 # Strip out --no-create and --no-recursion so they do not pile up. 2944 # Strip out --silent because we don't want to record it for future runs. 2945 # Also quote any args containing shell meta-characters. 2946 # Make two passes to allow for proper duplicate-argument suppression. 2947 ac_configure_args= 2948 ac_configure_args0= 2949 ac_configure_args1= 2950 ac_must_keep_next=false 2951 for ac_pass in 1 2 2952 do 2953 for ac_arg 2954 do 2955 case $ac_arg in 2956 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2958 | -silent | --silent | --silen | --sile | --sil) 2959 continue ;; 2960 *\'*) 2961 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2962 esac 2963 case $ac_pass in 2964 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2965 2) 2966 as_fn_append ac_configure_args1 " '$ac_arg'" 2967 if test $ac_must_keep_next = true; then 2968 ac_must_keep_next=false # Got value, back to normal. 2969 else 2970 case $ac_arg in 2971 *=* | --config-cache | -C | -disable-* | --disable-* \ 2972 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2973 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2974 | -with-* | --with-* | -without-* | --without-* | --x) 2975 case "$ac_configure_args0 " in 2976 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2977 esac 2978 ;; 2979 -* ) ac_must_keep_next=true ;; 2980 esac 2981 fi 2982 as_fn_append ac_configure_args " '$ac_arg'" 2983 ;; 2984 esac 2985 done 2986 done 2987 { ac_configure_args0=; unset ac_configure_args0;} 2988 { ac_configure_args1=; unset ac_configure_args1;} 2989 2990 # When interrupted or exit'd, cleanup temporary files, and complete 2991 # config.log. We remove comments because anyway the quotes in there 2992 # would cause problems or look ugly. 2993 # WARNING: Use '\'' to represent an apostrophe within the trap. 2994 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2995 trap 'exit_status=$? 2996 # Save into config.log some information that might help in debugging. 2997 { 2998 echo 2999 3000 $as_echo "## ---------------- ## 3001 ## Cache variables. ## 3002 ## ---------------- ##" 3003 echo 3004 # The following way of writing the cache mishandles newlines in values, 3005 ( 3006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3007 eval ac_val=\$$ac_var 3008 case $ac_val in #( 3009 *${as_nl}*) 3010 case $ac_var in #( 3011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3013 esac 3014 case $ac_var in #( 3015 _ | IFS | as_nl) ;; #( 3016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3017 *) { eval $ac_var=; unset $ac_var;} ;; 3018 esac ;; 3019 esac 3020 done 3021 (set) 2>&1 | 3022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3023 *${as_nl}ac_space=\ *) 3024 sed -n \ 3025 "s/'\''/'\''\\\\'\'''\''/g; 3026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3027 ;; #( 3028 *) 3029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3030 ;; 3031 esac | 3032 sort 3033 ) 3034 echo 3035 3036 $as_echo "## ----------------- ## 3037 ## Output variables. ## 3038 ## ----------------- ##" 3039 echo 3040 for ac_var in $ac_subst_vars 3041 do 3042 eval ac_val=\$$ac_var 3043 case $ac_val in 3044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3045 esac 3046 $as_echo "$ac_var='\''$ac_val'\''" 3047 done | sort 3048 echo 3049 3050 if test -n "$ac_subst_files"; then 3051 $as_echo "## ------------------- ## 3052 ## File substitutions. ## 3053 ## ------------------- ##" 3054 echo 3055 for ac_var in $ac_subst_files 3056 do 3057 eval ac_val=\$$ac_var 3058 case $ac_val in 3059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3060 esac 3061 $as_echo "$ac_var='\''$ac_val'\''" 3062 done | sort 3063 echo 3064 fi 3065 3066 if test -s confdefs.h; then 3067 $as_echo "## ----------- ## 3068 ## confdefs.h. ## 3069 ## ----------- ##" 3070 echo 3071 cat confdefs.h 3072 echo 3073 fi 3074 test "$ac_signal" != 0 && 3075 $as_echo "$as_me: caught signal $ac_signal" 3076 $as_echo "$as_me: exit $exit_status" 3077 } >&5 3078 rm -f core *.core core.conftest.* && 3079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3080 exit $exit_status 3081 ' 0 3082 for ac_signal in 1 2 13 15; do 3083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3084 done 3085 ac_signal=0 3086 3087 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3088 rm -f -r conftest* confdefs.h 3089 3090 $as_echo "/* confdefs.h */" > confdefs.h 3091 3092 # Predefined preprocessor variables. 3093 3094 cat >>confdefs.h <<_ACEOF 3095 #define PACKAGE_NAME "$PACKAGE_NAME" 3096 _ACEOF 3097 3098 cat >>confdefs.h <<_ACEOF 3099 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3100 _ACEOF 3101 3102 cat >>confdefs.h <<_ACEOF 3103 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3104 _ACEOF 3105 3106 cat >>confdefs.h <<_ACEOF 3107 #define PACKAGE_STRING "$PACKAGE_STRING" 3108 _ACEOF 3109 3110 cat >>confdefs.h <<_ACEOF 3111 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3112 _ACEOF 3113 3114 cat >>confdefs.h <<_ACEOF 3115 #define PACKAGE_URL "$PACKAGE_URL" 3116 _ACEOF 3117 3118 3119 # Let the site file select an alternate cache file if it wants to. 3120 # Prefer an explicitly selected file to automatically selected ones. 3121 ac_site_file1=NONE 3122 ac_site_file2=NONE 3123 if test -n "$CONFIG_SITE"; then 3124 # We do not want a PATH search for config.site. 3125 case $CONFIG_SITE in #(( 3126 -*) ac_site_file1=./$CONFIG_SITE;; 3127 */*) ac_site_file1=$CONFIG_SITE;; 3128 *) ac_site_file1=./$CONFIG_SITE;; 3129 esac 3130 elif test "x$prefix" != xNONE; then 3131 ac_site_file1=$prefix/share/config.site 3132 ac_site_file2=$prefix/etc/config.site 3133 else 3134 ac_site_file1=$ac_default_prefix/share/config.site 3135 ac_site_file2=$ac_default_prefix/etc/config.site 3136 fi 3137 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3138 do 3139 test "x$ac_site_file" = xNONE && continue 3140 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3142 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3143 sed 's/^/| /' "$ac_site_file" >&5 3144 . "$ac_site_file" \ 3145 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3147 as_fn_error $? "failed to load site script $ac_site_file 3148 See \`config.log' for more details" "$LINENO" 5; } 3149 fi 3150 done 3151 3152 if test -r "$cache_file"; then 3153 # Some versions of bash will fail to source /dev/null (special files 3154 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3155 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3157 $as_echo "$as_me: loading cache $cache_file" >&6;} 3158 case $cache_file in 3159 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3160 *) . "./$cache_file";; 3161 esac 3162 fi 3163 else 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3165 $as_echo "$as_me: creating cache $cache_file" >&6;} 3166 >$cache_file 3167 fi 3168 3169 # Check that the precious variables saved in the cache have kept the same 3170 # value. 3171 ac_cache_corrupted=false 3172 for ac_var in $ac_precious_vars; do 3173 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3174 eval ac_new_set=\$ac_env_${ac_var}_set 3175 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3176 eval ac_new_val=\$ac_env_${ac_var}_value 3177 case $ac_old_set,$ac_new_set in 3178 set,) 3179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3180 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3181 ac_cache_corrupted=: ;; 3182 ,set) 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3184 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3185 ac_cache_corrupted=: ;; 3186 ,);; 3187 *) 3188 if test "x$ac_old_val" != "x$ac_new_val"; then 3189 # differences in whitespace do not lead to failure. 3190 ac_old_val_w=`echo x $ac_old_val` 3191 ac_new_val_w=`echo x $ac_new_val` 3192 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3194 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3195 ac_cache_corrupted=: 3196 else 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3198 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3199 eval $ac_var=\$ac_old_val 3200 fi 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3202 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3204 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3205 fi;; 3206 esac 3207 # Pass precious variables to config.status. 3208 if test "$ac_new_set" = set; then 3209 case $ac_new_val in 3210 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3211 *) ac_arg=$ac_var=$ac_new_val ;; 3212 esac 3213 case " $ac_configure_args " in 3214 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3215 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3216 esac 3217 fi 3218 done 3219 if $ac_cache_corrupted; then 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3223 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3224 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3225 fi 3226 ## -------------------- ## 3227 ## Main body of script. ## 3228 ## -------------------- ## 3229 3230 ac_ext=c 3231 ac_cpp='$CPP $CPPFLAGS' 3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3235 3236 3237 3238 ac_aux_dir= 3239 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3240 if test -f "$ac_dir/install-sh"; then 3241 ac_aux_dir=$ac_dir 3242 ac_install_sh="$ac_aux_dir/install-sh -c" 3243 break 3244 elif test -f "$ac_dir/install.sh"; then 3245 ac_aux_dir=$ac_dir 3246 ac_install_sh="$ac_aux_dir/install.sh -c" 3247 break 3248 elif test -f "$ac_dir/shtool"; then 3249 ac_aux_dir=$ac_dir 3250 ac_install_sh="$ac_aux_dir/shtool install -c" 3251 break 3252 fi 3253 done 3254 if test -z "$ac_aux_dir"; then 3255 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 3256 fi 3257 3258 # These three variables are undocumented and unsupported, 3259 # and are intended to be withdrawn in a future Autoconf release. 3260 # They can cause serious problems if a builder's source tree is in a directory 3261 # whose full name contains unusual characters. 3262 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3263 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3264 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3265 3266 3267 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3268 3269 # 3270 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3271 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3272 # 3273 # This code is free software; you can redistribute it and/or modify it 3274 # under the terms of the GNU General Public License version 2 only, as 3275 # published by the Free Software Foundation. Oracle designates this 3276 # particular file as subject to the "Classpath" exception as provided 3277 # by Oracle in the LICENSE file that accompanied this code. 3278 # 3279 # This code is distributed in the hope that it will be useful, but WITHOUT 3280 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3281 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3282 # version 2 for more details (a copy is included in the LICENSE file that 3283 # accompanied this code). 3284 # 3285 # You should have received a copy of the GNU General Public License version 3286 # 2 along with this work; if not, write to the Free Software Foundation, 3287 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3288 # 3289 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3290 # or visit www.oracle.com if you need additional information or have any 3291 # questions. 3292 # 3293 3294 # 3295 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3296 # 3297 # This program is free software; you can redistribute it and/or modify 3298 # it under the terms of the GNU General Public License as published by 3299 # the Free Software Foundation; either version 2 of the License, or 3300 # (at your option) any later version. 3301 # 3302 # This program is distributed in the hope that it will be useful, but 3303 # WITHOUT ANY WARRANTY; without even the implied warranty of 3304 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3305 # General Public License for more details. 3306 # 3307 # You should have received a copy of the GNU General Public License 3308 # along with this program; if not, write to the Free Software 3309 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3310 # 3311 # As a special exception to the GNU General Public License, if you 3312 # distribute this file as part of a program that contains a 3313 # configuration script generated by Autoconf, you may include it under 3314 # the same distribution terms that you use for the rest of that program. 3315 3316 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3317 # ---------------------------------- 3318 # PKG_PROG_PKG_CONFIG 3319 3320 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3321 # 3322 # Check to see whether a particular set of modules exists. Similar 3323 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3324 # 3325 # 3326 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3327 # this or PKG_CHECK_MODULES is called, or make sure to call 3328 # PKG_CHECK_EXISTS manually 3329 # -------------------------------------------------------------- 3330 3331 3332 3333 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3334 # --------------------------------------------- 3335 # _PKG_CONFIG 3336 3337 # _PKG_SHORT_ERRORS_SUPPORTED 3338 # ----------------------------- 3339 # _PKG_SHORT_ERRORS_SUPPORTED 3340 3341 3342 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3343 # [ACTION-IF-NOT-FOUND]) 3344 # 3345 # 3346 # Note that if there is a possibility the first call to 3347 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3348 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3349 # 3350 # 3351 # -------------------------------------------------------------- 3352 # PKG_CHECK_MODULES 3353 3354 3355 # Include these first... 3356 # 3357 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3358 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3359 # 3360 # This code is free software; you can redistribute it and/or modify it 3361 # under the terms of the GNU General Public License version 2 only, as 3362 # published by the Free Software Foundation. Oracle designates this 3363 # particular file as subject to the "Classpath" exception as provided 3364 # by Oracle in the LICENSE file that accompanied this code. 3365 # 3366 # This code is distributed in the hope that it will be useful, but WITHOUT 3367 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3368 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3369 # version 2 for more details (a copy is included in the LICENSE file that 3370 # accompanied this code). 3371 # 3372 # You should have received a copy of the GNU General Public License version 3373 # 2 along with this work; if not, write to the Free Software Foundation, 3374 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3375 # 3376 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3377 # or visit www.oracle.com if you need additional information or have any 3378 # questions. 3379 # 3380 3381 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3382 # If so, then append $1 to $2 \ 3383 # Also set JVM_ARG_OK to true/false depending on outcome. 3384 3385 3386 # Appends a string to a path variable, only adding the : when needed. 3387 3388 3389 # Prepends a string to a path variable, only adding the : when needed. 3390 3391 3392 # This will make sure the given variable points to a full and proper 3393 # path. This means: 3394 # 1) There will be no spaces in the path. On unix platforms, 3395 # spaces in the path will result in an error. On Windows, 3396 # the path will be rewritten using short-style to be space-free. 3397 # 2) The path will be absolute, and it will be in unix-style (on 3398 # cygwin). 3399 # $1: The name of the variable to fix 3400 3401 3402 # This will make sure the given variable points to a executable 3403 # with a full and proper path. This means: 3404 # 1) There will be no spaces in the path. On unix platforms, 3405 # spaces in the path will result in an error. On Windows, 3406 # the path will be rewritten using short-style to be space-free. 3407 # 2) The path will be absolute, and it will be in unix-style (on 3408 # cygwin). 3409 # Any arguments given to the executable is preserved. 3410 # If the input variable does not have a directory specification, then 3411 # it need to be in the PATH. 3412 # $1: The name of the variable to fix 3413 3414 3415 3416 3417 # Register a --with argument but mark it as deprecated 3418 # $1: The name of the with argument to deprecate, not including --with- 3419 3420 3421 # Register a --enable argument but mark it as deprecated 3422 # $1: The name of the with argument to deprecate, not including --enable- 3423 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3424 3425 3426 3427 3428 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3429 # $1: variable to check 3430 3431 3432 # Check that there are no unprocessed overridden variables left. 3433 # If so, they are an incorrect argument and we will exit with an error. 3434 3435 3436 # Setup a tool for the given variable. If correctly specified by the user, 3437 # use that value, otherwise search for the tool using the supplied code snippet. 3438 # $1: variable to set 3439 # $2: code snippet to call to look for the tool 3440 3441 3442 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3443 # $1: variable to set 3444 # $2: executable name (or list of names) to look for 3445 3446 3447 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3448 # $1: variable to set 3449 # $2: executable name (or list of names) to look for 3450 3451 3452 # Like BASIC_PATH_PROGS but fails if no tool was found. 3453 # $1: variable to set 3454 # $2: executable name (or list of names) to look for 3455 3456 3457 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3458 # $1: variable to set 3459 # $2: autoconf macro to call to look for the special tool 3460 3461 3462 # Setup the most fundamental tools that relies on not much else to set up, 3463 # but is used by much of the early bootstrap code. 3464 3465 3466 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3467 3468 3469 3470 3471 3472 3473 #%%% Simple tools %%% 3474 3475 # Check if we have found a usable version of make 3476 # $1: the path to a potential make binary (or empty) 3477 # $2: the description on how we found this 3478 3479 3480 3481 3482 # Goes looking for a usable version of GNU make. 3483 3484 3485 3486 3487 3488 3489 # Check if build directory is on local disk. If not possible to determine, 3490 # we prefer to claim it's local. 3491 # Argument 1: directory to test 3492 # Argument 2: what to do if it is on local disk 3493 # Argument 3: what to do otherwise (remote disk or failure) 3494 3495 3496 # Check that source files have basic read permissions set. This might 3497 # not be the case in cygwin in certain conditions. 3498 3499 3500 3501 3502 # Check for support for specific options in bash 3503 3504 3505 # 3506 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3507 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3508 # 3509 # This code is free software; you can redistribute it and/or modify it 3510 # under the terms of the GNU General Public License version 2 only, as 3511 # published by the Free Software Foundation. Oracle designates this 3512 # particular file as subject to the "Classpath" exception as provided 3513 # by Oracle in the LICENSE file that accompanied this code. 3514 # 3515 # This code is distributed in the hope that it will be useful, but WITHOUT 3516 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3517 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3518 # version 2 for more details (a copy is included in the LICENSE file that 3519 # accompanied this code). 3520 # 3521 # You should have received a copy of the GNU General Public License version 3522 # 2 along with this work; if not, write to the Free Software Foundation, 3523 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3524 # 3525 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3526 # or visit www.oracle.com if you need additional information or have any 3527 # questions. 3528 # 3529 3530 3531 3532 3533 3534 # Helper function which possibly converts a path using DOS-style short mode. 3535 # If so, the updated path is stored in $new_path. 3536 # $1: The path to check 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 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3545 # and could probably be heavily simplified. However, all changes in this 3546 # area tend to need lot of testing in different scenarios, and in lack of 3547 # proper unit testing, cleaning this up has not been deemed worth the effort 3548 # at the moment. 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3559 3560 3561 3562 3563 # 3564 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3565 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3566 # 3567 # This code is free software; you can redistribute it and/or modify it 3568 # under the terms of the GNU General Public License version 2 only, as 3569 # published by the Free Software Foundation. Oracle designates this 3570 # particular file as subject to the "Classpath" exception as provided 3571 # by Oracle in the LICENSE file that accompanied this code. 3572 # 3573 # This code is distributed in the hope that it will be useful, but WITHOUT 3574 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3575 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3576 # version 2 for more details (a copy is included in the LICENSE file that 3577 # accompanied this code). 3578 # 3579 # You should have received a copy of the GNU General Public License version 3580 # 2 along with this work; if not, write to the Free Software Foundation, 3581 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3582 # 3583 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3584 # or visit www.oracle.com if you need additional information or have any 3585 # questions. 3586 # 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 # ... then the rest 3599 # 3600 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3601 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3602 # 3603 # This code is free software; you can redistribute it and/or modify it 3604 # under the terms of the GNU General Public License version 2 only, as 3605 # published by the Free Software Foundation. Oracle designates this 3606 # particular file as subject to the "Classpath" exception as provided 3607 # by Oracle in the LICENSE file that accompanied this code. 3608 # 3609 # This code is distributed in the hope that it will be useful, but WITHOUT 3610 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3611 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3612 # version 2 for more details (a copy is included in the LICENSE file that 3613 # accompanied this code). 3614 # 3615 # You should have received a copy of the GNU General Public License version 3616 # 2 along with this work; if not, write to the Free Software Foundation, 3617 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3618 # 3619 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3620 # or visit www.oracle.com if you need additional information or have any 3621 # questions. 3622 # 3623 3624 ######################################################################## 3625 # This file handles detection of the Boot JDK. The Boot JDK detection 3626 # process has been developed as a response to solve a complex real-world 3627 # problem. Initially, it was simple, but it has grown as platform after 3628 # platform, idiosyncracy after idiosyncracy has been supported. 3629 # 3630 # The basic idea is this: 3631 # 1) You need an acceptable *) JDK to use as a Boot JDK 3632 # 2) There are several ways to locate a JDK, that are mostly platform 3633 # dependent **) 3634 # 3) You can have multiple JDKs installed 3635 # 4) If possible, configure should try to dig out an acceptable JDK 3636 # automatically, without having to resort to command-line options 3637 # 3638 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3639 # javac) and not a JRE, etc. 3640 # 3641 # **) On Windows we typically use a well-known path. 3642 # On MacOSX we typically use the tool java_home. 3643 # On Linux we typically find javac in the $PATH, and then follow a 3644 # chain of symlinks that often ends up in a real JDK. 3645 # 3646 # This leads to the code where we check in different ways to locate a 3647 # JDK, and if one is found, check if it is acceptable. If not, we print 3648 # our reasons for rejecting it (useful when debugging non-working 3649 # configure situations) and continue checking the next one. 3650 ######################################################################## 3651 3652 # Execute the check given as argument, and verify the result 3653 # If the Boot JDK was previously found, do nothing 3654 # $1 A command line (typically autoconf macro) to execute 3655 3656 3657 # Test: Is bootjdk explicitely set by command line arguments? 3658 3659 3660 # Test: Is bootjdk available from builddeps? 3661 3662 3663 # Test: Is $JAVA_HOME set? 3664 3665 3666 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3667 3668 3669 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3670 # $1: Argument to the java_home binary (optional) 3671 3672 3673 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3674 3675 3676 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3677 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3678 # $1 = Path to directory containing jdk installations. 3679 # $2 = String to append to the found JDK directory to get the proper JDK home 3680 3681 3682 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3683 # environmental variable as base for where to look. 3684 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3685 3686 3687 # Test: Is there a JDK installed in default, well-known locations? 3688 3689 3690 # Check that a command-line tool in the Boot JDK is correct 3691 # $1 = name of variable to assign 3692 # $2 = name of binary 3693 3694 3695 ############################################################################### 3696 # 3697 # We need a Boot JDK to bootstrap the build. 3698 # 3699 3700 3701 3702 3703 3704 # 3705 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3706 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3707 # 3708 # This code is free software; you can redistribute it and/or modify it 3709 # under the terms of the GNU General Public License version 2 only, as 3710 # published by the Free Software Foundation. Oracle designates this 3711 # particular file as subject to the "Classpath" exception as provided 3712 # by Oracle in the LICENSE file that accompanied this code. 3713 # 3714 # This code is distributed in the hope that it will be useful, but WITHOUT 3715 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3716 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3717 # version 2 for more details (a copy is included in the LICENSE file that 3718 # accompanied this code). 3719 # 3720 # You should have received a copy of the GNU General Public License version 3721 # 2 along with this work; if not, write to the Free Software Foundation, 3722 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3723 # 3724 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3725 # or visit www.oracle.com if you need additional information or have any 3726 # questions. 3727 # 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 # 3749 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3750 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3751 # 3752 # This code is free software; you can redistribute it and/or modify it 3753 # under the terms of the GNU General Public License version 2 only, as 3754 # published by the Free Software Foundation. Oracle designates this 3755 # particular file as subject to the "Classpath" exception as provided 3756 # by Oracle in the LICENSE file that accompanied this code. 3757 # 3758 # This code is distributed in the hope that it will be useful, but WITHOUT 3759 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3760 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3761 # version 2 for more details (a copy is included in the LICENSE file that 3762 # accompanied this code). 3763 # 3764 # You should have received a copy of the GNU General Public License version 3765 # 2 along with this work; if not, write to the Free Software Foundation, 3766 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3767 # 3768 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3769 # or visit www.oracle.com if you need additional information or have any 3770 # questions. 3771 # 3772 3773 3774 3775 3776 3777 # Documentation on common flags used for solstudio in HIGHEST. 3778 # 3779 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3780 # done with care, there are some assumptions below that need to 3781 # be understood about the use of pointers, and IEEE behavior. 3782 # 3783 # -fns: Use non-standard floating point mode (not IEEE 754) 3784 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3785 # -fsingle: Use single precision floating point with 'float' 3786 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3787 # (Source with excessing pointer casting and data access with mixed 3788 # pointer types are not recommended) 3789 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3790 # (If you expect perfect errno behavior, do not use this) 3791 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3792 # -xrestrict: Pointer parameters to functions do not overlap 3793 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3794 # If you pass in multiple pointers to the same data, do not use this) 3795 # -xlibmil: Inline some library routines 3796 # (If you expect perfect errno behavior, do not use this) 3797 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3798 # (If you expect perfect errno behavior, do not use this) 3799 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3800 3801 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3802 # Bug? 3803 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3804 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3805 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3806 #fi 3807 3808 3809 3810 3811 3812 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3813 # [RUN-IF-FALSE]) 3814 # ------------------------------------------------------------ 3815 # Check that the c and c++ compilers support an argument 3816 3817 3818 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3819 # [RUN-IF-FALSE]) 3820 # ------------------------------------------------------------ 3821 # Check that the linker support an argument 3822 3823 3824 3825 3826 # 3827 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3828 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3829 # 3830 # This code is free software; you can redistribute it and/or modify it 3831 # under the terms of the GNU General Public License version 2 only, as 3832 # published by the Free Software Foundation. Oracle designates this 3833 # particular file as subject to the "Classpath" exception as provided 3834 # by Oracle in the LICENSE file that accompanied this code. 3835 # 3836 # This code is distributed in the hope that it will be useful, but WITHOUT 3837 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3838 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3839 # version 2 for more details (a copy is included in the LICENSE file that 3840 # accompanied this code). 3841 # 3842 # You should have received a copy of the GNU General Public License version 3843 # 2 along with this work; if not, write to the Free Software Foundation, 3844 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3845 # 3846 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3847 # or visit www.oracle.com if you need additional information or have any 3848 # questions. 3849 # 3850 3851 3852 3853 3854 3855 cygwin_help() { 3856 case $1 in 3857 unzip) 3858 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3859 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3860 ;; 3861 zip) 3862 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3863 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3864 ;; 3865 make) 3866 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3867 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3868 ;; 3869 freetype) 3870 HELP_MSG=" 3871 The freetype library can now be build during the configure process. 3872 Download the freetype sources and unpack them into an arbitrary directory: 3873 3874 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3875 tar -xzf freetype-2.5.3.tar.gz 3876 3877 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3878 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3879 builds or into '<freetype_src>/lib32' for 32-bit builds. 3880 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3881 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3882 ;; 3883 esac 3884 } 3885 3886 msys_help() { 3887 PKGHANDLER_COMMAND="" 3888 } 3889 3890 apt_help() { 3891 case $1 in 3892 devkit) 3893 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3894 openjdk) 3895 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3896 alsa) 3897 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3898 cups) 3899 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3900 freetype) 3901 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3902 pulse) 3903 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3904 x11) 3905 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3906 ccache) 3907 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3908 esac 3909 } 3910 3911 yum_help() { 3912 case $1 in 3913 devkit) 3914 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3915 openjdk) 3916 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3917 alsa) 3918 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3919 cups) 3920 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3921 freetype) 3922 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3923 pulse) 3924 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3925 x11) 3926 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 3927 ccache) 3928 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3929 esac 3930 } 3931 3932 port_help() { 3933 PKGHANDLER_COMMAND="" 3934 } 3935 3936 pkgutil_help() { 3937 PKGHANDLER_COMMAND="" 3938 } 3939 3940 pkgadd_help() { 3941 PKGHANDLER_COMMAND="" 3942 } 3943 3944 # This function will check if we're called from the "configure" wrapper while 3945 # printing --help. If so, we will print out additional information that can 3946 # only be extracted within the autoconf script, and then exit. This must be 3947 # called at the very beginning in configure.ac. 3948 3949 3950 3951 3952 3953 3954 # 3955 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3956 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3957 # 3958 # This code is free software; you can redistribute it and/or modify it 3959 # under the terms of the GNU General Public License version 2 only, as 3960 # published by the Free Software Foundation. Oracle designates this 3961 # particular file as subject to the "Classpath" exception as provided 3962 # by Oracle in the LICENSE file that accompanied this code. 3963 # 3964 # This code is distributed in the hope that it will be useful, but WITHOUT 3965 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3966 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3967 # version 2 for more details (a copy is included in the LICENSE file that 3968 # accompanied this code). 3969 # 3970 # You should have received a copy of the GNU General Public License version 3971 # 2 along with this work; if not, write to the Free Software Foundation, 3972 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3973 # 3974 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3975 # or visit www.oracle.com if you need additional information or have any 3976 # questions. 3977 # 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 ############################################################################### 3989 # 3990 # Should we build only OpenJDK even if closed sources are present? 3991 # 3992 3993 3994 3995 3996 ############################################################################### 3997 # 3998 # Setup version numbers 3999 # 4000 4001 4002 4003 4004 4005 4006 ################################################################################ 4007 # 4008 # Gcov coverage data for hotspot 4009 # 4010 4011 4012 # 4013 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4014 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4015 # 4016 # This code is free software; you can redistribute it and/or modify it 4017 # under the terms of the GNU General Public License version 2 only, as 4018 # published by the Free Software Foundation. Oracle designates this 4019 # particular file as subject to the "Classpath" exception as provided 4020 # by Oracle in the LICENSE file that accompanied this code. 4021 # 4022 # This code is distributed in the hope that it will be useful, but WITHOUT 4023 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4024 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4025 # version 2 for more details (a copy is included in the LICENSE file that 4026 # accompanied this code). 4027 # 4028 # You should have received a copy of the GNU General Public License version 4029 # 2 along with this work; if not, write to the Free Software Foundation, 4030 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4031 # 4032 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4033 # or visit www.oracle.com if you need additional information or have any 4034 # questions. 4035 # 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 # 4058 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4059 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4060 # 4061 # This code is free software; you can redistribute it and/or modify it 4062 # under the terms of the GNU General Public License version 2 only, as 4063 # published by the Free Software Foundation. Oracle designates this 4064 # particular file as subject to the "Classpath" exception as provided 4065 # by Oracle in the LICENSE file that accompanied this code. 4066 # 4067 # This code is distributed in the hope that it will be useful, but WITHOUT 4068 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4069 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4070 # version 2 for more details (a copy is included in the LICENSE file that 4071 # accompanied this code). 4072 # 4073 # You should have received a copy of the GNU General Public License version 4074 # 2 along with this work; if not, write to the Free Software Foundation, 4075 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4076 # 4077 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4078 # or visit www.oracle.com if you need additional information or have any 4079 # questions. 4080 # 4081 4082 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4083 # Converts autoconf style CPU name to OpenJDK style, into 4084 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4085 4086 4087 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4088 # Converts autoconf style OS name to OpenJDK style, into 4089 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4090 4091 4092 # Expects $host_os $host_cpu $build_os and $build_cpu 4093 # and $with_target_bits to have been setup! 4094 # 4095 # Translate the standard triplet(quadruplet) definition 4096 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4097 # OPENJDK_BUILD_OS, etc. 4098 4099 4100 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4101 # accordingly. Must be done after setting up build and target system, but before 4102 # doing anything else with these values. 4103 4104 4105 # Setup the legacy variables, for controlling the old makefiles. 4106 # 4107 4108 4109 4110 4111 #%%% Build and target systems %%% 4112 4113 4114 4115 4116 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4117 # Add -mX to various FLAGS variables. 4118 4119 4120 4121 4122 4123 4124 # 4125 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4126 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4127 # 4128 # This code is free software; you can redistribute it and/or modify it 4129 # under the terms of the GNU General Public License version 2 only, as 4130 # published by the Free Software Foundation. Oracle designates this 4131 # particular file as subject to the "Classpath" exception as provided 4132 # by Oracle in the LICENSE file that accompanied this code. 4133 # 4134 # This code is distributed in the hope that it will be useful, but WITHOUT 4135 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4136 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4137 # version 2 for more details (a copy is included in the LICENSE file that 4138 # accompanied this code). 4139 # 4140 # You should have received a copy of the GNU General Public License version 4141 # 2 along with this work; if not, write to the Free Software Foundation, 4142 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4143 # 4144 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4145 # or visit www.oracle.com if you need additional information or have any 4146 # questions. 4147 # 4148 4149 4150 4151 4152 4153 4154 4155 4156 # 4157 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4158 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4159 # 4160 # This code is free software; you can redistribute it and/or modify it 4161 # under the terms of the GNU General Public License version 2 only, as 4162 # published by the Free Software Foundation. Oracle designates this 4163 # particular file as subject to the "Classpath" exception as provided 4164 # by Oracle in the LICENSE file that accompanied this code. 4165 # 4166 # This code is distributed in the hope that it will be useful, but WITHOUT 4167 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4168 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4169 # version 2 for more details (a copy is included in the LICENSE file that 4170 # accompanied this code). 4171 # 4172 # You should have received a copy of the GNU General Public License version 4173 # 2 along with this work; if not, write to the Free Software Foundation, 4174 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4175 # 4176 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4177 # or visit www.oracle.com if you need additional information or have any 4178 # questions. 4179 # 4180 4181 ######################################################################## 4182 # This file is responsible for detecting, verifying and setting up the 4183 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4184 # proper paths to the binaries, but it will not setup any flags. 4185 # 4186 # The binaries used is determined by the toolchain type, which is the family of 4187 # compilers and related tools that are used. 4188 ######################################################################## 4189 4190 4191 # All valid toolchains, regardless of platform (used by help.m4) 4192 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4193 4194 # These toolchains are valid on different platforms 4195 VALID_TOOLCHAINS_linux="gcc clang" 4196 VALID_TOOLCHAINS_solaris="solstudio" 4197 VALID_TOOLCHAINS_macosx="gcc clang" 4198 VALID_TOOLCHAINS_aix="xlc" 4199 VALID_TOOLCHAINS_windows="microsoft" 4200 4201 # Toolchain descriptions 4202 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4203 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4204 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4205 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4206 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4207 4208 # Setup a number of variables describing how native output files are 4209 # named on this platform/toolchain. 4210 4211 4212 # Determine which toolchain type to use, and make sure it is valid for this 4213 # platform. Setup various information about the selected toolchain. 4214 4215 4216 # Before we start detecting the toolchain executables, we might need some 4217 # special setup, e.g. additional paths etc. 4218 4219 4220 # Restore path, etc 4221 4222 4223 # Check if a compiler is of the toolchain type we expect, and save the version 4224 # information from it. If the compiler does not match the expected type, 4225 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4226 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4227 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4228 # 4229 # $1 = compiler to test (CC or CXX) 4230 # $2 = human readable name of compiler (C or C++) 4231 4232 4233 # Try to locate the given C or C++ compiler in the path, or otherwise. 4234 # 4235 # $1 = compiler to test (CC or CXX) 4236 # $2 = human readable name of compiler (C or C++) 4237 # $3 = list of compiler names to search for 4238 4239 4240 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4241 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4242 # archiver (AR). Verify that the compilers are correct according to the 4243 # toolchain type. 4244 4245 4246 # Setup additional tools that is considered a part of the toolchain, but not the 4247 # core part. Many of these are highly platform-specific and do not exist, 4248 # and/or are not needed on all platforms. 4249 4250 4251 # Setup the build tools (i.e, the compiler and linker used to build programs 4252 # that should be run on the build platform, not the target platform, as a build 4253 # helper). Since the non-cross-compile case uses the normal, target compilers 4254 # for this, we can only do this after these have been setup. 4255 4256 4257 # Setup legacy variables that are still needed as alternative ways to refer to 4258 # parts of the toolchain. 4259 4260 4261 # Do some additional checks on the detected tools. 4262 4263 4264 # Setup the JTReg Regression Test Harness. 4265 4266 4267 # 4268 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4269 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4270 # 4271 # This code is free software; you can redistribute it and/or modify it 4272 # under the terms of the GNU General Public License version 2 only, as 4273 # published by the Free Software Foundation. Oracle designates this 4274 # particular file as subject to the "Classpath" exception as provided 4275 # by Oracle in the LICENSE file that accompanied this code. 4276 # 4277 # This code is distributed in the hope that it will be useful, but WITHOUT 4278 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4279 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4280 # version 2 for more details (a copy is included in the LICENSE file that 4281 # accompanied this code). 4282 # 4283 # You should have received a copy of the GNU General Public License version 4284 # 2 along with this work; if not, write to the Free Software Foundation, 4285 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4286 # 4287 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4288 # or visit www.oracle.com if you need additional information or have any 4289 # questions. 4290 # 4291 4292 ################################################################################ 4293 4294 VALID_VS_VERSIONS="2010 2012 2013" 4295 4296 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 4297 VS_VERSION_INTERNAL_2010=100 4298 VS_MSVCR_2010=msvcr100.dll 4299 # We don't use msvcp on Visual Studio 2010 4300 #VS_MSVCP_2010=msvcp100.dll 4301 VS_ENVVAR_2010="VS100COMNTOOLS" 4302 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 4303 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 4304 VS_VS_PLATFORM_NAME_2010="v100" 4305 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 4306 4307 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 4308 VS_VERSION_INTERNAL_2012=110 4309 VS_MSVCR_2012=msvcr110.dll 4310 VS_MSVCP_2012=msvcp110.dll 4311 VS_ENVVAR_2012="VS110COMNTOOLS" 4312 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 4313 VS_SDK_INSTALLDIR_2012= 4314 VS_VS_PLATFORM_NAME_2012="v110" 4315 VS_SDK_PLATFORM_NAME_2012= 4316 4317 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 4318 VS_VERSION_INTERNAL_2013=120 4319 VS_MSVCR_2013=msvcr120.dll 4320 VS_MSVCP_2013=msvcp120.dll 4321 VS_ENVVAR_2013="VS120COMNTOOLS" 4322 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 4323 VS_SDK_INSTALLDIR_2013= 4324 VS_VS_PLATFORM_NAME_2013="v120" 4325 VS_SDK_PLATFORM_NAME_2013= 4326 4327 ################################################################################ 4328 4329 4330 4331 ################################################################################ 4332 4333 4334 4335 ################################################################################ 4336 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 4337 # build environment and assigns it to VS_ENV_CMD 4338 4339 4340 ################################################################################ 4341 4342 4343 4344 ################################################################################ 4345 # Check if the VS env variables were setup prior to running configure. 4346 # If not, then find vcvarsall.bat and run it automatically, and integrate 4347 # the set env variables into the spec file. 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 # This line needs to be here, verbatim, after all includes and the dummy hook 4363 # definitions. It is replaced with custom functionality when building 4364 # custom sources. 4365 #CUSTOM_AUTOCONF_INCLUDE 4366 4367 # Do not change or remove the following line, it is needed for consistency checks: 4368 DATE_WHEN_GENERATED=1427970054 4369 4370 ############################################################################### 4371 # 4372 # Initialization / Boot-strapping 4373 # 4374 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4375 # thus it jumps back and forth, each time gaining something needed later on. 4376 # 4377 ############################################################################### 4378 4379 # If we are requested to print additional help, do that and then exit. 4380 # This must be the very first call. 4381 4382 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4383 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4384 $PRINTF "Which are valid to use depends on the build platform.\n" 4385 for toolchain in $VALID_TOOLCHAINS_all; do 4386 # Use indirect variable referencing 4387 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4388 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4389 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4390 done 4391 4392 # And now exit directly 4393 exit 0 4394 fi 4395 4396 4397 # Basic initialization that must happen first of all in the normal process. 4398 4399 # Save the original command line. This is passed to us by the wrapper configure script. 4400 4401 # Save the path variable before it gets changed 4402 ORIGINAL_PATH="$PATH" 4403 4404 DATE_WHEN_CONFIGURED=`LANG=C date` 4405 4406 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4407 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4409 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4410 4411 4412 # Start with tools that do not need have cross compilation support 4413 # and can be expected to be found in the default PATH. These tools are 4414 # used by configure. Nor are these tools expected to be found in the 4415 # devkit from the builddeps server either, since they are 4416 # needed to download the devkit. 4417 4418 # First are all the simple required tools. 4419 4420 4421 4422 # Publish this variable in the help. 4423 4424 4425 if test "x$BASENAME" = x; then 4426 # The variable is not set by user, try to locate tool using the code snippet 4427 for ac_prog in basename 4428 do 4429 # Extract the first word of "$ac_prog", so it can be a program name with args. 4430 set dummy $ac_prog; ac_word=$2 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4432 $as_echo_n "checking for $ac_word... " >&6; } 4433 if ${ac_cv_path_BASENAME+:} false; then : 4434 $as_echo_n "(cached) " >&6 4435 else 4436 case $BASENAME in 4437 [\\/]* | ?:[\\/]*) 4438 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4439 ;; 4440 *) 4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4442 for as_dir in $PATH 4443 do 4444 IFS=$as_save_IFS 4445 test -z "$as_dir" && as_dir=. 4446 for ac_exec_ext in '' $ac_executable_extensions; do 4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4448 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4450 break 2 4451 fi 4452 done 4453 done 4454 IFS=$as_save_IFS 4455 4456 ;; 4457 esac 4458 fi 4459 BASENAME=$ac_cv_path_BASENAME 4460 if test -n "$BASENAME"; then 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4462 $as_echo "$BASENAME" >&6; } 4463 else 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4465 $as_echo "no" >&6; } 4466 fi 4467 4468 4469 test -n "$BASENAME" && break 4470 done 4471 4472 else 4473 # The variable is set, but is it from the command line or the environment? 4474 4475 # Try to remove the string !BASENAME! from our list. 4476 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4477 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4478 # If it failed, the variable was not from the command line. Ignore it, 4479 # but warn the user (except for BASH, which is always set by the calling BASH). 4480 if test "xBASENAME" != xBASH; then 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4482 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4483 fi 4484 # Try to locate tool using the code snippet 4485 for ac_prog in basename 4486 do 4487 # Extract the first word of "$ac_prog", so it can be a program name with args. 4488 set dummy $ac_prog; ac_word=$2 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4490 $as_echo_n "checking for $ac_word... " >&6; } 4491 if ${ac_cv_path_BASENAME+:} false; then : 4492 $as_echo_n "(cached) " >&6 4493 else 4494 case $BASENAME in 4495 [\\/]* | ?:[\\/]*) 4496 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4497 ;; 4498 *) 4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4500 for as_dir in $PATH 4501 do 4502 IFS=$as_save_IFS 4503 test -z "$as_dir" && as_dir=. 4504 for ac_exec_ext in '' $ac_executable_extensions; do 4505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4506 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4508 break 2 4509 fi 4510 done 4511 done 4512 IFS=$as_save_IFS 4513 4514 ;; 4515 esac 4516 fi 4517 BASENAME=$ac_cv_path_BASENAME 4518 if test -n "$BASENAME"; then 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4520 $as_echo "$BASENAME" >&6; } 4521 else 4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4523 $as_echo "no" >&6; } 4524 fi 4525 4526 4527 test -n "$BASENAME" && break 4528 done 4529 4530 else 4531 # If it succeeded, then it was overridden by the user. We will use it 4532 # for the tool. 4533 4534 # First remove it from the list of overridden variables, so we can test 4535 # for unknown variables in the end. 4536 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4537 4538 # Check if the provided tool contains a complete path. 4539 tool_specified="$BASENAME" 4540 tool_basename="${tool_specified##*/}" 4541 if test "x$tool_basename" = "x$tool_specified"; then 4542 # A command without a complete path is provided, search $PATH. 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4544 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4545 # Extract the first word of "$tool_basename", so it can be a program name with args. 4546 set dummy $tool_basename; ac_word=$2 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4548 $as_echo_n "checking for $ac_word... " >&6; } 4549 if ${ac_cv_path_BASENAME+:} false; then : 4550 $as_echo_n "(cached) " >&6 4551 else 4552 case $BASENAME in 4553 [\\/]* | ?:[\\/]*) 4554 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4555 ;; 4556 *) 4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4558 for as_dir in $PATH 4559 do 4560 IFS=$as_save_IFS 4561 test -z "$as_dir" && as_dir=. 4562 for ac_exec_ext in '' $ac_executable_extensions; do 4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4564 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4566 break 2 4567 fi 4568 done 4569 done 4570 IFS=$as_save_IFS 4571 4572 ;; 4573 esac 4574 fi 4575 BASENAME=$ac_cv_path_BASENAME 4576 if test -n "$BASENAME"; then 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4578 $as_echo "$BASENAME" >&6; } 4579 else 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4581 $as_echo "no" >&6; } 4582 fi 4583 4584 4585 if test "x$BASENAME" = x; then 4586 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4587 fi 4588 else 4589 # Otherwise we believe it is a complete path. Use it as it is. 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4591 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4593 $as_echo_n "checking for BASENAME... " >&6; } 4594 if test ! -x "$tool_specified"; then 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4596 $as_echo "not found" >&6; } 4597 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4598 fi 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4600 $as_echo "$tool_specified" >&6; } 4601 fi 4602 fi 4603 fi 4604 4605 4606 4607 if test "x$BASENAME" = x; then 4608 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4609 fi 4610 4611 4612 4613 4614 4615 # Publish this variable in the help. 4616 4617 4618 if test "x$BASH" = x; then 4619 # The variable is not set by user, try to locate tool using the code snippet 4620 for ac_prog in bash 4621 do 4622 # Extract the first word of "$ac_prog", so it can be a program name with args. 4623 set dummy $ac_prog; ac_word=$2 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4625 $as_echo_n "checking for $ac_word... " >&6; } 4626 if ${ac_cv_path_BASH+:} false; then : 4627 $as_echo_n "(cached) " >&6 4628 else 4629 case $BASH in 4630 [\\/]* | ?:[\\/]*) 4631 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4632 ;; 4633 *) 4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4635 for as_dir in $PATH 4636 do 4637 IFS=$as_save_IFS 4638 test -z "$as_dir" && as_dir=. 4639 for ac_exec_ext in '' $ac_executable_extensions; do 4640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4641 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4643 break 2 4644 fi 4645 done 4646 done 4647 IFS=$as_save_IFS 4648 4649 ;; 4650 esac 4651 fi 4652 BASH=$ac_cv_path_BASH 4653 if test -n "$BASH"; then 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4655 $as_echo "$BASH" >&6; } 4656 else 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4658 $as_echo "no" >&6; } 4659 fi 4660 4661 4662 test -n "$BASH" && break 4663 done 4664 4665 else 4666 # The variable is set, but is it from the command line or the environment? 4667 4668 # Try to remove the string !BASH! from our list. 4669 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4670 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4671 # If it failed, the variable was not from the command line. Ignore it, 4672 # but warn the user (except for BASH, which is always set by the calling BASH). 4673 if test "xBASH" != xBASH; then 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4675 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4676 fi 4677 # Try to locate tool using the code snippet 4678 for ac_prog in bash 4679 do 4680 # Extract the first word of "$ac_prog", so it can be a program name with args. 4681 set dummy $ac_prog; ac_word=$2 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4683 $as_echo_n "checking for $ac_word... " >&6; } 4684 if ${ac_cv_path_BASH+:} false; then : 4685 $as_echo_n "(cached) " >&6 4686 else 4687 case $BASH in 4688 [\\/]* | ?:[\\/]*) 4689 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4690 ;; 4691 *) 4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4693 for as_dir in $PATH 4694 do 4695 IFS=$as_save_IFS 4696 test -z "$as_dir" && as_dir=. 4697 for ac_exec_ext in '' $ac_executable_extensions; do 4698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4699 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4701 break 2 4702 fi 4703 done 4704 done 4705 IFS=$as_save_IFS 4706 4707 ;; 4708 esac 4709 fi 4710 BASH=$ac_cv_path_BASH 4711 if test -n "$BASH"; then 4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4713 $as_echo "$BASH" >&6; } 4714 else 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4716 $as_echo "no" >&6; } 4717 fi 4718 4719 4720 test -n "$BASH" && break 4721 done 4722 4723 else 4724 # If it succeeded, then it was overridden by the user. We will use it 4725 # for the tool. 4726 4727 # First remove it from the list of overridden variables, so we can test 4728 # for unknown variables in the end. 4729 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4730 4731 # Check if the provided tool contains a complete path. 4732 tool_specified="$BASH" 4733 tool_basename="${tool_specified##*/}" 4734 if test "x$tool_basename" = "x$tool_specified"; then 4735 # A command without a complete path is provided, search $PATH. 4736 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4737 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4738 # Extract the first word of "$tool_basename", so it can be a program name with args. 4739 set dummy $tool_basename; ac_word=$2 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4741 $as_echo_n "checking for $ac_word... " >&6; } 4742 if ${ac_cv_path_BASH+:} false; then : 4743 $as_echo_n "(cached) " >&6 4744 else 4745 case $BASH in 4746 [\\/]* | ?:[\\/]*) 4747 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4748 ;; 4749 *) 4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4751 for as_dir in $PATH 4752 do 4753 IFS=$as_save_IFS 4754 test -z "$as_dir" && as_dir=. 4755 for ac_exec_ext in '' $ac_executable_extensions; do 4756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4757 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4759 break 2 4760 fi 4761 done 4762 done 4763 IFS=$as_save_IFS 4764 4765 ;; 4766 esac 4767 fi 4768 BASH=$ac_cv_path_BASH 4769 if test -n "$BASH"; then 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4771 $as_echo "$BASH" >&6; } 4772 else 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4774 $as_echo "no" >&6; } 4775 fi 4776 4777 4778 if test "x$BASH" = x; then 4779 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4780 fi 4781 else 4782 # Otherwise we believe it is a complete path. Use it as it is. 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4784 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4786 $as_echo_n "checking for BASH... " >&6; } 4787 if test ! -x "$tool_specified"; then 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4789 $as_echo "not found" >&6; } 4790 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4791 fi 4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4793 $as_echo "$tool_specified" >&6; } 4794 fi 4795 fi 4796 fi 4797 4798 4799 4800 if test "x$BASH" = x; then 4801 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4802 fi 4803 4804 4805 4806 4807 4808 # Publish this variable in the help. 4809 4810 4811 if test "x$CAT" = x; then 4812 # The variable is not set by user, try to locate tool using the code snippet 4813 for ac_prog in cat 4814 do 4815 # Extract the first word of "$ac_prog", so it can be a program name with args. 4816 set dummy $ac_prog; ac_word=$2 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4818 $as_echo_n "checking for $ac_word... " >&6; } 4819 if ${ac_cv_path_CAT+:} false; then : 4820 $as_echo_n "(cached) " >&6 4821 else 4822 case $CAT in 4823 [\\/]* | ?:[\\/]*) 4824 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4825 ;; 4826 *) 4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4828 for as_dir in $PATH 4829 do 4830 IFS=$as_save_IFS 4831 test -z "$as_dir" && as_dir=. 4832 for ac_exec_ext in '' $ac_executable_extensions; do 4833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4834 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4836 break 2 4837 fi 4838 done 4839 done 4840 IFS=$as_save_IFS 4841 4842 ;; 4843 esac 4844 fi 4845 CAT=$ac_cv_path_CAT 4846 if test -n "$CAT"; then 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4848 $as_echo "$CAT" >&6; } 4849 else 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4851 $as_echo "no" >&6; } 4852 fi 4853 4854 4855 test -n "$CAT" && break 4856 done 4857 4858 else 4859 # The variable is set, but is it from the command line or the environment? 4860 4861 # Try to remove the string !CAT! from our list. 4862 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4863 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4864 # If it failed, the variable was not from the command line. Ignore it, 4865 # but warn the user (except for BASH, which is always set by the calling BASH). 4866 if test "xCAT" != xBASH; then 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4868 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4869 fi 4870 # Try to locate tool using the code snippet 4871 for ac_prog in cat 4872 do 4873 # Extract the first word of "$ac_prog", so it can be a program name with args. 4874 set dummy $ac_prog; ac_word=$2 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4876 $as_echo_n "checking for $ac_word... " >&6; } 4877 if ${ac_cv_path_CAT+:} false; then : 4878 $as_echo_n "(cached) " >&6 4879 else 4880 case $CAT in 4881 [\\/]* | ?:[\\/]*) 4882 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4883 ;; 4884 *) 4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4886 for as_dir in $PATH 4887 do 4888 IFS=$as_save_IFS 4889 test -z "$as_dir" && as_dir=. 4890 for ac_exec_ext in '' $ac_executable_extensions; do 4891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4892 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4894 break 2 4895 fi 4896 done 4897 done 4898 IFS=$as_save_IFS 4899 4900 ;; 4901 esac 4902 fi 4903 CAT=$ac_cv_path_CAT 4904 if test -n "$CAT"; then 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4906 $as_echo "$CAT" >&6; } 4907 else 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4909 $as_echo "no" >&6; } 4910 fi 4911 4912 4913 test -n "$CAT" && break 4914 done 4915 4916 else 4917 # If it succeeded, then it was overridden by the user. We will use it 4918 # for the tool. 4919 4920 # First remove it from the list of overridden variables, so we can test 4921 # for unknown variables in the end. 4922 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4923 4924 # Check if the provided tool contains a complete path. 4925 tool_specified="$CAT" 4926 tool_basename="${tool_specified##*/}" 4927 if test "x$tool_basename" = "x$tool_specified"; then 4928 # A command without a complete path is provided, search $PATH. 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4930 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4931 # Extract the first word of "$tool_basename", so it can be a program name with args. 4932 set dummy $tool_basename; ac_word=$2 4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4934 $as_echo_n "checking for $ac_word... " >&6; } 4935 if ${ac_cv_path_CAT+:} false; then : 4936 $as_echo_n "(cached) " >&6 4937 else 4938 case $CAT in 4939 [\\/]* | ?:[\\/]*) 4940 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4941 ;; 4942 *) 4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4944 for as_dir in $PATH 4945 do 4946 IFS=$as_save_IFS 4947 test -z "$as_dir" && as_dir=. 4948 for ac_exec_ext in '' $ac_executable_extensions; do 4949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4950 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4952 break 2 4953 fi 4954 done 4955 done 4956 IFS=$as_save_IFS 4957 4958 ;; 4959 esac 4960 fi 4961 CAT=$ac_cv_path_CAT 4962 if test -n "$CAT"; then 4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4964 $as_echo "$CAT" >&6; } 4965 else 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4967 $as_echo "no" >&6; } 4968 fi 4969 4970 4971 if test "x$CAT" = x; then 4972 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4973 fi 4974 else 4975 # Otherwise we believe it is a complete path. Use it as it is. 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4977 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4979 $as_echo_n "checking for CAT... " >&6; } 4980 if test ! -x "$tool_specified"; then 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4982 $as_echo "not found" >&6; } 4983 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4984 fi 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4986 $as_echo "$tool_specified" >&6; } 4987 fi 4988 fi 4989 fi 4990 4991 4992 4993 if test "x$CAT" = x; then 4994 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4995 fi 4996 4997 4998 4999 5000 5001 # Publish this variable in the help. 5002 5003 5004 if test "x$CHMOD" = x; then 5005 # The variable is not set by user, try to locate tool using the code snippet 5006 for ac_prog in chmod 5007 do 5008 # Extract the first word of "$ac_prog", so it can be a program name with args. 5009 set dummy $ac_prog; ac_word=$2 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5011 $as_echo_n "checking for $ac_word... " >&6; } 5012 if ${ac_cv_path_CHMOD+:} false; then : 5013 $as_echo_n "(cached) " >&6 5014 else 5015 case $CHMOD in 5016 [\\/]* | ?:[\\/]*) 5017 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5018 ;; 5019 *) 5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5021 for as_dir in $PATH 5022 do 5023 IFS=$as_save_IFS 5024 test -z "$as_dir" && as_dir=. 5025 for ac_exec_ext in '' $ac_executable_extensions; do 5026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5027 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5029 break 2 5030 fi 5031 done 5032 done 5033 IFS=$as_save_IFS 5034 5035 ;; 5036 esac 5037 fi 5038 CHMOD=$ac_cv_path_CHMOD 5039 if test -n "$CHMOD"; then 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5041 $as_echo "$CHMOD" >&6; } 5042 else 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5044 $as_echo "no" >&6; } 5045 fi 5046 5047 5048 test -n "$CHMOD" && break 5049 done 5050 5051 else 5052 # The variable is set, but is it from the command line or the environment? 5053 5054 # Try to remove the string !CHMOD! from our list. 5055 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5056 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5057 # If it failed, the variable was not from the command line. Ignore it, 5058 # but warn the user (except for BASH, which is always set by the calling BASH). 5059 if test "xCHMOD" != xBASH; then 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5061 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5062 fi 5063 # Try to locate tool using the code snippet 5064 for ac_prog in chmod 5065 do 5066 # Extract the first word of "$ac_prog", so it can be a program name with args. 5067 set dummy $ac_prog; ac_word=$2 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5069 $as_echo_n "checking for $ac_word... " >&6; } 5070 if ${ac_cv_path_CHMOD+:} false; then : 5071 $as_echo_n "(cached) " >&6 5072 else 5073 case $CHMOD in 5074 [\\/]* | ?:[\\/]*) 5075 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5076 ;; 5077 *) 5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5079 for as_dir in $PATH 5080 do 5081 IFS=$as_save_IFS 5082 test -z "$as_dir" && as_dir=. 5083 for ac_exec_ext in '' $ac_executable_extensions; do 5084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5085 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5087 break 2 5088 fi 5089 done 5090 done 5091 IFS=$as_save_IFS 5092 5093 ;; 5094 esac 5095 fi 5096 CHMOD=$ac_cv_path_CHMOD 5097 if test -n "$CHMOD"; then 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5099 $as_echo "$CHMOD" >&6; } 5100 else 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5102 $as_echo "no" >&6; } 5103 fi 5104 5105 5106 test -n "$CHMOD" && break 5107 done 5108 5109 else 5110 # If it succeeded, then it was overridden by the user. We will use it 5111 # for the tool. 5112 5113 # First remove it from the list of overridden variables, so we can test 5114 # for unknown variables in the end. 5115 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5116 5117 # Check if the provided tool contains a complete path. 5118 tool_specified="$CHMOD" 5119 tool_basename="${tool_specified##*/}" 5120 if test "x$tool_basename" = "x$tool_specified"; then 5121 # A command without a complete path is provided, search $PATH. 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5123 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5124 # Extract the first word of "$tool_basename", so it can be a program name with args. 5125 set dummy $tool_basename; ac_word=$2 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5127 $as_echo_n "checking for $ac_word... " >&6; } 5128 if ${ac_cv_path_CHMOD+:} false; then : 5129 $as_echo_n "(cached) " >&6 5130 else 5131 case $CHMOD in 5132 [\\/]* | ?:[\\/]*) 5133 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5134 ;; 5135 *) 5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5137 for as_dir in $PATH 5138 do 5139 IFS=$as_save_IFS 5140 test -z "$as_dir" && as_dir=. 5141 for ac_exec_ext in '' $ac_executable_extensions; do 5142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5143 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5145 break 2 5146 fi 5147 done 5148 done 5149 IFS=$as_save_IFS 5150 5151 ;; 5152 esac 5153 fi 5154 CHMOD=$ac_cv_path_CHMOD 5155 if test -n "$CHMOD"; then 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5157 $as_echo "$CHMOD" >&6; } 5158 else 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5160 $as_echo "no" >&6; } 5161 fi 5162 5163 5164 if test "x$CHMOD" = x; then 5165 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5166 fi 5167 else 5168 # Otherwise we believe it is a complete path. Use it as it is. 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5170 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5172 $as_echo_n "checking for CHMOD... " >&6; } 5173 if test ! -x "$tool_specified"; then 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5175 $as_echo "not found" >&6; } 5176 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5177 fi 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5179 $as_echo "$tool_specified" >&6; } 5180 fi 5181 fi 5182 fi 5183 5184 5185 5186 if test "x$CHMOD" = x; then 5187 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5188 fi 5189 5190 5191 5192 5193 5194 # Publish this variable in the help. 5195 5196 5197 if test "x$CMP" = x; then 5198 # The variable is not set by user, try to locate tool using the code snippet 5199 for ac_prog in cmp 5200 do 5201 # Extract the first word of "$ac_prog", so it can be a program name with args. 5202 set dummy $ac_prog; ac_word=$2 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5204 $as_echo_n "checking for $ac_word... " >&6; } 5205 if ${ac_cv_path_CMP+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207 else 5208 case $CMP in 5209 [\\/]* | ?:[\\/]*) 5210 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5211 ;; 5212 *) 5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5214 for as_dir in $PATH 5215 do 5216 IFS=$as_save_IFS 5217 test -z "$as_dir" && as_dir=. 5218 for ac_exec_ext in '' $ac_executable_extensions; do 5219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5220 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5222 break 2 5223 fi 5224 done 5225 done 5226 IFS=$as_save_IFS 5227 5228 ;; 5229 esac 5230 fi 5231 CMP=$ac_cv_path_CMP 5232 if test -n "$CMP"; then 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5234 $as_echo "$CMP" >&6; } 5235 else 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5237 $as_echo "no" >&6; } 5238 fi 5239 5240 5241 test -n "$CMP" && break 5242 done 5243 5244 else 5245 # The variable is set, but is it from the command line or the environment? 5246 5247 # Try to remove the string !CMP! from our list. 5248 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5249 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5250 # If it failed, the variable was not from the command line. Ignore it, 5251 # but warn the user (except for BASH, which is always set by the calling BASH). 5252 if test "xCMP" != xBASH; then 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5254 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5255 fi 5256 # Try to locate tool using the code snippet 5257 for ac_prog in cmp 5258 do 5259 # Extract the first word of "$ac_prog", so it can be a program name with args. 5260 set dummy $ac_prog; ac_word=$2 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5262 $as_echo_n "checking for $ac_word... " >&6; } 5263 if ${ac_cv_path_CMP+:} false; then : 5264 $as_echo_n "(cached) " >&6 5265 else 5266 case $CMP in 5267 [\\/]* | ?:[\\/]*) 5268 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5269 ;; 5270 *) 5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5272 for as_dir in $PATH 5273 do 5274 IFS=$as_save_IFS 5275 test -z "$as_dir" && as_dir=. 5276 for ac_exec_ext in '' $ac_executable_extensions; do 5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5278 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5280 break 2 5281 fi 5282 done 5283 done 5284 IFS=$as_save_IFS 5285 5286 ;; 5287 esac 5288 fi 5289 CMP=$ac_cv_path_CMP 5290 if test -n "$CMP"; then 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5292 $as_echo "$CMP" >&6; } 5293 else 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5295 $as_echo "no" >&6; } 5296 fi 5297 5298 5299 test -n "$CMP" && break 5300 done 5301 5302 else 5303 # If it succeeded, then it was overridden by the user. We will use it 5304 # for the tool. 5305 5306 # First remove it from the list of overridden variables, so we can test 5307 # for unknown variables in the end. 5308 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5309 5310 # Check if the provided tool contains a complete path. 5311 tool_specified="$CMP" 5312 tool_basename="${tool_specified##*/}" 5313 if test "x$tool_basename" = "x$tool_specified"; then 5314 # A command without a complete path is provided, search $PATH. 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5316 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5317 # Extract the first word of "$tool_basename", so it can be a program name with args. 5318 set dummy $tool_basename; ac_word=$2 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5320 $as_echo_n "checking for $ac_word... " >&6; } 5321 if ${ac_cv_path_CMP+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323 else 5324 case $CMP in 5325 [\\/]* | ?:[\\/]*) 5326 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5327 ;; 5328 *) 5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5330 for as_dir in $PATH 5331 do 5332 IFS=$as_save_IFS 5333 test -z "$as_dir" && as_dir=. 5334 for ac_exec_ext in '' $ac_executable_extensions; do 5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5336 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5338 break 2 5339 fi 5340 done 5341 done 5342 IFS=$as_save_IFS 5343 5344 ;; 5345 esac 5346 fi 5347 CMP=$ac_cv_path_CMP 5348 if test -n "$CMP"; then 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5350 $as_echo "$CMP" >&6; } 5351 else 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5353 $as_echo "no" >&6; } 5354 fi 5355 5356 5357 if test "x$CMP" = x; then 5358 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5359 fi 5360 else 5361 # Otherwise we believe it is a complete path. Use it as it is. 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5363 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5365 $as_echo_n "checking for CMP... " >&6; } 5366 if test ! -x "$tool_specified"; then 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5368 $as_echo "not found" >&6; } 5369 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5370 fi 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5372 $as_echo "$tool_specified" >&6; } 5373 fi 5374 fi 5375 fi 5376 5377 5378 5379 if test "x$CMP" = x; then 5380 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5381 fi 5382 5383 5384 5385 5386 5387 # Publish this variable in the help. 5388 5389 5390 if test "x$COMM" = x; then 5391 # The variable is not set by user, try to locate tool using the code snippet 5392 for ac_prog in comm 5393 do 5394 # Extract the first word of "$ac_prog", so it can be a program name with args. 5395 set dummy $ac_prog; ac_word=$2 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5397 $as_echo_n "checking for $ac_word... " >&6; } 5398 if ${ac_cv_path_COMM+:} false; then : 5399 $as_echo_n "(cached) " >&6 5400 else 5401 case $COMM in 5402 [\\/]* | ?:[\\/]*) 5403 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5404 ;; 5405 *) 5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5407 for as_dir in $PATH 5408 do 5409 IFS=$as_save_IFS 5410 test -z "$as_dir" && as_dir=. 5411 for ac_exec_ext in '' $ac_executable_extensions; do 5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5413 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5415 break 2 5416 fi 5417 done 5418 done 5419 IFS=$as_save_IFS 5420 5421 ;; 5422 esac 5423 fi 5424 COMM=$ac_cv_path_COMM 5425 if test -n "$COMM"; then 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5427 $as_echo "$COMM" >&6; } 5428 else 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5430 $as_echo "no" >&6; } 5431 fi 5432 5433 5434 test -n "$COMM" && break 5435 done 5436 5437 else 5438 # The variable is set, but is it from the command line or the environment? 5439 5440 # Try to remove the string !COMM! from our list. 5441 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5442 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5443 # If it failed, the variable was not from the command line. Ignore it, 5444 # but warn the user (except for BASH, which is always set by the calling BASH). 5445 if test "xCOMM" != xBASH; then 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5447 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5448 fi 5449 # Try to locate tool using the code snippet 5450 for ac_prog in comm 5451 do 5452 # Extract the first word of "$ac_prog", so it can be a program name with args. 5453 set dummy $ac_prog; ac_word=$2 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5455 $as_echo_n "checking for $ac_word... " >&6; } 5456 if ${ac_cv_path_COMM+:} false; then : 5457 $as_echo_n "(cached) " >&6 5458 else 5459 case $COMM in 5460 [\\/]* | ?:[\\/]*) 5461 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5462 ;; 5463 *) 5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5465 for as_dir in $PATH 5466 do 5467 IFS=$as_save_IFS 5468 test -z "$as_dir" && as_dir=. 5469 for ac_exec_ext in '' $ac_executable_extensions; do 5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5471 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5473 break 2 5474 fi 5475 done 5476 done 5477 IFS=$as_save_IFS 5478 5479 ;; 5480 esac 5481 fi 5482 COMM=$ac_cv_path_COMM 5483 if test -n "$COMM"; then 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5485 $as_echo "$COMM" >&6; } 5486 else 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5488 $as_echo "no" >&6; } 5489 fi 5490 5491 5492 test -n "$COMM" && break 5493 done 5494 5495 else 5496 # If it succeeded, then it was overridden by the user. We will use it 5497 # for the tool. 5498 5499 # First remove it from the list of overridden variables, so we can test 5500 # for unknown variables in the end. 5501 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5502 5503 # Check if the provided tool contains a complete path. 5504 tool_specified="$COMM" 5505 tool_basename="${tool_specified##*/}" 5506 if test "x$tool_basename" = "x$tool_specified"; then 5507 # A command without a complete path is provided, search $PATH. 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5509 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5510 # Extract the first word of "$tool_basename", so it can be a program name with args. 5511 set dummy $tool_basename; ac_word=$2 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5513 $as_echo_n "checking for $ac_word... " >&6; } 5514 if ${ac_cv_path_COMM+:} false; then : 5515 $as_echo_n "(cached) " >&6 5516 else 5517 case $COMM in 5518 [\\/]* | ?:[\\/]*) 5519 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5520 ;; 5521 *) 5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5523 for as_dir in $PATH 5524 do 5525 IFS=$as_save_IFS 5526 test -z "$as_dir" && as_dir=. 5527 for ac_exec_ext in '' $ac_executable_extensions; do 5528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5529 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5531 break 2 5532 fi 5533 done 5534 done 5535 IFS=$as_save_IFS 5536 5537 ;; 5538 esac 5539 fi 5540 COMM=$ac_cv_path_COMM 5541 if test -n "$COMM"; then 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5543 $as_echo "$COMM" >&6; } 5544 else 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5546 $as_echo "no" >&6; } 5547 fi 5548 5549 5550 if test "x$COMM" = x; then 5551 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5552 fi 5553 else 5554 # Otherwise we believe it is a complete path. Use it as it is. 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5556 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5558 $as_echo_n "checking for COMM... " >&6; } 5559 if test ! -x "$tool_specified"; then 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5561 $as_echo "not found" >&6; } 5562 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5563 fi 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5565 $as_echo "$tool_specified" >&6; } 5566 fi 5567 fi 5568 fi 5569 5570 5571 5572 if test "x$COMM" = x; then 5573 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5574 fi 5575 5576 5577 5578 5579 5580 # Publish this variable in the help. 5581 5582 5583 if test "x$CP" = x; then 5584 # The variable is not set by user, try to locate tool using the code snippet 5585 for ac_prog in cp 5586 do 5587 # Extract the first word of "$ac_prog", so it can be a program name with args. 5588 set dummy $ac_prog; ac_word=$2 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5590 $as_echo_n "checking for $ac_word... " >&6; } 5591 if ${ac_cv_path_CP+:} false; then : 5592 $as_echo_n "(cached) " >&6 5593 else 5594 case $CP in 5595 [\\/]* | ?:[\\/]*) 5596 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5597 ;; 5598 *) 5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5600 for as_dir in $PATH 5601 do 5602 IFS=$as_save_IFS 5603 test -z "$as_dir" && as_dir=. 5604 for ac_exec_ext in '' $ac_executable_extensions; do 5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5606 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5608 break 2 5609 fi 5610 done 5611 done 5612 IFS=$as_save_IFS 5613 5614 ;; 5615 esac 5616 fi 5617 CP=$ac_cv_path_CP 5618 if test -n "$CP"; then 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5620 $as_echo "$CP" >&6; } 5621 else 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5623 $as_echo "no" >&6; } 5624 fi 5625 5626 5627 test -n "$CP" && break 5628 done 5629 5630 else 5631 # The variable is set, but is it from the command line or the environment? 5632 5633 # Try to remove the string !CP! from our list. 5634 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5635 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5636 # If it failed, the variable was not from the command line. Ignore it, 5637 # but warn the user (except for BASH, which is always set by the calling BASH). 5638 if test "xCP" != xBASH; then 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5640 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5641 fi 5642 # Try to locate tool using the code snippet 5643 for ac_prog in cp 5644 do 5645 # Extract the first word of "$ac_prog", so it can be a program name with args. 5646 set dummy $ac_prog; ac_word=$2 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5648 $as_echo_n "checking for $ac_word... " >&6; } 5649 if ${ac_cv_path_CP+:} false; then : 5650 $as_echo_n "(cached) " >&6 5651 else 5652 case $CP in 5653 [\\/]* | ?:[\\/]*) 5654 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5655 ;; 5656 *) 5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5658 for as_dir in $PATH 5659 do 5660 IFS=$as_save_IFS 5661 test -z "$as_dir" && as_dir=. 5662 for ac_exec_ext in '' $ac_executable_extensions; do 5663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5664 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5666 break 2 5667 fi 5668 done 5669 done 5670 IFS=$as_save_IFS 5671 5672 ;; 5673 esac 5674 fi 5675 CP=$ac_cv_path_CP 5676 if test -n "$CP"; then 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5678 $as_echo "$CP" >&6; } 5679 else 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5681 $as_echo "no" >&6; } 5682 fi 5683 5684 5685 test -n "$CP" && break 5686 done 5687 5688 else 5689 # If it succeeded, then it was overridden by the user. We will use it 5690 # for the tool. 5691 5692 # First remove it from the list of overridden variables, so we can test 5693 # for unknown variables in the end. 5694 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5695 5696 # Check if the provided tool contains a complete path. 5697 tool_specified="$CP" 5698 tool_basename="${tool_specified##*/}" 5699 if test "x$tool_basename" = "x$tool_specified"; then 5700 # A command without a complete path is provided, search $PATH. 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5702 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5703 # Extract the first word of "$tool_basename", so it can be a program name with args. 5704 set dummy $tool_basename; ac_word=$2 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5706 $as_echo_n "checking for $ac_word... " >&6; } 5707 if ${ac_cv_path_CP+:} false; then : 5708 $as_echo_n "(cached) " >&6 5709 else 5710 case $CP in 5711 [\\/]* | ?:[\\/]*) 5712 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5713 ;; 5714 *) 5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5716 for as_dir in $PATH 5717 do 5718 IFS=$as_save_IFS 5719 test -z "$as_dir" && as_dir=. 5720 for ac_exec_ext in '' $ac_executable_extensions; do 5721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5722 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5724 break 2 5725 fi 5726 done 5727 done 5728 IFS=$as_save_IFS 5729 5730 ;; 5731 esac 5732 fi 5733 CP=$ac_cv_path_CP 5734 if test -n "$CP"; then 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5736 $as_echo "$CP" >&6; } 5737 else 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5739 $as_echo "no" >&6; } 5740 fi 5741 5742 5743 if test "x$CP" = x; then 5744 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5745 fi 5746 else 5747 # Otherwise we believe it is a complete path. Use it as it is. 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5749 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5751 $as_echo_n "checking for CP... " >&6; } 5752 if test ! -x "$tool_specified"; then 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5754 $as_echo "not found" >&6; } 5755 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5756 fi 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5758 $as_echo "$tool_specified" >&6; } 5759 fi 5760 fi 5761 fi 5762 5763 5764 5765 if test "x$CP" = x; then 5766 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5767 fi 5768 5769 5770 5771 5772 5773 # Publish this variable in the help. 5774 5775 5776 if test "x$CUT" = x; then 5777 # The variable is not set by user, try to locate tool using the code snippet 5778 for ac_prog in cut 5779 do 5780 # Extract the first word of "$ac_prog", so it can be a program name with args. 5781 set dummy $ac_prog; ac_word=$2 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5783 $as_echo_n "checking for $ac_word... " >&6; } 5784 if ${ac_cv_path_CUT+:} false; then : 5785 $as_echo_n "(cached) " >&6 5786 else 5787 case $CUT in 5788 [\\/]* | ?:[\\/]*) 5789 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5790 ;; 5791 *) 5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5793 for as_dir in $PATH 5794 do 5795 IFS=$as_save_IFS 5796 test -z "$as_dir" && as_dir=. 5797 for ac_exec_ext in '' $ac_executable_extensions; do 5798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5799 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5801 break 2 5802 fi 5803 done 5804 done 5805 IFS=$as_save_IFS 5806 5807 ;; 5808 esac 5809 fi 5810 CUT=$ac_cv_path_CUT 5811 if test -n "$CUT"; then 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5813 $as_echo "$CUT" >&6; } 5814 else 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5816 $as_echo "no" >&6; } 5817 fi 5818 5819 5820 test -n "$CUT" && break 5821 done 5822 5823 else 5824 # The variable is set, but is it from the command line or the environment? 5825 5826 # Try to remove the string !CUT! from our list. 5827 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5828 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5829 # If it failed, the variable was not from the command line. Ignore it, 5830 # but warn the user (except for BASH, which is always set by the calling BASH). 5831 if test "xCUT" != xBASH; then 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5833 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5834 fi 5835 # Try to locate tool using the code snippet 5836 for ac_prog in cut 5837 do 5838 # Extract the first word of "$ac_prog", so it can be a program name with args. 5839 set dummy $ac_prog; ac_word=$2 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5841 $as_echo_n "checking for $ac_word... " >&6; } 5842 if ${ac_cv_path_CUT+:} false; then : 5843 $as_echo_n "(cached) " >&6 5844 else 5845 case $CUT in 5846 [\\/]* | ?:[\\/]*) 5847 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5848 ;; 5849 *) 5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5851 for as_dir in $PATH 5852 do 5853 IFS=$as_save_IFS 5854 test -z "$as_dir" && as_dir=. 5855 for ac_exec_ext in '' $ac_executable_extensions; do 5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5857 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5859 break 2 5860 fi 5861 done 5862 done 5863 IFS=$as_save_IFS 5864 5865 ;; 5866 esac 5867 fi 5868 CUT=$ac_cv_path_CUT 5869 if test -n "$CUT"; then 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5871 $as_echo "$CUT" >&6; } 5872 else 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5874 $as_echo "no" >&6; } 5875 fi 5876 5877 5878 test -n "$CUT" && break 5879 done 5880 5881 else 5882 # If it succeeded, then it was overridden by the user. We will use it 5883 # for the tool. 5884 5885 # First remove it from the list of overridden variables, so we can test 5886 # for unknown variables in the end. 5887 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5888 5889 # Check if the provided tool contains a complete path. 5890 tool_specified="$CUT" 5891 tool_basename="${tool_specified##*/}" 5892 if test "x$tool_basename" = "x$tool_specified"; then 5893 # A command without a complete path is provided, search $PATH. 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5895 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5896 # Extract the first word of "$tool_basename", so it can be a program name with args. 5897 set dummy $tool_basename; ac_word=$2 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5899 $as_echo_n "checking for $ac_word... " >&6; } 5900 if ${ac_cv_path_CUT+:} false; then : 5901 $as_echo_n "(cached) " >&6 5902 else 5903 case $CUT in 5904 [\\/]* | ?:[\\/]*) 5905 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5906 ;; 5907 *) 5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5909 for as_dir in $PATH 5910 do 5911 IFS=$as_save_IFS 5912 test -z "$as_dir" && as_dir=. 5913 for ac_exec_ext in '' $ac_executable_extensions; do 5914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5915 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5917 break 2 5918 fi 5919 done 5920 done 5921 IFS=$as_save_IFS 5922 5923 ;; 5924 esac 5925 fi 5926 CUT=$ac_cv_path_CUT 5927 if test -n "$CUT"; then 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5929 $as_echo "$CUT" >&6; } 5930 else 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5932 $as_echo "no" >&6; } 5933 fi 5934 5935 5936 if test "x$CUT" = x; then 5937 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5938 fi 5939 else 5940 # Otherwise we believe it is a complete path. Use it as it is. 5941 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5942 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5944 $as_echo_n "checking for CUT... " >&6; } 5945 if test ! -x "$tool_specified"; then 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5947 $as_echo "not found" >&6; } 5948 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5949 fi 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5951 $as_echo "$tool_specified" >&6; } 5952 fi 5953 fi 5954 fi 5955 5956 5957 5958 if test "x$CUT" = x; then 5959 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5960 fi 5961 5962 5963 5964 5965 5966 # Publish this variable in the help. 5967 5968 5969 if test "x$DATE" = x; then 5970 # The variable is not set by user, try to locate tool using the code snippet 5971 for ac_prog in date 5972 do 5973 # Extract the first word of "$ac_prog", so it can be a program name with args. 5974 set dummy $ac_prog; ac_word=$2 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5976 $as_echo_n "checking for $ac_word... " >&6; } 5977 if ${ac_cv_path_DATE+:} false; then : 5978 $as_echo_n "(cached) " >&6 5979 else 5980 case $DATE in 5981 [\\/]* | ?:[\\/]*) 5982 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5983 ;; 5984 *) 5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5986 for as_dir in $PATH 5987 do 5988 IFS=$as_save_IFS 5989 test -z "$as_dir" && as_dir=. 5990 for ac_exec_ext in '' $ac_executable_extensions; do 5991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5992 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5994 break 2 5995 fi 5996 done 5997 done 5998 IFS=$as_save_IFS 5999 6000 ;; 6001 esac 6002 fi 6003 DATE=$ac_cv_path_DATE 6004 if test -n "$DATE"; then 6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6006 $as_echo "$DATE" >&6; } 6007 else 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6009 $as_echo "no" >&6; } 6010 fi 6011 6012 6013 test -n "$DATE" && break 6014 done 6015 6016 else 6017 # The variable is set, but is it from the command line or the environment? 6018 6019 # Try to remove the string !DATE! from our list. 6020 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6021 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6022 # If it failed, the variable was not from the command line. Ignore it, 6023 # but warn the user (except for BASH, which is always set by the calling BASH). 6024 if test "xDATE" != xBASH; then 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6026 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6027 fi 6028 # Try to locate tool using the code snippet 6029 for ac_prog in date 6030 do 6031 # Extract the first word of "$ac_prog", so it can be a program name with args. 6032 set dummy $ac_prog; ac_word=$2 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6034 $as_echo_n "checking for $ac_word... " >&6; } 6035 if ${ac_cv_path_DATE+:} false; then : 6036 $as_echo_n "(cached) " >&6 6037 else 6038 case $DATE in 6039 [\\/]* | ?:[\\/]*) 6040 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6041 ;; 6042 *) 6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6044 for as_dir in $PATH 6045 do 6046 IFS=$as_save_IFS 6047 test -z "$as_dir" && as_dir=. 6048 for ac_exec_ext in '' $ac_executable_extensions; do 6049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6050 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6052 break 2 6053 fi 6054 done 6055 done 6056 IFS=$as_save_IFS 6057 6058 ;; 6059 esac 6060 fi 6061 DATE=$ac_cv_path_DATE 6062 if test -n "$DATE"; then 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6064 $as_echo "$DATE" >&6; } 6065 else 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6067 $as_echo "no" >&6; } 6068 fi 6069 6070 6071 test -n "$DATE" && break 6072 done 6073 6074 else 6075 # If it succeeded, then it was overridden by the user. We will use it 6076 # for the tool. 6077 6078 # First remove it from the list of overridden variables, so we can test 6079 # for unknown variables in the end. 6080 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6081 6082 # Check if the provided tool contains a complete path. 6083 tool_specified="$DATE" 6084 tool_basename="${tool_specified##*/}" 6085 if test "x$tool_basename" = "x$tool_specified"; then 6086 # A command without a complete path is provided, search $PATH. 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6088 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6089 # Extract the first word of "$tool_basename", so it can be a program name with args. 6090 set dummy $tool_basename; ac_word=$2 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6092 $as_echo_n "checking for $ac_word... " >&6; } 6093 if ${ac_cv_path_DATE+:} false; then : 6094 $as_echo_n "(cached) " >&6 6095 else 6096 case $DATE in 6097 [\\/]* | ?:[\\/]*) 6098 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6099 ;; 6100 *) 6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6102 for as_dir in $PATH 6103 do 6104 IFS=$as_save_IFS 6105 test -z "$as_dir" && as_dir=. 6106 for ac_exec_ext in '' $ac_executable_extensions; do 6107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6108 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6110 break 2 6111 fi 6112 done 6113 done 6114 IFS=$as_save_IFS 6115 6116 ;; 6117 esac 6118 fi 6119 DATE=$ac_cv_path_DATE 6120 if test -n "$DATE"; then 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6122 $as_echo "$DATE" >&6; } 6123 else 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6125 $as_echo "no" >&6; } 6126 fi 6127 6128 6129 if test "x$DATE" = x; then 6130 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6131 fi 6132 else 6133 # Otherwise we believe it is a complete path. Use it as it is. 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6135 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6137 $as_echo_n "checking for DATE... " >&6; } 6138 if test ! -x "$tool_specified"; then 6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6140 $as_echo "not found" >&6; } 6141 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6142 fi 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6144 $as_echo "$tool_specified" >&6; } 6145 fi 6146 fi 6147 fi 6148 6149 6150 6151 if test "x$DATE" = x; then 6152 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6153 fi 6154 6155 6156 6157 6158 6159 # Publish this variable in the help. 6160 6161 6162 if test "x$DIFF" = x; then 6163 # The variable is not set by user, try to locate tool using the code snippet 6164 for ac_prog in gdiff diff 6165 do 6166 # Extract the first word of "$ac_prog", so it can be a program name with args. 6167 set dummy $ac_prog; ac_word=$2 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6169 $as_echo_n "checking for $ac_word... " >&6; } 6170 if ${ac_cv_path_DIFF+:} false; then : 6171 $as_echo_n "(cached) " >&6 6172 else 6173 case $DIFF in 6174 [\\/]* | ?:[\\/]*) 6175 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6176 ;; 6177 *) 6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6179 for as_dir in $PATH 6180 do 6181 IFS=$as_save_IFS 6182 test -z "$as_dir" && as_dir=. 6183 for ac_exec_ext in '' $ac_executable_extensions; do 6184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6185 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6187 break 2 6188 fi 6189 done 6190 done 6191 IFS=$as_save_IFS 6192 6193 ;; 6194 esac 6195 fi 6196 DIFF=$ac_cv_path_DIFF 6197 if test -n "$DIFF"; then 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6199 $as_echo "$DIFF" >&6; } 6200 else 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6202 $as_echo "no" >&6; } 6203 fi 6204 6205 6206 test -n "$DIFF" && break 6207 done 6208 6209 else 6210 # The variable is set, but is it from the command line or the environment? 6211 6212 # Try to remove the string !DIFF! from our list. 6213 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6214 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6215 # If it failed, the variable was not from the command line. Ignore it, 6216 # but warn the user (except for BASH, which is always set by the calling BASH). 6217 if test "xDIFF" != xBASH; then 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6219 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6220 fi 6221 # Try to locate tool using the code snippet 6222 for ac_prog in gdiff diff 6223 do 6224 # Extract the first word of "$ac_prog", so it can be a program name with args. 6225 set dummy $ac_prog; ac_word=$2 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6227 $as_echo_n "checking for $ac_word... " >&6; } 6228 if ${ac_cv_path_DIFF+:} false; then : 6229 $as_echo_n "(cached) " >&6 6230 else 6231 case $DIFF in 6232 [\\/]* | ?:[\\/]*) 6233 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6234 ;; 6235 *) 6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6237 for as_dir in $PATH 6238 do 6239 IFS=$as_save_IFS 6240 test -z "$as_dir" && as_dir=. 6241 for ac_exec_ext in '' $ac_executable_extensions; do 6242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6243 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6245 break 2 6246 fi 6247 done 6248 done 6249 IFS=$as_save_IFS 6250 6251 ;; 6252 esac 6253 fi 6254 DIFF=$ac_cv_path_DIFF 6255 if test -n "$DIFF"; then 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6257 $as_echo "$DIFF" >&6; } 6258 else 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6260 $as_echo "no" >&6; } 6261 fi 6262 6263 6264 test -n "$DIFF" && break 6265 done 6266 6267 else 6268 # If it succeeded, then it was overridden by the user. We will use it 6269 # for the tool. 6270 6271 # First remove it from the list of overridden variables, so we can test 6272 # for unknown variables in the end. 6273 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6274 6275 # Check if the provided tool contains a complete path. 6276 tool_specified="$DIFF" 6277 tool_basename="${tool_specified##*/}" 6278 if test "x$tool_basename" = "x$tool_specified"; then 6279 # A command without a complete path is provided, search $PATH. 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6281 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6282 # Extract the first word of "$tool_basename", so it can be a program name with args. 6283 set dummy $tool_basename; ac_word=$2 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6285 $as_echo_n "checking for $ac_word... " >&6; } 6286 if ${ac_cv_path_DIFF+:} false; then : 6287 $as_echo_n "(cached) " >&6 6288 else 6289 case $DIFF in 6290 [\\/]* | ?:[\\/]*) 6291 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6292 ;; 6293 *) 6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6295 for as_dir in $PATH 6296 do 6297 IFS=$as_save_IFS 6298 test -z "$as_dir" && as_dir=. 6299 for ac_exec_ext in '' $ac_executable_extensions; do 6300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6301 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6303 break 2 6304 fi 6305 done 6306 done 6307 IFS=$as_save_IFS 6308 6309 ;; 6310 esac 6311 fi 6312 DIFF=$ac_cv_path_DIFF 6313 if test -n "$DIFF"; then 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6315 $as_echo "$DIFF" >&6; } 6316 else 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6318 $as_echo "no" >&6; } 6319 fi 6320 6321 6322 if test "x$DIFF" = x; then 6323 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6324 fi 6325 else 6326 # Otherwise we believe it is a complete path. Use it as it is. 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6328 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6330 $as_echo_n "checking for DIFF... " >&6; } 6331 if test ! -x "$tool_specified"; then 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6333 $as_echo "not found" >&6; } 6334 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6335 fi 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6337 $as_echo "$tool_specified" >&6; } 6338 fi 6339 fi 6340 fi 6341 6342 6343 6344 if test "x$DIFF" = x; then 6345 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6346 fi 6347 6348 6349 6350 6351 6352 # Publish this variable in the help. 6353 6354 6355 if test "x$DIRNAME" = x; then 6356 # The variable is not set by user, try to locate tool using the code snippet 6357 for ac_prog in dirname 6358 do 6359 # Extract the first word of "$ac_prog", so it can be a program name with args. 6360 set dummy $ac_prog; ac_word=$2 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6362 $as_echo_n "checking for $ac_word... " >&6; } 6363 if ${ac_cv_path_DIRNAME+:} false; then : 6364 $as_echo_n "(cached) " >&6 6365 else 6366 case $DIRNAME in 6367 [\\/]* | ?:[\\/]*) 6368 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6369 ;; 6370 *) 6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6372 for as_dir in $PATH 6373 do 6374 IFS=$as_save_IFS 6375 test -z "$as_dir" && as_dir=. 6376 for ac_exec_ext in '' $ac_executable_extensions; do 6377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6378 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6380 break 2 6381 fi 6382 done 6383 done 6384 IFS=$as_save_IFS 6385 6386 ;; 6387 esac 6388 fi 6389 DIRNAME=$ac_cv_path_DIRNAME 6390 if test -n "$DIRNAME"; then 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6392 $as_echo "$DIRNAME" >&6; } 6393 else 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6395 $as_echo "no" >&6; } 6396 fi 6397 6398 6399 test -n "$DIRNAME" && break 6400 done 6401 6402 else 6403 # The variable is set, but is it from the command line or the environment? 6404 6405 # Try to remove the string !DIRNAME! from our list. 6406 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6407 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6408 # If it failed, the variable was not from the command line. Ignore it, 6409 # but warn the user (except for BASH, which is always set by the calling BASH). 6410 if test "xDIRNAME" != xBASH; then 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6412 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6413 fi 6414 # Try to locate tool using the code snippet 6415 for ac_prog in dirname 6416 do 6417 # Extract the first word of "$ac_prog", so it can be a program name with args. 6418 set dummy $ac_prog; ac_word=$2 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6420 $as_echo_n "checking for $ac_word... " >&6; } 6421 if ${ac_cv_path_DIRNAME+:} false; then : 6422 $as_echo_n "(cached) " >&6 6423 else 6424 case $DIRNAME in 6425 [\\/]* | ?:[\\/]*) 6426 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6427 ;; 6428 *) 6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430 for as_dir in $PATH 6431 do 6432 IFS=$as_save_IFS 6433 test -z "$as_dir" && as_dir=. 6434 for ac_exec_ext in '' $ac_executable_extensions; do 6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6436 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6438 break 2 6439 fi 6440 done 6441 done 6442 IFS=$as_save_IFS 6443 6444 ;; 6445 esac 6446 fi 6447 DIRNAME=$ac_cv_path_DIRNAME 6448 if test -n "$DIRNAME"; then 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6450 $as_echo "$DIRNAME" >&6; } 6451 else 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6453 $as_echo "no" >&6; } 6454 fi 6455 6456 6457 test -n "$DIRNAME" && break 6458 done 6459 6460 else 6461 # If it succeeded, then it was overridden by the user. We will use it 6462 # for the tool. 6463 6464 # First remove it from the list of overridden variables, so we can test 6465 # for unknown variables in the end. 6466 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6467 6468 # Check if the provided tool contains a complete path. 6469 tool_specified="$DIRNAME" 6470 tool_basename="${tool_specified##*/}" 6471 if test "x$tool_basename" = "x$tool_specified"; then 6472 # A command without a complete path is provided, search $PATH. 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6474 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6475 # Extract the first word of "$tool_basename", so it can be a program name with args. 6476 set dummy $tool_basename; ac_word=$2 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6478 $as_echo_n "checking for $ac_word... " >&6; } 6479 if ${ac_cv_path_DIRNAME+:} false; then : 6480 $as_echo_n "(cached) " >&6 6481 else 6482 case $DIRNAME in 6483 [\\/]* | ?:[\\/]*) 6484 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6485 ;; 6486 *) 6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6488 for as_dir in $PATH 6489 do 6490 IFS=$as_save_IFS 6491 test -z "$as_dir" && as_dir=. 6492 for ac_exec_ext in '' $ac_executable_extensions; do 6493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6494 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6496 break 2 6497 fi 6498 done 6499 done 6500 IFS=$as_save_IFS 6501 6502 ;; 6503 esac 6504 fi 6505 DIRNAME=$ac_cv_path_DIRNAME 6506 if test -n "$DIRNAME"; then 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6508 $as_echo "$DIRNAME" >&6; } 6509 else 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6511 $as_echo "no" >&6; } 6512 fi 6513 6514 6515 if test "x$DIRNAME" = x; then 6516 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6517 fi 6518 else 6519 # Otherwise we believe it is a complete path. Use it as it is. 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6521 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6523 $as_echo_n "checking for DIRNAME... " >&6; } 6524 if test ! -x "$tool_specified"; then 6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6526 $as_echo "not found" >&6; } 6527 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6528 fi 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6530 $as_echo "$tool_specified" >&6; } 6531 fi 6532 fi 6533 fi 6534 6535 6536 6537 if test "x$DIRNAME" = x; then 6538 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6539 fi 6540 6541 6542 6543 6544 6545 # Publish this variable in the help. 6546 6547 6548 if test "x$ECHO" = x; then 6549 # The variable is not set by user, try to locate tool using the code snippet 6550 for ac_prog in echo 6551 do 6552 # Extract the first word of "$ac_prog", so it can be a program name with args. 6553 set dummy $ac_prog; ac_word=$2 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6555 $as_echo_n "checking for $ac_word... " >&6; } 6556 if ${ac_cv_path_ECHO+:} false; then : 6557 $as_echo_n "(cached) " >&6 6558 else 6559 case $ECHO in 6560 [\\/]* | ?:[\\/]*) 6561 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6562 ;; 6563 *) 6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6565 for as_dir in $PATH 6566 do 6567 IFS=$as_save_IFS 6568 test -z "$as_dir" && as_dir=. 6569 for ac_exec_ext in '' $ac_executable_extensions; do 6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6571 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6573 break 2 6574 fi 6575 done 6576 done 6577 IFS=$as_save_IFS 6578 6579 ;; 6580 esac 6581 fi 6582 ECHO=$ac_cv_path_ECHO 6583 if test -n "$ECHO"; then 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6585 $as_echo "$ECHO" >&6; } 6586 else 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6588 $as_echo "no" >&6; } 6589 fi 6590 6591 6592 test -n "$ECHO" && break 6593 done 6594 6595 else 6596 # The variable is set, but is it from the command line or the environment? 6597 6598 # Try to remove the string !ECHO! from our list. 6599 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6600 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6601 # If it failed, the variable was not from the command line. Ignore it, 6602 # but warn the user (except for BASH, which is always set by the calling BASH). 6603 if test "xECHO" != xBASH; then 6604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6605 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6606 fi 6607 # Try to locate tool using the code snippet 6608 for ac_prog in echo 6609 do 6610 # Extract the first word of "$ac_prog", so it can be a program name with args. 6611 set dummy $ac_prog; ac_word=$2 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6613 $as_echo_n "checking for $ac_word... " >&6; } 6614 if ${ac_cv_path_ECHO+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616 else 6617 case $ECHO in 6618 [\\/]* | ?:[\\/]*) 6619 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6620 ;; 6621 *) 6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6623 for as_dir in $PATH 6624 do 6625 IFS=$as_save_IFS 6626 test -z "$as_dir" && as_dir=. 6627 for ac_exec_ext in '' $ac_executable_extensions; do 6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6629 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6631 break 2 6632 fi 6633 done 6634 done 6635 IFS=$as_save_IFS 6636 6637 ;; 6638 esac 6639 fi 6640 ECHO=$ac_cv_path_ECHO 6641 if test -n "$ECHO"; then 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6643 $as_echo "$ECHO" >&6; } 6644 else 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6646 $as_echo "no" >&6; } 6647 fi 6648 6649 6650 test -n "$ECHO" && break 6651 done 6652 6653 else 6654 # If it succeeded, then it was overridden by the user. We will use it 6655 # for the tool. 6656 6657 # First remove it from the list of overridden variables, so we can test 6658 # for unknown variables in the end. 6659 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6660 6661 # Check if the provided tool contains a complete path. 6662 tool_specified="$ECHO" 6663 tool_basename="${tool_specified##*/}" 6664 if test "x$tool_basename" = "x$tool_specified"; then 6665 # A command without a complete path is provided, search $PATH. 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6667 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6668 # Extract the first word of "$tool_basename", so it can be a program name with args. 6669 set dummy $tool_basename; ac_word=$2 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6671 $as_echo_n "checking for $ac_word... " >&6; } 6672 if ${ac_cv_path_ECHO+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674 else 6675 case $ECHO in 6676 [\\/]* | ?:[\\/]*) 6677 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6678 ;; 6679 *) 6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681 for as_dir in $PATH 6682 do 6683 IFS=$as_save_IFS 6684 test -z "$as_dir" && as_dir=. 6685 for ac_exec_ext in '' $ac_executable_extensions; do 6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6687 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6689 break 2 6690 fi 6691 done 6692 done 6693 IFS=$as_save_IFS 6694 6695 ;; 6696 esac 6697 fi 6698 ECHO=$ac_cv_path_ECHO 6699 if test -n "$ECHO"; then 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6701 $as_echo "$ECHO" >&6; } 6702 else 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6704 $as_echo "no" >&6; } 6705 fi 6706 6707 6708 if test "x$ECHO" = x; then 6709 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6710 fi 6711 else 6712 # Otherwise we believe it is a complete path. Use it as it is. 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6714 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6716 $as_echo_n "checking for ECHO... " >&6; } 6717 if test ! -x "$tool_specified"; then 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6719 $as_echo "not found" >&6; } 6720 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6721 fi 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6723 $as_echo "$tool_specified" >&6; } 6724 fi 6725 fi 6726 fi 6727 6728 6729 6730 if test "x$ECHO" = x; then 6731 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6732 fi 6733 6734 6735 6736 6737 6738 # Publish this variable in the help. 6739 6740 6741 if test "x$EXPR" = x; then 6742 # The variable is not set by user, try to locate tool using the code snippet 6743 for ac_prog in expr 6744 do 6745 # Extract the first word of "$ac_prog", so it can be a program name with args. 6746 set dummy $ac_prog; ac_word=$2 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6748 $as_echo_n "checking for $ac_word... " >&6; } 6749 if ${ac_cv_path_EXPR+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751 else 6752 case $EXPR in 6753 [\\/]* | ?:[\\/]*) 6754 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6755 ;; 6756 *) 6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6758 for as_dir in $PATH 6759 do 6760 IFS=$as_save_IFS 6761 test -z "$as_dir" && as_dir=. 6762 for ac_exec_ext in '' $ac_executable_extensions; do 6763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6764 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6766 break 2 6767 fi 6768 done 6769 done 6770 IFS=$as_save_IFS 6771 6772 ;; 6773 esac 6774 fi 6775 EXPR=$ac_cv_path_EXPR 6776 if test -n "$EXPR"; then 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6778 $as_echo "$EXPR" >&6; } 6779 else 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6781 $as_echo "no" >&6; } 6782 fi 6783 6784 6785 test -n "$EXPR" && break 6786 done 6787 6788 else 6789 # The variable is set, but is it from the command line or the environment? 6790 6791 # Try to remove the string !EXPR! from our list. 6792 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6793 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6794 # If it failed, the variable was not from the command line. Ignore it, 6795 # but warn the user (except for BASH, which is always set by the calling BASH). 6796 if test "xEXPR" != xBASH; then 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6798 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6799 fi 6800 # Try to locate tool using the code snippet 6801 for ac_prog in expr 6802 do 6803 # Extract the first word of "$ac_prog", so it can be a program name with args. 6804 set dummy $ac_prog; ac_word=$2 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6806 $as_echo_n "checking for $ac_word... " >&6; } 6807 if ${ac_cv_path_EXPR+:} false; then : 6808 $as_echo_n "(cached) " >&6 6809 else 6810 case $EXPR in 6811 [\\/]* | ?:[\\/]*) 6812 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6813 ;; 6814 *) 6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6816 for as_dir in $PATH 6817 do 6818 IFS=$as_save_IFS 6819 test -z "$as_dir" && as_dir=. 6820 for ac_exec_ext in '' $ac_executable_extensions; do 6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6822 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6824 break 2 6825 fi 6826 done 6827 done 6828 IFS=$as_save_IFS 6829 6830 ;; 6831 esac 6832 fi 6833 EXPR=$ac_cv_path_EXPR 6834 if test -n "$EXPR"; then 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6836 $as_echo "$EXPR" >&6; } 6837 else 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6839 $as_echo "no" >&6; } 6840 fi 6841 6842 6843 test -n "$EXPR" && break 6844 done 6845 6846 else 6847 # If it succeeded, then it was overridden by the user. We will use it 6848 # for the tool. 6849 6850 # First remove it from the list of overridden variables, so we can test 6851 # for unknown variables in the end. 6852 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6853 6854 # Check if the provided tool contains a complete path. 6855 tool_specified="$EXPR" 6856 tool_basename="${tool_specified##*/}" 6857 if test "x$tool_basename" = "x$tool_specified"; then 6858 # A command without a complete path is provided, search $PATH. 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6860 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6861 # Extract the first word of "$tool_basename", so it can be a program name with args. 6862 set dummy $tool_basename; ac_word=$2 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6864 $as_echo_n "checking for $ac_word... " >&6; } 6865 if ${ac_cv_path_EXPR+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867 else 6868 case $EXPR in 6869 [\\/]* | ?:[\\/]*) 6870 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6871 ;; 6872 *) 6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6874 for as_dir in $PATH 6875 do 6876 IFS=$as_save_IFS 6877 test -z "$as_dir" && as_dir=. 6878 for ac_exec_ext in '' $ac_executable_extensions; do 6879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6880 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6882 break 2 6883 fi 6884 done 6885 done 6886 IFS=$as_save_IFS 6887 6888 ;; 6889 esac 6890 fi 6891 EXPR=$ac_cv_path_EXPR 6892 if test -n "$EXPR"; then 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6894 $as_echo "$EXPR" >&6; } 6895 else 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6897 $as_echo "no" >&6; } 6898 fi 6899 6900 6901 if test "x$EXPR" = x; then 6902 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6903 fi 6904 else 6905 # Otherwise we believe it is a complete path. Use it as it is. 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6907 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6909 $as_echo_n "checking for EXPR... " >&6; } 6910 if test ! -x "$tool_specified"; then 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6912 $as_echo "not found" >&6; } 6913 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6914 fi 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6916 $as_echo "$tool_specified" >&6; } 6917 fi 6918 fi 6919 fi 6920 6921 6922 6923 if test "x$EXPR" = x; then 6924 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6925 fi 6926 6927 6928 6929 6930 6931 # Publish this variable in the help. 6932 6933 6934 if test "x$FILE" = x; then 6935 # The variable is not set by user, try to locate tool using the code snippet 6936 for ac_prog in file 6937 do 6938 # Extract the first word of "$ac_prog", so it can be a program name with args. 6939 set dummy $ac_prog; ac_word=$2 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6941 $as_echo_n "checking for $ac_word... " >&6; } 6942 if ${ac_cv_path_FILE+:} false; then : 6943 $as_echo_n "(cached) " >&6 6944 else 6945 case $FILE in 6946 [\\/]* | ?:[\\/]*) 6947 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6948 ;; 6949 *) 6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6951 for as_dir in $PATH 6952 do 6953 IFS=$as_save_IFS 6954 test -z "$as_dir" && as_dir=. 6955 for ac_exec_ext in '' $ac_executable_extensions; do 6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6957 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6959 break 2 6960 fi 6961 done 6962 done 6963 IFS=$as_save_IFS 6964 6965 ;; 6966 esac 6967 fi 6968 FILE=$ac_cv_path_FILE 6969 if test -n "$FILE"; then 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6971 $as_echo "$FILE" >&6; } 6972 else 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6974 $as_echo "no" >&6; } 6975 fi 6976 6977 6978 test -n "$FILE" && break 6979 done 6980 6981 else 6982 # The variable is set, but is it from the command line or the environment? 6983 6984 # Try to remove the string !FILE! from our list. 6985 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 6986 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6987 # If it failed, the variable was not from the command line. Ignore it, 6988 # but warn the user (except for BASH, which is always set by the calling BASH). 6989 if test "xFILE" != xBASH; then 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 6991 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 6992 fi 6993 # Try to locate tool using the code snippet 6994 for ac_prog in file 6995 do 6996 # Extract the first word of "$ac_prog", so it can be a program name with args. 6997 set dummy $ac_prog; ac_word=$2 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6999 $as_echo_n "checking for $ac_word... " >&6; } 7000 if ${ac_cv_path_FILE+:} false; then : 7001 $as_echo_n "(cached) " >&6 7002 else 7003 case $FILE in 7004 [\\/]* | ?:[\\/]*) 7005 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7006 ;; 7007 *) 7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7009 for as_dir in $PATH 7010 do 7011 IFS=$as_save_IFS 7012 test -z "$as_dir" && as_dir=. 7013 for ac_exec_ext in '' $ac_executable_extensions; do 7014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7015 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7017 break 2 7018 fi 7019 done 7020 done 7021 IFS=$as_save_IFS 7022 7023 ;; 7024 esac 7025 fi 7026 FILE=$ac_cv_path_FILE 7027 if test -n "$FILE"; then 7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7029 $as_echo "$FILE" >&6; } 7030 else 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7032 $as_echo "no" >&6; } 7033 fi 7034 7035 7036 test -n "$FILE" && break 7037 done 7038 7039 else 7040 # If it succeeded, then it was overridden by the user. We will use it 7041 # for the tool. 7042 7043 # First remove it from the list of overridden variables, so we can test 7044 # for unknown variables in the end. 7045 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7046 7047 # Check if the provided tool contains a complete path. 7048 tool_specified="$FILE" 7049 tool_basename="${tool_specified##*/}" 7050 if test "x$tool_basename" = "x$tool_specified"; then 7051 # A command without a complete path is provided, search $PATH. 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7053 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7054 # Extract the first word of "$tool_basename", so it can be a program name with args. 7055 set dummy $tool_basename; ac_word=$2 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7057 $as_echo_n "checking for $ac_word... " >&6; } 7058 if ${ac_cv_path_FILE+:} false; then : 7059 $as_echo_n "(cached) " >&6 7060 else 7061 case $FILE in 7062 [\\/]* | ?:[\\/]*) 7063 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7064 ;; 7065 *) 7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7067 for as_dir in $PATH 7068 do 7069 IFS=$as_save_IFS 7070 test -z "$as_dir" && as_dir=. 7071 for ac_exec_ext in '' $ac_executable_extensions; do 7072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7073 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7075 break 2 7076 fi 7077 done 7078 done 7079 IFS=$as_save_IFS 7080 7081 ;; 7082 esac 7083 fi 7084 FILE=$ac_cv_path_FILE 7085 if test -n "$FILE"; then 7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7087 $as_echo "$FILE" >&6; } 7088 else 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7090 $as_echo "no" >&6; } 7091 fi 7092 7093 7094 if test "x$FILE" = x; then 7095 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7096 fi 7097 else 7098 # Otherwise we believe it is a complete path. Use it as it is. 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7100 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7102 $as_echo_n "checking for FILE... " >&6; } 7103 if test ! -x "$tool_specified"; then 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7105 $as_echo "not found" >&6; } 7106 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7107 fi 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7109 $as_echo "$tool_specified" >&6; } 7110 fi 7111 fi 7112 fi 7113 7114 7115 7116 if test "x$FILE" = x; then 7117 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7118 fi 7119 7120 7121 7122 7123 7124 # Publish this variable in the help. 7125 7126 7127 if test "x$FIND" = x; then 7128 # The variable is not set by user, try to locate tool using the code snippet 7129 for ac_prog in find 7130 do 7131 # Extract the first word of "$ac_prog", so it can be a program name with args. 7132 set dummy $ac_prog; ac_word=$2 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7134 $as_echo_n "checking for $ac_word... " >&6; } 7135 if ${ac_cv_path_FIND+:} false; then : 7136 $as_echo_n "(cached) " >&6 7137 else 7138 case $FIND in 7139 [\\/]* | ?:[\\/]*) 7140 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7141 ;; 7142 *) 7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7144 for as_dir in $PATH 7145 do 7146 IFS=$as_save_IFS 7147 test -z "$as_dir" && as_dir=. 7148 for ac_exec_ext in '' $ac_executable_extensions; do 7149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7150 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7152 break 2 7153 fi 7154 done 7155 done 7156 IFS=$as_save_IFS 7157 7158 ;; 7159 esac 7160 fi 7161 FIND=$ac_cv_path_FIND 7162 if test -n "$FIND"; then 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7164 $as_echo "$FIND" >&6; } 7165 else 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7167 $as_echo "no" >&6; } 7168 fi 7169 7170 7171 test -n "$FIND" && break 7172 done 7173 7174 else 7175 # The variable is set, but is it from the command line or the environment? 7176 7177 # Try to remove the string !FIND! from our list. 7178 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7179 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7180 # If it failed, the variable was not from the command line. Ignore it, 7181 # but warn the user (except for BASH, which is always set by the calling BASH). 7182 if test "xFIND" != xBASH; then 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7184 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7185 fi 7186 # Try to locate tool using the code snippet 7187 for ac_prog in find 7188 do 7189 # Extract the first word of "$ac_prog", so it can be a program name with args. 7190 set dummy $ac_prog; ac_word=$2 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7192 $as_echo_n "checking for $ac_word... " >&6; } 7193 if ${ac_cv_path_FIND+:} false; then : 7194 $as_echo_n "(cached) " >&6 7195 else 7196 case $FIND in 7197 [\\/]* | ?:[\\/]*) 7198 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7199 ;; 7200 *) 7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7202 for as_dir in $PATH 7203 do 7204 IFS=$as_save_IFS 7205 test -z "$as_dir" && as_dir=. 7206 for ac_exec_ext in '' $ac_executable_extensions; do 7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7208 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7210 break 2 7211 fi 7212 done 7213 done 7214 IFS=$as_save_IFS 7215 7216 ;; 7217 esac 7218 fi 7219 FIND=$ac_cv_path_FIND 7220 if test -n "$FIND"; then 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7222 $as_echo "$FIND" >&6; } 7223 else 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7225 $as_echo "no" >&6; } 7226 fi 7227 7228 7229 test -n "$FIND" && break 7230 done 7231 7232 else 7233 # If it succeeded, then it was overridden by the user. We will use it 7234 # for the tool. 7235 7236 # First remove it from the list of overridden variables, so we can test 7237 # for unknown variables in the end. 7238 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7239 7240 # Check if the provided tool contains a complete path. 7241 tool_specified="$FIND" 7242 tool_basename="${tool_specified##*/}" 7243 if test "x$tool_basename" = "x$tool_specified"; then 7244 # A command without a complete path is provided, search $PATH. 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7246 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7247 # Extract the first word of "$tool_basename", so it can be a program name with args. 7248 set dummy $tool_basename; ac_word=$2 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7250 $as_echo_n "checking for $ac_word... " >&6; } 7251 if ${ac_cv_path_FIND+:} false; then : 7252 $as_echo_n "(cached) " >&6 7253 else 7254 case $FIND in 7255 [\\/]* | ?:[\\/]*) 7256 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7257 ;; 7258 *) 7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7260 for as_dir in $PATH 7261 do 7262 IFS=$as_save_IFS 7263 test -z "$as_dir" && as_dir=. 7264 for ac_exec_ext in '' $ac_executable_extensions; do 7265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7266 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7268 break 2 7269 fi 7270 done 7271 done 7272 IFS=$as_save_IFS 7273 7274 ;; 7275 esac 7276 fi 7277 FIND=$ac_cv_path_FIND 7278 if test -n "$FIND"; then 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7280 $as_echo "$FIND" >&6; } 7281 else 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7283 $as_echo "no" >&6; } 7284 fi 7285 7286 7287 if test "x$FIND" = x; then 7288 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7289 fi 7290 else 7291 # Otherwise we believe it is a complete path. Use it as it is. 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7293 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7295 $as_echo_n "checking for FIND... " >&6; } 7296 if test ! -x "$tool_specified"; then 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7298 $as_echo "not found" >&6; } 7299 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7300 fi 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7302 $as_echo "$tool_specified" >&6; } 7303 fi 7304 fi 7305 fi 7306 7307 7308 7309 if test "x$FIND" = x; then 7310 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7311 fi 7312 7313 7314 7315 7316 7317 # Publish this variable in the help. 7318 7319 7320 if test "x$HEAD" = x; then 7321 # The variable is not set by user, try to locate tool using the code snippet 7322 for ac_prog in head 7323 do 7324 # Extract the first word of "$ac_prog", so it can be a program name with args. 7325 set dummy $ac_prog; ac_word=$2 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7327 $as_echo_n "checking for $ac_word... " >&6; } 7328 if ${ac_cv_path_HEAD+:} false; then : 7329 $as_echo_n "(cached) " >&6 7330 else 7331 case $HEAD in 7332 [\\/]* | ?:[\\/]*) 7333 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7334 ;; 7335 *) 7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7337 for as_dir in $PATH 7338 do 7339 IFS=$as_save_IFS 7340 test -z "$as_dir" && as_dir=. 7341 for ac_exec_ext in '' $ac_executable_extensions; do 7342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7343 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7345 break 2 7346 fi 7347 done 7348 done 7349 IFS=$as_save_IFS 7350 7351 ;; 7352 esac 7353 fi 7354 HEAD=$ac_cv_path_HEAD 7355 if test -n "$HEAD"; then 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7357 $as_echo "$HEAD" >&6; } 7358 else 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7360 $as_echo "no" >&6; } 7361 fi 7362 7363 7364 test -n "$HEAD" && break 7365 done 7366 7367 else 7368 # The variable is set, but is it from the command line or the environment? 7369 7370 # Try to remove the string !HEAD! from our list. 7371 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7372 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7373 # If it failed, the variable was not from the command line. Ignore it, 7374 # but warn the user (except for BASH, which is always set by the calling BASH). 7375 if test "xHEAD" != xBASH; then 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7377 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7378 fi 7379 # Try to locate tool using the code snippet 7380 for ac_prog in head 7381 do 7382 # Extract the first word of "$ac_prog", so it can be a program name with args. 7383 set dummy $ac_prog; ac_word=$2 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7385 $as_echo_n "checking for $ac_word... " >&6; } 7386 if ${ac_cv_path_HEAD+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388 else 7389 case $HEAD in 7390 [\\/]* | ?:[\\/]*) 7391 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7392 ;; 7393 *) 7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7395 for as_dir in $PATH 7396 do 7397 IFS=$as_save_IFS 7398 test -z "$as_dir" && as_dir=. 7399 for ac_exec_ext in '' $ac_executable_extensions; do 7400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7401 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7403 break 2 7404 fi 7405 done 7406 done 7407 IFS=$as_save_IFS 7408 7409 ;; 7410 esac 7411 fi 7412 HEAD=$ac_cv_path_HEAD 7413 if test -n "$HEAD"; then 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7415 $as_echo "$HEAD" >&6; } 7416 else 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7418 $as_echo "no" >&6; } 7419 fi 7420 7421 7422 test -n "$HEAD" && break 7423 done 7424 7425 else 7426 # If it succeeded, then it was overridden by the user. We will use it 7427 # for the tool. 7428 7429 # First remove it from the list of overridden variables, so we can test 7430 # for unknown variables in the end. 7431 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7432 7433 # Check if the provided tool contains a complete path. 7434 tool_specified="$HEAD" 7435 tool_basename="${tool_specified##*/}" 7436 if test "x$tool_basename" = "x$tool_specified"; then 7437 # A command without a complete path is provided, search $PATH. 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7439 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7440 # Extract the first word of "$tool_basename", so it can be a program name with args. 7441 set dummy $tool_basename; ac_word=$2 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7443 $as_echo_n "checking for $ac_word... " >&6; } 7444 if ${ac_cv_path_HEAD+:} false; then : 7445 $as_echo_n "(cached) " >&6 7446 else 7447 case $HEAD in 7448 [\\/]* | ?:[\\/]*) 7449 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7450 ;; 7451 *) 7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7453 for as_dir in $PATH 7454 do 7455 IFS=$as_save_IFS 7456 test -z "$as_dir" && as_dir=. 7457 for ac_exec_ext in '' $ac_executable_extensions; do 7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7459 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7461 break 2 7462 fi 7463 done 7464 done 7465 IFS=$as_save_IFS 7466 7467 ;; 7468 esac 7469 fi 7470 HEAD=$ac_cv_path_HEAD 7471 if test -n "$HEAD"; then 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7473 $as_echo "$HEAD" >&6; } 7474 else 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7476 $as_echo "no" >&6; } 7477 fi 7478 7479 7480 if test "x$HEAD" = x; then 7481 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7482 fi 7483 else 7484 # Otherwise we believe it is a complete path. Use it as it is. 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7486 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7488 $as_echo_n "checking for HEAD... " >&6; } 7489 if test ! -x "$tool_specified"; then 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7491 $as_echo "not found" >&6; } 7492 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7493 fi 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7495 $as_echo "$tool_specified" >&6; } 7496 fi 7497 fi 7498 fi 7499 7500 7501 7502 if test "x$HEAD" = x; then 7503 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7504 fi 7505 7506 7507 7508 7509 7510 # Publish this variable in the help. 7511 7512 7513 if test "x$LN" = x; then 7514 # The variable is not set by user, try to locate tool using the code snippet 7515 for ac_prog in ln 7516 do 7517 # Extract the first word of "$ac_prog", so it can be a program name with args. 7518 set dummy $ac_prog; ac_word=$2 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7520 $as_echo_n "checking for $ac_word... " >&6; } 7521 if ${ac_cv_path_LN+:} false; then : 7522 $as_echo_n "(cached) " >&6 7523 else 7524 case $LN in 7525 [\\/]* | ?:[\\/]*) 7526 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7527 ;; 7528 *) 7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7530 for as_dir in $PATH 7531 do 7532 IFS=$as_save_IFS 7533 test -z "$as_dir" && as_dir=. 7534 for ac_exec_ext in '' $ac_executable_extensions; do 7535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7536 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7538 break 2 7539 fi 7540 done 7541 done 7542 IFS=$as_save_IFS 7543 7544 ;; 7545 esac 7546 fi 7547 LN=$ac_cv_path_LN 7548 if test -n "$LN"; then 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7550 $as_echo "$LN" >&6; } 7551 else 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7553 $as_echo "no" >&6; } 7554 fi 7555 7556 7557 test -n "$LN" && break 7558 done 7559 7560 else 7561 # The variable is set, but is it from the command line or the environment? 7562 7563 # Try to remove the string !LN! from our list. 7564 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7565 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7566 # If it failed, the variable was not from the command line. Ignore it, 7567 # but warn the user (except for BASH, which is always set by the calling BASH). 7568 if test "xLN" != xBASH; then 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7570 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7571 fi 7572 # Try to locate tool using the code snippet 7573 for ac_prog in ln 7574 do 7575 # Extract the first word of "$ac_prog", so it can be a program name with args. 7576 set dummy $ac_prog; ac_word=$2 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7578 $as_echo_n "checking for $ac_word... " >&6; } 7579 if ${ac_cv_path_LN+:} false; then : 7580 $as_echo_n "(cached) " >&6 7581 else 7582 case $LN in 7583 [\\/]* | ?:[\\/]*) 7584 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7585 ;; 7586 *) 7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7588 for as_dir in $PATH 7589 do 7590 IFS=$as_save_IFS 7591 test -z "$as_dir" && as_dir=. 7592 for ac_exec_ext in '' $ac_executable_extensions; do 7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7594 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7596 break 2 7597 fi 7598 done 7599 done 7600 IFS=$as_save_IFS 7601 7602 ;; 7603 esac 7604 fi 7605 LN=$ac_cv_path_LN 7606 if test -n "$LN"; then 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7608 $as_echo "$LN" >&6; } 7609 else 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7611 $as_echo "no" >&6; } 7612 fi 7613 7614 7615 test -n "$LN" && break 7616 done 7617 7618 else 7619 # If it succeeded, then it was overridden by the user. We will use it 7620 # for the tool. 7621 7622 # First remove it from the list of overridden variables, so we can test 7623 # for unknown variables in the end. 7624 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7625 7626 # Check if the provided tool contains a complete path. 7627 tool_specified="$LN" 7628 tool_basename="${tool_specified##*/}" 7629 if test "x$tool_basename" = "x$tool_specified"; then 7630 # A command without a complete path is provided, search $PATH. 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7632 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7633 # Extract the first word of "$tool_basename", so it can be a program name with args. 7634 set dummy $tool_basename; ac_word=$2 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7636 $as_echo_n "checking for $ac_word... " >&6; } 7637 if ${ac_cv_path_LN+:} false; then : 7638 $as_echo_n "(cached) " >&6 7639 else 7640 case $LN in 7641 [\\/]* | ?:[\\/]*) 7642 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7643 ;; 7644 *) 7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7646 for as_dir in $PATH 7647 do 7648 IFS=$as_save_IFS 7649 test -z "$as_dir" && as_dir=. 7650 for ac_exec_ext in '' $ac_executable_extensions; do 7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7652 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7654 break 2 7655 fi 7656 done 7657 done 7658 IFS=$as_save_IFS 7659 7660 ;; 7661 esac 7662 fi 7663 LN=$ac_cv_path_LN 7664 if test -n "$LN"; then 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7666 $as_echo "$LN" >&6; } 7667 else 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7669 $as_echo "no" >&6; } 7670 fi 7671 7672 7673 if test "x$LN" = x; then 7674 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7675 fi 7676 else 7677 # Otherwise we believe it is a complete path. Use it as it is. 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7679 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7681 $as_echo_n "checking for LN... " >&6; } 7682 if test ! -x "$tool_specified"; then 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7684 $as_echo "not found" >&6; } 7685 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7686 fi 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7688 $as_echo "$tool_specified" >&6; } 7689 fi 7690 fi 7691 fi 7692 7693 7694 7695 if test "x$LN" = x; then 7696 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7697 fi 7698 7699 7700 7701 7702 7703 # Publish this variable in the help. 7704 7705 7706 if test "x$LS" = x; then 7707 # The variable is not set by user, try to locate tool using the code snippet 7708 for ac_prog in ls 7709 do 7710 # Extract the first word of "$ac_prog", so it can be a program name with args. 7711 set dummy $ac_prog; ac_word=$2 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7713 $as_echo_n "checking for $ac_word... " >&6; } 7714 if ${ac_cv_path_LS+:} false; then : 7715 $as_echo_n "(cached) " >&6 7716 else 7717 case $LS in 7718 [\\/]* | ?:[\\/]*) 7719 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7720 ;; 7721 *) 7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7723 for as_dir in $PATH 7724 do 7725 IFS=$as_save_IFS 7726 test -z "$as_dir" && as_dir=. 7727 for ac_exec_ext in '' $ac_executable_extensions; do 7728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7729 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7731 break 2 7732 fi 7733 done 7734 done 7735 IFS=$as_save_IFS 7736 7737 ;; 7738 esac 7739 fi 7740 LS=$ac_cv_path_LS 7741 if test -n "$LS"; then 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7743 $as_echo "$LS" >&6; } 7744 else 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7746 $as_echo "no" >&6; } 7747 fi 7748 7749 7750 test -n "$LS" && break 7751 done 7752 7753 else 7754 # The variable is set, but is it from the command line or the environment? 7755 7756 # Try to remove the string !LS! from our list. 7757 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7758 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7759 # If it failed, the variable was not from the command line. Ignore it, 7760 # but warn the user (except for BASH, which is always set by the calling BASH). 7761 if test "xLS" != xBASH; then 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7763 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7764 fi 7765 # Try to locate tool using the code snippet 7766 for ac_prog in ls 7767 do 7768 # Extract the first word of "$ac_prog", so it can be a program name with args. 7769 set dummy $ac_prog; ac_word=$2 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7771 $as_echo_n "checking for $ac_word... " >&6; } 7772 if ${ac_cv_path_LS+:} false; then : 7773 $as_echo_n "(cached) " >&6 7774 else 7775 case $LS in 7776 [\\/]* | ?:[\\/]*) 7777 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7778 ;; 7779 *) 7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7781 for as_dir in $PATH 7782 do 7783 IFS=$as_save_IFS 7784 test -z "$as_dir" && as_dir=. 7785 for ac_exec_ext in '' $ac_executable_extensions; do 7786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7787 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7789 break 2 7790 fi 7791 done 7792 done 7793 IFS=$as_save_IFS 7794 7795 ;; 7796 esac 7797 fi 7798 LS=$ac_cv_path_LS 7799 if test -n "$LS"; then 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7801 $as_echo "$LS" >&6; } 7802 else 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7804 $as_echo "no" >&6; } 7805 fi 7806 7807 7808 test -n "$LS" && break 7809 done 7810 7811 else 7812 # If it succeeded, then it was overridden by the user. We will use it 7813 # for the tool. 7814 7815 # First remove it from the list of overridden variables, so we can test 7816 # for unknown variables in the end. 7817 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7818 7819 # Check if the provided tool contains a complete path. 7820 tool_specified="$LS" 7821 tool_basename="${tool_specified##*/}" 7822 if test "x$tool_basename" = "x$tool_specified"; then 7823 # A command without a complete path is provided, search $PATH. 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7825 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7826 # Extract the first word of "$tool_basename", so it can be a program name with args. 7827 set dummy $tool_basename; ac_word=$2 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7829 $as_echo_n "checking for $ac_word... " >&6; } 7830 if ${ac_cv_path_LS+:} false; then : 7831 $as_echo_n "(cached) " >&6 7832 else 7833 case $LS in 7834 [\\/]* | ?:[\\/]*) 7835 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7836 ;; 7837 *) 7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7839 for as_dir in $PATH 7840 do 7841 IFS=$as_save_IFS 7842 test -z "$as_dir" && as_dir=. 7843 for ac_exec_ext in '' $ac_executable_extensions; do 7844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7845 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7847 break 2 7848 fi 7849 done 7850 done 7851 IFS=$as_save_IFS 7852 7853 ;; 7854 esac 7855 fi 7856 LS=$ac_cv_path_LS 7857 if test -n "$LS"; then 7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7859 $as_echo "$LS" >&6; } 7860 else 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7862 $as_echo "no" >&6; } 7863 fi 7864 7865 7866 if test "x$LS" = x; then 7867 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7868 fi 7869 else 7870 # Otherwise we believe it is a complete path. Use it as it is. 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7872 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7874 $as_echo_n "checking for LS... " >&6; } 7875 if test ! -x "$tool_specified"; then 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7877 $as_echo "not found" >&6; } 7878 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7879 fi 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7881 $as_echo "$tool_specified" >&6; } 7882 fi 7883 fi 7884 fi 7885 7886 7887 7888 if test "x$LS" = x; then 7889 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7890 fi 7891 7892 7893 7894 7895 7896 # Publish this variable in the help. 7897 7898 7899 if test "x$MKDIR" = x; then 7900 # The variable is not set by user, try to locate tool using the code snippet 7901 for ac_prog in mkdir 7902 do 7903 # Extract the first word of "$ac_prog", so it can be a program name with args. 7904 set dummy $ac_prog; ac_word=$2 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7906 $as_echo_n "checking for $ac_word... " >&6; } 7907 if ${ac_cv_path_MKDIR+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909 else 7910 case $MKDIR in 7911 [\\/]* | ?:[\\/]*) 7912 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7913 ;; 7914 *) 7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7916 for as_dir in $PATH 7917 do 7918 IFS=$as_save_IFS 7919 test -z "$as_dir" && as_dir=. 7920 for ac_exec_ext in '' $ac_executable_extensions; do 7921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7922 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7924 break 2 7925 fi 7926 done 7927 done 7928 IFS=$as_save_IFS 7929 7930 ;; 7931 esac 7932 fi 7933 MKDIR=$ac_cv_path_MKDIR 7934 if test -n "$MKDIR"; then 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7936 $as_echo "$MKDIR" >&6; } 7937 else 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7939 $as_echo "no" >&6; } 7940 fi 7941 7942 7943 test -n "$MKDIR" && break 7944 done 7945 7946 else 7947 # The variable is set, but is it from the command line or the environment? 7948 7949 # Try to remove the string !MKDIR! from our list. 7950 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7951 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7952 # If it failed, the variable was not from the command line. Ignore it, 7953 # but warn the user (except for BASH, which is always set by the calling BASH). 7954 if test "xMKDIR" != xBASH; then 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7956 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7957 fi 7958 # Try to locate tool using the code snippet 7959 for ac_prog in mkdir 7960 do 7961 # Extract the first word of "$ac_prog", so it can be a program name with args. 7962 set dummy $ac_prog; ac_word=$2 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7964 $as_echo_n "checking for $ac_word... " >&6; } 7965 if ${ac_cv_path_MKDIR+:} false; then : 7966 $as_echo_n "(cached) " >&6 7967 else 7968 case $MKDIR in 7969 [\\/]* | ?:[\\/]*) 7970 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7971 ;; 7972 *) 7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7974 for as_dir in $PATH 7975 do 7976 IFS=$as_save_IFS 7977 test -z "$as_dir" && as_dir=. 7978 for ac_exec_ext in '' $ac_executable_extensions; do 7979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7980 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7982 break 2 7983 fi 7984 done 7985 done 7986 IFS=$as_save_IFS 7987 7988 ;; 7989 esac 7990 fi 7991 MKDIR=$ac_cv_path_MKDIR 7992 if test -n "$MKDIR"; then 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7994 $as_echo "$MKDIR" >&6; } 7995 else 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7997 $as_echo "no" >&6; } 7998 fi 7999 8000 8001 test -n "$MKDIR" && break 8002 done 8003 8004 else 8005 # If it succeeded, then it was overridden by the user. We will use it 8006 # for the tool. 8007 8008 # First remove it from the list of overridden variables, so we can test 8009 # for unknown variables in the end. 8010 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8011 8012 # Check if the provided tool contains a complete path. 8013 tool_specified="$MKDIR" 8014 tool_basename="${tool_specified##*/}" 8015 if test "x$tool_basename" = "x$tool_specified"; then 8016 # A command without a complete path is provided, search $PATH. 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8018 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8019 # Extract the first word of "$tool_basename", so it can be a program name with args. 8020 set dummy $tool_basename; ac_word=$2 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8022 $as_echo_n "checking for $ac_word... " >&6; } 8023 if ${ac_cv_path_MKDIR+:} false; then : 8024 $as_echo_n "(cached) " >&6 8025 else 8026 case $MKDIR in 8027 [\\/]* | ?:[\\/]*) 8028 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8029 ;; 8030 *) 8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8032 for as_dir in $PATH 8033 do 8034 IFS=$as_save_IFS 8035 test -z "$as_dir" && as_dir=. 8036 for ac_exec_ext in '' $ac_executable_extensions; do 8037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8038 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8040 break 2 8041 fi 8042 done 8043 done 8044 IFS=$as_save_IFS 8045 8046 ;; 8047 esac 8048 fi 8049 MKDIR=$ac_cv_path_MKDIR 8050 if test -n "$MKDIR"; then 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8052 $as_echo "$MKDIR" >&6; } 8053 else 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8055 $as_echo "no" >&6; } 8056 fi 8057 8058 8059 if test "x$MKDIR" = x; then 8060 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8061 fi 8062 else 8063 # Otherwise we believe it is a complete path. Use it as it is. 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8065 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8067 $as_echo_n "checking for MKDIR... " >&6; } 8068 if test ! -x "$tool_specified"; then 8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8070 $as_echo "not found" >&6; } 8071 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8072 fi 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8074 $as_echo "$tool_specified" >&6; } 8075 fi 8076 fi 8077 fi 8078 8079 8080 8081 if test "x$MKDIR" = x; then 8082 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8083 fi 8084 8085 8086 8087 8088 8089 # Publish this variable in the help. 8090 8091 8092 if test "x$MKTEMP" = x; then 8093 # The variable is not set by user, try to locate tool using the code snippet 8094 for ac_prog in mktemp 8095 do 8096 # Extract the first word of "$ac_prog", so it can be a program name with args. 8097 set dummy $ac_prog; ac_word=$2 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8099 $as_echo_n "checking for $ac_word... " >&6; } 8100 if ${ac_cv_path_MKTEMP+:} false; then : 8101 $as_echo_n "(cached) " >&6 8102 else 8103 case $MKTEMP in 8104 [\\/]* | ?:[\\/]*) 8105 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8106 ;; 8107 *) 8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8109 for as_dir in $PATH 8110 do 8111 IFS=$as_save_IFS 8112 test -z "$as_dir" && as_dir=. 8113 for ac_exec_ext in '' $ac_executable_extensions; do 8114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8115 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8117 break 2 8118 fi 8119 done 8120 done 8121 IFS=$as_save_IFS 8122 8123 ;; 8124 esac 8125 fi 8126 MKTEMP=$ac_cv_path_MKTEMP 8127 if test -n "$MKTEMP"; then 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8129 $as_echo "$MKTEMP" >&6; } 8130 else 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8132 $as_echo "no" >&6; } 8133 fi 8134 8135 8136 test -n "$MKTEMP" && break 8137 done 8138 8139 else 8140 # The variable is set, but is it from the command line or the environment? 8141 8142 # Try to remove the string !MKTEMP! from our list. 8143 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8144 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8145 # If it failed, the variable was not from the command line. Ignore it, 8146 # but warn the user (except for BASH, which is always set by the calling BASH). 8147 if test "xMKTEMP" != xBASH; then 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8149 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8150 fi 8151 # Try to locate tool using the code snippet 8152 for ac_prog in mktemp 8153 do 8154 # Extract the first word of "$ac_prog", so it can be a program name with args. 8155 set dummy $ac_prog; ac_word=$2 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8157 $as_echo_n "checking for $ac_word... " >&6; } 8158 if ${ac_cv_path_MKTEMP+:} false; then : 8159 $as_echo_n "(cached) " >&6 8160 else 8161 case $MKTEMP in 8162 [\\/]* | ?:[\\/]*) 8163 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8164 ;; 8165 *) 8166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8167 for as_dir in $PATH 8168 do 8169 IFS=$as_save_IFS 8170 test -z "$as_dir" && as_dir=. 8171 for ac_exec_ext in '' $ac_executable_extensions; do 8172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8173 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8175 break 2 8176 fi 8177 done 8178 done 8179 IFS=$as_save_IFS 8180 8181 ;; 8182 esac 8183 fi 8184 MKTEMP=$ac_cv_path_MKTEMP 8185 if test -n "$MKTEMP"; then 8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8187 $as_echo "$MKTEMP" >&6; } 8188 else 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8190 $as_echo "no" >&6; } 8191 fi 8192 8193 8194 test -n "$MKTEMP" && break 8195 done 8196 8197 else 8198 # If it succeeded, then it was overridden by the user. We will use it 8199 # for the tool. 8200 8201 # First remove it from the list of overridden variables, so we can test 8202 # for unknown variables in the end. 8203 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8204 8205 # Check if the provided tool contains a complete path. 8206 tool_specified="$MKTEMP" 8207 tool_basename="${tool_specified##*/}" 8208 if test "x$tool_basename" = "x$tool_specified"; then 8209 # A command without a complete path is provided, search $PATH. 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8211 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8212 # Extract the first word of "$tool_basename", so it can be a program name with args. 8213 set dummy $tool_basename; ac_word=$2 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8215 $as_echo_n "checking for $ac_word... " >&6; } 8216 if ${ac_cv_path_MKTEMP+:} false; then : 8217 $as_echo_n "(cached) " >&6 8218 else 8219 case $MKTEMP in 8220 [\\/]* | ?:[\\/]*) 8221 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8222 ;; 8223 *) 8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8225 for as_dir in $PATH 8226 do 8227 IFS=$as_save_IFS 8228 test -z "$as_dir" && as_dir=. 8229 for ac_exec_ext in '' $ac_executable_extensions; do 8230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8231 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8233 break 2 8234 fi 8235 done 8236 done 8237 IFS=$as_save_IFS 8238 8239 ;; 8240 esac 8241 fi 8242 MKTEMP=$ac_cv_path_MKTEMP 8243 if test -n "$MKTEMP"; then 8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8245 $as_echo "$MKTEMP" >&6; } 8246 else 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8248 $as_echo "no" >&6; } 8249 fi 8250 8251 8252 if test "x$MKTEMP" = x; then 8253 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8254 fi 8255 else 8256 # Otherwise we believe it is a complete path. Use it as it is. 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8258 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8260 $as_echo_n "checking for MKTEMP... " >&6; } 8261 if test ! -x "$tool_specified"; then 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8263 $as_echo "not found" >&6; } 8264 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8265 fi 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8267 $as_echo "$tool_specified" >&6; } 8268 fi 8269 fi 8270 fi 8271 8272 8273 8274 if test "x$MKTEMP" = x; then 8275 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8276 fi 8277 8278 8279 8280 8281 8282 # Publish this variable in the help. 8283 8284 8285 if test "x$MV" = x; then 8286 # The variable is not set by user, try to locate tool using the code snippet 8287 for ac_prog in mv 8288 do 8289 # Extract the first word of "$ac_prog", so it can be a program name with args. 8290 set dummy $ac_prog; ac_word=$2 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8292 $as_echo_n "checking for $ac_word... " >&6; } 8293 if ${ac_cv_path_MV+:} false; then : 8294 $as_echo_n "(cached) " >&6 8295 else 8296 case $MV in 8297 [\\/]* | ?:[\\/]*) 8298 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8299 ;; 8300 *) 8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8302 for as_dir in $PATH 8303 do 8304 IFS=$as_save_IFS 8305 test -z "$as_dir" && as_dir=. 8306 for ac_exec_ext in '' $ac_executable_extensions; do 8307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8308 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8310 break 2 8311 fi 8312 done 8313 done 8314 IFS=$as_save_IFS 8315 8316 ;; 8317 esac 8318 fi 8319 MV=$ac_cv_path_MV 8320 if test -n "$MV"; then 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8322 $as_echo "$MV" >&6; } 8323 else 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8325 $as_echo "no" >&6; } 8326 fi 8327 8328 8329 test -n "$MV" && break 8330 done 8331 8332 else 8333 # The variable is set, but is it from the command line or the environment? 8334 8335 # Try to remove the string !MV! from our list. 8336 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8337 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8338 # If it failed, the variable was not from the command line. Ignore it, 8339 # but warn the user (except for BASH, which is always set by the calling BASH). 8340 if test "xMV" != xBASH; then 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8342 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8343 fi 8344 # Try to locate tool using the code snippet 8345 for ac_prog in mv 8346 do 8347 # Extract the first word of "$ac_prog", so it can be a program name with args. 8348 set dummy $ac_prog; ac_word=$2 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8350 $as_echo_n "checking for $ac_word... " >&6; } 8351 if ${ac_cv_path_MV+:} false; then : 8352 $as_echo_n "(cached) " >&6 8353 else 8354 case $MV in 8355 [\\/]* | ?:[\\/]*) 8356 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8357 ;; 8358 *) 8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8360 for as_dir in $PATH 8361 do 8362 IFS=$as_save_IFS 8363 test -z "$as_dir" && as_dir=. 8364 for ac_exec_ext in '' $ac_executable_extensions; do 8365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8366 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8368 break 2 8369 fi 8370 done 8371 done 8372 IFS=$as_save_IFS 8373 8374 ;; 8375 esac 8376 fi 8377 MV=$ac_cv_path_MV 8378 if test -n "$MV"; then 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8380 $as_echo "$MV" >&6; } 8381 else 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8383 $as_echo "no" >&6; } 8384 fi 8385 8386 8387 test -n "$MV" && break 8388 done 8389 8390 else 8391 # If it succeeded, then it was overridden by the user. We will use it 8392 # for the tool. 8393 8394 # First remove it from the list of overridden variables, so we can test 8395 # for unknown variables in the end. 8396 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8397 8398 # Check if the provided tool contains a complete path. 8399 tool_specified="$MV" 8400 tool_basename="${tool_specified##*/}" 8401 if test "x$tool_basename" = "x$tool_specified"; then 8402 # A command without a complete path is provided, search $PATH. 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8404 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8405 # Extract the first word of "$tool_basename", so it can be a program name with args. 8406 set dummy $tool_basename; ac_word=$2 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8408 $as_echo_n "checking for $ac_word... " >&6; } 8409 if ${ac_cv_path_MV+:} false; then : 8410 $as_echo_n "(cached) " >&6 8411 else 8412 case $MV in 8413 [\\/]* | ?:[\\/]*) 8414 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8415 ;; 8416 *) 8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8418 for as_dir in $PATH 8419 do 8420 IFS=$as_save_IFS 8421 test -z "$as_dir" && as_dir=. 8422 for ac_exec_ext in '' $ac_executable_extensions; do 8423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8424 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8426 break 2 8427 fi 8428 done 8429 done 8430 IFS=$as_save_IFS 8431 8432 ;; 8433 esac 8434 fi 8435 MV=$ac_cv_path_MV 8436 if test -n "$MV"; then 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8438 $as_echo "$MV" >&6; } 8439 else 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8441 $as_echo "no" >&6; } 8442 fi 8443 8444 8445 if test "x$MV" = x; then 8446 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8447 fi 8448 else 8449 # Otherwise we believe it is a complete path. Use it as it is. 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8451 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8453 $as_echo_n "checking for MV... " >&6; } 8454 if test ! -x "$tool_specified"; then 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8456 $as_echo "not found" >&6; } 8457 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8458 fi 8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8460 $as_echo "$tool_specified" >&6; } 8461 fi 8462 fi 8463 fi 8464 8465 8466 8467 if test "x$MV" = x; then 8468 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8469 fi 8470 8471 8472 8473 8474 8475 # Publish this variable in the help. 8476 8477 8478 if test "x$NAWK" = x; then 8479 # The variable is not set by user, try to locate tool using the code snippet 8480 for ac_prog in nawk gawk awk 8481 do 8482 # Extract the first word of "$ac_prog", so it can be a program name with args. 8483 set dummy $ac_prog; ac_word=$2 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8485 $as_echo_n "checking for $ac_word... " >&6; } 8486 if ${ac_cv_path_NAWK+:} false; then : 8487 $as_echo_n "(cached) " >&6 8488 else 8489 case $NAWK in 8490 [\\/]* | ?:[\\/]*) 8491 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8492 ;; 8493 *) 8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8495 for as_dir in $PATH 8496 do 8497 IFS=$as_save_IFS 8498 test -z "$as_dir" && as_dir=. 8499 for ac_exec_ext in '' $ac_executable_extensions; do 8500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8501 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8503 break 2 8504 fi 8505 done 8506 done 8507 IFS=$as_save_IFS 8508 8509 ;; 8510 esac 8511 fi 8512 NAWK=$ac_cv_path_NAWK 8513 if test -n "$NAWK"; then 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8515 $as_echo "$NAWK" >&6; } 8516 else 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8518 $as_echo "no" >&6; } 8519 fi 8520 8521 8522 test -n "$NAWK" && break 8523 done 8524 8525 else 8526 # The variable is set, but is it from the command line or the environment? 8527 8528 # Try to remove the string !NAWK! from our list. 8529 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8530 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8531 # If it failed, the variable was not from the command line. Ignore it, 8532 # but warn the user (except for BASH, which is always set by the calling BASH). 8533 if test "xNAWK" != xBASH; then 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8535 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8536 fi 8537 # Try to locate tool using the code snippet 8538 for ac_prog in nawk gawk awk 8539 do 8540 # Extract the first word of "$ac_prog", so it can be a program name with args. 8541 set dummy $ac_prog; ac_word=$2 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8543 $as_echo_n "checking for $ac_word... " >&6; } 8544 if ${ac_cv_path_NAWK+:} false; then : 8545 $as_echo_n "(cached) " >&6 8546 else 8547 case $NAWK in 8548 [\\/]* | ?:[\\/]*) 8549 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8550 ;; 8551 *) 8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8553 for as_dir in $PATH 8554 do 8555 IFS=$as_save_IFS 8556 test -z "$as_dir" && as_dir=. 8557 for ac_exec_ext in '' $ac_executable_extensions; do 8558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8559 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8561 break 2 8562 fi 8563 done 8564 done 8565 IFS=$as_save_IFS 8566 8567 ;; 8568 esac 8569 fi 8570 NAWK=$ac_cv_path_NAWK 8571 if test -n "$NAWK"; then 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8573 $as_echo "$NAWK" >&6; } 8574 else 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8576 $as_echo "no" >&6; } 8577 fi 8578 8579 8580 test -n "$NAWK" && break 8581 done 8582 8583 else 8584 # If it succeeded, then it was overridden by the user. We will use it 8585 # for the tool. 8586 8587 # First remove it from the list of overridden variables, so we can test 8588 # for unknown variables in the end. 8589 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8590 8591 # Check if the provided tool contains a complete path. 8592 tool_specified="$NAWK" 8593 tool_basename="${tool_specified##*/}" 8594 if test "x$tool_basename" = "x$tool_specified"; then 8595 # A command without a complete path is provided, search $PATH. 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8597 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8598 # Extract the first word of "$tool_basename", so it can be a program name with args. 8599 set dummy $tool_basename; ac_word=$2 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8601 $as_echo_n "checking for $ac_word... " >&6; } 8602 if ${ac_cv_path_NAWK+:} false; then : 8603 $as_echo_n "(cached) " >&6 8604 else 8605 case $NAWK in 8606 [\\/]* | ?:[\\/]*) 8607 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8608 ;; 8609 *) 8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8611 for as_dir in $PATH 8612 do 8613 IFS=$as_save_IFS 8614 test -z "$as_dir" && as_dir=. 8615 for ac_exec_ext in '' $ac_executable_extensions; do 8616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8617 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8619 break 2 8620 fi 8621 done 8622 done 8623 IFS=$as_save_IFS 8624 8625 ;; 8626 esac 8627 fi 8628 NAWK=$ac_cv_path_NAWK 8629 if test -n "$NAWK"; then 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8631 $as_echo "$NAWK" >&6; } 8632 else 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8634 $as_echo "no" >&6; } 8635 fi 8636 8637 8638 if test "x$NAWK" = x; then 8639 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8640 fi 8641 else 8642 # Otherwise we believe it is a complete path. Use it as it is. 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8644 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8646 $as_echo_n "checking for NAWK... " >&6; } 8647 if test ! -x "$tool_specified"; then 8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8649 $as_echo "not found" >&6; } 8650 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8651 fi 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8653 $as_echo "$tool_specified" >&6; } 8654 fi 8655 fi 8656 fi 8657 8658 8659 8660 if test "x$NAWK" = x; then 8661 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8662 fi 8663 8664 8665 8666 8667 8668 # Publish this variable in the help. 8669 8670 8671 if test "x$PRINTF" = x; then 8672 # The variable is not set by user, try to locate tool using the code snippet 8673 for ac_prog in printf 8674 do 8675 # Extract the first word of "$ac_prog", so it can be a program name with args. 8676 set dummy $ac_prog; ac_word=$2 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8678 $as_echo_n "checking for $ac_word... " >&6; } 8679 if ${ac_cv_path_PRINTF+:} false; then : 8680 $as_echo_n "(cached) " >&6 8681 else 8682 case $PRINTF in 8683 [\\/]* | ?:[\\/]*) 8684 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8685 ;; 8686 *) 8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8688 for as_dir in $PATH 8689 do 8690 IFS=$as_save_IFS 8691 test -z "$as_dir" && as_dir=. 8692 for ac_exec_ext in '' $ac_executable_extensions; do 8693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8694 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8696 break 2 8697 fi 8698 done 8699 done 8700 IFS=$as_save_IFS 8701 8702 ;; 8703 esac 8704 fi 8705 PRINTF=$ac_cv_path_PRINTF 8706 if test -n "$PRINTF"; then 8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8708 $as_echo "$PRINTF" >&6; } 8709 else 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8711 $as_echo "no" >&6; } 8712 fi 8713 8714 8715 test -n "$PRINTF" && break 8716 done 8717 8718 else 8719 # The variable is set, but is it from the command line or the environment? 8720 8721 # Try to remove the string !PRINTF! from our list. 8722 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8723 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8724 # If it failed, the variable was not from the command line. Ignore it, 8725 # but warn the user (except for BASH, which is always set by the calling BASH). 8726 if test "xPRINTF" != xBASH; then 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8728 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8729 fi 8730 # Try to locate tool using the code snippet 8731 for ac_prog in printf 8732 do 8733 # Extract the first word of "$ac_prog", so it can be a program name with args. 8734 set dummy $ac_prog; ac_word=$2 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8736 $as_echo_n "checking for $ac_word... " >&6; } 8737 if ${ac_cv_path_PRINTF+:} false; then : 8738 $as_echo_n "(cached) " >&6 8739 else 8740 case $PRINTF in 8741 [\\/]* | ?:[\\/]*) 8742 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8743 ;; 8744 *) 8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8746 for as_dir in $PATH 8747 do 8748 IFS=$as_save_IFS 8749 test -z "$as_dir" && as_dir=. 8750 for ac_exec_ext in '' $ac_executable_extensions; do 8751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8752 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8754 break 2 8755 fi 8756 done 8757 done 8758 IFS=$as_save_IFS 8759 8760 ;; 8761 esac 8762 fi 8763 PRINTF=$ac_cv_path_PRINTF 8764 if test -n "$PRINTF"; then 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8766 $as_echo "$PRINTF" >&6; } 8767 else 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8769 $as_echo "no" >&6; } 8770 fi 8771 8772 8773 test -n "$PRINTF" && break 8774 done 8775 8776 else 8777 # If it succeeded, then it was overridden by the user. We will use it 8778 # for the tool. 8779 8780 # First remove it from the list of overridden variables, so we can test 8781 # for unknown variables in the end. 8782 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8783 8784 # Check if the provided tool contains a complete path. 8785 tool_specified="$PRINTF" 8786 tool_basename="${tool_specified##*/}" 8787 if test "x$tool_basename" = "x$tool_specified"; then 8788 # A command without a complete path is provided, search $PATH. 8789 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8790 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8791 # Extract the first word of "$tool_basename", so it can be a program name with args. 8792 set dummy $tool_basename; ac_word=$2 8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8794 $as_echo_n "checking for $ac_word... " >&6; } 8795 if ${ac_cv_path_PRINTF+:} false; then : 8796 $as_echo_n "(cached) " >&6 8797 else 8798 case $PRINTF in 8799 [\\/]* | ?:[\\/]*) 8800 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8801 ;; 8802 *) 8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8804 for as_dir in $PATH 8805 do 8806 IFS=$as_save_IFS 8807 test -z "$as_dir" && as_dir=. 8808 for ac_exec_ext in '' $ac_executable_extensions; do 8809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8810 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8812 break 2 8813 fi 8814 done 8815 done 8816 IFS=$as_save_IFS 8817 8818 ;; 8819 esac 8820 fi 8821 PRINTF=$ac_cv_path_PRINTF 8822 if test -n "$PRINTF"; then 8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8824 $as_echo "$PRINTF" >&6; } 8825 else 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8827 $as_echo "no" >&6; } 8828 fi 8829 8830 8831 if test "x$PRINTF" = x; then 8832 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8833 fi 8834 else 8835 # Otherwise we believe it is a complete path. Use it as it is. 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8837 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8839 $as_echo_n "checking for PRINTF... " >&6; } 8840 if test ! -x "$tool_specified"; then 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8842 $as_echo "not found" >&6; } 8843 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8844 fi 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8846 $as_echo "$tool_specified" >&6; } 8847 fi 8848 fi 8849 fi 8850 8851 8852 8853 if test "x$PRINTF" = x; then 8854 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8855 fi 8856 8857 8858 8859 8860 8861 # Publish this variable in the help. 8862 8863 8864 if test "x$RM" = x; then 8865 # The variable is not set by user, try to locate tool using the code snippet 8866 for ac_prog in rm 8867 do 8868 # Extract the first word of "$ac_prog", so it can be a program name with args. 8869 set dummy $ac_prog; ac_word=$2 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8871 $as_echo_n "checking for $ac_word... " >&6; } 8872 if ${ac_cv_path_RM+:} false; then : 8873 $as_echo_n "(cached) " >&6 8874 else 8875 case $RM in 8876 [\\/]* | ?:[\\/]*) 8877 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8878 ;; 8879 *) 8880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8881 for as_dir in $PATH 8882 do 8883 IFS=$as_save_IFS 8884 test -z "$as_dir" && as_dir=. 8885 for ac_exec_ext in '' $ac_executable_extensions; do 8886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8887 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8889 break 2 8890 fi 8891 done 8892 done 8893 IFS=$as_save_IFS 8894 8895 ;; 8896 esac 8897 fi 8898 RM=$ac_cv_path_RM 8899 if test -n "$RM"; then 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8901 $as_echo "$RM" >&6; } 8902 else 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8904 $as_echo "no" >&6; } 8905 fi 8906 8907 8908 test -n "$RM" && break 8909 done 8910 8911 else 8912 # The variable is set, but is it from the command line or the environment? 8913 8914 # Try to remove the string !RM! from our list. 8915 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8916 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8917 # If it failed, the variable was not from the command line. Ignore it, 8918 # but warn the user (except for BASH, which is always set by the calling BASH). 8919 if test "xRM" != xBASH; then 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8921 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8922 fi 8923 # Try to locate tool using the code snippet 8924 for ac_prog in rm 8925 do 8926 # Extract the first word of "$ac_prog", so it can be a program name with args. 8927 set dummy $ac_prog; ac_word=$2 8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8929 $as_echo_n "checking for $ac_word... " >&6; } 8930 if ${ac_cv_path_RM+:} false; then : 8931 $as_echo_n "(cached) " >&6 8932 else 8933 case $RM in 8934 [\\/]* | ?:[\\/]*) 8935 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8936 ;; 8937 *) 8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8939 for as_dir in $PATH 8940 do 8941 IFS=$as_save_IFS 8942 test -z "$as_dir" && as_dir=. 8943 for ac_exec_ext in '' $ac_executable_extensions; do 8944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8945 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8947 break 2 8948 fi 8949 done 8950 done 8951 IFS=$as_save_IFS 8952 8953 ;; 8954 esac 8955 fi 8956 RM=$ac_cv_path_RM 8957 if test -n "$RM"; then 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8959 $as_echo "$RM" >&6; } 8960 else 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8962 $as_echo "no" >&6; } 8963 fi 8964 8965 8966 test -n "$RM" && break 8967 done 8968 8969 else 8970 # If it succeeded, then it was overridden by the user. We will use it 8971 # for the tool. 8972 8973 # First remove it from the list of overridden variables, so we can test 8974 # for unknown variables in the end. 8975 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8976 8977 # Check if the provided tool contains a complete path. 8978 tool_specified="$RM" 8979 tool_basename="${tool_specified##*/}" 8980 if test "x$tool_basename" = "x$tool_specified"; then 8981 # A command without a complete path is provided, search $PATH. 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 8983 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 8984 # Extract the first word of "$tool_basename", so it can be a program name with args. 8985 set dummy $tool_basename; ac_word=$2 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8987 $as_echo_n "checking for $ac_word... " >&6; } 8988 if ${ac_cv_path_RM+:} false; then : 8989 $as_echo_n "(cached) " >&6 8990 else 8991 case $RM in 8992 [\\/]* | ?:[\\/]*) 8993 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8994 ;; 8995 *) 8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8997 for as_dir in $PATH 8998 do 8999 IFS=$as_save_IFS 9000 test -z "$as_dir" && as_dir=. 9001 for ac_exec_ext in '' $ac_executable_extensions; do 9002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9003 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9005 break 2 9006 fi 9007 done 9008 done 9009 IFS=$as_save_IFS 9010 9011 ;; 9012 esac 9013 fi 9014 RM=$ac_cv_path_RM 9015 if test -n "$RM"; then 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9017 $as_echo "$RM" >&6; } 9018 else 9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9020 $as_echo "no" >&6; } 9021 fi 9022 9023 9024 if test "x$RM" = x; then 9025 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9026 fi 9027 else 9028 # Otherwise we believe it is a complete path. Use it as it is. 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9030 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9032 $as_echo_n "checking for RM... " >&6; } 9033 if test ! -x "$tool_specified"; then 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9035 $as_echo "not found" >&6; } 9036 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9037 fi 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9039 $as_echo "$tool_specified" >&6; } 9040 fi 9041 fi 9042 fi 9043 9044 9045 9046 if test "x$RM" = x; then 9047 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9048 fi 9049 9050 9051 9052 9053 9054 # Publish this variable in the help. 9055 9056 9057 if test "x$SH" = x; then 9058 # The variable is not set by user, try to locate tool using the code snippet 9059 for ac_prog in sh 9060 do 9061 # Extract the first word of "$ac_prog", so it can be a program name with args. 9062 set dummy $ac_prog; ac_word=$2 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9064 $as_echo_n "checking for $ac_word... " >&6; } 9065 if ${ac_cv_path_SH+:} false; then : 9066 $as_echo_n "(cached) " >&6 9067 else 9068 case $SH in 9069 [\\/]* | ?:[\\/]*) 9070 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9071 ;; 9072 *) 9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9074 for as_dir in $PATH 9075 do 9076 IFS=$as_save_IFS 9077 test -z "$as_dir" && as_dir=. 9078 for ac_exec_ext in '' $ac_executable_extensions; do 9079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9080 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9082 break 2 9083 fi 9084 done 9085 done 9086 IFS=$as_save_IFS 9087 9088 ;; 9089 esac 9090 fi 9091 SH=$ac_cv_path_SH 9092 if test -n "$SH"; then 9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9094 $as_echo "$SH" >&6; } 9095 else 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9097 $as_echo "no" >&6; } 9098 fi 9099 9100 9101 test -n "$SH" && break 9102 done 9103 9104 else 9105 # The variable is set, but is it from the command line or the environment? 9106 9107 # Try to remove the string !SH! from our list. 9108 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9109 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9110 # If it failed, the variable was not from the command line. Ignore it, 9111 # but warn the user (except for BASH, which is always set by the calling BASH). 9112 if test "xSH" != xBASH; then 9113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9114 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9115 fi 9116 # Try to locate tool using the code snippet 9117 for ac_prog in sh 9118 do 9119 # Extract the first word of "$ac_prog", so it can be a program name with args. 9120 set dummy $ac_prog; ac_word=$2 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9122 $as_echo_n "checking for $ac_word... " >&6; } 9123 if ${ac_cv_path_SH+:} false; then : 9124 $as_echo_n "(cached) " >&6 9125 else 9126 case $SH in 9127 [\\/]* | ?:[\\/]*) 9128 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9129 ;; 9130 *) 9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9132 for as_dir in $PATH 9133 do 9134 IFS=$as_save_IFS 9135 test -z "$as_dir" && as_dir=. 9136 for ac_exec_ext in '' $ac_executable_extensions; do 9137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9138 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9140 break 2 9141 fi 9142 done 9143 done 9144 IFS=$as_save_IFS 9145 9146 ;; 9147 esac 9148 fi 9149 SH=$ac_cv_path_SH 9150 if test -n "$SH"; then 9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9152 $as_echo "$SH" >&6; } 9153 else 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9155 $as_echo "no" >&6; } 9156 fi 9157 9158 9159 test -n "$SH" && break 9160 done 9161 9162 else 9163 # If it succeeded, then it was overridden by the user. We will use it 9164 # for the tool. 9165 9166 # First remove it from the list of overridden variables, so we can test 9167 # for unknown variables in the end. 9168 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9169 9170 # Check if the provided tool contains a complete path. 9171 tool_specified="$SH" 9172 tool_basename="${tool_specified##*/}" 9173 if test "x$tool_basename" = "x$tool_specified"; then 9174 # A command without a complete path is provided, search $PATH. 9175 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9176 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9177 # Extract the first word of "$tool_basename", so it can be a program name with args. 9178 set dummy $tool_basename; ac_word=$2 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9180 $as_echo_n "checking for $ac_word... " >&6; } 9181 if ${ac_cv_path_SH+:} false; then : 9182 $as_echo_n "(cached) " >&6 9183 else 9184 case $SH in 9185 [\\/]* | ?:[\\/]*) 9186 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9187 ;; 9188 *) 9189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9190 for as_dir in $PATH 9191 do 9192 IFS=$as_save_IFS 9193 test -z "$as_dir" && as_dir=. 9194 for ac_exec_ext in '' $ac_executable_extensions; do 9195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9196 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9198 break 2 9199 fi 9200 done 9201 done 9202 IFS=$as_save_IFS 9203 9204 ;; 9205 esac 9206 fi 9207 SH=$ac_cv_path_SH 9208 if test -n "$SH"; then 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9210 $as_echo "$SH" >&6; } 9211 else 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9213 $as_echo "no" >&6; } 9214 fi 9215 9216 9217 if test "x$SH" = x; then 9218 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9219 fi 9220 else 9221 # Otherwise we believe it is a complete path. Use it as it is. 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9223 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9225 $as_echo_n "checking for SH... " >&6; } 9226 if test ! -x "$tool_specified"; then 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9228 $as_echo "not found" >&6; } 9229 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9230 fi 9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9232 $as_echo "$tool_specified" >&6; } 9233 fi 9234 fi 9235 fi 9236 9237 9238 9239 if test "x$SH" = x; then 9240 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9241 fi 9242 9243 9244 9245 9246 9247 # Publish this variable in the help. 9248 9249 9250 if test "x$SORT" = x; then 9251 # The variable is not set by user, try to locate tool using the code snippet 9252 for ac_prog in sort 9253 do 9254 # Extract the first word of "$ac_prog", so it can be a program name with args. 9255 set dummy $ac_prog; ac_word=$2 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9257 $as_echo_n "checking for $ac_word... " >&6; } 9258 if ${ac_cv_path_SORT+:} false; then : 9259 $as_echo_n "(cached) " >&6 9260 else 9261 case $SORT in 9262 [\\/]* | ?:[\\/]*) 9263 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9264 ;; 9265 *) 9266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9267 for as_dir in $PATH 9268 do 9269 IFS=$as_save_IFS 9270 test -z "$as_dir" && as_dir=. 9271 for ac_exec_ext in '' $ac_executable_extensions; do 9272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9273 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9275 break 2 9276 fi 9277 done 9278 done 9279 IFS=$as_save_IFS 9280 9281 ;; 9282 esac 9283 fi 9284 SORT=$ac_cv_path_SORT 9285 if test -n "$SORT"; then 9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9287 $as_echo "$SORT" >&6; } 9288 else 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9290 $as_echo "no" >&6; } 9291 fi 9292 9293 9294 test -n "$SORT" && break 9295 done 9296 9297 else 9298 # The variable is set, but is it from the command line or the environment? 9299 9300 # Try to remove the string !SORT! from our list. 9301 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9302 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9303 # If it failed, the variable was not from the command line. Ignore it, 9304 # but warn the user (except for BASH, which is always set by the calling BASH). 9305 if test "xSORT" != xBASH; then 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9307 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9308 fi 9309 # Try to locate tool using the code snippet 9310 for ac_prog in sort 9311 do 9312 # Extract the first word of "$ac_prog", so it can be a program name with args. 9313 set dummy $ac_prog; ac_word=$2 9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9315 $as_echo_n "checking for $ac_word... " >&6; } 9316 if ${ac_cv_path_SORT+:} false; then : 9317 $as_echo_n "(cached) " >&6 9318 else 9319 case $SORT in 9320 [\\/]* | ?:[\\/]*) 9321 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9322 ;; 9323 *) 9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9325 for as_dir in $PATH 9326 do 9327 IFS=$as_save_IFS 9328 test -z "$as_dir" && as_dir=. 9329 for ac_exec_ext in '' $ac_executable_extensions; do 9330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9331 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9333 break 2 9334 fi 9335 done 9336 done 9337 IFS=$as_save_IFS 9338 9339 ;; 9340 esac 9341 fi 9342 SORT=$ac_cv_path_SORT 9343 if test -n "$SORT"; then 9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9345 $as_echo "$SORT" >&6; } 9346 else 9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9348 $as_echo "no" >&6; } 9349 fi 9350 9351 9352 test -n "$SORT" && break 9353 done 9354 9355 else 9356 # If it succeeded, then it was overridden by the user. We will use it 9357 # for the tool. 9358 9359 # First remove it from the list of overridden variables, so we can test 9360 # for unknown variables in the end. 9361 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9362 9363 # Check if the provided tool contains a complete path. 9364 tool_specified="$SORT" 9365 tool_basename="${tool_specified##*/}" 9366 if test "x$tool_basename" = "x$tool_specified"; then 9367 # A command without a complete path is provided, search $PATH. 9368 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9369 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9370 # Extract the first word of "$tool_basename", so it can be a program name with args. 9371 set dummy $tool_basename; ac_word=$2 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9373 $as_echo_n "checking for $ac_word... " >&6; } 9374 if ${ac_cv_path_SORT+:} false; then : 9375 $as_echo_n "(cached) " >&6 9376 else 9377 case $SORT in 9378 [\\/]* | ?:[\\/]*) 9379 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9380 ;; 9381 *) 9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9383 for as_dir in $PATH 9384 do 9385 IFS=$as_save_IFS 9386 test -z "$as_dir" && as_dir=. 9387 for ac_exec_ext in '' $ac_executable_extensions; do 9388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9389 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9391 break 2 9392 fi 9393 done 9394 done 9395 IFS=$as_save_IFS 9396 9397 ;; 9398 esac 9399 fi 9400 SORT=$ac_cv_path_SORT 9401 if test -n "$SORT"; then 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9403 $as_echo "$SORT" >&6; } 9404 else 9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9406 $as_echo "no" >&6; } 9407 fi 9408 9409 9410 if test "x$SORT" = x; then 9411 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9412 fi 9413 else 9414 # Otherwise we believe it is a complete path. Use it as it is. 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9416 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9418 $as_echo_n "checking for SORT... " >&6; } 9419 if test ! -x "$tool_specified"; then 9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9421 $as_echo "not found" >&6; } 9422 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9423 fi 9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9425 $as_echo "$tool_specified" >&6; } 9426 fi 9427 fi 9428 fi 9429 9430 9431 9432 if test "x$SORT" = x; then 9433 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9434 fi 9435 9436 9437 9438 9439 9440 # Publish this variable in the help. 9441 9442 9443 if test "x$TAIL" = x; then 9444 # The variable is not set by user, try to locate tool using the code snippet 9445 for ac_prog in tail 9446 do 9447 # Extract the first word of "$ac_prog", so it can be a program name with args. 9448 set dummy $ac_prog; ac_word=$2 9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9450 $as_echo_n "checking for $ac_word... " >&6; } 9451 if ${ac_cv_path_TAIL+:} false; then : 9452 $as_echo_n "(cached) " >&6 9453 else 9454 case $TAIL in 9455 [\\/]* | ?:[\\/]*) 9456 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9457 ;; 9458 *) 9459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9460 for as_dir in $PATH 9461 do 9462 IFS=$as_save_IFS 9463 test -z "$as_dir" && as_dir=. 9464 for ac_exec_ext in '' $ac_executable_extensions; do 9465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9466 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9468 break 2 9469 fi 9470 done 9471 done 9472 IFS=$as_save_IFS 9473 9474 ;; 9475 esac 9476 fi 9477 TAIL=$ac_cv_path_TAIL 9478 if test -n "$TAIL"; then 9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9480 $as_echo "$TAIL" >&6; } 9481 else 9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9483 $as_echo "no" >&6; } 9484 fi 9485 9486 9487 test -n "$TAIL" && break 9488 done 9489 9490 else 9491 # The variable is set, but is it from the command line or the environment? 9492 9493 # Try to remove the string !TAIL! from our list. 9494 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9495 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9496 # If it failed, the variable was not from the command line. Ignore it, 9497 # but warn the user (except for BASH, which is always set by the calling BASH). 9498 if test "xTAIL" != xBASH; then 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9500 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9501 fi 9502 # Try to locate tool using the code snippet 9503 for ac_prog in tail 9504 do 9505 # Extract the first word of "$ac_prog", so it can be a program name with args. 9506 set dummy $ac_prog; ac_word=$2 9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9508 $as_echo_n "checking for $ac_word... " >&6; } 9509 if ${ac_cv_path_TAIL+:} false; then : 9510 $as_echo_n "(cached) " >&6 9511 else 9512 case $TAIL in 9513 [\\/]* | ?:[\\/]*) 9514 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9515 ;; 9516 *) 9517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9518 for as_dir in $PATH 9519 do 9520 IFS=$as_save_IFS 9521 test -z "$as_dir" && as_dir=. 9522 for ac_exec_ext in '' $ac_executable_extensions; do 9523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9524 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9526 break 2 9527 fi 9528 done 9529 done 9530 IFS=$as_save_IFS 9531 9532 ;; 9533 esac 9534 fi 9535 TAIL=$ac_cv_path_TAIL 9536 if test -n "$TAIL"; then 9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9538 $as_echo "$TAIL" >&6; } 9539 else 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9541 $as_echo "no" >&6; } 9542 fi 9543 9544 9545 test -n "$TAIL" && break 9546 done 9547 9548 else 9549 # If it succeeded, then it was overridden by the user. We will use it 9550 # for the tool. 9551 9552 # First remove it from the list of overridden variables, so we can test 9553 # for unknown variables in the end. 9554 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9555 9556 # Check if the provided tool contains a complete path. 9557 tool_specified="$TAIL" 9558 tool_basename="${tool_specified##*/}" 9559 if test "x$tool_basename" = "x$tool_specified"; then 9560 # A command without a complete path is provided, search $PATH. 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9562 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9563 # Extract the first word of "$tool_basename", so it can be a program name with args. 9564 set dummy $tool_basename; ac_word=$2 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9566 $as_echo_n "checking for $ac_word... " >&6; } 9567 if ${ac_cv_path_TAIL+:} false; then : 9568 $as_echo_n "(cached) " >&6 9569 else 9570 case $TAIL in 9571 [\\/]* | ?:[\\/]*) 9572 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9573 ;; 9574 *) 9575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9576 for as_dir in $PATH 9577 do 9578 IFS=$as_save_IFS 9579 test -z "$as_dir" && as_dir=. 9580 for ac_exec_ext in '' $ac_executable_extensions; do 9581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9582 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9584 break 2 9585 fi 9586 done 9587 done 9588 IFS=$as_save_IFS 9589 9590 ;; 9591 esac 9592 fi 9593 TAIL=$ac_cv_path_TAIL 9594 if test -n "$TAIL"; then 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9596 $as_echo "$TAIL" >&6; } 9597 else 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9599 $as_echo "no" >&6; } 9600 fi 9601 9602 9603 if test "x$TAIL" = x; then 9604 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9605 fi 9606 else 9607 # Otherwise we believe it is a complete path. Use it as it is. 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9609 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9611 $as_echo_n "checking for TAIL... " >&6; } 9612 if test ! -x "$tool_specified"; then 9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9614 $as_echo "not found" >&6; } 9615 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9616 fi 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9618 $as_echo "$tool_specified" >&6; } 9619 fi 9620 fi 9621 fi 9622 9623 9624 9625 if test "x$TAIL" = x; then 9626 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9627 fi 9628 9629 9630 9631 9632 9633 # Publish this variable in the help. 9634 9635 9636 if test "x$TAR" = x; then 9637 # The variable is not set by user, try to locate tool using the code snippet 9638 for ac_prog in tar 9639 do 9640 # Extract the first word of "$ac_prog", so it can be a program name with args. 9641 set dummy $ac_prog; ac_word=$2 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9643 $as_echo_n "checking for $ac_word... " >&6; } 9644 if ${ac_cv_path_TAR+:} false; then : 9645 $as_echo_n "(cached) " >&6 9646 else 9647 case $TAR in 9648 [\\/]* | ?:[\\/]*) 9649 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9650 ;; 9651 *) 9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9653 for as_dir in $PATH 9654 do 9655 IFS=$as_save_IFS 9656 test -z "$as_dir" && as_dir=. 9657 for ac_exec_ext in '' $ac_executable_extensions; do 9658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9659 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9661 break 2 9662 fi 9663 done 9664 done 9665 IFS=$as_save_IFS 9666 9667 ;; 9668 esac 9669 fi 9670 TAR=$ac_cv_path_TAR 9671 if test -n "$TAR"; then 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9673 $as_echo "$TAR" >&6; } 9674 else 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9676 $as_echo "no" >&6; } 9677 fi 9678 9679 9680 test -n "$TAR" && break 9681 done 9682 9683 else 9684 # The variable is set, but is it from the command line or the environment? 9685 9686 # Try to remove the string !TAR! from our list. 9687 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9688 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9689 # If it failed, the variable was not from the command line. Ignore it, 9690 # but warn the user (except for BASH, which is always set by the calling BASH). 9691 if test "xTAR" != xBASH; then 9692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9693 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9694 fi 9695 # Try to locate tool using the code snippet 9696 for ac_prog in tar 9697 do 9698 # Extract the first word of "$ac_prog", so it can be a program name with args. 9699 set dummy $ac_prog; ac_word=$2 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9701 $as_echo_n "checking for $ac_word... " >&6; } 9702 if ${ac_cv_path_TAR+:} false; then : 9703 $as_echo_n "(cached) " >&6 9704 else 9705 case $TAR in 9706 [\\/]* | ?:[\\/]*) 9707 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9708 ;; 9709 *) 9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9711 for as_dir in $PATH 9712 do 9713 IFS=$as_save_IFS 9714 test -z "$as_dir" && as_dir=. 9715 for ac_exec_ext in '' $ac_executable_extensions; do 9716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9717 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9719 break 2 9720 fi 9721 done 9722 done 9723 IFS=$as_save_IFS 9724 9725 ;; 9726 esac 9727 fi 9728 TAR=$ac_cv_path_TAR 9729 if test -n "$TAR"; then 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9731 $as_echo "$TAR" >&6; } 9732 else 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9734 $as_echo "no" >&6; } 9735 fi 9736 9737 9738 test -n "$TAR" && break 9739 done 9740 9741 else 9742 # If it succeeded, then it was overridden by the user. We will use it 9743 # for the tool. 9744 9745 # First remove it from the list of overridden variables, so we can test 9746 # for unknown variables in the end. 9747 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9748 9749 # Check if the provided tool contains a complete path. 9750 tool_specified="$TAR" 9751 tool_basename="${tool_specified##*/}" 9752 if test "x$tool_basename" = "x$tool_specified"; then 9753 # A command without a complete path is provided, search $PATH. 9754 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9755 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9756 # Extract the first word of "$tool_basename", so it can be a program name with args. 9757 set dummy $tool_basename; ac_word=$2 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9759 $as_echo_n "checking for $ac_word... " >&6; } 9760 if ${ac_cv_path_TAR+:} false; then : 9761 $as_echo_n "(cached) " >&6 9762 else 9763 case $TAR in 9764 [\\/]* | ?:[\\/]*) 9765 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9766 ;; 9767 *) 9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9769 for as_dir in $PATH 9770 do 9771 IFS=$as_save_IFS 9772 test -z "$as_dir" && as_dir=. 9773 for ac_exec_ext in '' $ac_executable_extensions; do 9774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9775 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9777 break 2 9778 fi 9779 done 9780 done 9781 IFS=$as_save_IFS 9782 9783 ;; 9784 esac 9785 fi 9786 TAR=$ac_cv_path_TAR 9787 if test -n "$TAR"; then 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9789 $as_echo "$TAR" >&6; } 9790 else 9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9792 $as_echo "no" >&6; } 9793 fi 9794 9795 9796 if test "x$TAR" = x; then 9797 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9798 fi 9799 else 9800 # Otherwise we believe it is a complete path. Use it as it is. 9801 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9802 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9804 $as_echo_n "checking for TAR... " >&6; } 9805 if test ! -x "$tool_specified"; then 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9807 $as_echo "not found" >&6; } 9808 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9809 fi 9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9811 $as_echo "$tool_specified" >&6; } 9812 fi 9813 fi 9814 fi 9815 9816 9817 9818 if test "x$TAR" = x; then 9819 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9820 fi 9821 9822 9823 9824 9825 9826 # Publish this variable in the help. 9827 9828 9829 if test "x$TEE" = x; then 9830 # The variable is not set by user, try to locate tool using the code snippet 9831 for ac_prog in tee 9832 do 9833 # Extract the first word of "$ac_prog", so it can be a program name with args. 9834 set dummy $ac_prog; ac_word=$2 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9836 $as_echo_n "checking for $ac_word... " >&6; } 9837 if ${ac_cv_path_TEE+:} false; then : 9838 $as_echo_n "(cached) " >&6 9839 else 9840 case $TEE in 9841 [\\/]* | ?:[\\/]*) 9842 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9843 ;; 9844 *) 9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9846 for as_dir in $PATH 9847 do 9848 IFS=$as_save_IFS 9849 test -z "$as_dir" && as_dir=. 9850 for ac_exec_ext in '' $ac_executable_extensions; do 9851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9852 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9854 break 2 9855 fi 9856 done 9857 done 9858 IFS=$as_save_IFS 9859 9860 ;; 9861 esac 9862 fi 9863 TEE=$ac_cv_path_TEE 9864 if test -n "$TEE"; then 9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9866 $as_echo "$TEE" >&6; } 9867 else 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9869 $as_echo "no" >&6; } 9870 fi 9871 9872 9873 test -n "$TEE" && break 9874 done 9875 9876 else 9877 # The variable is set, but is it from the command line or the environment? 9878 9879 # Try to remove the string !TEE! from our list. 9880 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9881 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9882 # If it failed, the variable was not from the command line. Ignore it, 9883 # but warn the user (except for BASH, which is always set by the calling BASH). 9884 if test "xTEE" != xBASH; then 9885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9886 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9887 fi 9888 # Try to locate tool using the code snippet 9889 for ac_prog in tee 9890 do 9891 # Extract the first word of "$ac_prog", so it can be a program name with args. 9892 set dummy $ac_prog; ac_word=$2 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9894 $as_echo_n "checking for $ac_word... " >&6; } 9895 if ${ac_cv_path_TEE+:} false; then : 9896 $as_echo_n "(cached) " >&6 9897 else 9898 case $TEE in 9899 [\\/]* | ?:[\\/]*) 9900 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9901 ;; 9902 *) 9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9904 for as_dir in $PATH 9905 do 9906 IFS=$as_save_IFS 9907 test -z "$as_dir" && as_dir=. 9908 for ac_exec_ext in '' $ac_executable_extensions; do 9909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9910 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9912 break 2 9913 fi 9914 done 9915 done 9916 IFS=$as_save_IFS 9917 9918 ;; 9919 esac 9920 fi 9921 TEE=$ac_cv_path_TEE 9922 if test -n "$TEE"; then 9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9924 $as_echo "$TEE" >&6; } 9925 else 9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9927 $as_echo "no" >&6; } 9928 fi 9929 9930 9931 test -n "$TEE" && break 9932 done 9933 9934 else 9935 # If it succeeded, then it was overridden by the user. We will use it 9936 # for the tool. 9937 9938 # First remove it from the list of overridden variables, so we can test 9939 # for unknown variables in the end. 9940 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9941 9942 # Check if the provided tool contains a complete path. 9943 tool_specified="$TEE" 9944 tool_basename="${tool_specified##*/}" 9945 if test "x$tool_basename" = "x$tool_specified"; then 9946 # A command without a complete path is provided, search $PATH. 9947 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9948 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9949 # Extract the first word of "$tool_basename", so it can be a program name with args. 9950 set dummy $tool_basename; ac_word=$2 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9952 $as_echo_n "checking for $ac_word... " >&6; } 9953 if ${ac_cv_path_TEE+:} false; then : 9954 $as_echo_n "(cached) " >&6 9955 else 9956 case $TEE in 9957 [\\/]* | ?:[\\/]*) 9958 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9959 ;; 9960 *) 9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9962 for as_dir in $PATH 9963 do 9964 IFS=$as_save_IFS 9965 test -z "$as_dir" && as_dir=. 9966 for ac_exec_ext in '' $ac_executable_extensions; do 9967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9968 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9970 break 2 9971 fi 9972 done 9973 done 9974 IFS=$as_save_IFS 9975 9976 ;; 9977 esac 9978 fi 9979 TEE=$ac_cv_path_TEE 9980 if test -n "$TEE"; then 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9982 $as_echo "$TEE" >&6; } 9983 else 9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9985 $as_echo "no" >&6; } 9986 fi 9987 9988 9989 if test "x$TEE" = x; then 9990 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9991 fi 9992 else 9993 # Otherwise we believe it is a complete path. Use it as it is. 9994 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 9995 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 9997 $as_echo_n "checking for TEE... " >&6; } 9998 if test ! -x "$tool_specified"; then 9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10000 $as_echo "not found" >&6; } 10001 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10002 fi 10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10004 $as_echo "$tool_specified" >&6; } 10005 fi 10006 fi 10007 fi 10008 10009 10010 10011 if test "x$TEE" = x; then 10012 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10013 fi 10014 10015 10016 10017 10018 10019 # Publish this variable in the help. 10020 10021 10022 if test "x$TOUCH" = x; then 10023 # The variable is not set by user, try to locate tool using the code snippet 10024 for ac_prog in touch 10025 do 10026 # Extract the first word of "$ac_prog", so it can be a program name with args. 10027 set dummy $ac_prog; ac_word=$2 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10029 $as_echo_n "checking for $ac_word... " >&6; } 10030 if ${ac_cv_path_TOUCH+:} false; then : 10031 $as_echo_n "(cached) " >&6 10032 else 10033 case $TOUCH in 10034 [\\/]* | ?:[\\/]*) 10035 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10036 ;; 10037 *) 10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10039 for as_dir in $PATH 10040 do 10041 IFS=$as_save_IFS 10042 test -z "$as_dir" && as_dir=. 10043 for ac_exec_ext in '' $ac_executable_extensions; do 10044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10045 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10047 break 2 10048 fi 10049 done 10050 done 10051 IFS=$as_save_IFS 10052 10053 ;; 10054 esac 10055 fi 10056 TOUCH=$ac_cv_path_TOUCH 10057 if test -n "$TOUCH"; then 10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10059 $as_echo "$TOUCH" >&6; } 10060 else 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10062 $as_echo "no" >&6; } 10063 fi 10064 10065 10066 test -n "$TOUCH" && break 10067 done 10068 10069 else 10070 # The variable is set, but is it from the command line or the environment? 10071 10072 # Try to remove the string !TOUCH! from our list. 10073 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10074 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10075 # If it failed, the variable was not from the command line. Ignore it, 10076 # but warn the user (except for BASH, which is always set by the calling BASH). 10077 if test "xTOUCH" != xBASH; then 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10079 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10080 fi 10081 # Try to locate tool using the code snippet 10082 for ac_prog in touch 10083 do 10084 # Extract the first word of "$ac_prog", so it can be a program name with args. 10085 set dummy $ac_prog; ac_word=$2 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10087 $as_echo_n "checking for $ac_word... " >&6; } 10088 if ${ac_cv_path_TOUCH+:} false; then : 10089 $as_echo_n "(cached) " >&6 10090 else 10091 case $TOUCH in 10092 [\\/]* | ?:[\\/]*) 10093 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10094 ;; 10095 *) 10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10097 for as_dir in $PATH 10098 do 10099 IFS=$as_save_IFS 10100 test -z "$as_dir" && as_dir=. 10101 for ac_exec_ext in '' $ac_executable_extensions; do 10102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10103 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10105 break 2 10106 fi 10107 done 10108 done 10109 IFS=$as_save_IFS 10110 10111 ;; 10112 esac 10113 fi 10114 TOUCH=$ac_cv_path_TOUCH 10115 if test -n "$TOUCH"; then 10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10117 $as_echo "$TOUCH" >&6; } 10118 else 10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10120 $as_echo "no" >&6; } 10121 fi 10122 10123 10124 test -n "$TOUCH" && break 10125 done 10126 10127 else 10128 # If it succeeded, then it was overridden by the user. We will use it 10129 # for the tool. 10130 10131 # First remove it from the list of overridden variables, so we can test 10132 # for unknown variables in the end. 10133 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10134 10135 # Check if the provided tool contains a complete path. 10136 tool_specified="$TOUCH" 10137 tool_basename="${tool_specified##*/}" 10138 if test "x$tool_basename" = "x$tool_specified"; then 10139 # A command without a complete path is provided, search $PATH. 10140 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10141 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10142 # Extract the first word of "$tool_basename", so it can be a program name with args. 10143 set dummy $tool_basename; ac_word=$2 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10145 $as_echo_n "checking for $ac_word... " >&6; } 10146 if ${ac_cv_path_TOUCH+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148 else 10149 case $TOUCH in 10150 [\\/]* | ?:[\\/]*) 10151 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10152 ;; 10153 *) 10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10155 for as_dir in $PATH 10156 do 10157 IFS=$as_save_IFS 10158 test -z "$as_dir" && as_dir=. 10159 for ac_exec_ext in '' $ac_executable_extensions; do 10160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10161 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10163 break 2 10164 fi 10165 done 10166 done 10167 IFS=$as_save_IFS 10168 10169 ;; 10170 esac 10171 fi 10172 TOUCH=$ac_cv_path_TOUCH 10173 if test -n "$TOUCH"; then 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10175 $as_echo "$TOUCH" >&6; } 10176 else 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10178 $as_echo "no" >&6; } 10179 fi 10180 10181 10182 if test "x$TOUCH" = x; then 10183 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10184 fi 10185 else 10186 # Otherwise we believe it is a complete path. Use it as it is. 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10188 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10190 $as_echo_n "checking for TOUCH... " >&6; } 10191 if test ! -x "$tool_specified"; then 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10193 $as_echo "not found" >&6; } 10194 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10195 fi 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10197 $as_echo "$tool_specified" >&6; } 10198 fi 10199 fi 10200 fi 10201 10202 10203 10204 if test "x$TOUCH" = x; then 10205 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10206 fi 10207 10208 10209 10210 10211 10212 # Publish this variable in the help. 10213 10214 10215 if test "x$TR" = x; then 10216 # The variable is not set by user, try to locate tool using the code snippet 10217 for ac_prog in tr 10218 do 10219 # Extract the first word of "$ac_prog", so it can be a program name with args. 10220 set dummy $ac_prog; ac_word=$2 10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10222 $as_echo_n "checking for $ac_word... " >&6; } 10223 if ${ac_cv_path_TR+:} false; then : 10224 $as_echo_n "(cached) " >&6 10225 else 10226 case $TR in 10227 [\\/]* | ?:[\\/]*) 10228 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10229 ;; 10230 *) 10231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10232 for as_dir in $PATH 10233 do 10234 IFS=$as_save_IFS 10235 test -z "$as_dir" && as_dir=. 10236 for ac_exec_ext in '' $ac_executable_extensions; do 10237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10238 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10240 break 2 10241 fi 10242 done 10243 done 10244 IFS=$as_save_IFS 10245 10246 ;; 10247 esac 10248 fi 10249 TR=$ac_cv_path_TR 10250 if test -n "$TR"; then 10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10252 $as_echo "$TR" >&6; } 10253 else 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10255 $as_echo "no" >&6; } 10256 fi 10257 10258 10259 test -n "$TR" && break 10260 done 10261 10262 else 10263 # The variable is set, but is it from the command line or the environment? 10264 10265 # Try to remove the string !TR! from our list. 10266 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10267 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10268 # If it failed, the variable was not from the command line. Ignore it, 10269 # but warn the user (except for BASH, which is always set by the calling BASH). 10270 if test "xTR" != xBASH; then 10271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10272 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10273 fi 10274 # Try to locate tool using the code snippet 10275 for ac_prog in tr 10276 do 10277 # Extract the first word of "$ac_prog", so it can be a program name with args. 10278 set dummy $ac_prog; ac_word=$2 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10280 $as_echo_n "checking for $ac_word... " >&6; } 10281 if ${ac_cv_path_TR+:} false; then : 10282 $as_echo_n "(cached) " >&6 10283 else 10284 case $TR in 10285 [\\/]* | ?:[\\/]*) 10286 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10287 ;; 10288 *) 10289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10290 for as_dir in $PATH 10291 do 10292 IFS=$as_save_IFS 10293 test -z "$as_dir" && as_dir=. 10294 for ac_exec_ext in '' $ac_executable_extensions; do 10295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10296 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10298 break 2 10299 fi 10300 done 10301 done 10302 IFS=$as_save_IFS 10303 10304 ;; 10305 esac 10306 fi 10307 TR=$ac_cv_path_TR 10308 if test -n "$TR"; then 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10310 $as_echo "$TR" >&6; } 10311 else 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10313 $as_echo "no" >&6; } 10314 fi 10315 10316 10317 test -n "$TR" && break 10318 done 10319 10320 else 10321 # If it succeeded, then it was overridden by the user. We will use it 10322 # for the tool. 10323 10324 # First remove it from the list of overridden variables, so we can test 10325 # for unknown variables in the end. 10326 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10327 10328 # Check if the provided tool contains a complete path. 10329 tool_specified="$TR" 10330 tool_basename="${tool_specified##*/}" 10331 if test "x$tool_basename" = "x$tool_specified"; then 10332 # A command without a complete path is provided, search $PATH. 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10334 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10335 # Extract the first word of "$tool_basename", so it can be a program name with args. 10336 set dummy $tool_basename; ac_word=$2 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10338 $as_echo_n "checking for $ac_word... " >&6; } 10339 if ${ac_cv_path_TR+:} false; then : 10340 $as_echo_n "(cached) " >&6 10341 else 10342 case $TR in 10343 [\\/]* | ?:[\\/]*) 10344 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10345 ;; 10346 *) 10347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10348 for as_dir in $PATH 10349 do 10350 IFS=$as_save_IFS 10351 test -z "$as_dir" && as_dir=. 10352 for ac_exec_ext in '' $ac_executable_extensions; do 10353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10354 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10356 break 2 10357 fi 10358 done 10359 done 10360 IFS=$as_save_IFS 10361 10362 ;; 10363 esac 10364 fi 10365 TR=$ac_cv_path_TR 10366 if test -n "$TR"; then 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10368 $as_echo "$TR" >&6; } 10369 else 10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10371 $as_echo "no" >&6; } 10372 fi 10373 10374 10375 if test "x$TR" = x; then 10376 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10377 fi 10378 else 10379 # Otherwise we believe it is a complete path. Use it as it is. 10380 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10381 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10383 $as_echo_n "checking for TR... " >&6; } 10384 if test ! -x "$tool_specified"; then 10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10386 $as_echo "not found" >&6; } 10387 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10388 fi 10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10390 $as_echo "$tool_specified" >&6; } 10391 fi 10392 fi 10393 fi 10394 10395 10396 10397 if test "x$TR" = x; then 10398 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10399 fi 10400 10401 10402 10403 10404 10405 # Publish this variable in the help. 10406 10407 10408 if test "x$UNAME" = x; then 10409 # The variable is not set by user, try to locate tool using the code snippet 10410 for ac_prog in uname 10411 do 10412 # Extract the first word of "$ac_prog", so it can be a program name with args. 10413 set dummy $ac_prog; ac_word=$2 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10415 $as_echo_n "checking for $ac_word... " >&6; } 10416 if ${ac_cv_path_UNAME+:} false; then : 10417 $as_echo_n "(cached) " >&6 10418 else 10419 case $UNAME in 10420 [\\/]* | ?:[\\/]*) 10421 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10422 ;; 10423 *) 10424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10425 for as_dir in $PATH 10426 do 10427 IFS=$as_save_IFS 10428 test -z "$as_dir" && as_dir=. 10429 for ac_exec_ext in '' $ac_executable_extensions; do 10430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10431 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10433 break 2 10434 fi 10435 done 10436 done 10437 IFS=$as_save_IFS 10438 10439 ;; 10440 esac 10441 fi 10442 UNAME=$ac_cv_path_UNAME 10443 if test -n "$UNAME"; then 10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10445 $as_echo "$UNAME" >&6; } 10446 else 10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10448 $as_echo "no" >&6; } 10449 fi 10450 10451 10452 test -n "$UNAME" && break 10453 done 10454 10455 else 10456 # The variable is set, but is it from the command line or the environment? 10457 10458 # Try to remove the string !UNAME! from our list. 10459 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10460 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10461 # If it failed, the variable was not from the command line. Ignore it, 10462 # but warn the user (except for BASH, which is always set by the calling BASH). 10463 if test "xUNAME" != xBASH; then 10464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10465 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10466 fi 10467 # Try to locate tool using the code snippet 10468 for ac_prog in uname 10469 do 10470 # Extract the first word of "$ac_prog", so it can be a program name with args. 10471 set dummy $ac_prog; ac_word=$2 10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10473 $as_echo_n "checking for $ac_word... " >&6; } 10474 if ${ac_cv_path_UNAME+:} false; then : 10475 $as_echo_n "(cached) " >&6 10476 else 10477 case $UNAME in 10478 [\\/]* | ?:[\\/]*) 10479 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10480 ;; 10481 *) 10482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10483 for as_dir in $PATH 10484 do 10485 IFS=$as_save_IFS 10486 test -z "$as_dir" && as_dir=. 10487 for ac_exec_ext in '' $ac_executable_extensions; do 10488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10489 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10491 break 2 10492 fi 10493 done 10494 done 10495 IFS=$as_save_IFS 10496 10497 ;; 10498 esac 10499 fi 10500 UNAME=$ac_cv_path_UNAME 10501 if test -n "$UNAME"; then 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10503 $as_echo "$UNAME" >&6; } 10504 else 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10506 $as_echo "no" >&6; } 10507 fi 10508 10509 10510 test -n "$UNAME" && break 10511 done 10512 10513 else 10514 # If it succeeded, then it was overridden by the user. We will use it 10515 # for the tool. 10516 10517 # First remove it from the list of overridden variables, so we can test 10518 # for unknown variables in the end. 10519 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10520 10521 # Check if the provided tool contains a complete path. 10522 tool_specified="$UNAME" 10523 tool_basename="${tool_specified##*/}" 10524 if test "x$tool_basename" = "x$tool_specified"; then 10525 # A command without a complete path is provided, search $PATH. 10526 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10527 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10528 # Extract the first word of "$tool_basename", so it can be a program name with args. 10529 set dummy $tool_basename; ac_word=$2 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10531 $as_echo_n "checking for $ac_word... " >&6; } 10532 if ${ac_cv_path_UNAME+:} false; then : 10533 $as_echo_n "(cached) " >&6 10534 else 10535 case $UNAME in 10536 [\\/]* | ?:[\\/]*) 10537 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10538 ;; 10539 *) 10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10541 for as_dir in $PATH 10542 do 10543 IFS=$as_save_IFS 10544 test -z "$as_dir" && as_dir=. 10545 for ac_exec_ext in '' $ac_executable_extensions; do 10546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10547 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10549 break 2 10550 fi 10551 done 10552 done 10553 IFS=$as_save_IFS 10554 10555 ;; 10556 esac 10557 fi 10558 UNAME=$ac_cv_path_UNAME 10559 if test -n "$UNAME"; then 10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10561 $as_echo "$UNAME" >&6; } 10562 else 10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10564 $as_echo "no" >&6; } 10565 fi 10566 10567 10568 if test "x$UNAME" = x; then 10569 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10570 fi 10571 else 10572 # Otherwise we believe it is a complete path. Use it as it is. 10573 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10574 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10576 $as_echo_n "checking for UNAME... " >&6; } 10577 if test ! -x "$tool_specified"; then 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10579 $as_echo "not found" >&6; } 10580 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10581 fi 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10583 $as_echo "$tool_specified" >&6; } 10584 fi 10585 fi 10586 fi 10587 10588 10589 10590 if test "x$UNAME" = x; then 10591 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10592 fi 10593 10594 10595 10596 10597 10598 # Publish this variable in the help. 10599 10600 10601 if test "x$UNIQ" = x; then 10602 # The variable is not set by user, try to locate tool using the code snippet 10603 for ac_prog in uniq 10604 do 10605 # Extract the first word of "$ac_prog", so it can be a program name with args. 10606 set dummy $ac_prog; ac_word=$2 10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10608 $as_echo_n "checking for $ac_word... " >&6; } 10609 if ${ac_cv_path_UNIQ+:} false; then : 10610 $as_echo_n "(cached) " >&6 10611 else 10612 case $UNIQ in 10613 [\\/]* | ?:[\\/]*) 10614 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10615 ;; 10616 *) 10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10618 for as_dir in $PATH 10619 do 10620 IFS=$as_save_IFS 10621 test -z "$as_dir" && as_dir=. 10622 for ac_exec_ext in '' $ac_executable_extensions; do 10623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10624 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10626 break 2 10627 fi 10628 done 10629 done 10630 IFS=$as_save_IFS 10631 10632 ;; 10633 esac 10634 fi 10635 UNIQ=$ac_cv_path_UNIQ 10636 if test -n "$UNIQ"; then 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10638 $as_echo "$UNIQ" >&6; } 10639 else 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10641 $as_echo "no" >&6; } 10642 fi 10643 10644 10645 test -n "$UNIQ" && break 10646 done 10647 10648 else 10649 # The variable is set, but is it from the command line or the environment? 10650 10651 # Try to remove the string !UNIQ! from our list. 10652 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10653 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10654 # If it failed, the variable was not from the command line. Ignore it, 10655 # but warn the user (except for BASH, which is always set by the calling BASH). 10656 if test "xUNIQ" != xBASH; then 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10658 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10659 fi 10660 # Try to locate tool using the code snippet 10661 for ac_prog in uniq 10662 do 10663 # Extract the first word of "$ac_prog", so it can be a program name with args. 10664 set dummy $ac_prog; ac_word=$2 10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10666 $as_echo_n "checking for $ac_word... " >&6; } 10667 if ${ac_cv_path_UNIQ+:} false; then : 10668 $as_echo_n "(cached) " >&6 10669 else 10670 case $UNIQ in 10671 [\\/]* | ?:[\\/]*) 10672 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10673 ;; 10674 *) 10675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10676 for as_dir in $PATH 10677 do 10678 IFS=$as_save_IFS 10679 test -z "$as_dir" && as_dir=. 10680 for ac_exec_ext in '' $ac_executable_extensions; do 10681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10682 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10684 break 2 10685 fi 10686 done 10687 done 10688 IFS=$as_save_IFS 10689 10690 ;; 10691 esac 10692 fi 10693 UNIQ=$ac_cv_path_UNIQ 10694 if test -n "$UNIQ"; then 10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10696 $as_echo "$UNIQ" >&6; } 10697 else 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10699 $as_echo "no" >&6; } 10700 fi 10701 10702 10703 test -n "$UNIQ" && break 10704 done 10705 10706 else 10707 # If it succeeded, then it was overridden by the user. We will use it 10708 # for the tool. 10709 10710 # First remove it from the list of overridden variables, so we can test 10711 # for unknown variables in the end. 10712 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10713 10714 # Check if the provided tool contains a complete path. 10715 tool_specified="$UNIQ" 10716 tool_basename="${tool_specified##*/}" 10717 if test "x$tool_basename" = "x$tool_specified"; then 10718 # A command without a complete path is provided, search $PATH. 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10720 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10721 # Extract the first word of "$tool_basename", so it can be a program name with args. 10722 set dummy $tool_basename; ac_word=$2 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10724 $as_echo_n "checking for $ac_word... " >&6; } 10725 if ${ac_cv_path_UNIQ+:} false; then : 10726 $as_echo_n "(cached) " >&6 10727 else 10728 case $UNIQ in 10729 [\\/]* | ?:[\\/]*) 10730 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10731 ;; 10732 *) 10733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10734 for as_dir in $PATH 10735 do 10736 IFS=$as_save_IFS 10737 test -z "$as_dir" && as_dir=. 10738 for ac_exec_ext in '' $ac_executable_extensions; do 10739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10740 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10742 break 2 10743 fi 10744 done 10745 done 10746 IFS=$as_save_IFS 10747 10748 ;; 10749 esac 10750 fi 10751 UNIQ=$ac_cv_path_UNIQ 10752 if test -n "$UNIQ"; then 10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10754 $as_echo "$UNIQ" >&6; } 10755 else 10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10757 $as_echo "no" >&6; } 10758 fi 10759 10760 10761 if test "x$UNIQ" = x; then 10762 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10763 fi 10764 else 10765 # Otherwise we believe it is a complete path. Use it as it is. 10766 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10767 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10769 $as_echo_n "checking for UNIQ... " >&6; } 10770 if test ! -x "$tool_specified"; then 10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10772 $as_echo "not found" >&6; } 10773 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10774 fi 10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10776 $as_echo "$tool_specified" >&6; } 10777 fi 10778 fi 10779 fi 10780 10781 10782 10783 if test "x$UNIQ" = x; then 10784 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10785 fi 10786 10787 10788 10789 10790 10791 # Publish this variable in the help. 10792 10793 10794 if test "x$WC" = x; then 10795 # The variable is not set by user, try to locate tool using the code snippet 10796 for ac_prog in wc 10797 do 10798 # Extract the first word of "$ac_prog", so it can be a program name with args. 10799 set dummy $ac_prog; ac_word=$2 10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10801 $as_echo_n "checking for $ac_word... " >&6; } 10802 if ${ac_cv_path_WC+:} false; then : 10803 $as_echo_n "(cached) " >&6 10804 else 10805 case $WC in 10806 [\\/]* | ?:[\\/]*) 10807 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10808 ;; 10809 *) 10810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10811 for as_dir in $PATH 10812 do 10813 IFS=$as_save_IFS 10814 test -z "$as_dir" && as_dir=. 10815 for ac_exec_ext in '' $ac_executable_extensions; do 10816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10817 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10819 break 2 10820 fi 10821 done 10822 done 10823 IFS=$as_save_IFS 10824 10825 ;; 10826 esac 10827 fi 10828 WC=$ac_cv_path_WC 10829 if test -n "$WC"; then 10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10831 $as_echo "$WC" >&6; } 10832 else 10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10834 $as_echo "no" >&6; } 10835 fi 10836 10837 10838 test -n "$WC" && break 10839 done 10840 10841 else 10842 # The variable is set, but is it from the command line or the environment? 10843 10844 # Try to remove the string !WC! from our list. 10845 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10846 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10847 # If it failed, the variable was not from the command line. Ignore it, 10848 # but warn the user (except for BASH, which is always set by the calling BASH). 10849 if test "xWC" != xBASH; then 10850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10851 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10852 fi 10853 # Try to locate tool using the code snippet 10854 for ac_prog in wc 10855 do 10856 # Extract the first word of "$ac_prog", so it can be a program name with args. 10857 set dummy $ac_prog; ac_word=$2 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10859 $as_echo_n "checking for $ac_word... " >&6; } 10860 if ${ac_cv_path_WC+:} false; then : 10861 $as_echo_n "(cached) " >&6 10862 else 10863 case $WC in 10864 [\\/]* | ?:[\\/]*) 10865 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10866 ;; 10867 *) 10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10869 for as_dir in $PATH 10870 do 10871 IFS=$as_save_IFS 10872 test -z "$as_dir" && as_dir=. 10873 for ac_exec_ext in '' $ac_executable_extensions; do 10874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10875 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10877 break 2 10878 fi 10879 done 10880 done 10881 IFS=$as_save_IFS 10882 10883 ;; 10884 esac 10885 fi 10886 WC=$ac_cv_path_WC 10887 if test -n "$WC"; then 10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10889 $as_echo "$WC" >&6; } 10890 else 10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10892 $as_echo "no" >&6; } 10893 fi 10894 10895 10896 test -n "$WC" && break 10897 done 10898 10899 else 10900 # If it succeeded, then it was overridden by the user. We will use it 10901 # for the tool. 10902 10903 # First remove it from the list of overridden variables, so we can test 10904 # for unknown variables in the end. 10905 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10906 10907 # Check if the provided tool contains a complete path. 10908 tool_specified="$WC" 10909 tool_basename="${tool_specified##*/}" 10910 if test "x$tool_basename" = "x$tool_specified"; then 10911 # A command without a complete path is provided, search $PATH. 10912 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10913 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10914 # Extract the first word of "$tool_basename", so it can be a program name with args. 10915 set dummy $tool_basename; ac_word=$2 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10917 $as_echo_n "checking for $ac_word... " >&6; } 10918 if ${ac_cv_path_WC+:} false; then : 10919 $as_echo_n "(cached) " >&6 10920 else 10921 case $WC in 10922 [\\/]* | ?:[\\/]*) 10923 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10924 ;; 10925 *) 10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10927 for as_dir in $PATH 10928 do 10929 IFS=$as_save_IFS 10930 test -z "$as_dir" && as_dir=. 10931 for ac_exec_ext in '' $ac_executable_extensions; do 10932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10933 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10935 break 2 10936 fi 10937 done 10938 done 10939 IFS=$as_save_IFS 10940 10941 ;; 10942 esac 10943 fi 10944 WC=$ac_cv_path_WC 10945 if test -n "$WC"; then 10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10947 $as_echo "$WC" >&6; } 10948 else 10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10950 $as_echo "no" >&6; } 10951 fi 10952 10953 10954 if test "x$WC" = x; then 10955 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10956 fi 10957 else 10958 # Otherwise we believe it is a complete path. Use it as it is. 10959 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10960 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10962 $as_echo_n "checking for WC... " >&6; } 10963 if test ! -x "$tool_specified"; then 10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10965 $as_echo "not found" >&6; } 10966 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10967 fi 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10969 $as_echo "$tool_specified" >&6; } 10970 fi 10971 fi 10972 fi 10973 10974 10975 10976 if test "x$WC" = x; then 10977 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 10978 fi 10979 10980 10981 10982 10983 10984 # Publish this variable in the help. 10985 10986 10987 if test "x$WHICH" = x; then 10988 # The variable is not set by user, try to locate tool using the code snippet 10989 for ac_prog in which 10990 do 10991 # Extract the first word of "$ac_prog", so it can be a program name with args. 10992 set dummy $ac_prog; ac_word=$2 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10994 $as_echo_n "checking for $ac_word... " >&6; } 10995 if ${ac_cv_path_WHICH+:} false; then : 10996 $as_echo_n "(cached) " >&6 10997 else 10998 case $WHICH in 10999 [\\/]* | ?:[\\/]*) 11000 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11001 ;; 11002 *) 11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11004 for as_dir in $PATH 11005 do 11006 IFS=$as_save_IFS 11007 test -z "$as_dir" && as_dir=. 11008 for ac_exec_ext in '' $ac_executable_extensions; do 11009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11010 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11012 break 2 11013 fi 11014 done 11015 done 11016 IFS=$as_save_IFS 11017 11018 ;; 11019 esac 11020 fi 11021 WHICH=$ac_cv_path_WHICH 11022 if test -n "$WHICH"; then 11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11024 $as_echo "$WHICH" >&6; } 11025 else 11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11027 $as_echo "no" >&6; } 11028 fi 11029 11030 11031 test -n "$WHICH" && break 11032 done 11033 11034 else 11035 # The variable is set, but is it from the command line or the environment? 11036 11037 # Try to remove the string !WHICH! from our list. 11038 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11039 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11040 # If it failed, the variable was not from the command line. Ignore it, 11041 # but warn the user (except for BASH, which is always set by the calling BASH). 11042 if test "xWHICH" != xBASH; then 11043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11044 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11045 fi 11046 # Try to locate tool using the code snippet 11047 for ac_prog in which 11048 do 11049 # Extract the first word of "$ac_prog", so it can be a program name with args. 11050 set dummy $ac_prog; ac_word=$2 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11052 $as_echo_n "checking for $ac_word... " >&6; } 11053 if ${ac_cv_path_WHICH+:} false; then : 11054 $as_echo_n "(cached) " >&6 11055 else 11056 case $WHICH in 11057 [\\/]* | ?:[\\/]*) 11058 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11059 ;; 11060 *) 11061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11062 for as_dir in $PATH 11063 do 11064 IFS=$as_save_IFS 11065 test -z "$as_dir" && as_dir=. 11066 for ac_exec_ext in '' $ac_executable_extensions; do 11067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11068 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11070 break 2 11071 fi 11072 done 11073 done 11074 IFS=$as_save_IFS 11075 11076 ;; 11077 esac 11078 fi 11079 WHICH=$ac_cv_path_WHICH 11080 if test -n "$WHICH"; then 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11082 $as_echo "$WHICH" >&6; } 11083 else 11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11085 $as_echo "no" >&6; } 11086 fi 11087 11088 11089 test -n "$WHICH" && break 11090 done 11091 11092 else 11093 # If it succeeded, then it was overridden by the user. We will use it 11094 # for the tool. 11095 11096 # First remove it from the list of overridden variables, so we can test 11097 # for unknown variables in the end. 11098 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11099 11100 # Check if the provided tool contains a complete path. 11101 tool_specified="$WHICH" 11102 tool_basename="${tool_specified##*/}" 11103 if test "x$tool_basename" = "x$tool_specified"; then 11104 # A command without a complete path is provided, search $PATH. 11105 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11106 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11107 # Extract the first word of "$tool_basename", so it can be a program name with args. 11108 set dummy $tool_basename; ac_word=$2 11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11110 $as_echo_n "checking for $ac_word... " >&6; } 11111 if ${ac_cv_path_WHICH+:} false; then : 11112 $as_echo_n "(cached) " >&6 11113 else 11114 case $WHICH in 11115 [\\/]* | ?:[\\/]*) 11116 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11117 ;; 11118 *) 11119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11120 for as_dir in $PATH 11121 do 11122 IFS=$as_save_IFS 11123 test -z "$as_dir" && as_dir=. 11124 for ac_exec_ext in '' $ac_executable_extensions; do 11125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11126 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11128 break 2 11129 fi 11130 done 11131 done 11132 IFS=$as_save_IFS 11133 11134 ;; 11135 esac 11136 fi 11137 WHICH=$ac_cv_path_WHICH 11138 if test -n "$WHICH"; then 11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11140 $as_echo "$WHICH" >&6; } 11141 else 11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11143 $as_echo "no" >&6; } 11144 fi 11145 11146 11147 if test "x$WHICH" = x; then 11148 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11149 fi 11150 else 11151 # Otherwise we believe it is a complete path. Use it as it is. 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11153 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11155 $as_echo_n "checking for WHICH... " >&6; } 11156 if test ! -x "$tool_specified"; then 11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11158 $as_echo "not found" >&6; } 11159 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11160 fi 11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11162 $as_echo "$tool_specified" >&6; } 11163 fi 11164 fi 11165 fi 11166 11167 11168 11169 if test "x$WHICH" = x; then 11170 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11171 fi 11172 11173 11174 11175 11176 11177 # Publish this variable in the help. 11178 11179 11180 if test "x$XARGS" = x; then 11181 # The variable is not set by user, try to locate tool using the code snippet 11182 for ac_prog in xargs 11183 do 11184 # Extract the first word of "$ac_prog", so it can be a program name with args. 11185 set dummy $ac_prog; ac_word=$2 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11187 $as_echo_n "checking for $ac_word... " >&6; } 11188 if ${ac_cv_path_XARGS+:} false; then : 11189 $as_echo_n "(cached) " >&6 11190 else 11191 case $XARGS in 11192 [\\/]* | ?:[\\/]*) 11193 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11194 ;; 11195 *) 11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11197 for as_dir in $PATH 11198 do 11199 IFS=$as_save_IFS 11200 test -z "$as_dir" && as_dir=. 11201 for ac_exec_ext in '' $ac_executable_extensions; do 11202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11203 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11205 break 2 11206 fi 11207 done 11208 done 11209 IFS=$as_save_IFS 11210 11211 ;; 11212 esac 11213 fi 11214 XARGS=$ac_cv_path_XARGS 11215 if test -n "$XARGS"; then 11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11217 $as_echo "$XARGS" >&6; } 11218 else 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11220 $as_echo "no" >&6; } 11221 fi 11222 11223 11224 test -n "$XARGS" && break 11225 done 11226 11227 else 11228 # The variable is set, but is it from the command line or the environment? 11229 11230 # Try to remove the string !XARGS! from our list. 11231 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11232 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11233 # If it failed, the variable was not from the command line. Ignore it, 11234 # but warn the user (except for BASH, which is always set by the calling BASH). 11235 if test "xXARGS" != xBASH; then 11236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11237 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11238 fi 11239 # Try to locate tool using the code snippet 11240 for ac_prog in xargs 11241 do 11242 # Extract the first word of "$ac_prog", so it can be a program name with args. 11243 set dummy $ac_prog; ac_word=$2 11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11245 $as_echo_n "checking for $ac_word... " >&6; } 11246 if ${ac_cv_path_XARGS+:} false; then : 11247 $as_echo_n "(cached) " >&6 11248 else 11249 case $XARGS in 11250 [\\/]* | ?:[\\/]*) 11251 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11252 ;; 11253 *) 11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11255 for as_dir in $PATH 11256 do 11257 IFS=$as_save_IFS 11258 test -z "$as_dir" && as_dir=. 11259 for ac_exec_ext in '' $ac_executable_extensions; do 11260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11261 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11263 break 2 11264 fi 11265 done 11266 done 11267 IFS=$as_save_IFS 11268 11269 ;; 11270 esac 11271 fi 11272 XARGS=$ac_cv_path_XARGS 11273 if test -n "$XARGS"; then 11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11275 $as_echo "$XARGS" >&6; } 11276 else 11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11278 $as_echo "no" >&6; } 11279 fi 11280 11281 11282 test -n "$XARGS" && break 11283 done 11284 11285 else 11286 # If it succeeded, then it was overridden by the user. We will use it 11287 # for the tool. 11288 11289 # First remove it from the list of overridden variables, so we can test 11290 # for unknown variables in the end. 11291 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11292 11293 # Check if the provided tool contains a complete path. 11294 tool_specified="$XARGS" 11295 tool_basename="${tool_specified##*/}" 11296 if test "x$tool_basename" = "x$tool_specified"; then 11297 # A command without a complete path is provided, search $PATH. 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11299 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11300 # Extract the first word of "$tool_basename", so it can be a program name with args. 11301 set dummy $tool_basename; ac_word=$2 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11303 $as_echo_n "checking for $ac_word... " >&6; } 11304 if ${ac_cv_path_XARGS+:} false; then : 11305 $as_echo_n "(cached) " >&6 11306 else 11307 case $XARGS in 11308 [\\/]* | ?:[\\/]*) 11309 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11310 ;; 11311 *) 11312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11313 for as_dir in $PATH 11314 do 11315 IFS=$as_save_IFS 11316 test -z "$as_dir" && as_dir=. 11317 for ac_exec_ext in '' $ac_executable_extensions; do 11318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11319 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11321 break 2 11322 fi 11323 done 11324 done 11325 IFS=$as_save_IFS 11326 11327 ;; 11328 esac 11329 fi 11330 XARGS=$ac_cv_path_XARGS 11331 if test -n "$XARGS"; then 11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11333 $as_echo "$XARGS" >&6; } 11334 else 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11336 $as_echo "no" >&6; } 11337 fi 11338 11339 11340 if test "x$XARGS" = x; then 11341 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11342 fi 11343 else 11344 # Otherwise we believe it is a complete path. Use it as it is. 11345 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11346 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11348 $as_echo_n "checking for XARGS... " >&6; } 11349 if test ! -x "$tool_specified"; then 11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11351 $as_echo "not found" >&6; } 11352 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11353 fi 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11355 $as_echo "$tool_specified" >&6; } 11356 fi 11357 fi 11358 fi 11359 11360 11361 11362 if test "x$XARGS" = x; then 11363 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11364 fi 11365 11366 11367 11368 # Then required tools that require some special treatment. 11369 11370 11371 # Publish this variable in the help. 11372 11373 11374 if test "x$AWK" = x; then 11375 # The variable is not set by user, try to locate tool using the code snippet 11376 for ac_prog in gawk mawk nawk awk 11377 do 11378 # Extract the first word of "$ac_prog", so it can be a program name with args. 11379 set dummy $ac_prog; ac_word=$2 11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11381 $as_echo_n "checking for $ac_word... " >&6; } 11382 if ${ac_cv_prog_AWK+:} false; then : 11383 $as_echo_n "(cached) " >&6 11384 else 11385 if test -n "$AWK"; then 11386 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11387 else 11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11389 for as_dir in $PATH 11390 do 11391 IFS=$as_save_IFS 11392 test -z "$as_dir" && as_dir=. 11393 for ac_exec_ext in '' $ac_executable_extensions; do 11394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11395 ac_cv_prog_AWK="$ac_prog" 11396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11397 break 2 11398 fi 11399 done 11400 done 11401 IFS=$as_save_IFS 11402 11403 fi 11404 fi 11405 AWK=$ac_cv_prog_AWK 11406 if test -n "$AWK"; then 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11408 $as_echo "$AWK" >&6; } 11409 else 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11411 $as_echo "no" >&6; } 11412 fi 11413 11414 11415 test -n "$AWK" && break 11416 done 11417 11418 else 11419 # The variable is set, but is it from the command line or the environment? 11420 11421 # Try to remove the string !AWK! from our list. 11422 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11423 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11424 # If it failed, the variable was not from the command line. Ignore it, 11425 # but warn the user (except for BASH, which is always set by the calling BASH). 11426 if test "xAWK" != xBASH; then 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11428 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11429 fi 11430 # Try to locate tool using the code snippet 11431 for ac_prog in gawk mawk nawk awk 11432 do 11433 # Extract the first word of "$ac_prog", so it can be a program name with args. 11434 set dummy $ac_prog; ac_word=$2 11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11436 $as_echo_n "checking for $ac_word... " >&6; } 11437 if ${ac_cv_prog_AWK+:} false; then : 11438 $as_echo_n "(cached) " >&6 11439 else 11440 if test -n "$AWK"; then 11441 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11442 else 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_prog_AWK="$ac_prog" 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 fi 11459 fi 11460 AWK=$ac_cv_prog_AWK 11461 if test -n "$AWK"; then 11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11463 $as_echo "$AWK" >&6; } 11464 else 11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11466 $as_echo "no" >&6; } 11467 fi 11468 11469 11470 test -n "$AWK" && break 11471 done 11472 11473 else 11474 # If it succeeded, then it was overridden by the user. We will use it 11475 # for the tool. 11476 11477 # First remove it from the list of overridden variables, so we can test 11478 # for unknown variables in the end. 11479 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11480 11481 # Check if the provided tool contains a complete path. 11482 tool_specified="$AWK" 11483 tool_basename="${tool_specified##*/}" 11484 if test "x$tool_basename" = "x$tool_specified"; then 11485 # A command without a complete path is provided, search $PATH. 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11487 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11488 # Extract the first word of "$tool_basename", so it can be a program name with args. 11489 set dummy $tool_basename; ac_word=$2 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11491 $as_echo_n "checking for $ac_word... " >&6; } 11492 if ${ac_cv_path_AWK+:} false; then : 11493 $as_echo_n "(cached) " >&6 11494 else 11495 case $AWK in 11496 [\\/]* | ?:[\\/]*) 11497 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11498 ;; 11499 *) 11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11501 for as_dir in $PATH 11502 do 11503 IFS=$as_save_IFS 11504 test -z "$as_dir" && as_dir=. 11505 for ac_exec_ext in '' $ac_executable_extensions; do 11506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11507 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11509 break 2 11510 fi 11511 done 11512 done 11513 IFS=$as_save_IFS 11514 11515 ;; 11516 esac 11517 fi 11518 AWK=$ac_cv_path_AWK 11519 if test -n "$AWK"; then 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11521 $as_echo "$AWK" >&6; } 11522 else 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11524 $as_echo "no" >&6; } 11525 fi 11526 11527 11528 if test "x$AWK" = x; then 11529 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11530 fi 11531 else 11532 # Otherwise we believe it is a complete path. Use it as it is. 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11534 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11536 $as_echo_n "checking for AWK... " >&6; } 11537 if test ! -x "$tool_specified"; then 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11539 $as_echo "not found" >&6; } 11540 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11541 fi 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11543 $as_echo "$tool_specified" >&6; } 11544 fi 11545 fi 11546 fi 11547 11548 11549 if test "x$AWK" = x; then 11550 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11551 fi 11552 11553 11554 11555 11556 # Publish this variable in the help. 11557 11558 11559 if test "x$GREP" = x; then 11560 # The variable is not set by user, try to locate tool using the code snippet 11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11562 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11563 if ${ac_cv_path_GREP+:} false; then : 11564 $as_echo_n "(cached) " >&6 11565 else 11566 if test -z "$GREP"; then 11567 ac_path_GREP_found=false 11568 # Loop through the user's path and test for each of PROGNAME-LIST 11569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11571 do 11572 IFS=$as_save_IFS 11573 test -z "$as_dir" && as_dir=. 11574 for ac_prog in grep ggrep; do 11575 for ac_exec_ext in '' $ac_executable_extensions; do 11576 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11577 as_fn_executable_p "$ac_path_GREP" || continue 11578 # Check for GNU ac_path_GREP and select it if it is found. 11579 # Check for GNU $ac_path_GREP 11580 case `"$ac_path_GREP" --version 2>&1` in 11581 *GNU*) 11582 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11583 *) 11584 ac_count=0 11585 $as_echo_n 0123456789 >"conftest.in" 11586 while : 11587 do 11588 cat "conftest.in" "conftest.in" >"conftest.tmp" 11589 mv "conftest.tmp" "conftest.in" 11590 cp "conftest.in" "conftest.nl" 11591 $as_echo 'GREP' >> "conftest.nl" 11592 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11594 as_fn_arith $ac_count + 1 && ac_count=$as_val 11595 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11596 # Best one so far, save it but keep looking for a better one 11597 ac_cv_path_GREP="$ac_path_GREP" 11598 ac_path_GREP_max=$ac_count 11599 fi 11600 # 10*(2^10) chars as input seems more than enough 11601 test $ac_count -gt 10 && break 11602 done 11603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11604 esac 11605 11606 $ac_path_GREP_found && break 3 11607 done 11608 done 11609 done 11610 IFS=$as_save_IFS 11611 if test -z "$ac_cv_path_GREP"; then 11612 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11613 fi 11614 else 11615 ac_cv_path_GREP=$GREP 11616 fi 11617 11618 fi 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11620 $as_echo "$ac_cv_path_GREP" >&6; } 11621 GREP="$ac_cv_path_GREP" 11622 11623 11624 else 11625 # The variable is set, but is it from the command line or the environment? 11626 11627 # Try to remove the string !GREP! from our list. 11628 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11629 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11630 # If it failed, the variable was not from the command line. Ignore it, 11631 # but warn the user (except for BASH, which is always set by the calling BASH). 11632 if test "xGREP" != xBASH; then 11633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11634 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11635 fi 11636 # Try to locate tool using the code snippet 11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11638 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11639 if ${ac_cv_path_GREP+:} false; then : 11640 $as_echo_n "(cached) " >&6 11641 else 11642 if test -z "$GREP"; then 11643 ac_path_GREP_found=false 11644 # Loop through the user's path and test for each of PROGNAME-LIST 11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11646 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11647 do 11648 IFS=$as_save_IFS 11649 test -z "$as_dir" && as_dir=. 11650 for ac_prog in grep ggrep; do 11651 for ac_exec_ext in '' $ac_executable_extensions; do 11652 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11653 as_fn_executable_p "$ac_path_GREP" || continue 11654 # Check for GNU ac_path_GREP and select it if it is found. 11655 # Check for GNU $ac_path_GREP 11656 case `"$ac_path_GREP" --version 2>&1` in 11657 *GNU*) 11658 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11659 *) 11660 ac_count=0 11661 $as_echo_n 0123456789 >"conftest.in" 11662 while : 11663 do 11664 cat "conftest.in" "conftest.in" >"conftest.tmp" 11665 mv "conftest.tmp" "conftest.in" 11666 cp "conftest.in" "conftest.nl" 11667 $as_echo 'GREP' >> "conftest.nl" 11668 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11670 as_fn_arith $ac_count + 1 && ac_count=$as_val 11671 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11672 # Best one so far, save it but keep looking for a better one 11673 ac_cv_path_GREP="$ac_path_GREP" 11674 ac_path_GREP_max=$ac_count 11675 fi 11676 # 10*(2^10) chars as input seems more than enough 11677 test $ac_count -gt 10 && break 11678 done 11679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11680 esac 11681 11682 $ac_path_GREP_found && break 3 11683 done 11684 done 11685 done 11686 IFS=$as_save_IFS 11687 if test -z "$ac_cv_path_GREP"; then 11688 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11689 fi 11690 else 11691 ac_cv_path_GREP=$GREP 11692 fi 11693 11694 fi 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11696 $as_echo "$ac_cv_path_GREP" >&6; } 11697 GREP="$ac_cv_path_GREP" 11698 11699 11700 else 11701 # If it succeeded, then it was overridden by the user. We will use it 11702 # for the tool. 11703 11704 # First remove it from the list of overridden variables, so we can test 11705 # for unknown variables in the end. 11706 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11707 11708 # Check if the provided tool contains a complete path. 11709 tool_specified="$GREP" 11710 tool_basename="${tool_specified##*/}" 11711 if test "x$tool_basename" = "x$tool_specified"; then 11712 # A command without a complete path is provided, search $PATH. 11713 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11714 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11715 # Extract the first word of "$tool_basename", so it can be a program name with args. 11716 set dummy $tool_basename; ac_word=$2 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11718 $as_echo_n "checking for $ac_word... " >&6; } 11719 if ${ac_cv_path_GREP+:} false; then : 11720 $as_echo_n "(cached) " >&6 11721 else 11722 case $GREP in 11723 [\\/]* | ?:[\\/]*) 11724 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11725 ;; 11726 *) 11727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11728 for as_dir in $PATH 11729 do 11730 IFS=$as_save_IFS 11731 test -z "$as_dir" && as_dir=. 11732 for ac_exec_ext in '' $ac_executable_extensions; do 11733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11734 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11736 break 2 11737 fi 11738 done 11739 done 11740 IFS=$as_save_IFS 11741 11742 ;; 11743 esac 11744 fi 11745 GREP=$ac_cv_path_GREP 11746 if test -n "$GREP"; then 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11748 $as_echo "$GREP" >&6; } 11749 else 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11751 $as_echo "no" >&6; } 11752 fi 11753 11754 11755 if test "x$GREP" = x; then 11756 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11757 fi 11758 else 11759 # Otherwise we believe it is a complete path. Use it as it is. 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11761 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11763 $as_echo_n "checking for GREP... " >&6; } 11764 if test ! -x "$tool_specified"; then 11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11766 $as_echo "not found" >&6; } 11767 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11768 fi 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11770 $as_echo "$tool_specified" >&6; } 11771 fi 11772 fi 11773 fi 11774 11775 11776 if test "x$GREP" = x; then 11777 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11778 fi 11779 11780 11781 11782 11783 # Publish this variable in the help. 11784 11785 11786 if test "x$EGREP" = x; then 11787 # The variable is not set by user, try to locate tool using the code snippet 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11789 $as_echo_n "checking for egrep... " >&6; } 11790 if ${ac_cv_path_EGREP+:} false; then : 11791 $as_echo_n "(cached) " >&6 11792 else 11793 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11794 then ac_cv_path_EGREP="$GREP -E" 11795 else 11796 if test -z "$EGREP"; then 11797 ac_path_EGREP_found=false 11798 # Loop through the user's path and test for each of PROGNAME-LIST 11799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11801 do 11802 IFS=$as_save_IFS 11803 test -z "$as_dir" && as_dir=. 11804 for ac_prog in egrep; do 11805 for ac_exec_ext in '' $ac_executable_extensions; do 11806 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11807 as_fn_executable_p "$ac_path_EGREP" || continue 11808 # Check for GNU ac_path_EGREP and select it if it is found. 11809 # Check for GNU $ac_path_EGREP 11810 case `"$ac_path_EGREP" --version 2>&1` in 11811 *GNU*) 11812 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11813 *) 11814 ac_count=0 11815 $as_echo_n 0123456789 >"conftest.in" 11816 while : 11817 do 11818 cat "conftest.in" "conftest.in" >"conftest.tmp" 11819 mv "conftest.tmp" "conftest.in" 11820 cp "conftest.in" "conftest.nl" 11821 $as_echo 'EGREP' >> "conftest.nl" 11822 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11824 as_fn_arith $ac_count + 1 && ac_count=$as_val 11825 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11826 # Best one so far, save it but keep looking for a better one 11827 ac_cv_path_EGREP="$ac_path_EGREP" 11828 ac_path_EGREP_max=$ac_count 11829 fi 11830 # 10*(2^10) chars as input seems more than enough 11831 test $ac_count -gt 10 && break 11832 done 11833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11834 esac 11835 11836 $ac_path_EGREP_found && break 3 11837 done 11838 done 11839 done 11840 IFS=$as_save_IFS 11841 if test -z "$ac_cv_path_EGREP"; then 11842 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11843 fi 11844 else 11845 ac_cv_path_EGREP=$EGREP 11846 fi 11847 11848 fi 11849 fi 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11851 $as_echo "$ac_cv_path_EGREP" >&6; } 11852 EGREP="$ac_cv_path_EGREP" 11853 11854 11855 else 11856 # The variable is set, but is it from the command line or the environment? 11857 11858 # Try to remove the string !EGREP! from our list. 11859 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11860 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11861 # If it failed, the variable was not from the command line. Ignore it, 11862 # but warn the user (except for BASH, which is always set by the calling BASH). 11863 if test "xEGREP" != xBASH; then 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11865 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11866 fi 11867 # Try to locate tool using the code snippet 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11869 $as_echo_n "checking for egrep... " >&6; } 11870 if ${ac_cv_path_EGREP+:} false; then : 11871 $as_echo_n "(cached) " >&6 11872 else 11873 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11874 then ac_cv_path_EGREP="$GREP -E" 11875 else 11876 if test -z "$EGREP"; then 11877 ac_path_EGREP_found=false 11878 # Loop through the user's path and test for each of PROGNAME-LIST 11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11881 do 11882 IFS=$as_save_IFS 11883 test -z "$as_dir" && as_dir=. 11884 for ac_prog in egrep; do 11885 for ac_exec_ext in '' $ac_executable_extensions; do 11886 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11887 as_fn_executable_p "$ac_path_EGREP" || continue 11888 # Check for GNU ac_path_EGREP and select it if it is found. 11889 # Check for GNU $ac_path_EGREP 11890 case `"$ac_path_EGREP" --version 2>&1` in 11891 *GNU*) 11892 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11893 *) 11894 ac_count=0 11895 $as_echo_n 0123456789 >"conftest.in" 11896 while : 11897 do 11898 cat "conftest.in" "conftest.in" >"conftest.tmp" 11899 mv "conftest.tmp" "conftest.in" 11900 cp "conftest.in" "conftest.nl" 11901 $as_echo 'EGREP' >> "conftest.nl" 11902 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11904 as_fn_arith $ac_count + 1 && ac_count=$as_val 11905 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11906 # Best one so far, save it but keep looking for a better one 11907 ac_cv_path_EGREP="$ac_path_EGREP" 11908 ac_path_EGREP_max=$ac_count 11909 fi 11910 # 10*(2^10) chars as input seems more than enough 11911 test $ac_count -gt 10 && break 11912 done 11913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11914 esac 11915 11916 $ac_path_EGREP_found && break 3 11917 done 11918 done 11919 done 11920 IFS=$as_save_IFS 11921 if test -z "$ac_cv_path_EGREP"; then 11922 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11923 fi 11924 else 11925 ac_cv_path_EGREP=$EGREP 11926 fi 11927 11928 fi 11929 fi 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11931 $as_echo "$ac_cv_path_EGREP" >&6; } 11932 EGREP="$ac_cv_path_EGREP" 11933 11934 11935 else 11936 # If it succeeded, then it was overridden by the user. We will use it 11937 # for the tool. 11938 11939 # First remove it from the list of overridden variables, so we can test 11940 # for unknown variables in the end. 11941 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11942 11943 # Check if the provided tool contains a complete path. 11944 tool_specified="$EGREP" 11945 tool_basename="${tool_specified##*/}" 11946 if test "x$tool_basename" = "x$tool_specified"; then 11947 # A command without a complete path is provided, search $PATH. 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11949 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11950 # Extract the first word of "$tool_basename", so it can be a program name with args. 11951 set dummy $tool_basename; ac_word=$2 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11953 $as_echo_n "checking for $ac_word... " >&6; } 11954 if ${ac_cv_path_EGREP+:} false; then : 11955 $as_echo_n "(cached) " >&6 11956 else 11957 case $EGREP in 11958 [\\/]* | ?:[\\/]*) 11959 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11960 ;; 11961 *) 11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11963 for as_dir in $PATH 11964 do 11965 IFS=$as_save_IFS 11966 test -z "$as_dir" && as_dir=. 11967 for ac_exec_ext in '' $ac_executable_extensions; do 11968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11969 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11971 break 2 11972 fi 11973 done 11974 done 11975 IFS=$as_save_IFS 11976 11977 ;; 11978 esac 11979 fi 11980 EGREP=$ac_cv_path_EGREP 11981 if test -n "$EGREP"; then 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 11983 $as_echo "$EGREP" >&6; } 11984 else 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11986 $as_echo "no" >&6; } 11987 fi 11988 11989 11990 if test "x$EGREP" = x; then 11991 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11992 fi 11993 else 11994 # Otherwise we believe it is a complete path. Use it as it is. 11995 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 11996 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 11998 $as_echo_n "checking for EGREP... " >&6; } 11999 if test ! -x "$tool_specified"; then 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12001 $as_echo "not found" >&6; } 12002 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12003 fi 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12005 $as_echo "$tool_specified" >&6; } 12006 fi 12007 fi 12008 fi 12009 12010 12011 if test "x$EGREP" = x; then 12012 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12013 fi 12014 12015 12016 12017 12018 # Publish this variable in the help. 12019 12020 12021 if test "x$FGREP" = x; then 12022 # The variable is not set by user, try to locate tool using the code snippet 12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12024 $as_echo_n "checking for fgrep... " >&6; } 12025 if ${ac_cv_path_FGREP+:} false; then : 12026 $as_echo_n "(cached) " >&6 12027 else 12028 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12029 then ac_cv_path_FGREP="$GREP -F" 12030 else 12031 if test -z "$FGREP"; then 12032 ac_path_FGREP_found=false 12033 # Loop through the user's path and test for each of PROGNAME-LIST 12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12035 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12036 do 12037 IFS=$as_save_IFS 12038 test -z "$as_dir" && as_dir=. 12039 for ac_prog in fgrep; do 12040 for ac_exec_ext in '' $ac_executable_extensions; do 12041 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12042 as_fn_executable_p "$ac_path_FGREP" || continue 12043 # Check for GNU ac_path_FGREP and select it if it is found. 12044 # Check for GNU $ac_path_FGREP 12045 case `"$ac_path_FGREP" --version 2>&1` in 12046 *GNU*) 12047 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12048 *) 12049 ac_count=0 12050 $as_echo_n 0123456789 >"conftest.in" 12051 while : 12052 do 12053 cat "conftest.in" "conftest.in" >"conftest.tmp" 12054 mv "conftest.tmp" "conftest.in" 12055 cp "conftest.in" "conftest.nl" 12056 $as_echo 'FGREP' >> "conftest.nl" 12057 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12059 as_fn_arith $ac_count + 1 && ac_count=$as_val 12060 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12061 # Best one so far, save it but keep looking for a better one 12062 ac_cv_path_FGREP="$ac_path_FGREP" 12063 ac_path_FGREP_max=$ac_count 12064 fi 12065 # 10*(2^10) chars as input seems more than enough 12066 test $ac_count -gt 10 && break 12067 done 12068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12069 esac 12070 12071 $ac_path_FGREP_found && break 3 12072 done 12073 done 12074 done 12075 IFS=$as_save_IFS 12076 if test -z "$ac_cv_path_FGREP"; then 12077 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12078 fi 12079 else 12080 ac_cv_path_FGREP=$FGREP 12081 fi 12082 12083 fi 12084 fi 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12086 $as_echo "$ac_cv_path_FGREP" >&6; } 12087 FGREP="$ac_cv_path_FGREP" 12088 12089 12090 else 12091 # The variable is set, but is it from the command line or the environment? 12092 12093 # Try to remove the string !FGREP! from our list. 12094 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12095 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12096 # If it failed, the variable was not from the command line. Ignore it, 12097 # but warn the user (except for BASH, which is always set by the calling BASH). 12098 if test "xFGREP" != xBASH; then 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12100 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12101 fi 12102 # Try to locate tool using the code snippet 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12104 $as_echo_n "checking for fgrep... " >&6; } 12105 if ${ac_cv_path_FGREP+:} false; then : 12106 $as_echo_n "(cached) " >&6 12107 else 12108 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12109 then ac_cv_path_FGREP="$GREP -F" 12110 else 12111 if test -z "$FGREP"; then 12112 ac_path_FGREP_found=false 12113 # Loop through the user's path and test for each of PROGNAME-LIST 12114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12116 do 12117 IFS=$as_save_IFS 12118 test -z "$as_dir" && as_dir=. 12119 for ac_prog in fgrep; do 12120 for ac_exec_ext in '' $ac_executable_extensions; do 12121 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12122 as_fn_executable_p "$ac_path_FGREP" || continue 12123 # Check for GNU ac_path_FGREP and select it if it is found. 12124 # Check for GNU $ac_path_FGREP 12125 case `"$ac_path_FGREP" --version 2>&1` in 12126 *GNU*) 12127 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12128 *) 12129 ac_count=0 12130 $as_echo_n 0123456789 >"conftest.in" 12131 while : 12132 do 12133 cat "conftest.in" "conftest.in" >"conftest.tmp" 12134 mv "conftest.tmp" "conftest.in" 12135 cp "conftest.in" "conftest.nl" 12136 $as_echo 'FGREP' >> "conftest.nl" 12137 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12139 as_fn_arith $ac_count + 1 && ac_count=$as_val 12140 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12141 # Best one so far, save it but keep looking for a better one 12142 ac_cv_path_FGREP="$ac_path_FGREP" 12143 ac_path_FGREP_max=$ac_count 12144 fi 12145 # 10*(2^10) chars as input seems more than enough 12146 test $ac_count -gt 10 && break 12147 done 12148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12149 esac 12150 12151 $ac_path_FGREP_found && break 3 12152 done 12153 done 12154 done 12155 IFS=$as_save_IFS 12156 if test -z "$ac_cv_path_FGREP"; then 12157 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12158 fi 12159 else 12160 ac_cv_path_FGREP=$FGREP 12161 fi 12162 12163 fi 12164 fi 12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12166 $as_echo "$ac_cv_path_FGREP" >&6; } 12167 FGREP="$ac_cv_path_FGREP" 12168 12169 12170 else 12171 # If it succeeded, then it was overridden by the user. We will use it 12172 # for the tool. 12173 12174 # First remove it from the list of overridden variables, so we can test 12175 # for unknown variables in the end. 12176 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12177 12178 # Check if the provided tool contains a complete path. 12179 tool_specified="$FGREP" 12180 tool_basename="${tool_specified##*/}" 12181 if test "x$tool_basename" = "x$tool_specified"; then 12182 # A command without a complete path is provided, search $PATH. 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12184 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12185 # Extract the first word of "$tool_basename", so it can be a program name with args. 12186 set dummy $tool_basename; ac_word=$2 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12188 $as_echo_n "checking for $ac_word... " >&6; } 12189 if ${ac_cv_path_FGREP+:} false; then : 12190 $as_echo_n "(cached) " >&6 12191 else 12192 case $FGREP in 12193 [\\/]* | ?:[\\/]*) 12194 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12195 ;; 12196 *) 12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12198 for as_dir in $PATH 12199 do 12200 IFS=$as_save_IFS 12201 test -z "$as_dir" && as_dir=. 12202 for ac_exec_ext in '' $ac_executable_extensions; do 12203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12204 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12206 break 2 12207 fi 12208 done 12209 done 12210 IFS=$as_save_IFS 12211 12212 ;; 12213 esac 12214 fi 12215 FGREP=$ac_cv_path_FGREP 12216 if test -n "$FGREP"; then 12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12218 $as_echo "$FGREP" >&6; } 12219 else 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12221 $as_echo "no" >&6; } 12222 fi 12223 12224 12225 if test "x$FGREP" = x; then 12226 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12227 fi 12228 else 12229 # Otherwise we believe it is a complete path. Use it as it is. 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12231 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12233 $as_echo_n "checking for FGREP... " >&6; } 12234 if test ! -x "$tool_specified"; then 12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12236 $as_echo "not found" >&6; } 12237 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12238 fi 12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12240 $as_echo "$tool_specified" >&6; } 12241 fi 12242 fi 12243 fi 12244 12245 12246 if test "x$FGREP" = x; then 12247 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12248 fi 12249 12250 12251 12252 12253 # Publish this variable in the help. 12254 12255 12256 if test "x$SED" = x; then 12257 # The variable is not set by user, try to locate tool using the code snippet 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12259 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12260 if ${ac_cv_path_SED+:} false; then : 12261 $as_echo_n "(cached) " >&6 12262 else 12263 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12264 for ac_i in 1 2 3 4 5 6 7; do 12265 ac_script="$ac_script$as_nl$ac_script" 12266 done 12267 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12268 { ac_script=; unset ac_script;} 12269 if test -z "$SED"; then 12270 ac_path_SED_found=false 12271 # Loop through the user's path and test for each of PROGNAME-LIST 12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12273 for as_dir in $PATH 12274 do 12275 IFS=$as_save_IFS 12276 test -z "$as_dir" && as_dir=. 12277 for ac_prog in sed gsed; do 12278 for ac_exec_ext in '' $ac_executable_extensions; do 12279 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12280 as_fn_executable_p "$ac_path_SED" || continue 12281 # Check for GNU ac_path_SED and select it if it is found. 12282 # Check for GNU $ac_path_SED 12283 case `"$ac_path_SED" --version 2>&1` in 12284 *GNU*) 12285 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12286 *) 12287 ac_count=0 12288 $as_echo_n 0123456789 >"conftest.in" 12289 while : 12290 do 12291 cat "conftest.in" "conftest.in" >"conftest.tmp" 12292 mv "conftest.tmp" "conftest.in" 12293 cp "conftest.in" "conftest.nl" 12294 $as_echo '' >> "conftest.nl" 12295 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12297 as_fn_arith $ac_count + 1 && ac_count=$as_val 12298 if test $ac_count -gt ${ac_path_SED_max-0}; then 12299 # Best one so far, save it but keep looking for a better one 12300 ac_cv_path_SED="$ac_path_SED" 12301 ac_path_SED_max=$ac_count 12302 fi 12303 # 10*(2^10) chars as input seems more than enough 12304 test $ac_count -gt 10 && break 12305 done 12306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12307 esac 12308 12309 $ac_path_SED_found && break 3 12310 done 12311 done 12312 done 12313 IFS=$as_save_IFS 12314 if test -z "$ac_cv_path_SED"; then 12315 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12316 fi 12317 else 12318 ac_cv_path_SED=$SED 12319 fi 12320 12321 fi 12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12323 $as_echo "$ac_cv_path_SED" >&6; } 12324 SED="$ac_cv_path_SED" 12325 rm -f conftest.sed 12326 12327 else 12328 # The variable is set, but is it from the command line or the environment? 12329 12330 # Try to remove the string !SED! from our list. 12331 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12332 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12333 # If it failed, the variable was not from the command line. Ignore it, 12334 # but warn the user (except for BASH, which is always set by the calling BASH). 12335 if test "xSED" != xBASH; then 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12337 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12338 fi 12339 # Try to locate tool using the code snippet 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12341 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12342 if ${ac_cv_path_SED+:} false; then : 12343 $as_echo_n "(cached) " >&6 12344 else 12345 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12346 for ac_i in 1 2 3 4 5 6 7; do 12347 ac_script="$ac_script$as_nl$ac_script" 12348 done 12349 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12350 { ac_script=; unset ac_script;} 12351 if test -z "$SED"; then 12352 ac_path_SED_found=false 12353 # Loop through the user's path and test for each of PROGNAME-LIST 12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12355 for as_dir in $PATH 12356 do 12357 IFS=$as_save_IFS 12358 test -z "$as_dir" && as_dir=. 12359 for ac_prog in sed gsed; do 12360 for ac_exec_ext in '' $ac_executable_extensions; do 12361 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12362 as_fn_executable_p "$ac_path_SED" || continue 12363 # Check for GNU ac_path_SED and select it if it is found. 12364 # Check for GNU $ac_path_SED 12365 case `"$ac_path_SED" --version 2>&1` in 12366 *GNU*) 12367 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12368 *) 12369 ac_count=0 12370 $as_echo_n 0123456789 >"conftest.in" 12371 while : 12372 do 12373 cat "conftest.in" "conftest.in" >"conftest.tmp" 12374 mv "conftest.tmp" "conftest.in" 12375 cp "conftest.in" "conftest.nl" 12376 $as_echo '' >> "conftest.nl" 12377 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12379 as_fn_arith $ac_count + 1 && ac_count=$as_val 12380 if test $ac_count -gt ${ac_path_SED_max-0}; then 12381 # Best one so far, save it but keep looking for a better one 12382 ac_cv_path_SED="$ac_path_SED" 12383 ac_path_SED_max=$ac_count 12384 fi 12385 # 10*(2^10) chars as input seems more than enough 12386 test $ac_count -gt 10 && break 12387 done 12388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12389 esac 12390 12391 $ac_path_SED_found && break 3 12392 done 12393 done 12394 done 12395 IFS=$as_save_IFS 12396 if test -z "$ac_cv_path_SED"; then 12397 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12398 fi 12399 else 12400 ac_cv_path_SED=$SED 12401 fi 12402 12403 fi 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12405 $as_echo "$ac_cv_path_SED" >&6; } 12406 SED="$ac_cv_path_SED" 12407 rm -f conftest.sed 12408 12409 else 12410 # If it succeeded, then it was overridden by the user. We will use it 12411 # for the tool. 12412 12413 # First remove it from the list of overridden variables, so we can test 12414 # for unknown variables in the end. 12415 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12416 12417 # Check if the provided tool contains a complete path. 12418 tool_specified="$SED" 12419 tool_basename="${tool_specified##*/}" 12420 if test "x$tool_basename" = "x$tool_specified"; then 12421 # A command without a complete path is provided, search $PATH. 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12423 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12424 # Extract the first word of "$tool_basename", so it can be a program name with args. 12425 set dummy $tool_basename; ac_word=$2 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12427 $as_echo_n "checking for $ac_word... " >&6; } 12428 if ${ac_cv_path_SED+:} false; then : 12429 $as_echo_n "(cached) " >&6 12430 else 12431 case $SED in 12432 [\\/]* | ?:[\\/]*) 12433 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12434 ;; 12435 *) 12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12437 for as_dir in $PATH 12438 do 12439 IFS=$as_save_IFS 12440 test -z "$as_dir" && as_dir=. 12441 for ac_exec_ext in '' $ac_executable_extensions; do 12442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12443 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12445 break 2 12446 fi 12447 done 12448 done 12449 IFS=$as_save_IFS 12450 12451 ;; 12452 esac 12453 fi 12454 SED=$ac_cv_path_SED 12455 if test -n "$SED"; then 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12457 $as_echo "$SED" >&6; } 12458 else 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12460 $as_echo "no" >&6; } 12461 fi 12462 12463 12464 if test "x$SED" = x; then 12465 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12466 fi 12467 else 12468 # Otherwise we believe it is a complete path. Use it as it is. 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12470 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12472 $as_echo_n "checking for SED... " >&6; } 12473 if test ! -x "$tool_specified"; then 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12475 $as_echo "not found" >&6; } 12476 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12477 fi 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12479 $as_echo "$tool_specified" >&6; } 12480 fi 12481 fi 12482 fi 12483 12484 12485 if test "x$SED" = x; then 12486 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12487 fi 12488 12489 12490 12491 # Always force rm. 12492 RM="$RM -f" 12493 12494 # pwd behaves differently on various platforms and some don't support the -L flag. 12495 # Always use the bash builtin pwd to get uniform behavior. 12496 THEPWDCMD=pwd 12497 12498 # These are not required on all platforms 12499 12500 12501 # Publish this variable in the help. 12502 12503 12504 if test "x$CYGPATH" = x; then 12505 # The variable is not set by user, try to locate tool using the code snippet 12506 for ac_prog in cygpath 12507 do 12508 # Extract the first word of "$ac_prog", so it can be a program name with args. 12509 set dummy $ac_prog; ac_word=$2 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12511 $as_echo_n "checking for $ac_word... " >&6; } 12512 if ${ac_cv_path_CYGPATH+:} false; then : 12513 $as_echo_n "(cached) " >&6 12514 else 12515 case $CYGPATH in 12516 [\\/]* | ?:[\\/]*) 12517 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12518 ;; 12519 *) 12520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12521 for as_dir in $PATH 12522 do 12523 IFS=$as_save_IFS 12524 test -z "$as_dir" && as_dir=. 12525 for ac_exec_ext in '' $ac_executable_extensions; do 12526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12527 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12529 break 2 12530 fi 12531 done 12532 done 12533 IFS=$as_save_IFS 12534 12535 ;; 12536 esac 12537 fi 12538 CYGPATH=$ac_cv_path_CYGPATH 12539 if test -n "$CYGPATH"; then 12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12541 $as_echo "$CYGPATH" >&6; } 12542 else 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12544 $as_echo "no" >&6; } 12545 fi 12546 12547 12548 test -n "$CYGPATH" && break 12549 done 12550 12551 else 12552 # The variable is set, but is it from the command line or the environment? 12553 12554 # Try to remove the string !CYGPATH! from our list. 12555 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12556 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12557 # If it failed, the variable was not from the command line. Ignore it, 12558 # but warn the user (except for BASH, which is always set by the calling BASH). 12559 if test "xCYGPATH" != xBASH; then 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12561 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12562 fi 12563 # Try to locate tool using the code snippet 12564 for ac_prog in cygpath 12565 do 12566 # Extract the first word of "$ac_prog", so it can be a program name with args. 12567 set dummy $ac_prog; ac_word=$2 12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12569 $as_echo_n "checking for $ac_word... " >&6; } 12570 if ${ac_cv_path_CYGPATH+:} false; then : 12571 $as_echo_n "(cached) " >&6 12572 else 12573 case $CYGPATH in 12574 [\\/]* | ?:[\\/]*) 12575 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12576 ;; 12577 *) 12578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12579 for as_dir in $PATH 12580 do 12581 IFS=$as_save_IFS 12582 test -z "$as_dir" && as_dir=. 12583 for ac_exec_ext in '' $ac_executable_extensions; do 12584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12585 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12587 break 2 12588 fi 12589 done 12590 done 12591 IFS=$as_save_IFS 12592 12593 ;; 12594 esac 12595 fi 12596 CYGPATH=$ac_cv_path_CYGPATH 12597 if test -n "$CYGPATH"; then 12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12599 $as_echo "$CYGPATH" >&6; } 12600 else 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12602 $as_echo "no" >&6; } 12603 fi 12604 12605 12606 test -n "$CYGPATH" && break 12607 done 12608 12609 else 12610 # If it succeeded, then it was overridden by the user. We will use it 12611 # for the tool. 12612 12613 # First remove it from the list of overridden variables, so we can test 12614 # for unknown variables in the end. 12615 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12616 12617 # Check if the provided tool contains a complete path. 12618 tool_specified="$CYGPATH" 12619 tool_basename="${tool_specified##*/}" 12620 if test "x$tool_basename" = "x$tool_specified"; then 12621 # A command without a complete path is provided, search $PATH. 12622 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12623 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12624 # Extract the first word of "$tool_basename", so it can be a program name with args. 12625 set dummy $tool_basename; ac_word=$2 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12627 $as_echo_n "checking for $ac_word... " >&6; } 12628 if ${ac_cv_path_CYGPATH+:} false; then : 12629 $as_echo_n "(cached) " >&6 12630 else 12631 case $CYGPATH in 12632 [\\/]* | ?:[\\/]*) 12633 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12634 ;; 12635 *) 12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12637 for as_dir in $PATH 12638 do 12639 IFS=$as_save_IFS 12640 test -z "$as_dir" && as_dir=. 12641 for ac_exec_ext in '' $ac_executable_extensions; do 12642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12643 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12645 break 2 12646 fi 12647 done 12648 done 12649 IFS=$as_save_IFS 12650 12651 ;; 12652 esac 12653 fi 12654 CYGPATH=$ac_cv_path_CYGPATH 12655 if test -n "$CYGPATH"; then 12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12657 $as_echo "$CYGPATH" >&6; } 12658 else 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12660 $as_echo "no" >&6; } 12661 fi 12662 12663 12664 if test "x$CYGPATH" = x; then 12665 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12666 fi 12667 else 12668 # Otherwise we believe it is a complete path. Use it as it is. 12669 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12670 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12672 $as_echo_n "checking for CYGPATH... " >&6; } 12673 if test ! -x "$tool_specified"; then 12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12675 $as_echo "not found" >&6; } 12676 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12677 fi 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12679 $as_echo "$tool_specified" >&6; } 12680 fi 12681 fi 12682 fi 12683 12684 12685 12686 12687 # Publish this variable in the help. 12688 12689 12690 if test "x$READLINK" = x; then 12691 # The variable is not set by user, try to locate tool using the code snippet 12692 for ac_prog in greadlink readlink 12693 do 12694 # Extract the first word of "$ac_prog", so it can be a program name with args. 12695 set dummy $ac_prog; ac_word=$2 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12697 $as_echo_n "checking for $ac_word... " >&6; } 12698 if ${ac_cv_path_READLINK+:} false; then : 12699 $as_echo_n "(cached) " >&6 12700 else 12701 case $READLINK in 12702 [\\/]* | ?:[\\/]*) 12703 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12704 ;; 12705 *) 12706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12707 for as_dir in $PATH 12708 do 12709 IFS=$as_save_IFS 12710 test -z "$as_dir" && as_dir=. 12711 for ac_exec_ext in '' $ac_executable_extensions; do 12712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12713 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12715 break 2 12716 fi 12717 done 12718 done 12719 IFS=$as_save_IFS 12720 12721 ;; 12722 esac 12723 fi 12724 READLINK=$ac_cv_path_READLINK 12725 if test -n "$READLINK"; then 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12727 $as_echo "$READLINK" >&6; } 12728 else 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12730 $as_echo "no" >&6; } 12731 fi 12732 12733 12734 test -n "$READLINK" && break 12735 done 12736 12737 else 12738 # The variable is set, but is it from the command line or the environment? 12739 12740 # Try to remove the string !READLINK! from our list. 12741 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12742 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12743 # If it failed, the variable was not from the command line. Ignore it, 12744 # but warn the user (except for BASH, which is always set by the calling BASH). 12745 if test "xREADLINK" != xBASH; then 12746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12747 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12748 fi 12749 # Try to locate tool using the code snippet 12750 for ac_prog in greadlink readlink 12751 do 12752 # Extract the first word of "$ac_prog", so it can be a program name with args. 12753 set dummy $ac_prog; ac_word=$2 12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12755 $as_echo_n "checking for $ac_word... " >&6; } 12756 if ${ac_cv_path_READLINK+:} false; then : 12757 $as_echo_n "(cached) " >&6 12758 else 12759 case $READLINK in 12760 [\\/]* | ?:[\\/]*) 12761 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12762 ;; 12763 *) 12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12765 for as_dir in $PATH 12766 do 12767 IFS=$as_save_IFS 12768 test -z "$as_dir" && as_dir=. 12769 for ac_exec_ext in '' $ac_executable_extensions; do 12770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12771 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12773 break 2 12774 fi 12775 done 12776 done 12777 IFS=$as_save_IFS 12778 12779 ;; 12780 esac 12781 fi 12782 READLINK=$ac_cv_path_READLINK 12783 if test -n "$READLINK"; then 12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12785 $as_echo "$READLINK" >&6; } 12786 else 12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12788 $as_echo "no" >&6; } 12789 fi 12790 12791 12792 test -n "$READLINK" && break 12793 done 12794 12795 else 12796 # If it succeeded, then it was overridden by the user. We will use it 12797 # for the tool. 12798 12799 # First remove it from the list of overridden variables, so we can test 12800 # for unknown variables in the end. 12801 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12802 12803 # Check if the provided tool contains a complete path. 12804 tool_specified="$READLINK" 12805 tool_basename="${tool_specified##*/}" 12806 if test "x$tool_basename" = "x$tool_specified"; then 12807 # A command without a complete path is provided, search $PATH. 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12809 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12810 # Extract the first word of "$tool_basename", so it can be a program name with args. 12811 set dummy $tool_basename; ac_word=$2 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12813 $as_echo_n "checking for $ac_word... " >&6; } 12814 if ${ac_cv_path_READLINK+:} false; then : 12815 $as_echo_n "(cached) " >&6 12816 else 12817 case $READLINK in 12818 [\\/]* | ?:[\\/]*) 12819 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12820 ;; 12821 *) 12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12823 for as_dir in $PATH 12824 do 12825 IFS=$as_save_IFS 12826 test -z "$as_dir" && as_dir=. 12827 for ac_exec_ext in '' $ac_executable_extensions; do 12828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12829 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12831 break 2 12832 fi 12833 done 12834 done 12835 IFS=$as_save_IFS 12836 12837 ;; 12838 esac 12839 fi 12840 READLINK=$ac_cv_path_READLINK 12841 if test -n "$READLINK"; then 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12843 $as_echo "$READLINK" >&6; } 12844 else 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12846 $as_echo "no" >&6; } 12847 fi 12848 12849 12850 if test "x$READLINK" = x; then 12851 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12852 fi 12853 else 12854 # Otherwise we believe it is a complete path. Use it as it is. 12855 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12856 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12858 $as_echo_n "checking for READLINK... " >&6; } 12859 if test ! -x "$tool_specified"; then 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12861 $as_echo "not found" >&6; } 12862 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12863 fi 12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12865 $as_echo "$tool_specified" >&6; } 12866 fi 12867 fi 12868 fi 12869 12870 12871 12872 12873 # Publish this variable in the help. 12874 12875 12876 if test "x$DF" = x; then 12877 # The variable is not set by user, try to locate tool using the code snippet 12878 for ac_prog in df 12879 do 12880 # Extract the first word of "$ac_prog", so it can be a program name with args. 12881 set dummy $ac_prog; ac_word=$2 12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12883 $as_echo_n "checking for $ac_word... " >&6; } 12884 if ${ac_cv_path_DF+:} false; then : 12885 $as_echo_n "(cached) " >&6 12886 else 12887 case $DF in 12888 [\\/]* | ?:[\\/]*) 12889 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12890 ;; 12891 *) 12892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12893 for as_dir in $PATH 12894 do 12895 IFS=$as_save_IFS 12896 test -z "$as_dir" && as_dir=. 12897 for ac_exec_ext in '' $ac_executable_extensions; do 12898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12899 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12901 break 2 12902 fi 12903 done 12904 done 12905 IFS=$as_save_IFS 12906 12907 ;; 12908 esac 12909 fi 12910 DF=$ac_cv_path_DF 12911 if test -n "$DF"; then 12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12913 $as_echo "$DF" >&6; } 12914 else 12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12916 $as_echo "no" >&6; } 12917 fi 12918 12919 12920 test -n "$DF" && break 12921 done 12922 12923 else 12924 # The variable is set, but is it from the command line or the environment? 12925 12926 # Try to remove the string !DF! from our list. 12927 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12928 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12929 # If it failed, the variable was not from the command line. Ignore it, 12930 # but warn the user (except for BASH, which is always set by the calling BASH). 12931 if test "xDF" != xBASH; then 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12933 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12934 fi 12935 # Try to locate tool using the code snippet 12936 for ac_prog in df 12937 do 12938 # Extract the first word of "$ac_prog", so it can be a program name with args. 12939 set dummy $ac_prog; ac_word=$2 12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12941 $as_echo_n "checking for $ac_word... " >&6; } 12942 if ${ac_cv_path_DF+:} false; then : 12943 $as_echo_n "(cached) " >&6 12944 else 12945 case $DF in 12946 [\\/]* | ?:[\\/]*) 12947 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12948 ;; 12949 *) 12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12951 for as_dir in $PATH 12952 do 12953 IFS=$as_save_IFS 12954 test -z "$as_dir" && as_dir=. 12955 for ac_exec_ext in '' $ac_executable_extensions; do 12956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12957 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12959 break 2 12960 fi 12961 done 12962 done 12963 IFS=$as_save_IFS 12964 12965 ;; 12966 esac 12967 fi 12968 DF=$ac_cv_path_DF 12969 if test -n "$DF"; then 12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12971 $as_echo "$DF" >&6; } 12972 else 12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12974 $as_echo "no" >&6; } 12975 fi 12976 12977 12978 test -n "$DF" && break 12979 done 12980 12981 else 12982 # If it succeeded, then it was overridden by the user. We will use it 12983 # for the tool. 12984 12985 # First remove it from the list of overridden variables, so we can test 12986 # for unknown variables in the end. 12987 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12988 12989 # Check if the provided tool contains a complete path. 12990 tool_specified="$DF" 12991 tool_basename="${tool_specified##*/}" 12992 if test "x$tool_basename" = "x$tool_specified"; then 12993 # A command without a complete path is provided, search $PATH. 12994 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 12995 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 12996 # Extract the first word of "$tool_basename", so it can be a program name with args. 12997 set dummy $tool_basename; ac_word=$2 12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12999 $as_echo_n "checking for $ac_word... " >&6; } 13000 if ${ac_cv_path_DF+:} false; then : 13001 $as_echo_n "(cached) " >&6 13002 else 13003 case $DF in 13004 [\\/]* | ?:[\\/]*) 13005 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13006 ;; 13007 *) 13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13009 for as_dir in $PATH 13010 do 13011 IFS=$as_save_IFS 13012 test -z "$as_dir" && as_dir=. 13013 for ac_exec_ext in '' $ac_executable_extensions; do 13014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13015 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13017 break 2 13018 fi 13019 done 13020 done 13021 IFS=$as_save_IFS 13022 13023 ;; 13024 esac 13025 fi 13026 DF=$ac_cv_path_DF 13027 if test -n "$DF"; then 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13029 $as_echo "$DF" >&6; } 13030 else 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13032 $as_echo "no" >&6; } 13033 fi 13034 13035 13036 if test "x$DF" = x; then 13037 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13038 fi 13039 else 13040 # Otherwise we believe it is a complete path. Use it as it is. 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13042 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13044 $as_echo_n "checking for DF... " >&6; } 13045 if test ! -x "$tool_specified"; then 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13047 $as_echo "not found" >&6; } 13048 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13049 fi 13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13051 $as_echo "$tool_specified" >&6; } 13052 fi 13053 fi 13054 fi 13055 13056 13057 13058 13059 # Publish this variable in the help. 13060 13061 13062 if test "x$SETFILE" = x; then 13063 # The variable is not set by user, try to locate tool using the code snippet 13064 for ac_prog in SetFile 13065 do 13066 # Extract the first word of "$ac_prog", so it can be a program name with args. 13067 set dummy $ac_prog; ac_word=$2 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13069 $as_echo_n "checking for $ac_word... " >&6; } 13070 if ${ac_cv_path_SETFILE+:} false; then : 13071 $as_echo_n "(cached) " >&6 13072 else 13073 case $SETFILE in 13074 [\\/]* | ?:[\\/]*) 13075 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13076 ;; 13077 *) 13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13079 for as_dir in $PATH 13080 do 13081 IFS=$as_save_IFS 13082 test -z "$as_dir" && as_dir=. 13083 for ac_exec_ext in '' $ac_executable_extensions; do 13084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13085 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13087 break 2 13088 fi 13089 done 13090 done 13091 IFS=$as_save_IFS 13092 13093 ;; 13094 esac 13095 fi 13096 SETFILE=$ac_cv_path_SETFILE 13097 if test -n "$SETFILE"; then 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13099 $as_echo "$SETFILE" >&6; } 13100 else 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13102 $as_echo "no" >&6; } 13103 fi 13104 13105 13106 test -n "$SETFILE" && break 13107 done 13108 13109 else 13110 # The variable is set, but is it from the command line or the environment? 13111 13112 # Try to remove the string !SETFILE! from our list. 13113 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13114 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13115 # If it failed, the variable was not from the command line. Ignore it, 13116 # but warn the user (except for BASH, which is always set by the calling BASH). 13117 if test "xSETFILE" != xBASH; then 13118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13119 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13120 fi 13121 # Try to locate tool using the code snippet 13122 for ac_prog in SetFile 13123 do 13124 # Extract the first word of "$ac_prog", so it can be a program name with args. 13125 set dummy $ac_prog; ac_word=$2 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13127 $as_echo_n "checking for $ac_word... " >&6; } 13128 if ${ac_cv_path_SETFILE+:} false; then : 13129 $as_echo_n "(cached) " >&6 13130 else 13131 case $SETFILE in 13132 [\\/]* | ?:[\\/]*) 13133 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13134 ;; 13135 *) 13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13137 for as_dir in $PATH 13138 do 13139 IFS=$as_save_IFS 13140 test -z "$as_dir" && as_dir=. 13141 for ac_exec_ext in '' $ac_executable_extensions; do 13142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13143 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13145 break 2 13146 fi 13147 done 13148 done 13149 IFS=$as_save_IFS 13150 13151 ;; 13152 esac 13153 fi 13154 SETFILE=$ac_cv_path_SETFILE 13155 if test -n "$SETFILE"; then 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13157 $as_echo "$SETFILE" >&6; } 13158 else 13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13160 $as_echo "no" >&6; } 13161 fi 13162 13163 13164 test -n "$SETFILE" && break 13165 done 13166 13167 else 13168 # If it succeeded, then it was overridden by the user. We will use it 13169 # for the tool. 13170 13171 # First remove it from the list of overridden variables, so we can test 13172 # for unknown variables in the end. 13173 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13174 13175 # Check if the provided tool contains a complete path. 13176 tool_specified="$SETFILE" 13177 tool_basename="${tool_specified##*/}" 13178 if test "x$tool_basename" = "x$tool_specified"; then 13179 # A command without a complete path is provided, search $PATH. 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13181 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13182 # Extract the first word of "$tool_basename", so it can be a program name with args. 13183 set dummy $tool_basename; ac_word=$2 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13185 $as_echo_n "checking for $ac_word... " >&6; } 13186 if ${ac_cv_path_SETFILE+:} false; then : 13187 $as_echo_n "(cached) " >&6 13188 else 13189 case $SETFILE in 13190 [\\/]* | ?:[\\/]*) 13191 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13192 ;; 13193 *) 13194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13195 for as_dir in $PATH 13196 do 13197 IFS=$as_save_IFS 13198 test -z "$as_dir" && as_dir=. 13199 for ac_exec_ext in '' $ac_executable_extensions; do 13200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13201 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13203 break 2 13204 fi 13205 done 13206 done 13207 IFS=$as_save_IFS 13208 13209 ;; 13210 esac 13211 fi 13212 SETFILE=$ac_cv_path_SETFILE 13213 if test -n "$SETFILE"; then 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13215 $as_echo "$SETFILE" >&6; } 13216 else 13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13218 $as_echo "no" >&6; } 13219 fi 13220 13221 13222 if test "x$SETFILE" = x; then 13223 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13224 fi 13225 else 13226 # Otherwise we believe it is a complete path. Use it as it is. 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13228 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13230 $as_echo_n "checking for SETFILE... " >&6; } 13231 if test ! -x "$tool_specified"; then 13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13233 $as_echo "not found" >&6; } 13234 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13235 fi 13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13237 $as_echo "$tool_specified" >&6; } 13238 fi 13239 fi 13240 fi 13241 13242 13243 13244 13245 # Publish this variable in the help. 13246 13247 13248 if test "x$CPIO" = x; then 13249 # The variable is not set by user, try to locate tool using the code snippet 13250 for ac_prog in cpio bsdcpio 13251 do 13252 # Extract the first word of "$ac_prog", so it can be a program name with args. 13253 set dummy $ac_prog; ac_word=$2 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13255 $as_echo_n "checking for $ac_word... " >&6; } 13256 if ${ac_cv_path_CPIO+:} false; then : 13257 $as_echo_n "(cached) " >&6 13258 else 13259 case $CPIO in 13260 [\\/]* | ?:[\\/]*) 13261 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13262 ;; 13263 *) 13264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13265 for as_dir in $PATH 13266 do 13267 IFS=$as_save_IFS 13268 test -z "$as_dir" && as_dir=. 13269 for ac_exec_ext in '' $ac_executable_extensions; do 13270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13271 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13273 break 2 13274 fi 13275 done 13276 done 13277 IFS=$as_save_IFS 13278 13279 ;; 13280 esac 13281 fi 13282 CPIO=$ac_cv_path_CPIO 13283 if test -n "$CPIO"; then 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13285 $as_echo "$CPIO" >&6; } 13286 else 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13288 $as_echo "no" >&6; } 13289 fi 13290 13291 13292 test -n "$CPIO" && break 13293 done 13294 13295 else 13296 # The variable is set, but is it from the command line or the environment? 13297 13298 # Try to remove the string !CPIO! from our list. 13299 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13300 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13301 # If it failed, the variable was not from the command line. Ignore it, 13302 # but warn the user (except for BASH, which is always set by the calling BASH). 13303 if test "xCPIO" != xBASH; then 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13305 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13306 fi 13307 # Try to locate tool using the code snippet 13308 for ac_prog in cpio bsdcpio 13309 do 13310 # Extract the first word of "$ac_prog", so it can be a program name with args. 13311 set dummy $ac_prog; ac_word=$2 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13313 $as_echo_n "checking for $ac_word... " >&6; } 13314 if ${ac_cv_path_CPIO+:} false; then : 13315 $as_echo_n "(cached) " >&6 13316 else 13317 case $CPIO in 13318 [\\/]* | ?:[\\/]*) 13319 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13320 ;; 13321 *) 13322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13323 for as_dir in $PATH 13324 do 13325 IFS=$as_save_IFS 13326 test -z "$as_dir" && as_dir=. 13327 for ac_exec_ext in '' $ac_executable_extensions; do 13328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13329 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13331 break 2 13332 fi 13333 done 13334 done 13335 IFS=$as_save_IFS 13336 13337 ;; 13338 esac 13339 fi 13340 CPIO=$ac_cv_path_CPIO 13341 if test -n "$CPIO"; then 13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13343 $as_echo "$CPIO" >&6; } 13344 else 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13346 $as_echo "no" >&6; } 13347 fi 13348 13349 13350 test -n "$CPIO" && break 13351 done 13352 13353 else 13354 # If it succeeded, then it was overridden by the user. We will use it 13355 # for the tool. 13356 13357 # First remove it from the list of overridden variables, so we can test 13358 # for unknown variables in the end. 13359 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13360 13361 # Check if the provided tool contains a complete path. 13362 tool_specified="$CPIO" 13363 tool_basename="${tool_specified##*/}" 13364 if test "x$tool_basename" = "x$tool_specified"; then 13365 # A command without a complete path is provided, search $PATH. 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13367 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13368 # Extract the first word of "$tool_basename", so it can be a program name with args. 13369 set dummy $tool_basename; ac_word=$2 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13371 $as_echo_n "checking for $ac_word... " >&6; } 13372 if ${ac_cv_path_CPIO+:} false; then : 13373 $as_echo_n "(cached) " >&6 13374 else 13375 case $CPIO in 13376 [\\/]* | ?:[\\/]*) 13377 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13378 ;; 13379 *) 13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13381 for as_dir in $PATH 13382 do 13383 IFS=$as_save_IFS 13384 test -z "$as_dir" && as_dir=. 13385 for ac_exec_ext in '' $ac_executable_extensions; do 13386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13387 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13389 break 2 13390 fi 13391 done 13392 done 13393 IFS=$as_save_IFS 13394 13395 ;; 13396 esac 13397 fi 13398 CPIO=$ac_cv_path_CPIO 13399 if test -n "$CPIO"; then 13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13401 $as_echo "$CPIO" >&6; } 13402 else 13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13404 $as_echo "no" >&6; } 13405 fi 13406 13407 13408 if test "x$CPIO" = x; then 13409 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13410 fi 13411 else 13412 # Otherwise we believe it is a complete path. Use it as it is. 13413 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13414 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13416 $as_echo_n "checking for CPIO... " >&6; } 13417 if test ! -x "$tool_specified"; then 13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13419 $as_echo "not found" >&6; } 13420 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13421 fi 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13423 $as_echo "$tool_specified" >&6; } 13424 fi 13425 fi 13426 fi 13427 13428 13429 13430 13431 # Now we can determine OpenJDK build and target platforms. This is required to 13432 # have early on. 13433 # Make sure we can run config.sub. 13434 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13435 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13436 13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13438 $as_echo_n "checking build system type... " >&6; } 13439 if ${ac_cv_build+:} false; then : 13440 $as_echo_n "(cached) " >&6 13441 else 13442 ac_build_alias=$build_alias 13443 test "x$ac_build_alias" = x && 13444 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13445 test "x$ac_build_alias" = x && 13446 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13447 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13449 13450 fi 13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13452 $as_echo "$ac_cv_build" >&6; } 13453 case $ac_cv_build in 13454 *-*-*) ;; 13455 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13456 esac 13457 build=$ac_cv_build 13458 ac_save_IFS=$IFS; IFS='-' 13459 set x $ac_cv_build 13460 shift 13461 build_cpu=$1 13462 build_vendor=$2 13463 shift; shift 13464 # Remember, the first character of IFS is used to create $*, 13465 # except with old shells: 13466 build_os=$* 13467 IFS=$ac_save_IFS 13468 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13469 13470 13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13472 $as_echo_n "checking host system type... " >&6; } 13473 if ${ac_cv_host+:} false; then : 13474 $as_echo_n "(cached) " >&6 13475 else 13476 if test "x$host_alias" = x; then 13477 ac_cv_host=$ac_cv_build 13478 else 13479 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13480 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13481 fi 13482 13483 fi 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13485 $as_echo "$ac_cv_host" >&6; } 13486 case $ac_cv_host in 13487 *-*-*) ;; 13488 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13489 esac 13490 host=$ac_cv_host 13491 ac_save_IFS=$IFS; IFS='-' 13492 set x $ac_cv_host 13493 shift 13494 host_cpu=$1 13495 host_vendor=$2 13496 shift; shift 13497 # Remember, the first character of IFS is used to create $*, 13498 # except with old shells: 13499 host_os=$* 13500 IFS=$ac_save_IFS 13501 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13502 13503 13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13505 $as_echo_n "checking target system type... " >&6; } 13506 if ${ac_cv_target+:} false; then : 13507 $as_echo_n "(cached) " >&6 13508 else 13509 if test "x$target_alias" = x; then 13510 ac_cv_target=$ac_cv_host 13511 else 13512 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13514 fi 13515 13516 fi 13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13518 $as_echo "$ac_cv_target" >&6; } 13519 case $ac_cv_target in 13520 *-*-*) ;; 13521 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13522 esac 13523 target=$ac_cv_target 13524 ac_save_IFS=$IFS; IFS='-' 13525 set x $ac_cv_target 13526 shift 13527 target_cpu=$1 13528 target_vendor=$2 13529 shift; shift 13530 # Remember, the first character of IFS is used to create $*, 13531 # except with old shells: 13532 target_os=$* 13533 IFS=$ac_save_IFS 13534 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13535 13536 13537 # The aliases save the names the user supplied, while $host etc. 13538 # will get canonicalized. 13539 test -n "$target_alias" && 13540 test "$program_prefix$program_suffix$program_transform_name" = \ 13541 NONENONEs,x,x, && 13542 program_prefix=${target_alias}- 13543 13544 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13545 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13546 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13547 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13548 # to use the configure naming style. 13549 13550 13551 13552 13553 13554 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13555 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13556 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13557 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13558 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13559 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13560 13561 13562 13563 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13564 13565 case "$build_os" in 13566 *linux*) 13567 VAR_OS=linux 13568 VAR_OS_TYPE=unix 13569 ;; 13570 *solaris*) 13571 VAR_OS=solaris 13572 VAR_OS_TYPE=unix 13573 ;; 13574 *darwin*) 13575 VAR_OS=macosx 13576 VAR_OS_TYPE=unix 13577 ;; 13578 *bsd*) 13579 VAR_OS=bsd 13580 VAR_OS_TYPE=unix 13581 ;; 13582 *cygwin*) 13583 VAR_OS=windows 13584 VAR_OS_ENV=windows.cygwin 13585 ;; 13586 *mingw*) 13587 VAR_OS=windows 13588 VAR_OS_ENV=windows.msys 13589 ;; 13590 *aix*) 13591 VAR_OS=aix 13592 VAR_OS_TYPE=unix 13593 ;; 13594 *) 13595 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13596 ;; 13597 esac 13598 13599 13600 # First argument is the cpu name from the trip/quad 13601 case "$build_cpu" in 13602 x86_64) 13603 VAR_CPU=x86_64 13604 VAR_CPU_ARCH=x86 13605 VAR_CPU_BITS=64 13606 VAR_CPU_ENDIAN=little 13607 ;; 13608 i?86) 13609 VAR_CPU=x86 13610 VAR_CPU_ARCH=x86 13611 VAR_CPU_BITS=32 13612 VAR_CPU_ENDIAN=little 13613 ;; 13614 arm*) 13615 VAR_CPU=arm 13616 VAR_CPU_ARCH=arm 13617 VAR_CPU_BITS=32 13618 VAR_CPU_ENDIAN=little 13619 ;; 13620 aarch64) 13621 VAR_CPU=aarch64 13622 VAR_CPU_ARCH=aarch64 13623 VAR_CPU_BITS=64 13624 VAR_CPU_ENDIAN=little 13625 ;; 13626 powerpc) 13627 VAR_CPU=ppc 13628 VAR_CPU_ARCH=ppc 13629 VAR_CPU_BITS=32 13630 VAR_CPU_ENDIAN=big 13631 ;; 13632 powerpc64) 13633 VAR_CPU=ppc64 13634 VAR_CPU_ARCH=ppc 13635 VAR_CPU_BITS=64 13636 VAR_CPU_ENDIAN=big 13637 ;; 13638 powerpc64le) 13639 VAR_CPU=ppc64 13640 VAR_CPU_ARCH=ppc 13641 VAR_CPU_BITS=64 13642 VAR_CPU_ENDIAN=little 13643 ;; 13644 s390) 13645 VAR_CPU=s390 13646 VAR_CPU_ARCH=s390 13647 VAR_CPU_BITS=32 13648 VAR_CPU_ENDIAN=big 13649 ;; 13650 s390x) 13651 VAR_CPU=s390x 13652 VAR_CPU_ARCH=s390 13653 VAR_CPU_BITS=64 13654 VAR_CPU_ENDIAN=big 13655 ;; 13656 sparc) 13657 VAR_CPU=sparc 13658 VAR_CPU_ARCH=sparc 13659 VAR_CPU_BITS=32 13660 VAR_CPU_ENDIAN=big 13661 ;; 13662 sparcv9|sparc64) 13663 VAR_CPU=sparcv9 13664 VAR_CPU_ARCH=sparc 13665 VAR_CPU_BITS=64 13666 VAR_CPU_ENDIAN=big 13667 ;; 13668 *) 13669 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13670 ;; 13671 esac 13672 13673 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13674 OPENJDK_BUILD_OS="$VAR_OS" 13675 if test "x$VAR_OS_TYPE" != x; then 13676 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 13677 else 13678 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 13679 fi 13680 if test "x$VAR_OS_ENV" != x; then 13681 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13682 else 13683 OPENJDK_BUILD_OS_ENV="$VAR_OS" 13684 fi 13685 OPENJDK_BUILD_CPU="$VAR_CPU" 13686 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13687 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13688 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13689 13690 13691 13692 13693 13694 13695 13696 13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13698 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13700 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13701 13702 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13703 13704 case "$host_os" in 13705 *linux*) 13706 VAR_OS=linux 13707 VAR_OS_TYPE=unix 13708 ;; 13709 *solaris*) 13710 VAR_OS=solaris 13711 VAR_OS_TYPE=unix 13712 ;; 13713 *darwin*) 13714 VAR_OS=macosx 13715 VAR_OS_TYPE=unix 13716 ;; 13717 *bsd*) 13718 VAR_OS=bsd 13719 VAR_OS_TYPE=unix 13720 ;; 13721 *cygwin*) 13722 VAR_OS=windows 13723 VAR_OS_ENV=windows.cygwin 13724 ;; 13725 *mingw*) 13726 VAR_OS=windows 13727 VAR_OS_ENV=windows.msys 13728 ;; 13729 *aix*) 13730 VAR_OS=aix 13731 VAR_OS_TYPE=unix 13732 ;; 13733 *) 13734 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13735 ;; 13736 esac 13737 13738 13739 # First argument is the cpu name from the trip/quad 13740 case "$host_cpu" in 13741 x86_64) 13742 VAR_CPU=x86_64 13743 VAR_CPU_ARCH=x86 13744 VAR_CPU_BITS=64 13745 VAR_CPU_ENDIAN=little 13746 ;; 13747 i?86) 13748 VAR_CPU=x86 13749 VAR_CPU_ARCH=x86 13750 VAR_CPU_BITS=32 13751 VAR_CPU_ENDIAN=little 13752 ;; 13753 arm*) 13754 VAR_CPU=arm 13755 VAR_CPU_ARCH=arm 13756 VAR_CPU_BITS=32 13757 VAR_CPU_ENDIAN=little 13758 ;; 13759 aarch64) 13760 VAR_CPU=aarch64 13761 VAR_CPU_ARCH=aarch64 13762 VAR_CPU_BITS=64 13763 VAR_CPU_ENDIAN=little 13764 ;; 13765 powerpc) 13766 VAR_CPU=ppc 13767 VAR_CPU_ARCH=ppc 13768 VAR_CPU_BITS=32 13769 VAR_CPU_ENDIAN=big 13770 ;; 13771 powerpc64) 13772 VAR_CPU=ppc64 13773 VAR_CPU_ARCH=ppc 13774 VAR_CPU_BITS=64 13775 VAR_CPU_ENDIAN=big 13776 ;; 13777 powerpc64le) 13778 VAR_CPU=ppc64 13779 VAR_CPU_ARCH=ppc 13780 VAR_CPU_BITS=64 13781 VAR_CPU_ENDIAN=little 13782 ;; 13783 s390) 13784 VAR_CPU=s390 13785 VAR_CPU_ARCH=s390 13786 VAR_CPU_BITS=32 13787 VAR_CPU_ENDIAN=big 13788 ;; 13789 s390x) 13790 VAR_CPU=s390x 13791 VAR_CPU_ARCH=s390 13792 VAR_CPU_BITS=64 13793 VAR_CPU_ENDIAN=big 13794 ;; 13795 sparc) 13796 VAR_CPU=sparc 13797 VAR_CPU_ARCH=sparc 13798 VAR_CPU_BITS=32 13799 VAR_CPU_ENDIAN=big 13800 ;; 13801 sparcv9|sparc64) 13802 VAR_CPU=sparcv9 13803 VAR_CPU_ARCH=sparc 13804 VAR_CPU_BITS=64 13805 VAR_CPU_ENDIAN=big 13806 ;; 13807 *) 13808 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13809 ;; 13810 esac 13811 13812 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13813 OPENJDK_TARGET_OS="$VAR_OS" 13814 if test "x$VAR_OS_TYPE" != x; then 13815 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 13816 else 13817 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 13818 fi 13819 if test "x$VAR_OS_ENV" != x; then 13820 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13821 else 13822 OPENJDK_TARGET_OS_ENV="$VAR_OS" 13823 fi 13824 OPENJDK_TARGET_CPU="$VAR_CPU" 13825 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13826 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13827 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13828 13829 13830 13831 13832 13833 13834 13835 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13837 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13839 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13840 13841 13842 13843 # Check whether --with-target-bits was given. 13844 if test "${with_target_bits+set}" = set; then : 13845 withval=$with_target_bits; 13846 fi 13847 13848 13849 # We have three types of compiles: 13850 # native == normal compilation, target system == build system 13851 # cross == traditional cross compilation, target system != build system; special toolchain needed 13852 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13853 # 13854 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13855 # We're doing a proper cross-compilation 13856 COMPILE_TYPE="cross" 13857 else 13858 COMPILE_TYPE="native" 13859 fi 13860 13861 if test "x$with_target_bits" != x; then 13862 if test "x$COMPILE_TYPE" = "xcross"; then 13863 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13864 fi 13865 13866 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13867 # A reduced build is requested 13868 COMPILE_TYPE="reduced" 13869 OPENJDK_TARGET_CPU_BITS=32 13870 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13871 OPENJDK_TARGET_CPU=x86 13872 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13873 OPENJDK_TARGET_CPU=sparc 13874 else 13875 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13876 fi 13877 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13878 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 13879 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13880 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13881 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13882 else 13883 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13884 fi 13885 fi 13886 13887 13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13889 $as_echo_n "checking compilation type... " >&6; } 13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13891 $as_echo "$COMPILE_TYPE" >&6; } 13892 13893 13894 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13895 REQUIRED_OS_NAME=SunOS 13896 REQUIRED_OS_VERSION=5.10 13897 fi 13898 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13899 REQUIRED_OS_NAME=Linux 13900 REQUIRED_OS_VERSION=2.6 13901 fi 13902 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13903 REQUIRED_OS_NAME=Windows 13904 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13905 REQUIRED_OS_VERSION=5.2 13906 else 13907 REQUIRED_OS_VERSION=5.1 13908 fi 13909 fi 13910 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13911 REQUIRED_OS_NAME=Darwin 13912 REQUIRED_OS_VERSION=11.2 13913 fi 13914 13915 13916 13917 13918 13919 # Also store the legacy naming of the cpu. 13920 # Ie i586 and amd64 instead of x86 and x86_64 13921 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13922 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13923 OPENJDK_TARGET_CPU_LEGACY="i586" 13924 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13925 # On all platforms except MacOSX replace x86_64 with amd64. 13926 OPENJDK_TARGET_CPU_LEGACY="amd64" 13927 fi 13928 13929 13930 # And the second legacy naming of the cpu. 13931 # Ie i386 and amd64 instead of x86 and x86_64. 13932 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13933 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13934 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13935 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13936 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13937 fi 13938 13939 13940 # This is the name of the cpu (but using i386 and amd64 instead of 13941 # x86 and x86_64, respectively), preceeded by a /, to be used when 13942 # locating libraries. On macosx, it's empty, though. 13943 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13944 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13945 OPENJDK_TARGET_CPU_LIBDIR="" 13946 fi 13947 13948 13949 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13950 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13951 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13952 OPENJDK_TARGET_CPU_ISADIR="" 13953 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13954 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13955 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13956 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13957 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13958 fi 13959 fi 13960 13961 13962 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13963 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13964 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13965 # On linux only, we replace x86 with i386. 13966 OPENJDK_TARGET_CPU_OSARCH="i386" 13967 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13968 # On all platforms except macosx, we replace x86_64 with amd64. 13969 OPENJDK_TARGET_CPU_OSARCH="amd64" 13970 fi 13971 13972 13973 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13974 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13975 OPENJDK_TARGET_CPU_JLI="i386" 13976 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13977 # On all platforms except macosx, we replace x86_64 with amd64. 13978 OPENJDK_TARGET_CPU_JLI="amd64" 13979 fi 13980 # Now setup the -D flags for building libjli. 13981 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13982 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13983 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13984 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13985 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13986 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13987 fi 13988 fi 13989 13990 13991 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13992 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13993 else 13994 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 13995 fi 13996 13997 13998 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13999 A_LP64="LP64:=" 14000 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 14001 # unpack200.exe 14002 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 14003 ADD_LP64="-D_LP64=1" 14004 fi 14005 fi 14006 LP64=$A_LP64 14007 14008 14009 if test "x$COMPILE_TYPE" = "xcross"; then 14010 # FIXME: ... or should this include reduced builds..? 14011 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 14012 else 14013 DEFINE_CROSS_COMPILE_ARCH="" 14014 fi 14015 14016 14017 # ZERO_ARCHDEF is used to enable architecture-specific code 14018 case "${OPENJDK_TARGET_CPU}" in 14019 ppc) ZERO_ARCHDEF=PPC32 ;; 14020 ppc64) ZERO_ARCHDEF=PPC64 ;; 14021 s390*) ZERO_ARCHDEF=S390 ;; 14022 sparc*) ZERO_ARCHDEF=SPARC ;; 14023 x86_64*) ZERO_ARCHDEF=AMD64 ;; 14024 x86) ZERO_ARCHDEF=IA32 ;; 14025 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 14026 esac 14027 14028 14029 14030 14031 # Continue setting up basic stuff. Most remaining code require fundamental tools. 14032 14033 # Save the current directory this script was started from 14034 CURDIR="$PWD" 14035 14036 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 14037 PATH_SEP=";" 14038 14039 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 14040 if test $SRC_ROOT_LENGTH -gt 100; then 14041 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 14042 fi 14043 14044 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14046 $as_echo_n "checking cygwin release... " >&6; } 14047 CYGWIN_VERSION=`$UNAME -r` 14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14049 $as_echo "$CYGWIN_VERSION" >&6; } 14050 WINDOWS_ENV_VENDOR='cygwin' 14051 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14052 14053 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 14054 if test "x$CYGWIN_VERSION_OK" = x; then 14055 { $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 14056 $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;} 14057 as_fn_error $? "Cannot continue" "$LINENO" 5 14058 fi 14059 if test "x$CYGPATH" = x; then 14060 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14061 fi 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14063 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14064 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14065 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 14066 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14067 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14069 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14070 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14071 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14072 if test "x$test_cygdrive_prefix" = x; then 14073 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14074 fi 14075 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14077 $as_echo_n "checking msys release... " >&6; } 14078 MSYS_VERSION=`$UNAME -r` 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14080 $as_echo "$MSYS_VERSION" >&6; } 14081 14082 WINDOWS_ENV_VENDOR='msys' 14083 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14084 14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14086 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14087 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14088 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14089 14090 windows_path="$MSYS_ROOT_PATH" 14091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14092 unix_path=`$CYGPATH -u "$windows_path"` 14093 MSYS_ROOT_PATH="$unix_path" 14094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14095 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14096 MSYS_ROOT_PATH="$unix_path" 14097 fi 14098 14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14100 $as_echo "$MSYS_ROOT_PATH" >&6; } 14101 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14102 else 14103 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14104 fi 14105 14106 # Test if windows or unix (cygwin/msys) find is first in path. 14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14108 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14109 FIND_BINARY_OUTPUT=`find --version 2>&1` 14110 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14112 $as_echo "unix style" >&6; } 14113 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14115 $as_echo "Windows" >&6; } 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14117 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14118 { $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 14119 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14120 as_fn_error $? "Cannot continue" "$LINENO" 5 14121 else 14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14123 $as_echo "unknown" >&6; } 14124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14125 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14126 fi 14127 14128 else 14129 PATH_SEP=":" 14130 fi 14131 14132 14133 # We get the top-level directory from the supporting wrappers. 14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14135 $as_echo_n "checking for top-level directory... " >&6; } 14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14137 $as_echo "$TOPDIR" >&6; } 14138 14139 14140 # Save the original version of TOPDIR for string comparisons 14141 ORIGINAL_TOPDIR="$TOPDIR" 14142 14143 14144 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14145 14146 # Only process if variable expands to non-empty 14147 14148 if test "x$CURDIR" != x; then 14149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14150 14151 # Input might be given as Windows format, start by converting to 14152 # unix format. 14153 path="$CURDIR" 14154 new_path=`$CYGPATH -u "$path"` 14155 14156 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14157 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14158 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14159 # "foo.exe" is OK but "foo" is an error. 14160 # 14161 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14162 # It is also a way to make sure we got the proper file name for the real test later on. 14163 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14164 if test "x$test_shortpath" = x; then 14165 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14166 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14167 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14168 fi 14169 14170 # Call helper function which possibly converts this using DOS-style short mode. 14171 # If so, the updated path is stored in $new_path. 14172 14173 input_path="$new_path" 14174 # Check if we need to convert this using DOS-style short mode. If the path 14175 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14176 # take no chances and rewrite it. 14177 # Note: m4 eats our [], so we need to use [ and ] instead. 14178 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14179 if test "x$has_forbidden_chars" != x; then 14180 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14181 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14182 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14183 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14184 # Going to short mode and back again did indeed matter. Since short mode is 14185 # case insensitive, let's make it lowercase to improve readability. 14186 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14187 # Now convert it back to Unix-stile (cygpath) 14188 input_path=`$CYGPATH -u "$shortmode_path"` 14189 new_path="$input_path" 14190 fi 14191 fi 14192 14193 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14194 if test "x$test_cygdrive_prefix" = x; then 14195 # As a simple fix, exclude /usr/bin since it's not a real path. 14196 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14197 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14198 # a path prefixed by /cygdrive for fixpath to work. 14199 new_path="$CYGWIN_ROOT_PATH$input_path" 14200 fi 14201 fi 14202 14203 14204 if test "x$path" != "x$new_path"; then 14205 CURDIR="$new_path" 14206 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14207 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14208 fi 14209 14210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14211 14212 path="$CURDIR" 14213 has_colon=`$ECHO $path | $GREP ^.:` 14214 new_path="$path" 14215 if test "x$has_colon" = x; then 14216 # Not in mixed or Windows style, start by that. 14217 new_path=`cmd //c echo $path` 14218 fi 14219 14220 14221 input_path="$new_path" 14222 # Check if we need to convert this using DOS-style short mode. If the path 14223 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14224 # take no chances and rewrite it. 14225 # Note: m4 eats our [], so we need to use [ and ] instead. 14226 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14227 if test "x$has_forbidden_chars" != x; then 14228 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14229 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14230 fi 14231 14232 14233 windows_path="$new_path" 14234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14235 unix_path=`$CYGPATH -u "$windows_path"` 14236 new_path="$unix_path" 14237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14239 new_path="$unix_path" 14240 fi 14241 14242 if test "x$path" != "x$new_path"; then 14243 CURDIR="$new_path" 14244 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14245 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14246 fi 14247 14248 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14249 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14250 14251 else 14252 # We're on a unix platform. Hooray! :) 14253 path="$CURDIR" 14254 has_space=`$ECHO "$path" | $GREP " "` 14255 if test "x$has_space" != x; then 14256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14257 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14258 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14259 fi 14260 14261 # Use eval to expand a potential ~ 14262 eval path="$path" 14263 if test ! -f "$path" && test ! -d "$path"; then 14264 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14265 fi 14266 14267 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14268 fi 14269 fi 14270 14271 14272 # Only process if variable expands to non-empty 14273 14274 if test "x$TOPDIR" != x; then 14275 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14276 14277 # Input might be given as Windows format, start by converting to 14278 # unix format. 14279 path="$TOPDIR" 14280 new_path=`$CYGPATH -u "$path"` 14281 14282 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14283 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14284 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14285 # "foo.exe" is OK but "foo" is an error. 14286 # 14287 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14288 # It is also a way to make sure we got the proper file name for the real test later on. 14289 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14290 if test "x$test_shortpath" = x; then 14291 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14292 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14293 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14294 fi 14295 14296 # Call helper function which possibly converts this using DOS-style short mode. 14297 # If so, the updated path is stored in $new_path. 14298 14299 input_path="$new_path" 14300 # Check if we need to convert this using DOS-style short mode. If the path 14301 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14302 # take no chances and rewrite it. 14303 # Note: m4 eats our [], so we need to use [ and ] instead. 14304 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14305 if test "x$has_forbidden_chars" != x; then 14306 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14307 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14308 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14309 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14310 # Going to short mode and back again did indeed matter. Since short mode is 14311 # case insensitive, let's make it lowercase to improve readability. 14312 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14313 # Now convert it back to Unix-stile (cygpath) 14314 input_path=`$CYGPATH -u "$shortmode_path"` 14315 new_path="$input_path" 14316 fi 14317 fi 14318 14319 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14320 if test "x$test_cygdrive_prefix" = x; then 14321 # As a simple fix, exclude /usr/bin since it's not a real path. 14322 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14323 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14324 # a path prefixed by /cygdrive for fixpath to work. 14325 new_path="$CYGWIN_ROOT_PATH$input_path" 14326 fi 14327 fi 14328 14329 14330 if test "x$path" != "x$new_path"; then 14331 TOPDIR="$new_path" 14332 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14333 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14334 fi 14335 14336 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14337 14338 path="$TOPDIR" 14339 has_colon=`$ECHO $path | $GREP ^.:` 14340 new_path="$path" 14341 if test "x$has_colon" = x; then 14342 # Not in mixed or Windows style, start by that. 14343 new_path=`cmd //c echo $path` 14344 fi 14345 14346 14347 input_path="$new_path" 14348 # Check if we need to convert this using DOS-style short mode. If the path 14349 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14350 # take no chances and rewrite it. 14351 # Note: m4 eats our [], so we need to use [ and ] instead. 14352 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14353 if test "x$has_forbidden_chars" != x; then 14354 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14355 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14356 fi 14357 14358 14359 windows_path="$new_path" 14360 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14361 unix_path=`$CYGPATH -u "$windows_path"` 14362 new_path="$unix_path" 14363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14364 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14365 new_path="$unix_path" 14366 fi 14367 14368 if test "x$path" != "x$new_path"; then 14369 TOPDIR="$new_path" 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14371 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14372 fi 14373 14374 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14375 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14376 14377 else 14378 # We're on a unix platform. Hooray! :) 14379 path="$TOPDIR" 14380 has_space=`$ECHO "$path" | $GREP " "` 14381 if test "x$has_space" != x; then 14382 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14383 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14384 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14385 fi 14386 14387 # Use eval to expand a potential ~ 14388 eval path="$path" 14389 if test ! -f "$path" && test ! -d "$path"; then 14390 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14391 fi 14392 14393 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14394 fi 14395 fi 14396 14397 # SRC_ROOT is a traditional alias for TOPDIR. 14398 SRC_ROOT=$TOPDIR 14399 14400 # Calculate a canonical version of TOPDIR for string comparisons 14401 CANONICAL_TOPDIR=$TOPDIR 14402 14403 if test "x$OPENJDK_BUILD_OS" != xwindows; then 14404 # Follow a chain of symbolic links. Use readlink 14405 # where it exists, else fall back to horribly 14406 # complicated shell code. 14407 if test "x$READLINK_TESTED" != yes; then 14408 # On MacOSX there is a readlink tool with a different 14409 # purpose than the GNU readlink tool. Check the found readlink. 14410 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 14411 if test "x$ISGNU" = x; then 14412 # A readlink that we do not know how to use. 14413 # Are there other non-GNU readlinks out there? 14414 READLINK_TESTED=yes 14415 READLINK= 14416 fi 14417 fi 14418 14419 if test "x$READLINK" != x; then 14420 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 14421 else 14422 # Save the current directory for restoring afterwards 14423 STARTDIR=$PWD 14424 COUNTER=0 14425 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 14426 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 14427 cd $sym_link_dir 14428 # Use -P flag to resolve symlinks in directories. 14429 cd `$THEPWDCMD -P` 14430 sym_link_dir=`$THEPWDCMD -P` 14431 # Resolve file symlinks 14432 while test $COUNTER -lt 20; do 14433 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 14434 if test "x$ISLINK" == x; then 14435 # This is not a symbolic link! We are done! 14436 break 14437 fi 14438 # Again resolve directory symlinks since the target of the just found 14439 # link could be in a different directory 14440 cd `$DIRNAME $ISLINK` 14441 sym_link_dir=`$THEPWDCMD -P` 14442 sym_link_file=`$BASENAME $ISLINK` 14443 let COUNTER=COUNTER+1 14444 done 14445 cd $STARTDIR 14446 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 14447 fi 14448 fi 14449 14450 14451 14452 # Locate the directory of this script. 14453 AUTOCONF_DIR=$TOPDIR/common/autoconf 14454 14455 14456 # Check if it's a pure open build or if custom sources are to be used. 14457 14458 # Check whether --enable-openjdk-only was given. 14459 if test "${enable_openjdk_only+set}" = set; then : 14460 enableval=$enable_openjdk_only; 14461 else 14462 enable_openjdk_only="no" 14463 fi 14464 14465 14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14467 $as_echo_n "checking for presence of closed sources... " >&6; } 14468 if test -d "$SRC_ROOT/jdk/src/closed"; then 14469 CLOSED_SOURCE_PRESENT=yes 14470 else 14471 CLOSED_SOURCE_PRESENT=no 14472 fi 14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14474 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14475 14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14477 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14478 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14480 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14481 14482 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14483 OPENJDK=true 14484 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14486 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14487 fi 14488 else 14489 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14490 OPENJDK=true 14491 else 14492 OPENJDK=false 14493 fi 14494 fi 14495 14496 if test "x$OPENJDK" = "xtrue"; then 14497 SET_OPENJDK="OPENJDK=true" 14498 fi 14499 14500 14501 14502 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14503 # the IncludeCustomExtension macro. 14504 14505 14506 # Check whether --with-custom-make-dir was given. 14507 if test "${with_custom_make_dir+set}" = set; then : 14508 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 14509 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14510 fi 14511 14512 14513 14514 14515 # These are needed to be able to create a configuration name (and thus the output directory) 14516 14517 ############################################################################### 14518 # 14519 # Check which variant of the JDK that we want to build. 14520 # Currently we have: 14521 # normal: standard edition 14522 # but the custom make system may add other variants 14523 # 14524 # Effectively the JDK variant gives a name to a specific set of 14525 # modules to compile into the JDK. In the future, these modules 14526 # might even be Jigsaw modules. 14527 # 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14529 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14530 14531 # Check whether --with-jdk-variant was given. 14532 if test "${with_jdk_variant+set}" = set; then : 14533 withval=$with_jdk_variant; 14534 fi 14535 14536 14537 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14538 JDK_VARIANT="normal" 14539 else 14540 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14541 fi 14542 14543 14544 14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14546 $as_echo "$JDK_VARIANT" >&6; } 14547 14548 14549 ############################################################################### 14550 # 14551 # Check which interpreter of the JVM we want to build. 14552 # Currently we have: 14553 # template: Template interpreter (the default) 14554 # cpp : C++ interpreter 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14556 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14557 14558 # Check whether --with-jvm-interpreter was given. 14559 if test "${with_jvm_interpreter+set}" = set; then : 14560 withval=$with_jvm_interpreter; 14561 fi 14562 14563 14564 if test "x$with_jvm_interpreter" = x; then 14565 with_jvm_interpreter="template" 14566 fi 14567 14568 JVM_INTERPRETER="$with_jvm_interpreter" 14569 14570 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14571 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14572 fi 14573 14574 14575 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14577 $as_echo "$with_jvm_interpreter" >&6; } 14578 14579 14580 14581 ############################################################################### 14582 # 14583 # Check which variants of the JVM that we want to build. 14584 # Currently we have: 14585 # server: normal interpreter and a tiered C1/C2 compiler 14586 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14587 # minimal1: reduced form of client with optional VM services and features stripped out 14588 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14589 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14590 # zero: no machine code interpreter, no compiler 14591 # zeroshark: zero interpreter and shark/llvm compiler backend 14592 # core: interpreter only, no compiler (only works on some platforms) 14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14594 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14595 14596 # Check whether --with-jvm-variants was given. 14597 if test "${with_jvm_variants+set}" = set; then : 14598 withval=$with_jvm_variants; 14599 fi 14600 14601 14602 if test "x$with_jvm_variants" = x; then 14603 with_jvm_variants="server" 14604 fi 14605 14606 JVM_VARIANTS=",$with_jvm_variants," 14607 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,//'` 14608 14609 if test "x$TEST_VARIANTS" != "x,"; then 14610 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14611 fi 14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14613 $as_echo "$with_jvm_variants" >&6; } 14614 14615 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14616 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14617 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14618 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14619 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14620 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14621 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14622 14623 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14624 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14625 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14626 fi 14627 fi 14628 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14629 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14630 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14631 fi 14632 fi 14633 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14634 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14635 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14636 fi 14637 fi 14638 14639 # Replace the commas with AND for use in the build directory name. 14640 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14641 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/'` 14642 if test "x$COUNT_VARIANTS" != "x,1"; then 14643 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14644 else 14645 BUILDING_MULTIPLE_JVM_VARIANTS=no 14646 fi 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 INCLUDE_SA=true 14658 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14659 INCLUDE_SA=false 14660 fi 14661 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14662 INCLUDE_SA=false 14663 fi 14664 if test "x$OPENJDK_TARGET_OS" = xaix ; then 14665 INCLUDE_SA=false 14666 fi 14667 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 14668 INCLUDE_SA=false 14669 fi 14670 14671 14672 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14673 MACOSX_UNIVERSAL="true" 14674 fi 14675 14676 14677 14678 14679 ############################################################################### 14680 # 14681 # Set the debug level 14682 # release: no debug information, all optimizations, no asserts. 14683 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 14684 # fastdebug: debug information (-g), all optimizations, all asserts 14685 # slowdebug: debug information (-g), no optimizations, all asserts 14686 # 14687 DEBUG_LEVEL="release" 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14689 $as_echo_n "checking which debug level to use... " >&6; } 14690 # Check whether --enable-debug was given. 14691 if test "${enable_debug+set}" = set; then : 14692 enableval=$enable_debug; 14693 ENABLE_DEBUG="${enableval}" 14694 DEBUG_LEVEL="fastdebug" 14695 14696 else 14697 ENABLE_DEBUG="no" 14698 fi 14699 14700 14701 14702 # Check whether --with-debug-level was given. 14703 if test "${with_debug_level+set}" = set; then : 14704 withval=$with_debug_level; 14705 DEBUG_LEVEL="${withval}" 14706 if test "x$ENABLE_DEBUG" = xyes; then 14707 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14708 fi 14709 14710 fi 14711 14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14713 $as_echo "$DEBUG_LEVEL" >&6; } 14714 14715 if test "x$DEBUG_LEVEL" != xrelease && \ 14716 test "x$DEBUG_LEVEL" != xoptimized && \ 14717 test "x$DEBUG_LEVEL" != xfastdebug && \ 14718 test "x$DEBUG_LEVEL" != xslowdebug; then 14719 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14720 fi 14721 14722 14723 ############################################################################### 14724 # 14725 # Setup legacy vars/targets and new vars to deal with different debug levels. 14726 # 14727 14728 case $DEBUG_LEVEL in 14729 release ) 14730 VARIANT="OPT" 14731 FASTDEBUG="false" 14732 DEBUG_CLASSFILES="false" 14733 BUILD_VARIANT_RELEASE="" 14734 HOTSPOT_DEBUG_LEVEL="product" 14735 HOTSPOT_EXPORT="product" 14736 ;; 14737 fastdebug ) 14738 VARIANT="DBG" 14739 FASTDEBUG="true" 14740 DEBUG_CLASSFILES="true" 14741 BUILD_VARIANT_RELEASE="-fastdebug" 14742 HOTSPOT_DEBUG_LEVEL="fastdebug" 14743 HOTSPOT_EXPORT="fastdebug" 14744 ;; 14745 slowdebug ) 14746 VARIANT="DBG" 14747 FASTDEBUG="false" 14748 DEBUG_CLASSFILES="true" 14749 BUILD_VARIANT_RELEASE="-debug" 14750 HOTSPOT_DEBUG_LEVEL="debug" 14751 HOTSPOT_EXPORT="debug" 14752 ;; 14753 optimized ) 14754 VARIANT="OPT" 14755 FASTDEBUG="false" 14756 DEBUG_CLASSFILES="false" 14757 BUILD_VARIANT_RELEASE="-optimized" 14758 HOTSPOT_DEBUG_LEVEL="optimized" 14759 HOTSPOT_EXPORT="optimized" 14760 ;; 14761 esac 14762 14763 # The debug level 'optimized' is a little special because it is currently only 14764 # applicable to the HotSpot build where it means to build a completely 14765 # optimized version of the VM without any debugging code (like for the 14766 # 'release' debug level which is called 'product' in the HotSpot build) but 14767 # with the exception that it can contain additional code which is otherwise 14768 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 14769 # test new and/or experimental features which are not intended for customer 14770 # shipment. Because these new features need to be tested and benchmarked in 14771 # real world scenarios, we want to build the containing JDK at the 'release' 14772 # debug level. 14773 if test "x$DEBUG_LEVEL" = xoptimized; then 14774 DEBUG_LEVEL="release" 14775 fi 14776 14777 ##### 14778 # Generate the legacy makefile targets for hotspot. 14779 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14780 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14781 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14782 # But until then ... 14783 HOTSPOT_TARGET="" 14784 14785 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14786 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14787 fi 14788 14789 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14790 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14791 fi 14792 14793 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14794 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14795 fi 14796 14797 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14798 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14799 fi 14800 14801 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14802 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14803 fi 14804 14805 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14806 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14807 fi 14808 14809 if test "x$JVM_VARIANT_CORE" = xtrue; then 14810 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14811 fi 14812 14813 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14814 14815 # On Macosx universal binaries are produced, but they only contain 14816 # 64 bit intel. This invalidates control of which jvms are built 14817 # from configure, but only server is valid anyway. Fix this 14818 # when hotspot makefiles are rewritten. 14819 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14820 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14821 fi 14822 14823 ##### 14824 14825 14826 14827 14828 14829 14830 14831 14832 # With basic setup done, call the custom early hook. 14833 14834 14835 # Check if we have devkits, extra paths or sysroot set. 14836 14837 14838 # Check whether --with-devkit was given. 14839 if test "${with_devkit+set}" = set; then : 14840 withval=$with_devkit; 14841 14842 # Only process if variable expands to non-empty 14843 14844 if test "x$with_devkit" != x; then 14845 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14846 14847 # Input might be given as Windows format, start by converting to 14848 # unix format. 14849 path="$with_devkit" 14850 new_path=`$CYGPATH -u "$path"` 14851 14852 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14853 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14854 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14855 # "foo.exe" is OK but "foo" is an error. 14856 # 14857 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14858 # It is also a way to make sure we got the proper file name for the real test later on. 14859 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14860 if test "x$test_shortpath" = x; then 14861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14862 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14863 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14864 fi 14865 14866 # Call helper function which possibly converts this using DOS-style short mode. 14867 # If so, the updated path is stored in $new_path. 14868 14869 input_path="$new_path" 14870 # Check if we need to convert this using DOS-style short mode. If the path 14871 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14872 # take no chances and rewrite it. 14873 # Note: m4 eats our [], so we need to use [ and ] instead. 14874 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14875 if test "x$has_forbidden_chars" != x; then 14876 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14877 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14878 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14879 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14880 # Going to short mode and back again did indeed matter. Since short mode is 14881 # case insensitive, let's make it lowercase to improve readability. 14882 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14883 # Now convert it back to Unix-stile (cygpath) 14884 input_path=`$CYGPATH -u "$shortmode_path"` 14885 new_path="$input_path" 14886 fi 14887 fi 14888 14889 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14890 if test "x$test_cygdrive_prefix" = x; then 14891 # As a simple fix, exclude /usr/bin since it's not a real path. 14892 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14893 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14894 # a path prefixed by /cygdrive for fixpath to work. 14895 new_path="$CYGWIN_ROOT_PATH$input_path" 14896 fi 14897 fi 14898 14899 14900 if test "x$path" != "x$new_path"; then 14901 with_devkit="$new_path" 14902 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14903 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14904 fi 14905 14906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14907 14908 path="$with_devkit" 14909 has_colon=`$ECHO $path | $GREP ^.:` 14910 new_path="$path" 14911 if test "x$has_colon" = x; then 14912 # Not in mixed or Windows style, start by that. 14913 new_path=`cmd //c echo $path` 14914 fi 14915 14916 14917 input_path="$new_path" 14918 # Check if we need to convert this using DOS-style short mode. If the path 14919 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14920 # take no chances and rewrite it. 14921 # Note: m4 eats our [], so we need to use [ and ] instead. 14922 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14923 if test "x$has_forbidden_chars" != x; then 14924 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14925 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14926 fi 14927 14928 14929 windows_path="$new_path" 14930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14931 unix_path=`$CYGPATH -u "$windows_path"` 14932 new_path="$unix_path" 14933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14934 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14935 new_path="$unix_path" 14936 fi 14937 14938 if test "x$path" != "x$new_path"; then 14939 with_devkit="$new_path" 14940 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14941 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14942 fi 14943 14944 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14945 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14946 14947 else 14948 # We're on a unix platform. Hooray! :) 14949 path="$with_devkit" 14950 has_space=`$ECHO "$path" | $GREP " "` 14951 if test "x$has_space" != x; then 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14953 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14954 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14955 fi 14956 14957 # Use eval to expand a potential ~ 14958 eval path="$path" 14959 if test ! -f "$path" && test ! -d "$path"; then 14960 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14961 fi 14962 14963 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14964 fi 14965 fi 14966 14967 DEVKIT_ROOT="$with_devkit" 14968 # Check for a meta data info file in the root of the devkit 14969 if test -f "$DEVKIT_ROOT/devkit.info"; then 14970 # This potentially sets the following: 14971 # DEVKIT_NAME: A descriptive name of the devkit 14972 # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path 14973 # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path 14974 # DEVKIT_SYSROOT: Corresponds to --with-sysroot 14975 . $DEVKIT_ROOT/devkit.info 14976 fi 14977 14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14979 $as_echo_n "checking for devkit... " >&6; } 14980 if test "x$DEVKIT_NAME" != x; then 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14982 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14983 else 14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14985 $as_echo "$DEVKIT_ROOT" >&6; } 14986 fi 14987 14988 if test "x$DEVKIT_EXTRA_PATH" != x; then 14989 14990 if test "x$DEVKIT_EXTRA_PATH" != x; then 14991 if test "x$EXTRA_PATH" = x; then 14992 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14993 else 14994 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14995 fi 14996 fi 14997 14998 fi 14999 15000 # Fallback default of just /bin if DEVKIT_PATH is not defined 15001 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 15002 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 15003 fi 15004 15005 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 15006 if test "x$TOOLCHAIN_PATH" = x; then 15007 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 15008 else 15009 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 15010 fi 15011 fi 15012 15013 15014 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 15015 # places for backwards compatiblity. 15016 if test "x$DEVKIT_SYSROOT" != x; then 15017 SYSROOT="$DEVKIT_SYSROOT" 15018 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 15019 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 15020 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 15021 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 15022 fi 15023 15024 15025 fi 15026 15027 15028 # You can force the sysroot if the sysroot encoded into the compiler tools 15029 # is not correct. 15030 15031 # Check whether --with-sys-root was given. 15032 if test "${with_sys_root+set}" = set; then : 15033 withval=$with_sys_root; SYSROOT=$with_sys_root 15034 15035 fi 15036 15037 15038 15039 # Check whether --with-sysroot was given. 15040 if test "${with_sysroot+set}" = set; then : 15041 withval=$with_sysroot; SYSROOT=$with_sysroot 15042 15043 fi 15044 15045 15046 15047 # Check whether --with-tools-dir was given. 15048 if test "${with_tools_dir+set}" = set; then : 15049 withval=$with_tools_dir; 15050 if test "x$with_tools_dir" != x; then 15051 if test "x$TOOLCHAIN_PATH" = x; then 15052 TOOLCHAIN_PATH="$with_tools_dir" 15053 else 15054 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 15055 fi 15056 fi 15057 15058 15059 fi 15060 15061 15062 15063 # Check whether --with-toolchain-path was given. 15064 if test "${with_toolchain_path+set}" = set; then : 15065 withval=$with_toolchain_path; 15066 if test "x$with_toolchain_path" != x; then 15067 if test "x$TOOLCHAIN_PATH" = x; then 15068 TOOLCHAIN_PATH="$with_toolchain_path" 15069 else 15070 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 15071 fi 15072 fi 15073 15074 15075 fi 15076 15077 15078 15079 # Check whether --with-extra-path was given. 15080 if test "${with_extra_path+set}" = set; then : 15081 withval=$with_extra_path; 15082 if test "x$with_extra_path" != x; then 15083 if test "x$EXTRA_PATH" = x; then 15084 EXTRA_PATH="$with_extra_path" 15085 else 15086 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 15087 fi 15088 fi 15089 15090 15091 fi 15092 15093 15094 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 15095 # detect if Xcode is installed by running xcodebuild -version 15096 # if no Xcode installed, xcodebuild exits with 1 15097 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 15098 if /usr/bin/xcodebuild -version >/dev/null 2>&1; then 15099 # We need to use xcodebuild in the toolchain dir provided by the user, this will 15100 # fall back on the stub binary in /usr/bin/xcodebuild 15101 # Extract the first word of "xcodebuild", so it can be a program name with args. 15102 set dummy xcodebuild; ac_word=$2 15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15104 $as_echo_n "checking for $ac_word... " >&6; } 15105 if ${ac_cv_path_XCODEBUILD+:} false; then : 15106 $as_echo_n "(cached) " >&6 15107 else 15108 case $XCODEBUILD in 15109 [\\/]* | ?:[\\/]*) 15110 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 15111 ;; 15112 *) 15113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15114 for as_dir in $TOOLCHAIN_PATH 15115 do 15116 IFS=$as_save_IFS 15117 test -z "$as_dir" && as_dir=. 15118 for ac_exec_ext in '' $ac_executable_extensions; do 15119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15120 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 15121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15122 break 2 15123 fi 15124 done 15125 done 15126 IFS=$as_save_IFS 15127 15128 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 15129 ;; 15130 esac 15131 fi 15132 XCODEBUILD=$ac_cv_path_XCODEBUILD 15133 if test -n "$XCODEBUILD"; then 15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 15135 $as_echo "$XCODEBUILD" >&6; } 15136 else 15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15138 $as_echo "no" >&6; } 15139 fi 15140 15141 15142 else 15143 # this should result in SYSROOT being empty, unless --with-sysroot is provided 15144 # when only the command line tools are installed there are no SDKs, so headers 15145 # are copied into the system frameworks 15146 XCODEBUILD= 15147 15148 fi 15149 15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 15151 $as_echo_n "checking for sdk name... " >&6; } 15152 15153 # Check whether --with-sdk-name was given. 15154 if test "${with_sdk_name+set}" = set; then : 15155 withval=$with_sdk_name; SDKNAME=$with_sdk_name 15156 15157 fi 15158 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 15160 $as_echo "$SDKNAME" >&6; } 15161 15162 # if toolchain path is specified then don't rely on system headers, they may not compile 15163 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 15164 test -z "$TOOLCHAIN_PATH" && \ 15165 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 15166 15167 if test -z "$SYSROOT"; then 15168 if test -n "$XCODEBUILD"; then 15169 # if we don't have system headers, use default SDK name (last resort) 15170 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15171 SDKNAME=${SDKNAME:-macosx} 15172 fi 15173 15174 if test -n "$SDKNAME"; then 15175 # Call xcodebuild to determine SYSROOT 15176 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 15177 fi 15178 else 15179 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15180 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 15181 fi 15182 fi 15183 else 15184 # warn user if --with-sdk-name was also set 15185 if test -n "$with_sdk_name"; then 15186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 15187 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 15188 fi 15189 fi 15190 15191 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 15192 # If no system framework headers, then SYSROOT must be set, or we won't build 15193 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 15194 fi 15195 15196 # Perform a basic sanity test 15197 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 15198 if test -z "$SYSROOT"; then 15199 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 15200 else 15201 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 15202 fi 15203 fi 15204 15205 # set SDKROOT too, Xcode tools will pick it up 15206 SDKROOT=$SYSROOT 15207 15208 fi 15209 15210 # Prepend the extra path to the global path 15211 15212 if test "x$EXTRA_PATH" != x; then 15213 if test "x$PATH" = x; then 15214 PATH="$EXTRA_PATH" 15215 else 15216 PATH="$EXTRA_PATH:$PATH" 15217 fi 15218 fi 15219 15220 15221 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15222 # Add extra search paths on solaris for utilities like ar and as etc... 15223 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15224 fi 15225 15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15227 $as_echo_n "checking for sysroot... " >&6; } 15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15229 $as_echo "$SYSROOT" >&6; } 15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15231 $as_echo_n "checking for toolchain path... " >&6; } 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15233 $as_echo "$TOOLCHAIN_PATH" >&6; } 15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15235 $as_echo_n "checking for extra path... " >&6; } 15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15237 $as_echo "$EXTRA_PATH" >&6; } 15238 15239 15240 # To properly create a configuration name, we need to have the OpenJDK target 15241 # and options (variants and debug level) parsed. 15242 15243 15244 15245 # Check whether --with-conf-name was given. 15246 if test "${with_conf_name+set}" = set; then : 15247 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15248 fi 15249 15250 15251 # Test from where we are running configure, in or outside of src root. 15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15253 $as_echo_n "checking where to store configuration... " >&6; } 15254 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15255 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15256 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15257 # We are running configure from the src root. 15258 # Create a default ./build/target-variant-debuglevel output root. 15259 if test "x${CONF_NAME}" = x; then 15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15261 $as_echo "in default location" >&6; } 15262 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15263 else 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15265 $as_echo "in build directory with custom name" >&6; } 15266 fi 15267 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15268 $MKDIR -p "$OUTPUT_ROOT" 15269 CONFIGURE_SUPPORT="$OUTPUT_ROOT/configure-support" 15270 $MKDIR -p "$CONFIGURE_SUPPORT" 15271 if test ! -d "$OUTPUT_ROOT"; then 15272 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15273 fi 15274 else 15275 # We are running configure from outside of the src dir. 15276 # Then use the current directory as output dir! 15277 # If configuration is situated in normal build directory, just use the build 15278 # directory name as configuration name, otherwise use the complete path. 15279 if test "x${CONF_NAME}" = x; then 15280 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15281 fi 15282 OUTPUT_ROOT="$CURDIR" 15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15284 $as_echo "in current directory" >&6; } 15285 15286 # WARNING: This might be a bad thing to do. You need to be sure you want to 15287 # have a configuration in this directory. Do some sanity checks! 15288 15289 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15290 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15291 # other files 15292 files_present=`$LS $OUTPUT_ROOT` 15293 # Configure has already touched config.log and confdefs.h in the current dir when this check 15294 # is performed. 15295 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 15296 | $TR -d '\n'` 15297 if test "x$filtered_files" != x; then 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15299 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15300 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15301 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15303 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15304 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15305 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15306 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15307 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15308 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15309 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15310 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15311 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15312 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15313 fi 15314 fi 15315 fi 15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15317 $as_echo_n "checking what configuration name to use... " >&6; } 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15319 $as_echo "$CONF_NAME" >&6; } 15320 15321 15322 # Only process if variable expands to non-empty 15323 15324 if test "x$OUTPUT_ROOT" != x; then 15325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15326 15327 # Input might be given as Windows format, start by converting to 15328 # unix format. 15329 path="$OUTPUT_ROOT" 15330 new_path=`$CYGPATH -u "$path"` 15331 15332 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15333 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15334 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15335 # "foo.exe" is OK but "foo" is an error. 15336 # 15337 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15338 # It is also a way to make sure we got the proper file name for the real test later on. 15339 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15340 if test "x$test_shortpath" = x; then 15341 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15342 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15343 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15344 fi 15345 15346 # Call helper function which possibly converts this using DOS-style short mode. 15347 # If so, the updated path is stored in $new_path. 15348 15349 input_path="$new_path" 15350 # Check if we need to convert this using DOS-style short mode. If the path 15351 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15352 # take no chances and rewrite it. 15353 # Note: m4 eats our [], so we need to use [ and ] instead. 15354 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15355 if test "x$has_forbidden_chars" != x; then 15356 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15357 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15358 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15359 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15360 # Going to short mode and back again did indeed matter. Since short mode is 15361 # case insensitive, let's make it lowercase to improve readability. 15362 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15363 # Now convert it back to Unix-stile (cygpath) 15364 input_path=`$CYGPATH -u "$shortmode_path"` 15365 new_path="$input_path" 15366 fi 15367 fi 15368 15369 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15370 if test "x$test_cygdrive_prefix" = x; then 15371 # As a simple fix, exclude /usr/bin since it's not a real path. 15372 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15373 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15374 # a path prefixed by /cygdrive for fixpath to work. 15375 new_path="$CYGWIN_ROOT_PATH$input_path" 15376 fi 15377 fi 15378 15379 15380 if test "x$path" != "x$new_path"; then 15381 OUTPUT_ROOT="$new_path" 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15383 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15384 fi 15385 15386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15387 15388 path="$OUTPUT_ROOT" 15389 has_colon=`$ECHO $path | $GREP ^.:` 15390 new_path="$path" 15391 if test "x$has_colon" = x; then 15392 # Not in mixed or Windows style, start by that. 15393 new_path=`cmd //c echo $path` 15394 fi 15395 15396 15397 input_path="$new_path" 15398 # Check if we need to convert this using DOS-style short mode. If the path 15399 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15400 # take no chances and rewrite it. 15401 # Note: m4 eats our [], so we need to use [ and ] instead. 15402 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15403 if test "x$has_forbidden_chars" != x; then 15404 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15405 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15406 fi 15407 15408 15409 windows_path="$new_path" 15410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15411 unix_path=`$CYGPATH -u "$windows_path"` 15412 new_path="$unix_path" 15413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15414 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15415 new_path="$unix_path" 15416 fi 15417 15418 if test "x$path" != "x$new_path"; then 15419 OUTPUT_ROOT="$new_path" 15420 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15421 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15422 fi 15423 15424 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15425 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15426 15427 else 15428 # We're on a unix platform. Hooray! :) 15429 path="$OUTPUT_ROOT" 15430 has_space=`$ECHO "$path" | $GREP " "` 15431 if test "x$has_space" != x; then 15432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15433 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15434 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15435 fi 15436 15437 # Use eval to expand a potential ~ 15438 eval path="$path" 15439 if test ! -f "$path" && test ! -d "$path"; then 15440 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15441 fi 15442 15443 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15444 fi 15445 fi 15446 15447 15448 SPEC=$OUTPUT_ROOT/spec.gmk 15449 15450 CONF_NAME=$CONF_NAME 15451 15452 OUTPUT_ROOT=$OUTPUT_ROOT 15453 15454 15455 # The spec.gmk file contains all variables for the make system. 15456 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15457 15458 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15459 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15460 15461 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15462 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15463 15464 # The compare.sh is used to compare the build output to other builds. 15465 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15466 15467 # The generated Makefile knows where the spec.gmk is and where the source is. 15468 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15469 # which will look for generated configurations 15470 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15471 15472 15473 15474 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15475 15476 for ac_prog in apt-get yum port pkgutil pkgadd 15477 do 15478 # Extract the first word of "$ac_prog", so it can be a program name with args. 15479 set dummy $ac_prog; ac_word=$2 15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15481 $as_echo_n "checking for $ac_word... " >&6; } 15482 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15483 $as_echo_n "(cached) " >&6 15484 else 15485 if test -n "$PKGHANDLER"; then 15486 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15487 else 15488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15489 for as_dir in $PATH 15490 do 15491 IFS=$as_save_IFS 15492 test -z "$as_dir" && as_dir=. 15493 for ac_exec_ext in '' $ac_executable_extensions; do 15494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15495 ac_cv_prog_PKGHANDLER="$ac_prog" 15496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15497 break 2 15498 fi 15499 done 15500 done 15501 IFS=$as_save_IFS 15502 15503 fi 15504 fi 15505 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15506 if test -n "$PKGHANDLER"; then 15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15508 $as_echo "$PKGHANDLER" >&6; } 15509 else 15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15511 $as_echo "no" >&6; } 15512 fi 15513 15514 15515 test -n "$PKGHANDLER" && break 15516 done 15517 15518 15519 15520 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15521 15522 15523 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15524 if test "x$MAKE" != x; then 15525 # User has supplied a make, test it. 15526 if test ! -f "$MAKE"; then 15527 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15528 fi 15529 15530 MAKE_CANDIDATE=""$MAKE"" 15531 DESCRIPTION="user supplied MAKE=$MAKE" 15532 if test "x$MAKE_CANDIDATE" != x; then 15533 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15534 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15535 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15536 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15537 if test "x$IS_GNU_MAKE" = x; then 15538 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15539 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15540 else 15541 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15542 if test "x$IS_MODERN_MAKE" = x; then 15543 { $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 15544 $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;} 15545 else 15546 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15547 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15548 MAKE_EXPECTED_ENV='cygwin' 15549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15550 MAKE_EXPECTED_ENV='msys' 15551 else 15552 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15553 fi 15554 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15555 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15556 else 15557 # Not relevant for non-Windows 15558 IS_MAKE_CORRECT_ENV=true 15559 fi 15560 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15561 { $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 15562 $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;} 15563 else 15564 FOUND_MAKE=$MAKE_CANDIDATE 15565 15566 # Only process if variable expands to non-empty 15567 15568 if test "x$FOUND_MAKE" != x; then 15569 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15570 15571 # First separate the path from the arguments. This will split at the first 15572 # space. 15573 complete="$FOUND_MAKE" 15574 path="${complete%% *}" 15575 tmp="$complete EOL" 15576 arguments="${tmp#* }" 15577 15578 # Input might be given as Windows format, start by converting to 15579 # unix format. 15580 new_path=`$CYGPATH -u "$path"` 15581 15582 # Now try to locate executable using which 15583 new_path=`$WHICH "$new_path" 2> /dev/null` 15584 # bat and cmd files are not always considered executable in cygwin causing which 15585 # to not find them 15586 if test "x$new_path" = x \ 15587 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15588 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15589 new_path=`$CYGPATH -u "$path"` 15590 fi 15591 if test "x$new_path" = x; then 15592 # Oops. Which didn't find the executable. 15593 # The splitting of arguments from the executable at a space might have been incorrect, 15594 # since paths with space are more likely in Windows. Give it another try with the whole 15595 # argument. 15596 path="$complete" 15597 arguments="EOL" 15598 new_path=`$CYGPATH -u "$path"` 15599 new_path=`$WHICH "$new_path" 2> /dev/null` 15600 # bat and cmd files are not always considered executable in cygwin causing which 15601 # to not find them 15602 if test "x$new_path" = x \ 15603 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15604 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15605 new_path=`$CYGPATH -u "$path"` 15606 fi 15607 if test "x$new_path" = x; then 15608 # It's still not found. Now this is an unrecoverable error. 15609 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15610 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15611 has_space=`$ECHO "$complete" | $GREP " "` 15612 if test "x$has_space" != x; then 15613 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15614 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15615 fi 15616 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15617 fi 15618 fi 15619 15620 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15621 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15622 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15623 # "foo.exe" is OK but "foo" is an error. 15624 # 15625 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15626 # It is also a way to make sure we got the proper file name for the real test later on. 15627 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15628 if test "x$test_shortpath" = x; then 15629 # Short path failed, file does not exist as specified. 15630 # Try adding .exe or .cmd 15631 if test -f "${new_path}.exe"; then 15632 input_to_shortpath="${new_path}.exe" 15633 elif test -f "${new_path}.cmd"; then 15634 input_to_shortpath="${new_path}.cmd" 15635 else 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15637 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15639 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15640 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15641 fi 15642 else 15643 input_to_shortpath="$new_path" 15644 fi 15645 15646 # Call helper function which possibly converts this using DOS-style short mode. 15647 # If so, the updated path is stored in $new_path. 15648 new_path="$input_to_shortpath" 15649 15650 input_path="$input_to_shortpath" 15651 # Check if we need to convert this using DOS-style short mode. If the path 15652 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15653 # take no chances and rewrite it. 15654 # Note: m4 eats our [], so we need to use [ and ] instead. 15655 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15656 if test "x$has_forbidden_chars" != x; then 15657 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15658 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15659 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15660 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15661 # Going to short mode and back again did indeed matter. Since short mode is 15662 # case insensitive, let's make it lowercase to improve readability. 15663 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15664 # Now convert it back to Unix-stile (cygpath) 15665 input_path=`$CYGPATH -u "$shortmode_path"` 15666 new_path="$input_path" 15667 fi 15668 fi 15669 15670 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15671 if test "x$test_cygdrive_prefix" = x; then 15672 # As a simple fix, exclude /usr/bin since it's not a real path. 15673 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15674 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15675 # a path prefixed by /cygdrive for fixpath to work. 15676 new_path="$CYGWIN_ROOT_PATH$input_path" 15677 fi 15678 fi 15679 15680 # remove trailing .exe if any 15681 new_path="${new_path/%.exe/}" 15682 15683 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15684 15685 # First separate the path from the arguments. This will split at the first 15686 # space. 15687 complete="$FOUND_MAKE" 15688 path="${complete%% *}" 15689 tmp="$complete EOL" 15690 arguments="${tmp#* }" 15691 15692 # Input might be given as Windows format, start by converting to 15693 # unix format. 15694 new_path="$path" 15695 15696 windows_path="$new_path" 15697 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15698 unix_path=`$CYGPATH -u "$windows_path"` 15699 new_path="$unix_path" 15700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15701 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15702 new_path="$unix_path" 15703 fi 15704 15705 15706 # Now try to locate executable using which 15707 new_path=`$WHICH "$new_path" 2> /dev/null` 15708 15709 if test "x$new_path" = x; then 15710 # Oops. Which didn't find the executable. 15711 # The splitting of arguments from the executable at a space might have been incorrect, 15712 # since paths with space are more likely in Windows. Give it another try with the whole 15713 # argument. 15714 path="$complete" 15715 arguments="EOL" 15716 new_path="$path" 15717 15718 windows_path="$new_path" 15719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15720 unix_path=`$CYGPATH -u "$windows_path"` 15721 new_path="$unix_path" 15722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15723 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15724 new_path="$unix_path" 15725 fi 15726 15727 15728 new_path=`$WHICH "$new_path" 2> /dev/null` 15729 # bat and cmd files are not always considered executable in MSYS causing which 15730 # to not find them 15731 if test "x$new_path" = x \ 15732 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15733 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15734 new_path="$path" 15735 15736 windows_path="$new_path" 15737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15738 unix_path=`$CYGPATH -u "$windows_path"` 15739 new_path="$unix_path" 15740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15742 new_path="$unix_path" 15743 fi 15744 15745 fi 15746 15747 if test "x$new_path" = x; then 15748 # It's still not found. Now this is an unrecoverable error. 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15750 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15751 has_space=`$ECHO "$complete" | $GREP " "` 15752 if test "x$has_space" != x; then 15753 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15754 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15755 fi 15756 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15757 fi 15758 fi 15759 15760 # Now new_path has a complete unix path to the binary 15761 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15762 # Keep paths in /bin as-is, but remove trailing .exe if any 15763 new_path="${new_path/%.exe/}" 15764 # Do not save /bin paths to all_fixpath_prefixes! 15765 else 15766 # Not in mixed or Windows style, start by that. 15767 new_path=`cmd //c echo $new_path` 15768 15769 input_path="$new_path" 15770 # Check if we need to convert this using DOS-style short mode. If the path 15771 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15772 # take no chances and rewrite it. 15773 # Note: m4 eats our [], so we need to use [ and ] instead. 15774 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15775 if test "x$has_forbidden_chars" != x; then 15776 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15777 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15778 fi 15779 15780 # Output is in $new_path 15781 15782 windows_path="$new_path" 15783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15784 unix_path=`$CYGPATH -u "$windows_path"` 15785 new_path="$unix_path" 15786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15787 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15788 new_path="$unix_path" 15789 fi 15790 15791 # remove trailing .exe if any 15792 new_path="${new_path/%.exe/}" 15793 15794 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15795 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15796 fi 15797 15798 else 15799 # We're on a unix platform. Hooray! :) 15800 # First separate the path from the arguments. This will split at the first 15801 # space. 15802 complete="$FOUND_MAKE" 15803 path="${complete%% *}" 15804 tmp="$complete EOL" 15805 arguments="${tmp#* }" 15806 15807 # Cannot rely on the command "which" here since it doesn't always work. 15808 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15809 if test -z "$is_absolute_path"; then 15810 # Path to executable is not absolute. Find it. 15811 IFS_save="$IFS" 15812 IFS=: 15813 for p in $PATH; do 15814 if test -f "$p/$path" && test -x "$p/$path"; then 15815 new_path="$p/$path" 15816 break 15817 fi 15818 done 15819 IFS="$IFS_save" 15820 else 15821 # This is an absolute path, we can use it without further modifications. 15822 new_path="$path" 15823 fi 15824 15825 if test "x$new_path" = x; then 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15827 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15828 has_space=`$ECHO "$complete" | $GREP " "` 15829 if test "x$has_space" != x; then 15830 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15831 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15832 fi 15833 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15834 fi 15835 fi 15836 15837 # Now join together the path and the arguments once again 15838 if test "x$arguments" != xEOL; then 15839 new_complete="$new_path ${arguments% *}" 15840 else 15841 new_complete="$new_path" 15842 fi 15843 15844 if test "x$complete" != "x$new_complete"; then 15845 FOUND_MAKE="$new_complete" 15846 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15847 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15848 fi 15849 fi 15850 15851 fi 15852 fi 15853 fi 15854 fi 15855 15856 if test "x$FOUND_MAKE" = x; then 15857 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15858 fi 15859 else 15860 # Try our hardest to locate a correct version of GNU make 15861 for ac_prog in gmake 15862 do 15863 # Extract the first word of "$ac_prog", so it can be a program name with args. 15864 set dummy $ac_prog; ac_word=$2 15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15866 $as_echo_n "checking for $ac_word... " >&6; } 15867 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15868 $as_echo_n "(cached) " >&6 15869 else 15870 case $CHECK_GMAKE in 15871 [\\/]* | ?:[\\/]*) 15872 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15873 ;; 15874 *) 15875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15876 for as_dir in $PATH 15877 do 15878 IFS=$as_save_IFS 15879 test -z "$as_dir" && as_dir=. 15880 for ac_exec_ext in '' $ac_executable_extensions; do 15881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15882 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15884 break 2 15885 fi 15886 done 15887 done 15888 IFS=$as_save_IFS 15889 15890 ;; 15891 esac 15892 fi 15893 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15894 if test -n "$CHECK_GMAKE"; then 15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15896 $as_echo "$CHECK_GMAKE" >&6; } 15897 else 15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15899 $as_echo "no" >&6; } 15900 fi 15901 15902 15903 test -n "$CHECK_GMAKE" && break 15904 done 15905 15906 15907 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15908 DESCRIPTION="gmake in PATH" 15909 if test "x$MAKE_CANDIDATE" != x; then 15910 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15911 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15912 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15913 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15914 if test "x$IS_GNU_MAKE" = x; then 15915 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15916 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15917 else 15918 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15919 if test "x$IS_MODERN_MAKE" = x; then 15920 { $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 15921 $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;} 15922 else 15923 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15925 MAKE_EXPECTED_ENV='cygwin' 15926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15927 MAKE_EXPECTED_ENV='msys' 15928 else 15929 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15930 fi 15931 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15932 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15933 else 15934 # Not relevant for non-Windows 15935 IS_MAKE_CORRECT_ENV=true 15936 fi 15937 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15938 { $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 15939 $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;} 15940 else 15941 FOUND_MAKE=$MAKE_CANDIDATE 15942 15943 # Only process if variable expands to non-empty 15944 15945 if test "x$FOUND_MAKE" != x; then 15946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15947 15948 # First separate the path from the arguments. This will split at the first 15949 # space. 15950 complete="$FOUND_MAKE" 15951 path="${complete%% *}" 15952 tmp="$complete EOL" 15953 arguments="${tmp#* }" 15954 15955 # Input might be given as Windows format, start by converting to 15956 # unix format. 15957 new_path=`$CYGPATH -u "$path"` 15958 15959 # Now try to locate executable using which 15960 new_path=`$WHICH "$new_path" 2> /dev/null` 15961 # bat and cmd files are not always considered executable in cygwin causing which 15962 # to not find them 15963 if test "x$new_path" = x \ 15964 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15965 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15966 new_path=`$CYGPATH -u "$path"` 15967 fi 15968 if test "x$new_path" = x; then 15969 # Oops. Which didn't find the executable. 15970 # The splitting of arguments from the executable at a space might have been incorrect, 15971 # since paths with space are more likely in Windows. Give it another try with the whole 15972 # argument. 15973 path="$complete" 15974 arguments="EOL" 15975 new_path=`$CYGPATH -u "$path"` 15976 new_path=`$WHICH "$new_path" 2> /dev/null` 15977 # bat and cmd files are not always considered executable in cygwin causing which 15978 # to not find them 15979 if test "x$new_path" = x \ 15980 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15981 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15982 new_path=`$CYGPATH -u "$path"` 15983 fi 15984 if test "x$new_path" = x; then 15985 # It's still not found. Now this is an unrecoverable error. 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15987 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15988 has_space=`$ECHO "$complete" | $GREP " "` 15989 if test "x$has_space" != x; then 15990 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15991 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15992 fi 15993 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15994 fi 15995 fi 15996 15997 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15998 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15999 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16000 # "foo.exe" is OK but "foo" is an error. 16001 # 16002 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16003 # It is also a way to make sure we got the proper file name for the real test later on. 16004 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16005 if test "x$test_shortpath" = x; then 16006 # Short path failed, file does not exist as specified. 16007 # Try adding .exe or .cmd 16008 if test -f "${new_path}.exe"; then 16009 input_to_shortpath="${new_path}.exe" 16010 elif test -f "${new_path}.cmd"; then 16011 input_to_shortpath="${new_path}.cmd" 16012 else 16013 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16014 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16016 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16017 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16018 fi 16019 else 16020 input_to_shortpath="$new_path" 16021 fi 16022 16023 # Call helper function which possibly converts this using DOS-style short mode. 16024 # If so, the updated path is stored in $new_path. 16025 new_path="$input_to_shortpath" 16026 16027 input_path="$input_to_shortpath" 16028 # Check if we need to convert this using DOS-style short mode. If the path 16029 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16030 # take no chances and rewrite it. 16031 # Note: m4 eats our [], so we need to use [ and ] instead. 16032 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16033 if test "x$has_forbidden_chars" != x; then 16034 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16035 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16036 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16037 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16038 # Going to short mode and back again did indeed matter. Since short mode is 16039 # case insensitive, let's make it lowercase to improve readability. 16040 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16041 # Now convert it back to Unix-stile (cygpath) 16042 input_path=`$CYGPATH -u "$shortmode_path"` 16043 new_path="$input_path" 16044 fi 16045 fi 16046 16047 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16048 if test "x$test_cygdrive_prefix" = x; then 16049 # As a simple fix, exclude /usr/bin since it's not a real path. 16050 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16051 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16052 # a path prefixed by /cygdrive for fixpath to work. 16053 new_path="$CYGWIN_ROOT_PATH$input_path" 16054 fi 16055 fi 16056 16057 # remove trailing .exe if any 16058 new_path="${new_path/%.exe/}" 16059 16060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16061 16062 # First separate the path from the arguments. This will split at the first 16063 # space. 16064 complete="$FOUND_MAKE" 16065 path="${complete%% *}" 16066 tmp="$complete EOL" 16067 arguments="${tmp#* }" 16068 16069 # Input might be given as Windows format, start by converting to 16070 # unix format. 16071 new_path="$path" 16072 16073 windows_path="$new_path" 16074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16075 unix_path=`$CYGPATH -u "$windows_path"` 16076 new_path="$unix_path" 16077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16078 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16079 new_path="$unix_path" 16080 fi 16081 16082 16083 # Now try to locate executable using which 16084 new_path=`$WHICH "$new_path" 2> /dev/null` 16085 16086 if test "x$new_path" = x; then 16087 # Oops. Which didn't find the executable. 16088 # The splitting of arguments from the executable at a space might have been incorrect, 16089 # since paths with space are more likely in Windows. Give it another try with the whole 16090 # argument. 16091 path="$complete" 16092 arguments="EOL" 16093 new_path="$path" 16094 16095 windows_path="$new_path" 16096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16097 unix_path=`$CYGPATH -u "$windows_path"` 16098 new_path="$unix_path" 16099 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16100 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16101 new_path="$unix_path" 16102 fi 16103 16104 16105 new_path=`$WHICH "$new_path" 2> /dev/null` 16106 # bat and cmd files are not always considered executable in MSYS causing which 16107 # to not find them 16108 if test "x$new_path" = x \ 16109 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16110 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16111 new_path="$path" 16112 16113 windows_path="$new_path" 16114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16115 unix_path=`$CYGPATH -u "$windows_path"` 16116 new_path="$unix_path" 16117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16118 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16119 new_path="$unix_path" 16120 fi 16121 16122 fi 16123 16124 if test "x$new_path" = x; then 16125 # It's still not found. Now this is an unrecoverable error. 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16127 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16128 has_space=`$ECHO "$complete" | $GREP " "` 16129 if test "x$has_space" != x; then 16130 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16131 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16132 fi 16133 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16134 fi 16135 fi 16136 16137 # Now new_path has a complete unix path to the binary 16138 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16139 # Keep paths in /bin as-is, but remove trailing .exe if any 16140 new_path="${new_path/%.exe/}" 16141 # Do not save /bin paths to all_fixpath_prefixes! 16142 else 16143 # Not in mixed or Windows style, start by that. 16144 new_path=`cmd //c echo $new_path` 16145 16146 input_path="$new_path" 16147 # Check if we need to convert this using DOS-style short mode. If the path 16148 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16149 # take no chances and rewrite it. 16150 # Note: m4 eats our [], so we need to use [ and ] instead. 16151 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16152 if test "x$has_forbidden_chars" != x; then 16153 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16154 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16155 fi 16156 16157 # Output is in $new_path 16158 16159 windows_path="$new_path" 16160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16161 unix_path=`$CYGPATH -u "$windows_path"` 16162 new_path="$unix_path" 16163 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16164 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16165 new_path="$unix_path" 16166 fi 16167 16168 # remove trailing .exe if any 16169 new_path="${new_path/%.exe/}" 16170 16171 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16172 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16173 fi 16174 16175 else 16176 # We're on a unix platform. Hooray! :) 16177 # First separate the path from the arguments. This will split at the first 16178 # space. 16179 complete="$FOUND_MAKE" 16180 path="${complete%% *}" 16181 tmp="$complete EOL" 16182 arguments="${tmp#* }" 16183 16184 # Cannot rely on the command "which" here since it doesn't always work. 16185 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16186 if test -z "$is_absolute_path"; then 16187 # Path to executable is not absolute. Find it. 16188 IFS_save="$IFS" 16189 IFS=: 16190 for p in $PATH; do 16191 if test -f "$p/$path" && test -x "$p/$path"; then 16192 new_path="$p/$path" 16193 break 16194 fi 16195 done 16196 IFS="$IFS_save" 16197 else 16198 # This is an absolute path, we can use it without further modifications. 16199 new_path="$path" 16200 fi 16201 16202 if test "x$new_path" = x; then 16203 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16204 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16205 has_space=`$ECHO "$complete" | $GREP " "` 16206 if test "x$has_space" != x; then 16207 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16208 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16209 fi 16210 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16211 fi 16212 fi 16213 16214 # Now join together the path and the arguments once again 16215 if test "x$arguments" != xEOL; then 16216 new_complete="$new_path ${arguments% *}" 16217 else 16218 new_complete="$new_path" 16219 fi 16220 16221 if test "x$complete" != "x$new_complete"; then 16222 FOUND_MAKE="$new_complete" 16223 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16224 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16225 fi 16226 fi 16227 16228 fi 16229 fi 16230 fi 16231 fi 16232 16233 16234 if test "x$FOUND_MAKE" = x; then 16235 for ac_prog in make 16236 do 16237 # Extract the first word of "$ac_prog", so it can be a program name with args. 16238 set dummy $ac_prog; ac_word=$2 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16240 $as_echo_n "checking for $ac_word... " >&6; } 16241 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16242 $as_echo_n "(cached) " >&6 16243 else 16244 case $CHECK_MAKE in 16245 [\\/]* | ?:[\\/]*) 16246 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16247 ;; 16248 *) 16249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16250 for as_dir in $PATH 16251 do 16252 IFS=$as_save_IFS 16253 test -z "$as_dir" && as_dir=. 16254 for ac_exec_ext in '' $ac_executable_extensions; do 16255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16256 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16258 break 2 16259 fi 16260 done 16261 done 16262 IFS=$as_save_IFS 16263 16264 ;; 16265 esac 16266 fi 16267 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16268 if test -n "$CHECK_MAKE"; then 16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16270 $as_echo "$CHECK_MAKE" >&6; } 16271 else 16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16273 $as_echo "no" >&6; } 16274 fi 16275 16276 16277 test -n "$CHECK_MAKE" && break 16278 done 16279 16280 16281 MAKE_CANDIDATE=""$CHECK_MAKE"" 16282 DESCRIPTION="make in PATH" 16283 if test "x$MAKE_CANDIDATE" != x; then 16284 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16285 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16286 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16287 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16288 if test "x$IS_GNU_MAKE" = x; then 16289 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16290 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16291 else 16292 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16293 if test "x$IS_MODERN_MAKE" = x; then 16294 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16295 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16296 else 16297 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16299 MAKE_EXPECTED_ENV='cygwin' 16300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16301 MAKE_EXPECTED_ENV='msys' 16302 else 16303 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16304 fi 16305 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16306 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16307 else 16308 # Not relevant for non-Windows 16309 IS_MAKE_CORRECT_ENV=true 16310 fi 16311 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16312 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5 16313 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;} 16314 else 16315 FOUND_MAKE=$MAKE_CANDIDATE 16316 16317 # Only process if variable expands to non-empty 16318 16319 if test "x$FOUND_MAKE" != x; then 16320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16321 16322 # First separate the path from the arguments. This will split at the first 16323 # space. 16324 complete="$FOUND_MAKE" 16325 path="${complete%% *}" 16326 tmp="$complete EOL" 16327 arguments="${tmp#* }" 16328 16329 # Input might be given as Windows format, start by converting to 16330 # unix format. 16331 new_path=`$CYGPATH -u "$path"` 16332 16333 # Now try to locate executable using which 16334 new_path=`$WHICH "$new_path" 2> /dev/null` 16335 # bat and cmd files are not always considered executable in cygwin causing which 16336 # to not find them 16337 if test "x$new_path" = x \ 16338 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16339 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16340 new_path=`$CYGPATH -u "$path"` 16341 fi 16342 if test "x$new_path" = x; then 16343 # Oops. Which didn't find the executable. 16344 # The splitting of arguments from the executable at a space might have been incorrect, 16345 # since paths with space are more likely in Windows. Give it another try with the whole 16346 # argument. 16347 path="$complete" 16348 arguments="EOL" 16349 new_path=`$CYGPATH -u "$path"` 16350 new_path=`$WHICH "$new_path" 2> /dev/null` 16351 # bat and cmd files are not always considered executable in cygwin causing which 16352 # to not find them 16353 if test "x$new_path" = x \ 16354 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16355 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16356 new_path=`$CYGPATH -u "$path"` 16357 fi 16358 if test "x$new_path" = x; then 16359 # It's still not found. Now this is an unrecoverable error. 16360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16361 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16362 has_space=`$ECHO "$complete" | $GREP " "` 16363 if test "x$has_space" != x; then 16364 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16365 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16366 fi 16367 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16368 fi 16369 fi 16370 16371 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16372 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16373 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16374 # "foo.exe" is OK but "foo" is an error. 16375 # 16376 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16377 # It is also a way to make sure we got the proper file name for the real test later on. 16378 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16379 if test "x$test_shortpath" = x; then 16380 # Short path failed, file does not exist as specified. 16381 # Try adding .exe or .cmd 16382 if test -f "${new_path}.exe"; then 16383 input_to_shortpath="${new_path}.exe" 16384 elif test -f "${new_path}.cmd"; then 16385 input_to_shortpath="${new_path}.cmd" 16386 else 16387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16388 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16390 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16391 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16392 fi 16393 else 16394 input_to_shortpath="$new_path" 16395 fi 16396 16397 # Call helper function which possibly converts this using DOS-style short mode. 16398 # If so, the updated path is stored in $new_path. 16399 new_path="$input_to_shortpath" 16400 16401 input_path="$input_to_shortpath" 16402 # Check if we need to convert this using DOS-style short mode. If the path 16403 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16404 # take no chances and rewrite it. 16405 # Note: m4 eats our [], so we need to use [ and ] instead. 16406 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16407 if test "x$has_forbidden_chars" != x; then 16408 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16409 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16410 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16411 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16412 # Going to short mode and back again did indeed matter. Since short mode is 16413 # case insensitive, let's make it lowercase to improve readability. 16414 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16415 # Now convert it back to Unix-stile (cygpath) 16416 input_path=`$CYGPATH -u "$shortmode_path"` 16417 new_path="$input_path" 16418 fi 16419 fi 16420 16421 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16422 if test "x$test_cygdrive_prefix" = x; then 16423 # As a simple fix, exclude /usr/bin since it's not a real path. 16424 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16425 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16426 # a path prefixed by /cygdrive for fixpath to work. 16427 new_path="$CYGWIN_ROOT_PATH$input_path" 16428 fi 16429 fi 16430 16431 # remove trailing .exe if any 16432 new_path="${new_path/%.exe/}" 16433 16434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16435 16436 # First separate the path from the arguments. This will split at the first 16437 # space. 16438 complete="$FOUND_MAKE" 16439 path="${complete%% *}" 16440 tmp="$complete EOL" 16441 arguments="${tmp#* }" 16442 16443 # Input might be given as Windows format, start by converting to 16444 # unix format. 16445 new_path="$path" 16446 16447 windows_path="$new_path" 16448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16449 unix_path=`$CYGPATH -u "$windows_path"` 16450 new_path="$unix_path" 16451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16453 new_path="$unix_path" 16454 fi 16455 16456 16457 # Now try to locate executable using which 16458 new_path=`$WHICH "$new_path" 2> /dev/null` 16459 16460 if test "x$new_path" = x; then 16461 # Oops. Which didn't find the executable. 16462 # The splitting of arguments from the executable at a space might have been incorrect, 16463 # since paths with space are more likely in Windows. Give it another try with the whole 16464 # argument. 16465 path="$complete" 16466 arguments="EOL" 16467 new_path="$path" 16468 16469 windows_path="$new_path" 16470 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16471 unix_path=`$CYGPATH -u "$windows_path"` 16472 new_path="$unix_path" 16473 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16474 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16475 new_path="$unix_path" 16476 fi 16477 16478 16479 new_path=`$WHICH "$new_path" 2> /dev/null` 16480 # bat and cmd files are not always considered executable in MSYS causing which 16481 # to not find them 16482 if test "x$new_path" = x \ 16483 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16484 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16485 new_path="$path" 16486 16487 windows_path="$new_path" 16488 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16489 unix_path=`$CYGPATH -u "$windows_path"` 16490 new_path="$unix_path" 16491 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16492 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16493 new_path="$unix_path" 16494 fi 16495 16496 fi 16497 16498 if test "x$new_path" = x; then 16499 # It's still not found. Now this is an unrecoverable error. 16500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16501 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16502 has_space=`$ECHO "$complete" | $GREP " "` 16503 if test "x$has_space" != x; then 16504 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16505 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16506 fi 16507 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16508 fi 16509 fi 16510 16511 # Now new_path has a complete unix path to the binary 16512 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16513 # Keep paths in /bin as-is, but remove trailing .exe if any 16514 new_path="${new_path/%.exe/}" 16515 # Do not save /bin paths to all_fixpath_prefixes! 16516 else 16517 # Not in mixed or Windows style, start by that. 16518 new_path=`cmd //c echo $new_path` 16519 16520 input_path="$new_path" 16521 # Check if we need to convert this using DOS-style short mode. If the path 16522 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16523 # take no chances and rewrite it. 16524 # Note: m4 eats our [], so we need to use [ and ] instead. 16525 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16526 if test "x$has_forbidden_chars" != x; then 16527 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16528 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16529 fi 16530 16531 # Output is in $new_path 16532 16533 windows_path="$new_path" 16534 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16535 unix_path=`$CYGPATH -u "$windows_path"` 16536 new_path="$unix_path" 16537 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16538 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16539 new_path="$unix_path" 16540 fi 16541 16542 # remove trailing .exe if any 16543 new_path="${new_path/%.exe/}" 16544 16545 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16546 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16547 fi 16548 16549 else 16550 # We're on a unix platform. Hooray! :) 16551 # First separate the path from the arguments. This will split at the first 16552 # space. 16553 complete="$FOUND_MAKE" 16554 path="${complete%% *}" 16555 tmp="$complete EOL" 16556 arguments="${tmp#* }" 16557 16558 # Cannot rely on the command "which" here since it doesn't always work. 16559 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16560 if test -z "$is_absolute_path"; then 16561 # Path to executable is not absolute. Find it. 16562 IFS_save="$IFS" 16563 IFS=: 16564 for p in $PATH; do 16565 if test -f "$p/$path" && test -x "$p/$path"; then 16566 new_path="$p/$path" 16567 break 16568 fi 16569 done 16570 IFS="$IFS_save" 16571 else 16572 # This is an absolute path, we can use it without further modifications. 16573 new_path="$path" 16574 fi 16575 16576 if test "x$new_path" = x; then 16577 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16578 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16579 has_space=`$ECHO "$complete" | $GREP " "` 16580 if test "x$has_space" != x; then 16581 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16582 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16583 fi 16584 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16585 fi 16586 fi 16587 16588 # Now join together the path and the arguments once again 16589 if test "x$arguments" != xEOL; then 16590 new_complete="$new_path ${arguments% *}" 16591 else 16592 new_complete="$new_path" 16593 fi 16594 16595 if test "x$complete" != "x$new_complete"; then 16596 FOUND_MAKE="$new_complete" 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16598 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16599 fi 16600 fi 16601 16602 fi 16603 fi 16604 fi 16605 fi 16606 16607 fi 16608 16609 if test "x$FOUND_MAKE" = x; then 16610 if test "x$TOOLCHAIN_PATH" != x; then 16611 # We have a toolchain path, check that as well before giving up. 16612 OLD_PATH=$PATH 16613 PATH=$TOOLCHAIN_PATH:$PATH 16614 for ac_prog in gmake 16615 do 16616 # Extract the first word of "$ac_prog", so it can be a program name with args. 16617 set dummy $ac_prog; ac_word=$2 16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16619 $as_echo_n "checking for $ac_word... " >&6; } 16620 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16621 $as_echo_n "(cached) " >&6 16622 else 16623 case $CHECK_TOOLSDIR_GMAKE in 16624 [\\/]* | ?:[\\/]*) 16625 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16626 ;; 16627 *) 16628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16629 for as_dir in $PATH 16630 do 16631 IFS=$as_save_IFS 16632 test -z "$as_dir" && as_dir=. 16633 for ac_exec_ext in '' $ac_executable_extensions; do 16634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16635 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16637 break 2 16638 fi 16639 done 16640 done 16641 IFS=$as_save_IFS 16642 16643 ;; 16644 esac 16645 fi 16646 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16647 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16649 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16650 else 16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16652 $as_echo "no" >&6; } 16653 fi 16654 16655 16656 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16657 done 16658 16659 16660 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16661 DESCRIPTION="gmake in tools-dir" 16662 if test "x$MAKE_CANDIDATE" != x; then 16663 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16664 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16665 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16666 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16667 if test "x$IS_GNU_MAKE" = x; then 16668 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16669 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16670 else 16671 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16672 if test "x$IS_MODERN_MAKE" = x; then 16673 { $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 16674 $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;} 16675 else 16676 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16678 MAKE_EXPECTED_ENV='cygwin' 16679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16680 MAKE_EXPECTED_ENV='msys' 16681 else 16682 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16683 fi 16684 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16685 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16686 else 16687 # Not relevant for non-Windows 16688 IS_MAKE_CORRECT_ENV=true 16689 fi 16690 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16691 { $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 16692 $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;} 16693 else 16694 FOUND_MAKE=$MAKE_CANDIDATE 16695 16696 # Only process if variable expands to non-empty 16697 16698 if test "x$FOUND_MAKE" != x; then 16699 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16700 16701 # First separate the path from the arguments. This will split at the first 16702 # space. 16703 complete="$FOUND_MAKE" 16704 path="${complete%% *}" 16705 tmp="$complete EOL" 16706 arguments="${tmp#* }" 16707 16708 # Input might be given as Windows format, start by converting to 16709 # unix format. 16710 new_path=`$CYGPATH -u "$path"` 16711 16712 # Now try to locate executable using which 16713 new_path=`$WHICH "$new_path" 2> /dev/null` 16714 # bat and cmd files are not always considered executable in cygwin causing which 16715 # to not find them 16716 if test "x$new_path" = x \ 16717 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16718 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16719 new_path=`$CYGPATH -u "$path"` 16720 fi 16721 if test "x$new_path" = x; then 16722 # Oops. Which didn't find the executable. 16723 # The splitting of arguments from the executable at a space might have been incorrect, 16724 # since paths with space are more likely in Windows. Give it another try with the whole 16725 # argument. 16726 path="$complete" 16727 arguments="EOL" 16728 new_path=`$CYGPATH -u "$path"` 16729 new_path=`$WHICH "$new_path" 2> /dev/null` 16730 # bat and cmd files are not always considered executable in cygwin causing which 16731 # to not find them 16732 if test "x$new_path" = x \ 16733 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16734 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16735 new_path=`$CYGPATH -u "$path"` 16736 fi 16737 if test "x$new_path" = x; then 16738 # It's still not found. Now this is an unrecoverable error. 16739 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16740 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16741 has_space=`$ECHO "$complete" | $GREP " "` 16742 if test "x$has_space" != x; then 16743 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16744 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16745 fi 16746 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16747 fi 16748 fi 16749 16750 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16751 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16752 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16753 # "foo.exe" is OK but "foo" is an error. 16754 # 16755 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16756 # It is also a way to make sure we got the proper file name for the real test later on. 16757 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16758 if test "x$test_shortpath" = x; then 16759 # Short path failed, file does not exist as specified. 16760 # Try adding .exe or .cmd 16761 if test -f "${new_path}.exe"; then 16762 input_to_shortpath="${new_path}.exe" 16763 elif test -f "${new_path}.cmd"; then 16764 input_to_shortpath="${new_path}.cmd" 16765 else 16766 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16767 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16769 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16770 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16771 fi 16772 else 16773 input_to_shortpath="$new_path" 16774 fi 16775 16776 # Call helper function which possibly converts this using DOS-style short mode. 16777 # If so, the updated path is stored in $new_path. 16778 new_path="$input_to_shortpath" 16779 16780 input_path="$input_to_shortpath" 16781 # Check if we need to convert this using DOS-style short mode. If the path 16782 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16783 # take no chances and rewrite it. 16784 # Note: m4 eats our [], so we need to use [ and ] instead. 16785 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16786 if test "x$has_forbidden_chars" != x; then 16787 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16788 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16789 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16790 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16791 # Going to short mode and back again did indeed matter. Since short mode is 16792 # case insensitive, let's make it lowercase to improve readability. 16793 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16794 # Now convert it back to Unix-stile (cygpath) 16795 input_path=`$CYGPATH -u "$shortmode_path"` 16796 new_path="$input_path" 16797 fi 16798 fi 16799 16800 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16801 if test "x$test_cygdrive_prefix" = x; then 16802 # As a simple fix, exclude /usr/bin since it's not a real path. 16803 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16804 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16805 # a path prefixed by /cygdrive for fixpath to work. 16806 new_path="$CYGWIN_ROOT_PATH$input_path" 16807 fi 16808 fi 16809 16810 # remove trailing .exe if any 16811 new_path="${new_path/%.exe/}" 16812 16813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16814 16815 # First separate the path from the arguments. This will split at the first 16816 # space. 16817 complete="$FOUND_MAKE" 16818 path="${complete%% *}" 16819 tmp="$complete EOL" 16820 arguments="${tmp#* }" 16821 16822 # Input might be given as Windows format, start by converting to 16823 # unix format. 16824 new_path="$path" 16825 16826 windows_path="$new_path" 16827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16828 unix_path=`$CYGPATH -u "$windows_path"` 16829 new_path="$unix_path" 16830 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16831 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16832 new_path="$unix_path" 16833 fi 16834 16835 16836 # Now try to locate executable using which 16837 new_path=`$WHICH "$new_path" 2> /dev/null` 16838 16839 if test "x$new_path" = x; then 16840 # Oops. Which didn't find the executable. 16841 # The splitting of arguments from the executable at a space might have been incorrect, 16842 # since paths with space are more likely in Windows. Give it another try with the whole 16843 # argument. 16844 path="$complete" 16845 arguments="EOL" 16846 new_path="$path" 16847 16848 windows_path="$new_path" 16849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16850 unix_path=`$CYGPATH -u "$windows_path"` 16851 new_path="$unix_path" 16852 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16853 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16854 new_path="$unix_path" 16855 fi 16856 16857 16858 new_path=`$WHICH "$new_path" 2> /dev/null` 16859 # bat and cmd files are not always considered executable in MSYS causing which 16860 # to not find them 16861 if test "x$new_path" = x \ 16862 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16863 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16864 new_path="$path" 16865 16866 windows_path="$new_path" 16867 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16868 unix_path=`$CYGPATH -u "$windows_path"` 16869 new_path="$unix_path" 16870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16871 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16872 new_path="$unix_path" 16873 fi 16874 16875 fi 16876 16877 if test "x$new_path" = x; then 16878 # It's still not found. Now this is an unrecoverable error. 16879 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16880 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16881 has_space=`$ECHO "$complete" | $GREP " "` 16882 if test "x$has_space" != x; then 16883 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16884 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16885 fi 16886 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16887 fi 16888 fi 16889 16890 # Now new_path has a complete unix path to the binary 16891 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16892 # Keep paths in /bin as-is, but remove trailing .exe if any 16893 new_path="${new_path/%.exe/}" 16894 # Do not save /bin paths to all_fixpath_prefixes! 16895 else 16896 # Not in mixed or Windows style, start by that. 16897 new_path=`cmd //c echo $new_path` 16898 16899 input_path="$new_path" 16900 # Check if we need to convert this using DOS-style short mode. If the path 16901 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16902 # take no chances and rewrite it. 16903 # Note: m4 eats our [], so we need to use [ and ] instead. 16904 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16905 if test "x$has_forbidden_chars" != x; then 16906 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16907 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16908 fi 16909 16910 # Output is in $new_path 16911 16912 windows_path="$new_path" 16913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16914 unix_path=`$CYGPATH -u "$windows_path"` 16915 new_path="$unix_path" 16916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16917 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16918 new_path="$unix_path" 16919 fi 16920 16921 # remove trailing .exe if any 16922 new_path="${new_path/%.exe/}" 16923 16924 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16925 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16926 fi 16927 16928 else 16929 # We're on a unix platform. Hooray! :) 16930 # First separate the path from the arguments. This will split at the first 16931 # space. 16932 complete="$FOUND_MAKE" 16933 path="${complete%% *}" 16934 tmp="$complete EOL" 16935 arguments="${tmp#* }" 16936 16937 # Cannot rely on the command "which" here since it doesn't always work. 16938 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16939 if test -z "$is_absolute_path"; then 16940 # Path to executable is not absolute. Find it. 16941 IFS_save="$IFS" 16942 IFS=: 16943 for p in $PATH; do 16944 if test -f "$p/$path" && test -x "$p/$path"; then 16945 new_path="$p/$path" 16946 break 16947 fi 16948 done 16949 IFS="$IFS_save" 16950 else 16951 # This is an absolute path, we can use it without further modifications. 16952 new_path="$path" 16953 fi 16954 16955 if test "x$new_path" = x; then 16956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16957 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16958 has_space=`$ECHO "$complete" | $GREP " "` 16959 if test "x$has_space" != x; then 16960 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16961 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16962 fi 16963 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16964 fi 16965 fi 16966 16967 # Now join together the path and the arguments once again 16968 if test "x$arguments" != xEOL; then 16969 new_complete="$new_path ${arguments% *}" 16970 else 16971 new_complete="$new_path" 16972 fi 16973 16974 if test "x$complete" != "x$new_complete"; then 16975 FOUND_MAKE="$new_complete" 16976 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16977 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16978 fi 16979 fi 16980 16981 fi 16982 fi 16983 fi 16984 fi 16985 16986 if test "x$FOUND_MAKE" = x; then 16987 for ac_prog in make 16988 do 16989 # Extract the first word of "$ac_prog", so it can be a program name with args. 16990 set dummy $ac_prog; ac_word=$2 16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16992 $as_echo_n "checking for $ac_word... " >&6; } 16993 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16994 $as_echo_n "(cached) " >&6 16995 else 16996 case $CHECK_TOOLSDIR_MAKE in 16997 [\\/]* | ?:[\\/]*) 16998 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16999 ;; 17000 *) 17001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17002 for as_dir in $PATH 17003 do 17004 IFS=$as_save_IFS 17005 test -z "$as_dir" && as_dir=. 17006 for ac_exec_ext in '' $ac_executable_extensions; do 17007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17008 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 17009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17010 break 2 17011 fi 17012 done 17013 done 17014 IFS=$as_save_IFS 17015 17016 ;; 17017 esac 17018 fi 17019 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 17020 if test -n "$CHECK_TOOLSDIR_MAKE"; then 17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 17022 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 17023 else 17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17025 $as_echo "no" >&6; } 17026 fi 17027 17028 17029 test -n "$CHECK_TOOLSDIR_MAKE" && break 17030 done 17031 17032 17033 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 17034 DESCRIPTION="make in tools-dir" 17035 if test "x$MAKE_CANDIDATE" != x; then 17036 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17037 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17038 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17039 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17040 if test "x$IS_GNU_MAKE" = x; then 17041 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17042 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17043 else 17044 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 17045 if test "x$IS_MODERN_MAKE" = x; then 17046 { $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 17047 $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;} 17048 else 17049 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17051 MAKE_EXPECTED_ENV='cygwin' 17052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17053 MAKE_EXPECTED_ENV='msys' 17054 else 17055 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17056 fi 17057 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17058 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17059 else 17060 # Not relevant for non-Windows 17061 IS_MAKE_CORRECT_ENV=true 17062 fi 17063 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17064 { $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 17065 $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;} 17066 else 17067 FOUND_MAKE=$MAKE_CANDIDATE 17068 17069 # Only process if variable expands to non-empty 17070 17071 if test "x$FOUND_MAKE" != x; then 17072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17073 17074 # First separate the path from the arguments. This will split at the first 17075 # space. 17076 complete="$FOUND_MAKE" 17077 path="${complete%% *}" 17078 tmp="$complete EOL" 17079 arguments="${tmp#* }" 17080 17081 # Input might be given as Windows format, start by converting to 17082 # unix format. 17083 new_path=`$CYGPATH -u "$path"` 17084 17085 # Now try to locate executable using which 17086 new_path=`$WHICH "$new_path" 2> /dev/null` 17087 # bat and cmd files are not always considered executable in cygwin causing which 17088 # to not find them 17089 if test "x$new_path" = x \ 17090 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17091 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17092 new_path=`$CYGPATH -u "$path"` 17093 fi 17094 if test "x$new_path" = x; then 17095 # Oops. Which didn't find the executable. 17096 # The splitting of arguments from the executable at a space might have been incorrect, 17097 # since paths with space are more likely in Windows. Give it another try with the whole 17098 # argument. 17099 path="$complete" 17100 arguments="EOL" 17101 new_path=`$CYGPATH -u "$path"` 17102 new_path=`$WHICH "$new_path" 2> /dev/null` 17103 # bat and cmd files are not always considered executable in cygwin causing which 17104 # to not find them 17105 if test "x$new_path" = x \ 17106 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17107 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17108 new_path=`$CYGPATH -u "$path"` 17109 fi 17110 if test "x$new_path" = x; then 17111 # It's still not found. Now this is an unrecoverable error. 17112 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17113 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17114 has_space=`$ECHO "$complete" | $GREP " "` 17115 if test "x$has_space" != x; then 17116 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17117 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17118 fi 17119 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17120 fi 17121 fi 17122 17123 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17124 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17125 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17126 # "foo.exe" is OK but "foo" is an error. 17127 # 17128 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17129 # It is also a way to make sure we got the proper file name for the real test later on. 17130 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17131 if test "x$test_shortpath" = x; then 17132 # Short path failed, file does not exist as specified. 17133 # Try adding .exe or .cmd 17134 if test -f "${new_path}.exe"; then 17135 input_to_shortpath="${new_path}.exe" 17136 elif test -f "${new_path}.cmd"; then 17137 input_to_shortpath="${new_path}.cmd" 17138 else 17139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17140 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17141 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17142 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17143 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17144 fi 17145 else 17146 input_to_shortpath="$new_path" 17147 fi 17148 17149 # Call helper function which possibly converts this using DOS-style short mode. 17150 # If so, the updated path is stored in $new_path. 17151 new_path="$input_to_shortpath" 17152 17153 input_path="$input_to_shortpath" 17154 # Check if we need to convert this using DOS-style short mode. If the path 17155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17156 # take no chances and rewrite it. 17157 # Note: m4 eats our [], so we need to use [ and ] instead. 17158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17159 if test "x$has_forbidden_chars" != x; then 17160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17161 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17162 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17163 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17164 # Going to short mode and back again did indeed matter. Since short mode is 17165 # case insensitive, let's make it lowercase to improve readability. 17166 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17167 # Now convert it back to Unix-stile (cygpath) 17168 input_path=`$CYGPATH -u "$shortmode_path"` 17169 new_path="$input_path" 17170 fi 17171 fi 17172 17173 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17174 if test "x$test_cygdrive_prefix" = x; then 17175 # As a simple fix, exclude /usr/bin since it's not a real path. 17176 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17177 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17178 # a path prefixed by /cygdrive for fixpath to work. 17179 new_path="$CYGWIN_ROOT_PATH$input_path" 17180 fi 17181 fi 17182 17183 # remove trailing .exe if any 17184 new_path="${new_path/%.exe/}" 17185 17186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17187 17188 # First separate the path from the arguments. This will split at the first 17189 # space. 17190 complete="$FOUND_MAKE" 17191 path="${complete%% *}" 17192 tmp="$complete EOL" 17193 arguments="${tmp#* }" 17194 17195 # Input might be given as Windows format, start by converting to 17196 # unix format. 17197 new_path="$path" 17198 17199 windows_path="$new_path" 17200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17201 unix_path=`$CYGPATH -u "$windows_path"` 17202 new_path="$unix_path" 17203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17204 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17205 new_path="$unix_path" 17206 fi 17207 17208 17209 # Now try to locate executable using which 17210 new_path=`$WHICH "$new_path" 2> /dev/null` 17211 17212 if test "x$new_path" = x; then 17213 # Oops. Which didn't find the executable. 17214 # The splitting of arguments from the executable at a space might have been incorrect, 17215 # since paths with space are more likely in Windows. Give it another try with the whole 17216 # argument. 17217 path="$complete" 17218 arguments="EOL" 17219 new_path="$path" 17220 17221 windows_path="$new_path" 17222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17223 unix_path=`$CYGPATH -u "$windows_path"` 17224 new_path="$unix_path" 17225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17226 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17227 new_path="$unix_path" 17228 fi 17229 17230 17231 new_path=`$WHICH "$new_path" 2> /dev/null` 17232 # bat and cmd files are not always considered executable in MSYS causing which 17233 # to not find them 17234 if test "x$new_path" = x \ 17235 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17236 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17237 new_path="$path" 17238 17239 windows_path="$new_path" 17240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17241 unix_path=`$CYGPATH -u "$windows_path"` 17242 new_path="$unix_path" 17243 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17244 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17245 new_path="$unix_path" 17246 fi 17247 17248 fi 17249 17250 if test "x$new_path" = x; then 17251 # It's still not found. Now this is an unrecoverable error. 17252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17253 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17254 has_space=`$ECHO "$complete" | $GREP " "` 17255 if test "x$has_space" != x; then 17256 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17257 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17258 fi 17259 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17260 fi 17261 fi 17262 17263 # Now new_path has a complete unix path to the binary 17264 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17265 # Keep paths in /bin as-is, but remove trailing .exe if any 17266 new_path="${new_path/%.exe/}" 17267 # Do not save /bin paths to all_fixpath_prefixes! 17268 else 17269 # Not in mixed or Windows style, start by that. 17270 new_path=`cmd //c echo $new_path` 17271 17272 input_path="$new_path" 17273 # Check if we need to convert this using DOS-style short mode. If the path 17274 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17275 # take no chances and rewrite it. 17276 # Note: m4 eats our [], so we need to use [ and ] instead. 17277 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17278 if test "x$has_forbidden_chars" != x; then 17279 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17280 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17281 fi 17282 17283 # Output is in $new_path 17284 17285 windows_path="$new_path" 17286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17287 unix_path=`$CYGPATH -u "$windows_path"` 17288 new_path="$unix_path" 17289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17290 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17291 new_path="$unix_path" 17292 fi 17293 17294 # remove trailing .exe if any 17295 new_path="${new_path/%.exe/}" 17296 17297 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17298 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17299 fi 17300 17301 else 17302 # We're on a unix platform. Hooray! :) 17303 # First separate the path from the arguments. This will split at the first 17304 # space. 17305 complete="$FOUND_MAKE" 17306 path="${complete%% *}" 17307 tmp="$complete EOL" 17308 arguments="${tmp#* }" 17309 17310 # Cannot rely on the command "which" here since it doesn't always work. 17311 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17312 if test -z "$is_absolute_path"; then 17313 # Path to executable is not absolute. Find it. 17314 IFS_save="$IFS" 17315 IFS=: 17316 for p in $PATH; do 17317 if test -f "$p/$path" && test -x "$p/$path"; then 17318 new_path="$p/$path" 17319 break 17320 fi 17321 done 17322 IFS="$IFS_save" 17323 else 17324 # This is an absolute path, we can use it without further modifications. 17325 new_path="$path" 17326 fi 17327 17328 if test "x$new_path" = x; then 17329 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17330 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17331 has_space=`$ECHO "$complete" | $GREP " "` 17332 if test "x$has_space" != x; then 17333 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17334 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17335 fi 17336 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17337 fi 17338 fi 17339 17340 # Now join together the path and the arguments once again 17341 if test "x$arguments" != xEOL; then 17342 new_complete="$new_path ${arguments% *}" 17343 else 17344 new_complete="$new_path" 17345 fi 17346 17347 if test "x$complete" != "x$new_complete"; then 17348 FOUND_MAKE="$new_complete" 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17350 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17351 fi 17352 fi 17353 17354 fi 17355 fi 17356 fi 17357 fi 17358 17359 fi 17360 PATH=$OLD_PATH 17361 fi 17362 fi 17363 17364 if test "x$FOUND_MAKE" = x; then 17365 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 17366 fi 17367 fi 17368 17369 MAKE=$FOUND_MAKE 17370 17371 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17372 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17373 17374 17375 # Check if make supports the output sync option and if so, setup using it. 17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 17377 $as_echo_n "checking if make --output-sync is supported... " >&6; } 17378 if $MAKE --version -O > /dev/null 2>&1; then 17379 OUTPUT_SYNC_SUPPORTED=true 17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17381 $as_echo "yes" >&6; } 17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 17383 $as_echo_n "checking for output-sync value... " >&6; } 17384 17385 # Check whether --with-output-sync was given. 17386 if test "${with_output_sync+set}" = set; then : 17387 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 17388 fi 17389 17390 if test "x$OUTPUT_SYNC" = "x"; then 17391 OUTPUT_SYNC=none 17392 fi 17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 17394 $as_echo "$OUTPUT_SYNC" >&6; } 17395 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 17396 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 17397 fi 17398 else 17399 OUTPUT_SYNC_SUPPORTED=false 17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17401 $as_echo "no" >&6; } 17402 fi 17403 17404 17405 17406 17407 17408 17409 # Test if find supports -delete 17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17411 $as_echo_n "checking if find supports -delete... " >&6; } 17412 FIND_DELETE="-delete" 17413 17414 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17415 17416 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17417 17418 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17419 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17420 # No, it does not. 17421 rm $DELETEDIR/TestIfFindSupportsDelete 17422 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 17423 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 17424 FIND_DELETE="-print | xargs rm" 17425 else 17426 FIND_DELETE="-exec rm \{\} \+" 17427 fi 17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17429 $as_echo "no" >&6; } 17430 else 17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17432 $as_echo "yes" >&6; } 17433 fi 17434 rmdir $DELETEDIR 17435 17436 17437 17438 # These tools might not be installed by default, 17439 # need hint on how to install them. 17440 17441 17442 17443 # Publish this variable in the help. 17444 17445 17446 if test "x$UNZIP" = x; then 17447 # The variable is not set by user, try to locate tool using the code snippet 17448 for ac_prog in unzip 17449 do 17450 # Extract the first word of "$ac_prog", so it can be a program name with args. 17451 set dummy $ac_prog; ac_word=$2 17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17453 $as_echo_n "checking for $ac_word... " >&6; } 17454 if ${ac_cv_path_UNZIP+:} false; then : 17455 $as_echo_n "(cached) " >&6 17456 else 17457 case $UNZIP in 17458 [\\/]* | ?:[\\/]*) 17459 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17460 ;; 17461 *) 17462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17463 for as_dir in $PATH 17464 do 17465 IFS=$as_save_IFS 17466 test -z "$as_dir" && as_dir=. 17467 for ac_exec_ext in '' $ac_executable_extensions; do 17468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17469 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17471 break 2 17472 fi 17473 done 17474 done 17475 IFS=$as_save_IFS 17476 17477 ;; 17478 esac 17479 fi 17480 UNZIP=$ac_cv_path_UNZIP 17481 if test -n "$UNZIP"; then 17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17483 $as_echo "$UNZIP" >&6; } 17484 else 17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17486 $as_echo "no" >&6; } 17487 fi 17488 17489 17490 test -n "$UNZIP" && break 17491 done 17492 17493 else 17494 # The variable is set, but is it from the command line or the environment? 17495 17496 # Try to remove the string !UNZIP! from our list. 17497 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17498 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17499 # If it failed, the variable was not from the command line. Ignore it, 17500 # but warn the user (except for BASH, which is always set by the calling BASH). 17501 if test "xUNZIP" != xBASH; then 17502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17503 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17504 fi 17505 # Try to locate tool using the code snippet 17506 for ac_prog in unzip 17507 do 17508 # Extract the first word of "$ac_prog", so it can be a program name with args. 17509 set dummy $ac_prog; ac_word=$2 17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17511 $as_echo_n "checking for $ac_word... " >&6; } 17512 if ${ac_cv_path_UNZIP+:} false; then : 17513 $as_echo_n "(cached) " >&6 17514 else 17515 case $UNZIP in 17516 [\\/]* | ?:[\\/]*) 17517 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17518 ;; 17519 *) 17520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17521 for as_dir in $PATH 17522 do 17523 IFS=$as_save_IFS 17524 test -z "$as_dir" && as_dir=. 17525 for ac_exec_ext in '' $ac_executable_extensions; do 17526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17527 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17529 break 2 17530 fi 17531 done 17532 done 17533 IFS=$as_save_IFS 17534 17535 ;; 17536 esac 17537 fi 17538 UNZIP=$ac_cv_path_UNZIP 17539 if test -n "$UNZIP"; then 17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17541 $as_echo "$UNZIP" >&6; } 17542 else 17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17544 $as_echo "no" >&6; } 17545 fi 17546 17547 17548 test -n "$UNZIP" && break 17549 done 17550 17551 else 17552 # If it succeeded, then it was overridden by the user. We will use it 17553 # for the tool. 17554 17555 # First remove it from the list of overridden variables, so we can test 17556 # for unknown variables in the end. 17557 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17558 17559 # Check if the provided tool contains a complete path. 17560 tool_specified="$UNZIP" 17561 tool_basename="${tool_specified##*/}" 17562 if test "x$tool_basename" = "x$tool_specified"; then 17563 # A command without a complete path is provided, search $PATH. 17564 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17565 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17566 # Extract the first word of "$tool_basename", so it can be a program name with args. 17567 set dummy $tool_basename; ac_word=$2 17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17569 $as_echo_n "checking for $ac_word... " >&6; } 17570 if ${ac_cv_path_UNZIP+:} false; then : 17571 $as_echo_n "(cached) " >&6 17572 else 17573 case $UNZIP in 17574 [\\/]* | ?:[\\/]*) 17575 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17576 ;; 17577 *) 17578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17579 for as_dir in $PATH 17580 do 17581 IFS=$as_save_IFS 17582 test -z "$as_dir" && as_dir=. 17583 for ac_exec_ext in '' $ac_executable_extensions; do 17584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17585 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17587 break 2 17588 fi 17589 done 17590 done 17591 IFS=$as_save_IFS 17592 17593 ;; 17594 esac 17595 fi 17596 UNZIP=$ac_cv_path_UNZIP 17597 if test -n "$UNZIP"; then 17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17599 $as_echo "$UNZIP" >&6; } 17600 else 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17602 $as_echo "no" >&6; } 17603 fi 17604 17605 17606 if test "x$UNZIP" = x; then 17607 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17608 fi 17609 else 17610 # Otherwise we believe it is a complete path. Use it as it is. 17611 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17612 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17614 $as_echo_n "checking for UNZIP... " >&6; } 17615 if test ! -x "$tool_specified"; then 17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17617 $as_echo "not found" >&6; } 17618 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17619 fi 17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17621 $as_echo "$tool_specified" >&6; } 17622 fi 17623 fi 17624 fi 17625 17626 17627 17628 if test "x$UNZIP" = x; then 17629 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17630 fi 17631 17632 17633 17634 17635 17636 # Publish this variable in the help. 17637 17638 17639 if test "x$ZIP" = x; then 17640 # The variable is not set by user, try to locate tool using the code snippet 17641 for ac_prog in zip 17642 do 17643 # Extract the first word of "$ac_prog", so it can be a program name with args. 17644 set dummy $ac_prog; ac_word=$2 17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17646 $as_echo_n "checking for $ac_word... " >&6; } 17647 if ${ac_cv_path_ZIP+:} false; then : 17648 $as_echo_n "(cached) " >&6 17649 else 17650 case $ZIP in 17651 [\\/]* | ?:[\\/]*) 17652 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17653 ;; 17654 *) 17655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17656 for as_dir in $PATH 17657 do 17658 IFS=$as_save_IFS 17659 test -z "$as_dir" && as_dir=. 17660 for ac_exec_ext in '' $ac_executable_extensions; do 17661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17662 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17664 break 2 17665 fi 17666 done 17667 done 17668 IFS=$as_save_IFS 17669 17670 ;; 17671 esac 17672 fi 17673 ZIP=$ac_cv_path_ZIP 17674 if test -n "$ZIP"; then 17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17676 $as_echo "$ZIP" >&6; } 17677 else 17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17679 $as_echo "no" >&6; } 17680 fi 17681 17682 17683 test -n "$ZIP" && break 17684 done 17685 17686 else 17687 # The variable is set, but is it from the command line or the environment? 17688 17689 # Try to remove the string !ZIP! from our list. 17690 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17691 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17692 # If it failed, the variable was not from the command line. Ignore it, 17693 # but warn the user (except for BASH, which is always set by the calling BASH). 17694 if test "xZIP" != xBASH; then 17695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17696 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17697 fi 17698 # Try to locate tool using the code snippet 17699 for ac_prog in zip 17700 do 17701 # Extract the first word of "$ac_prog", so it can be a program name with args. 17702 set dummy $ac_prog; ac_word=$2 17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17704 $as_echo_n "checking for $ac_word... " >&6; } 17705 if ${ac_cv_path_ZIP+:} false; then : 17706 $as_echo_n "(cached) " >&6 17707 else 17708 case $ZIP in 17709 [\\/]* | ?:[\\/]*) 17710 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17711 ;; 17712 *) 17713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17714 for as_dir in $PATH 17715 do 17716 IFS=$as_save_IFS 17717 test -z "$as_dir" && as_dir=. 17718 for ac_exec_ext in '' $ac_executable_extensions; do 17719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17720 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17722 break 2 17723 fi 17724 done 17725 done 17726 IFS=$as_save_IFS 17727 17728 ;; 17729 esac 17730 fi 17731 ZIP=$ac_cv_path_ZIP 17732 if test -n "$ZIP"; then 17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17734 $as_echo "$ZIP" >&6; } 17735 else 17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17737 $as_echo "no" >&6; } 17738 fi 17739 17740 17741 test -n "$ZIP" && break 17742 done 17743 17744 else 17745 # If it succeeded, then it was overridden by the user. We will use it 17746 # for the tool. 17747 17748 # First remove it from the list of overridden variables, so we can test 17749 # for unknown variables in the end. 17750 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17751 17752 # Check if the provided tool contains a complete path. 17753 tool_specified="$ZIP" 17754 tool_basename="${tool_specified##*/}" 17755 if test "x$tool_basename" = "x$tool_specified"; then 17756 # A command without a complete path is provided, search $PATH. 17757 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17758 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17759 # Extract the first word of "$tool_basename", so it can be a program name with args. 17760 set dummy $tool_basename; ac_word=$2 17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17762 $as_echo_n "checking for $ac_word... " >&6; } 17763 if ${ac_cv_path_ZIP+:} false; then : 17764 $as_echo_n "(cached) " >&6 17765 else 17766 case $ZIP in 17767 [\\/]* | ?:[\\/]*) 17768 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17769 ;; 17770 *) 17771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17772 for as_dir in $PATH 17773 do 17774 IFS=$as_save_IFS 17775 test -z "$as_dir" && as_dir=. 17776 for ac_exec_ext in '' $ac_executable_extensions; do 17777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17778 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17780 break 2 17781 fi 17782 done 17783 done 17784 IFS=$as_save_IFS 17785 17786 ;; 17787 esac 17788 fi 17789 ZIP=$ac_cv_path_ZIP 17790 if test -n "$ZIP"; then 17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17792 $as_echo "$ZIP" >&6; } 17793 else 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17795 $as_echo "no" >&6; } 17796 fi 17797 17798 17799 if test "x$ZIP" = x; then 17800 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17801 fi 17802 else 17803 # Otherwise we believe it is a complete path. Use it as it is. 17804 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17805 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17807 $as_echo_n "checking for ZIP... " >&6; } 17808 if test ! -x "$tool_specified"; then 17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17810 $as_echo "not found" >&6; } 17811 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17812 fi 17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17814 $as_echo "$tool_specified" >&6; } 17815 fi 17816 fi 17817 fi 17818 17819 17820 17821 if test "x$ZIP" = x; then 17822 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17823 fi 17824 17825 17826 17827 # Non-required basic tools 17828 17829 17830 17831 # Publish this variable in the help. 17832 17833 17834 if test "x$LDD" = x; then 17835 # The variable is not set by user, try to locate tool using the code snippet 17836 for ac_prog in ldd 17837 do 17838 # Extract the first word of "$ac_prog", so it can be a program name with args. 17839 set dummy $ac_prog; ac_word=$2 17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17841 $as_echo_n "checking for $ac_word... " >&6; } 17842 if ${ac_cv_path_LDD+:} false; then : 17843 $as_echo_n "(cached) " >&6 17844 else 17845 case $LDD in 17846 [\\/]* | ?:[\\/]*) 17847 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17848 ;; 17849 *) 17850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17851 for as_dir in $PATH 17852 do 17853 IFS=$as_save_IFS 17854 test -z "$as_dir" && as_dir=. 17855 for ac_exec_ext in '' $ac_executable_extensions; do 17856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17857 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17859 break 2 17860 fi 17861 done 17862 done 17863 IFS=$as_save_IFS 17864 17865 ;; 17866 esac 17867 fi 17868 LDD=$ac_cv_path_LDD 17869 if test -n "$LDD"; then 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17871 $as_echo "$LDD" >&6; } 17872 else 17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17874 $as_echo "no" >&6; } 17875 fi 17876 17877 17878 test -n "$LDD" && break 17879 done 17880 17881 else 17882 # The variable is set, but is it from the command line or the environment? 17883 17884 # Try to remove the string !LDD! from our list. 17885 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17886 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17887 # If it failed, the variable was not from the command line. Ignore it, 17888 # but warn the user (except for BASH, which is always set by the calling BASH). 17889 if test "xLDD" != xBASH; then 17890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17891 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17892 fi 17893 # Try to locate tool using the code snippet 17894 for ac_prog in ldd 17895 do 17896 # Extract the first word of "$ac_prog", so it can be a program name with args. 17897 set dummy $ac_prog; ac_word=$2 17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17899 $as_echo_n "checking for $ac_word... " >&6; } 17900 if ${ac_cv_path_LDD+:} false; then : 17901 $as_echo_n "(cached) " >&6 17902 else 17903 case $LDD in 17904 [\\/]* | ?:[\\/]*) 17905 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17906 ;; 17907 *) 17908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17909 for as_dir in $PATH 17910 do 17911 IFS=$as_save_IFS 17912 test -z "$as_dir" && as_dir=. 17913 for ac_exec_ext in '' $ac_executable_extensions; do 17914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17915 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17917 break 2 17918 fi 17919 done 17920 done 17921 IFS=$as_save_IFS 17922 17923 ;; 17924 esac 17925 fi 17926 LDD=$ac_cv_path_LDD 17927 if test -n "$LDD"; then 17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17929 $as_echo "$LDD" >&6; } 17930 else 17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17932 $as_echo "no" >&6; } 17933 fi 17934 17935 17936 test -n "$LDD" && break 17937 done 17938 17939 else 17940 # If it succeeded, then it was overridden by the user. We will use it 17941 # for the tool. 17942 17943 # First remove it from the list of overridden variables, so we can test 17944 # for unknown variables in the end. 17945 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17946 17947 # Check if the provided tool contains a complete path. 17948 tool_specified="$LDD" 17949 tool_basename="${tool_specified##*/}" 17950 if test "x$tool_basename" = "x$tool_specified"; then 17951 # A command without a complete path is provided, search $PATH. 17952 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17953 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17954 # Extract the first word of "$tool_basename", so it can be a program name with args. 17955 set dummy $tool_basename; ac_word=$2 17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17957 $as_echo_n "checking for $ac_word... " >&6; } 17958 if ${ac_cv_path_LDD+:} false; then : 17959 $as_echo_n "(cached) " >&6 17960 else 17961 case $LDD in 17962 [\\/]* | ?:[\\/]*) 17963 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17964 ;; 17965 *) 17966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17967 for as_dir in $PATH 17968 do 17969 IFS=$as_save_IFS 17970 test -z "$as_dir" && as_dir=. 17971 for ac_exec_ext in '' $ac_executable_extensions; do 17972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17973 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17975 break 2 17976 fi 17977 done 17978 done 17979 IFS=$as_save_IFS 17980 17981 ;; 17982 esac 17983 fi 17984 LDD=$ac_cv_path_LDD 17985 if test -n "$LDD"; then 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17987 $as_echo "$LDD" >&6; } 17988 else 17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17990 $as_echo "no" >&6; } 17991 fi 17992 17993 17994 if test "x$LDD" = x; then 17995 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17996 fi 17997 else 17998 # Otherwise we believe it is a complete path. Use it as it is. 17999 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 18000 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 18002 $as_echo_n "checking for LDD... " >&6; } 18003 if test ! -x "$tool_specified"; then 18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18005 $as_echo "not found" >&6; } 18006 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 18007 fi 18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18009 $as_echo "$tool_specified" >&6; } 18010 fi 18011 fi 18012 fi 18013 18014 18015 if test "x$LDD" = "x"; then 18016 # List shared lib dependencies is used for 18017 # debug output and checking for forbidden dependencies. 18018 # We can build without it. 18019 LDD="true" 18020 fi 18021 18022 18023 # Publish this variable in the help. 18024 18025 18026 if test "x$OTOOL" = x; then 18027 # The variable is not set by user, try to locate tool using the code snippet 18028 for ac_prog in otool 18029 do 18030 # Extract the first word of "$ac_prog", so it can be a program name with args. 18031 set dummy $ac_prog; ac_word=$2 18032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18033 $as_echo_n "checking for $ac_word... " >&6; } 18034 if ${ac_cv_path_OTOOL+:} false; then : 18035 $as_echo_n "(cached) " >&6 18036 else 18037 case $OTOOL in 18038 [\\/]* | ?:[\\/]*) 18039 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18040 ;; 18041 *) 18042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18043 for as_dir in $PATH 18044 do 18045 IFS=$as_save_IFS 18046 test -z "$as_dir" && as_dir=. 18047 for ac_exec_ext in '' $ac_executable_extensions; do 18048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18049 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18051 break 2 18052 fi 18053 done 18054 done 18055 IFS=$as_save_IFS 18056 18057 ;; 18058 esac 18059 fi 18060 OTOOL=$ac_cv_path_OTOOL 18061 if test -n "$OTOOL"; then 18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18063 $as_echo "$OTOOL" >&6; } 18064 else 18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18066 $as_echo "no" >&6; } 18067 fi 18068 18069 18070 test -n "$OTOOL" && break 18071 done 18072 18073 else 18074 # The variable is set, but is it from the command line or the environment? 18075 18076 # Try to remove the string !OTOOL! from our list. 18077 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 18078 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18079 # If it failed, the variable was not from the command line. Ignore it, 18080 # but warn the user (except for BASH, which is always set by the calling BASH). 18081 if test "xOTOOL" != xBASH; then 18082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 18083 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 18084 fi 18085 # Try to locate tool using the code snippet 18086 for ac_prog in otool 18087 do 18088 # Extract the first word of "$ac_prog", so it can be a program name with args. 18089 set dummy $ac_prog; ac_word=$2 18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18091 $as_echo_n "checking for $ac_word... " >&6; } 18092 if ${ac_cv_path_OTOOL+:} false; then : 18093 $as_echo_n "(cached) " >&6 18094 else 18095 case $OTOOL in 18096 [\\/]* | ?:[\\/]*) 18097 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18098 ;; 18099 *) 18100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18101 for as_dir in $PATH 18102 do 18103 IFS=$as_save_IFS 18104 test -z "$as_dir" && as_dir=. 18105 for ac_exec_ext in '' $ac_executable_extensions; do 18106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18107 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18109 break 2 18110 fi 18111 done 18112 done 18113 IFS=$as_save_IFS 18114 18115 ;; 18116 esac 18117 fi 18118 OTOOL=$ac_cv_path_OTOOL 18119 if test -n "$OTOOL"; then 18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18121 $as_echo "$OTOOL" >&6; } 18122 else 18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18124 $as_echo "no" >&6; } 18125 fi 18126 18127 18128 test -n "$OTOOL" && break 18129 done 18130 18131 else 18132 # If it succeeded, then it was overridden by the user. We will use it 18133 # for the tool. 18134 18135 # First remove it from the list of overridden variables, so we can test 18136 # for unknown variables in the end. 18137 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18138 18139 # Check if the provided tool contains a complete path. 18140 tool_specified="$OTOOL" 18141 tool_basename="${tool_specified##*/}" 18142 if test "x$tool_basename" = "x$tool_specified"; then 18143 # A command without a complete path is provided, search $PATH. 18144 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 18145 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 18146 # Extract the first word of "$tool_basename", so it can be a program name with args. 18147 set dummy $tool_basename; ac_word=$2 18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18149 $as_echo_n "checking for $ac_word... " >&6; } 18150 if ${ac_cv_path_OTOOL+:} false; then : 18151 $as_echo_n "(cached) " >&6 18152 else 18153 case $OTOOL in 18154 [\\/]* | ?:[\\/]*) 18155 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18156 ;; 18157 *) 18158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18159 for as_dir in $PATH 18160 do 18161 IFS=$as_save_IFS 18162 test -z "$as_dir" && as_dir=. 18163 for ac_exec_ext in '' $ac_executable_extensions; do 18164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18165 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18167 break 2 18168 fi 18169 done 18170 done 18171 IFS=$as_save_IFS 18172 18173 ;; 18174 esac 18175 fi 18176 OTOOL=$ac_cv_path_OTOOL 18177 if test -n "$OTOOL"; then 18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18179 $as_echo "$OTOOL" >&6; } 18180 else 18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18182 $as_echo "no" >&6; } 18183 fi 18184 18185 18186 if test "x$OTOOL" = x; then 18187 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18188 fi 18189 else 18190 # Otherwise we believe it is a complete path. Use it as it is. 18191 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 18192 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 18194 $as_echo_n "checking for OTOOL... " >&6; } 18195 if test ! -x "$tool_specified"; then 18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18197 $as_echo "not found" >&6; } 18198 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 18199 fi 18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18201 $as_echo "$tool_specified" >&6; } 18202 fi 18203 fi 18204 fi 18205 18206 18207 if test "x$OTOOL" = "x"; then 18208 OTOOL="true" 18209 fi 18210 18211 18212 # Publish this variable in the help. 18213 18214 18215 if test "x$READELF" = x; then 18216 # The variable is not set by user, try to locate tool using the code snippet 18217 for ac_prog in greadelf readelf 18218 do 18219 # Extract the first word of "$ac_prog", so it can be a program name with args. 18220 set dummy $ac_prog; ac_word=$2 18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18222 $as_echo_n "checking for $ac_word... " >&6; } 18223 if ${ac_cv_path_READELF+:} false; then : 18224 $as_echo_n "(cached) " >&6 18225 else 18226 case $READELF in 18227 [\\/]* | ?:[\\/]*) 18228 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18229 ;; 18230 *) 18231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18232 for as_dir in $PATH 18233 do 18234 IFS=$as_save_IFS 18235 test -z "$as_dir" && as_dir=. 18236 for ac_exec_ext in '' $ac_executable_extensions; do 18237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18238 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18240 break 2 18241 fi 18242 done 18243 done 18244 IFS=$as_save_IFS 18245 18246 ;; 18247 esac 18248 fi 18249 READELF=$ac_cv_path_READELF 18250 if test -n "$READELF"; then 18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18252 $as_echo "$READELF" >&6; } 18253 else 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18255 $as_echo "no" >&6; } 18256 fi 18257 18258 18259 test -n "$READELF" && break 18260 done 18261 18262 else 18263 # The variable is set, but is it from the command line or the environment? 18264 18265 # Try to remove the string !READELF! from our list. 18266 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 18267 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18268 # If it failed, the variable was not from the command line. Ignore it, 18269 # but warn the user (except for BASH, which is always set by the calling BASH). 18270 if test "xREADELF" != xBASH; then 18271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 18272 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 18273 fi 18274 # Try to locate tool using the code snippet 18275 for ac_prog in greadelf readelf 18276 do 18277 # Extract the first word of "$ac_prog", so it can be a program name with args. 18278 set dummy $ac_prog; ac_word=$2 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18280 $as_echo_n "checking for $ac_word... " >&6; } 18281 if ${ac_cv_path_READELF+:} false; then : 18282 $as_echo_n "(cached) " >&6 18283 else 18284 case $READELF in 18285 [\\/]* | ?:[\\/]*) 18286 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18287 ;; 18288 *) 18289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18290 for as_dir in $PATH 18291 do 18292 IFS=$as_save_IFS 18293 test -z "$as_dir" && as_dir=. 18294 for ac_exec_ext in '' $ac_executable_extensions; do 18295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18296 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18298 break 2 18299 fi 18300 done 18301 done 18302 IFS=$as_save_IFS 18303 18304 ;; 18305 esac 18306 fi 18307 READELF=$ac_cv_path_READELF 18308 if test -n "$READELF"; then 18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18310 $as_echo "$READELF" >&6; } 18311 else 18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18313 $as_echo "no" >&6; } 18314 fi 18315 18316 18317 test -n "$READELF" && break 18318 done 18319 18320 else 18321 # If it succeeded, then it was overridden by the user. We will use it 18322 # for the tool. 18323 18324 # First remove it from the list of overridden variables, so we can test 18325 # for unknown variables in the end. 18326 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18327 18328 # Check if the provided tool contains a complete path. 18329 tool_specified="$READELF" 18330 tool_basename="${tool_specified##*/}" 18331 if test "x$tool_basename" = "x$tool_specified"; then 18332 # A command without a complete path is provided, search $PATH. 18333 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 18334 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 18335 # Extract the first word of "$tool_basename", so it can be a program name with args. 18336 set dummy $tool_basename; ac_word=$2 18337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18338 $as_echo_n "checking for $ac_word... " >&6; } 18339 if ${ac_cv_path_READELF+:} false; then : 18340 $as_echo_n "(cached) " >&6 18341 else 18342 case $READELF in 18343 [\\/]* | ?:[\\/]*) 18344 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18345 ;; 18346 *) 18347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18348 for as_dir in $PATH 18349 do 18350 IFS=$as_save_IFS 18351 test -z "$as_dir" && as_dir=. 18352 for ac_exec_ext in '' $ac_executable_extensions; do 18353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18354 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18356 break 2 18357 fi 18358 done 18359 done 18360 IFS=$as_save_IFS 18361 18362 ;; 18363 esac 18364 fi 18365 READELF=$ac_cv_path_READELF 18366 if test -n "$READELF"; then 18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18368 $as_echo "$READELF" >&6; } 18369 else 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18371 $as_echo "no" >&6; } 18372 fi 18373 18374 18375 if test "x$READELF" = x; then 18376 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18377 fi 18378 else 18379 # Otherwise we believe it is a complete path. Use it as it is. 18380 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18381 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18383 $as_echo_n "checking for READELF... " >&6; } 18384 if test ! -x "$tool_specified"; then 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18386 $as_echo "not found" >&6; } 18387 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18388 fi 18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18390 $as_echo "$tool_specified" >&6; } 18391 fi 18392 fi 18393 fi 18394 18395 18396 18397 18398 # Publish this variable in the help. 18399 18400 18401 if test "x$HG" = x; then 18402 # The variable is not set by user, try to locate tool using the code snippet 18403 for ac_prog in hg 18404 do 18405 # Extract the first word of "$ac_prog", so it can be a program name with args. 18406 set dummy $ac_prog; ac_word=$2 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18408 $as_echo_n "checking for $ac_word... " >&6; } 18409 if ${ac_cv_path_HG+:} false; then : 18410 $as_echo_n "(cached) " >&6 18411 else 18412 case $HG in 18413 [\\/]* | ?:[\\/]*) 18414 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18415 ;; 18416 *) 18417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18418 for as_dir in $PATH 18419 do 18420 IFS=$as_save_IFS 18421 test -z "$as_dir" && as_dir=. 18422 for ac_exec_ext in '' $ac_executable_extensions; do 18423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18424 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18426 break 2 18427 fi 18428 done 18429 done 18430 IFS=$as_save_IFS 18431 18432 ;; 18433 esac 18434 fi 18435 HG=$ac_cv_path_HG 18436 if test -n "$HG"; then 18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18438 $as_echo "$HG" >&6; } 18439 else 18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18441 $as_echo "no" >&6; } 18442 fi 18443 18444 18445 test -n "$HG" && break 18446 done 18447 18448 else 18449 # The variable is set, but is it from the command line or the environment? 18450 18451 # Try to remove the string !HG! from our list. 18452 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18453 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18454 # If it failed, the variable was not from the command line. Ignore it, 18455 # but warn the user (except for BASH, which is always set by the calling BASH). 18456 if test "xHG" != xBASH; then 18457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18458 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18459 fi 18460 # Try to locate tool using the code snippet 18461 for ac_prog in hg 18462 do 18463 # Extract the first word of "$ac_prog", so it can be a program name with args. 18464 set dummy $ac_prog; ac_word=$2 18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18466 $as_echo_n "checking for $ac_word... " >&6; } 18467 if ${ac_cv_path_HG+:} false; then : 18468 $as_echo_n "(cached) " >&6 18469 else 18470 case $HG in 18471 [\\/]* | ?:[\\/]*) 18472 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18473 ;; 18474 *) 18475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18476 for as_dir in $PATH 18477 do 18478 IFS=$as_save_IFS 18479 test -z "$as_dir" && as_dir=. 18480 for ac_exec_ext in '' $ac_executable_extensions; do 18481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18482 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18484 break 2 18485 fi 18486 done 18487 done 18488 IFS=$as_save_IFS 18489 18490 ;; 18491 esac 18492 fi 18493 HG=$ac_cv_path_HG 18494 if test -n "$HG"; then 18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18496 $as_echo "$HG" >&6; } 18497 else 18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18499 $as_echo "no" >&6; } 18500 fi 18501 18502 18503 test -n "$HG" && break 18504 done 18505 18506 else 18507 # If it succeeded, then it was overridden by the user. We will use it 18508 # for the tool. 18509 18510 # First remove it from the list of overridden variables, so we can test 18511 # for unknown variables in the end. 18512 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18513 18514 # Check if the provided tool contains a complete path. 18515 tool_specified="$HG" 18516 tool_basename="${tool_specified##*/}" 18517 if test "x$tool_basename" = "x$tool_specified"; then 18518 # A command without a complete path is provided, search $PATH. 18519 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18520 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18521 # Extract the first word of "$tool_basename", so it can be a program name with args. 18522 set dummy $tool_basename; ac_word=$2 18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18524 $as_echo_n "checking for $ac_word... " >&6; } 18525 if ${ac_cv_path_HG+:} false; then : 18526 $as_echo_n "(cached) " >&6 18527 else 18528 case $HG in 18529 [\\/]* | ?:[\\/]*) 18530 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18531 ;; 18532 *) 18533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18534 for as_dir in $PATH 18535 do 18536 IFS=$as_save_IFS 18537 test -z "$as_dir" && as_dir=. 18538 for ac_exec_ext in '' $ac_executable_extensions; do 18539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18540 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18542 break 2 18543 fi 18544 done 18545 done 18546 IFS=$as_save_IFS 18547 18548 ;; 18549 esac 18550 fi 18551 HG=$ac_cv_path_HG 18552 if test -n "$HG"; then 18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18554 $as_echo "$HG" >&6; } 18555 else 18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18557 $as_echo "no" >&6; } 18558 fi 18559 18560 18561 if test "x$HG" = x; then 18562 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18563 fi 18564 else 18565 # Otherwise we believe it is a complete path. Use it as it is. 18566 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18567 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18569 $as_echo_n "checking for HG... " >&6; } 18570 if test ! -x "$tool_specified"; then 18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18572 $as_echo "not found" >&6; } 18573 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18574 fi 18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18576 $as_echo "$tool_specified" >&6; } 18577 fi 18578 fi 18579 fi 18580 18581 18582 18583 18584 # Publish this variable in the help. 18585 18586 18587 if test "x$STAT" = x; then 18588 # The variable is not set by user, try to locate tool using the code snippet 18589 for ac_prog in stat 18590 do 18591 # Extract the first word of "$ac_prog", so it can be a program name with args. 18592 set dummy $ac_prog; ac_word=$2 18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18594 $as_echo_n "checking for $ac_word... " >&6; } 18595 if ${ac_cv_path_STAT+:} false; then : 18596 $as_echo_n "(cached) " >&6 18597 else 18598 case $STAT in 18599 [\\/]* | ?:[\\/]*) 18600 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18601 ;; 18602 *) 18603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18604 for as_dir in $PATH 18605 do 18606 IFS=$as_save_IFS 18607 test -z "$as_dir" && as_dir=. 18608 for ac_exec_ext in '' $ac_executable_extensions; do 18609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18610 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18612 break 2 18613 fi 18614 done 18615 done 18616 IFS=$as_save_IFS 18617 18618 ;; 18619 esac 18620 fi 18621 STAT=$ac_cv_path_STAT 18622 if test -n "$STAT"; then 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18624 $as_echo "$STAT" >&6; } 18625 else 18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18627 $as_echo "no" >&6; } 18628 fi 18629 18630 18631 test -n "$STAT" && break 18632 done 18633 18634 else 18635 # The variable is set, but is it from the command line or the environment? 18636 18637 # Try to remove the string !STAT! from our list. 18638 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18639 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18640 # If it failed, the variable was not from the command line. Ignore it, 18641 # but warn the user (except for BASH, which is always set by the calling BASH). 18642 if test "xSTAT" != xBASH; then 18643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18644 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18645 fi 18646 # Try to locate tool using the code snippet 18647 for ac_prog in stat 18648 do 18649 # Extract the first word of "$ac_prog", so it can be a program name with args. 18650 set dummy $ac_prog; ac_word=$2 18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18652 $as_echo_n "checking for $ac_word... " >&6; } 18653 if ${ac_cv_path_STAT+:} false; then : 18654 $as_echo_n "(cached) " >&6 18655 else 18656 case $STAT in 18657 [\\/]* | ?:[\\/]*) 18658 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18659 ;; 18660 *) 18661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18662 for as_dir in $PATH 18663 do 18664 IFS=$as_save_IFS 18665 test -z "$as_dir" && as_dir=. 18666 for ac_exec_ext in '' $ac_executable_extensions; do 18667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18668 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18670 break 2 18671 fi 18672 done 18673 done 18674 IFS=$as_save_IFS 18675 18676 ;; 18677 esac 18678 fi 18679 STAT=$ac_cv_path_STAT 18680 if test -n "$STAT"; then 18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18682 $as_echo "$STAT" >&6; } 18683 else 18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18685 $as_echo "no" >&6; } 18686 fi 18687 18688 18689 test -n "$STAT" && break 18690 done 18691 18692 else 18693 # If it succeeded, then it was overridden by the user. We will use it 18694 # for the tool. 18695 18696 # First remove it from the list of overridden variables, so we can test 18697 # for unknown variables in the end. 18698 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18699 18700 # Check if the provided tool contains a complete path. 18701 tool_specified="$STAT" 18702 tool_basename="${tool_specified##*/}" 18703 if test "x$tool_basename" = "x$tool_specified"; then 18704 # A command without a complete path is provided, search $PATH. 18705 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18706 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18707 # Extract the first word of "$tool_basename", so it can be a program name with args. 18708 set dummy $tool_basename; ac_word=$2 18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18710 $as_echo_n "checking for $ac_word... " >&6; } 18711 if ${ac_cv_path_STAT+:} false; then : 18712 $as_echo_n "(cached) " >&6 18713 else 18714 case $STAT in 18715 [\\/]* | ?:[\\/]*) 18716 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18717 ;; 18718 *) 18719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18720 for as_dir in $PATH 18721 do 18722 IFS=$as_save_IFS 18723 test -z "$as_dir" && as_dir=. 18724 for ac_exec_ext in '' $ac_executable_extensions; do 18725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18726 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18728 break 2 18729 fi 18730 done 18731 done 18732 IFS=$as_save_IFS 18733 18734 ;; 18735 esac 18736 fi 18737 STAT=$ac_cv_path_STAT 18738 if test -n "$STAT"; then 18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18740 $as_echo "$STAT" >&6; } 18741 else 18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18743 $as_echo "no" >&6; } 18744 fi 18745 18746 18747 if test "x$STAT" = x; then 18748 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18749 fi 18750 else 18751 # Otherwise we believe it is a complete path. Use it as it is. 18752 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18753 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18755 $as_echo_n "checking for STAT... " >&6; } 18756 if test ! -x "$tool_specified"; then 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18758 $as_echo "not found" >&6; } 18759 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18760 fi 18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18762 $as_echo "$tool_specified" >&6; } 18763 fi 18764 fi 18765 fi 18766 18767 18768 18769 18770 # Publish this variable in the help. 18771 18772 18773 if test "x$TIME" = x; then 18774 # The variable is not set by user, try to locate tool using the code snippet 18775 for ac_prog in time 18776 do 18777 # Extract the first word of "$ac_prog", so it can be a program name with args. 18778 set dummy $ac_prog; ac_word=$2 18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18780 $as_echo_n "checking for $ac_word... " >&6; } 18781 if ${ac_cv_path_TIME+:} false; then : 18782 $as_echo_n "(cached) " >&6 18783 else 18784 case $TIME in 18785 [\\/]* | ?:[\\/]*) 18786 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18787 ;; 18788 *) 18789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18790 for as_dir in $PATH 18791 do 18792 IFS=$as_save_IFS 18793 test -z "$as_dir" && as_dir=. 18794 for ac_exec_ext in '' $ac_executable_extensions; do 18795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18796 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18798 break 2 18799 fi 18800 done 18801 done 18802 IFS=$as_save_IFS 18803 18804 ;; 18805 esac 18806 fi 18807 TIME=$ac_cv_path_TIME 18808 if test -n "$TIME"; then 18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18810 $as_echo "$TIME" >&6; } 18811 else 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18813 $as_echo "no" >&6; } 18814 fi 18815 18816 18817 test -n "$TIME" && break 18818 done 18819 18820 else 18821 # The variable is set, but is it from the command line or the environment? 18822 18823 # Try to remove the string !TIME! from our list. 18824 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18825 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18826 # If it failed, the variable was not from the command line. Ignore it, 18827 # but warn the user (except for BASH, which is always set by the calling BASH). 18828 if test "xTIME" != xBASH; then 18829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18830 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18831 fi 18832 # Try to locate tool using the code snippet 18833 for ac_prog in time 18834 do 18835 # Extract the first word of "$ac_prog", so it can be a program name with args. 18836 set dummy $ac_prog; ac_word=$2 18837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18838 $as_echo_n "checking for $ac_word... " >&6; } 18839 if ${ac_cv_path_TIME+:} false; then : 18840 $as_echo_n "(cached) " >&6 18841 else 18842 case $TIME in 18843 [\\/]* | ?:[\\/]*) 18844 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18845 ;; 18846 *) 18847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18848 for as_dir in $PATH 18849 do 18850 IFS=$as_save_IFS 18851 test -z "$as_dir" && as_dir=. 18852 for ac_exec_ext in '' $ac_executable_extensions; do 18853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18854 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18856 break 2 18857 fi 18858 done 18859 done 18860 IFS=$as_save_IFS 18861 18862 ;; 18863 esac 18864 fi 18865 TIME=$ac_cv_path_TIME 18866 if test -n "$TIME"; then 18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18868 $as_echo "$TIME" >&6; } 18869 else 18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18871 $as_echo "no" >&6; } 18872 fi 18873 18874 18875 test -n "$TIME" && break 18876 done 18877 18878 else 18879 # If it succeeded, then it was overridden by the user. We will use it 18880 # for the tool. 18881 18882 # First remove it from the list of overridden variables, so we can test 18883 # for unknown variables in the end. 18884 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18885 18886 # Check if the provided tool contains a complete path. 18887 tool_specified="$TIME" 18888 tool_basename="${tool_specified##*/}" 18889 if test "x$tool_basename" = "x$tool_specified"; then 18890 # A command without a complete path is provided, search $PATH. 18891 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18892 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18893 # Extract the first word of "$tool_basename", so it can be a program name with args. 18894 set dummy $tool_basename; ac_word=$2 18895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18896 $as_echo_n "checking for $ac_word... " >&6; } 18897 if ${ac_cv_path_TIME+:} false; then : 18898 $as_echo_n "(cached) " >&6 18899 else 18900 case $TIME in 18901 [\\/]* | ?:[\\/]*) 18902 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18903 ;; 18904 *) 18905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18906 for as_dir in $PATH 18907 do 18908 IFS=$as_save_IFS 18909 test -z "$as_dir" && as_dir=. 18910 for ac_exec_ext in '' $ac_executable_extensions; do 18911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18912 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18914 break 2 18915 fi 18916 done 18917 done 18918 IFS=$as_save_IFS 18919 18920 ;; 18921 esac 18922 fi 18923 TIME=$ac_cv_path_TIME 18924 if test -n "$TIME"; then 18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18926 $as_echo "$TIME" >&6; } 18927 else 18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18929 $as_echo "no" >&6; } 18930 fi 18931 18932 18933 if test "x$TIME" = x; then 18934 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18935 fi 18936 else 18937 # Otherwise we believe it is a complete path. Use it as it is. 18938 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18939 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18941 $as_echo_n "checking for TIME... " >&6; } 18942 if test ! -x "$tool_specified"; then 18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18944 $as_echo "not found" >&6; } 18945 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18946 fi 18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18948 $as_echo "$tool_specified" >&6; } 18949 fi 18950 fi 18951 fi 18952 18953 18954 # Check if it's GNU time 18955 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18956 if test "x$IS_GNU_TIME" != x; then 18957 IS_GNU_TIME=yes 18958 else 18959 IS_GNU_TIME=no 18960 fi 18961 18962 18963 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18964 18965 18966 18967 # Publish this variable in the help. 18968 18969 18970 if test "x$DSYMUTIL" = x; then 18971 # The variable is not set by user, try to locate tool using the code snippet 18972 for ac_prog in dsymutil 18973 do 18974 # Extract the first word of "$ac_prog", so it can be a program name with args. 18975 set dummy $ac_prog; ac_word=$2 18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18977 $as_echo_n "checking for $ac_word... " >&6; } 18978 if ${ac_cv_path_DSYMUTIL+:} false; then : 18979 $as_echo_n "(cached) " >&6 18980 else 18981 case $DSYMUTIL in 18982 [\\/]* | ?:[\\/]*) 18983 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18984 ;; 18985 *) 18986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18987 for as_dir in $PATH 18988 do 18989 IFS=$as_save_IFS 18990 test -z "$as_dir" && as_dir=. 18991 for ac_exec_ext in '' $ac_executable_extensions; do 18992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18993 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18995 break 2 18996 fi 18997 done 18998 done 18999 IFS=$as_save_IFS 19000 19001 ;; 19002 esac 19003 fi 19004 DSYMUTIL=$ac_cv_path_DSYMUTIL 19005 if test -n "$DSYMUTIL"; then 19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19007 $as_echo "$DSYMUTIL" >&6; } 19008 else 19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19010 $as_echo "no" >&6; } 19011 fi 19012 19013 19014 test -n "$DSYMUTIL" && break 19015 done 19016 19017 else 19018 # The variable is set, but is it from the command line or the environment? 19019 19020 # Try to remove the string !DSYMUTIL! from our list. 19021 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 19022 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19023 # If it failed, the variable was not from the command line. Ignore it, 19024 # but warn the user (except for BASH, which is always set by the calling BASH). 19025 if test "xDSYMUTIL" != xBASH; then 19026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 19027 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 19028 fi 19029 # Try to locate tool using the code snippet 19030 for ac_prog in dsymutil 19031 do 19032 # Extract the first word of "$ac_prog", so it can be a program name with args. 19033 set dummy $ac_prog; ac_word=$2 19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19035 $as_echo_n "checking for $ac_word... " >&6; } 19036 if ${ac_cv_path_DSYMUTIL+:} false; then : 19037 $as_echo_n "(cached) " >&6 19038 else 19039 case $DSYMUTIL in 19040 [\\/]* | ?:[\\/]*) 19041 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19042 ;; 19043 *) 19044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19045 for as_dir in $PATH 19046 do 19047 IFS=$as_save_IFS 19048 test -z "$as_dir" && as_dir=. 19049 for ac_exec_ext in '' $ac_executable_extensions; do 19050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19051 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19053 break 2 19054 fi 19055 done 19056 done 19057 IFS=$as_save_IFS 19058 19059 ;; 19060 esac 19061 fi 19062 DSYMUTIL=$ac_cv_path_DSYMUTIL 19063 if test -n "$DSYMUTIL"; then 19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19065 $as_echo "$DSYMUTIL" >&6; } 19066 else 19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19068 $as_echo "no" >&6; } 19069 fi 19070 19071 19072 test -n "$DSYMUTIL" && break 19073 done 19074 19075 else 19076 # If it succeeded, then it was overridden by the user. We will use it 19077 # for the tool. 19078 19079 # First remove it from the list of overridden variables, so we can test 19080 # for unknown variables in the end. 19081 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19082 19083 # Check if the provided tool contains a complete path. 19084 tool_specified="$DSYMUTIL" 19085 tool_basename="${tool_specified##*/}" 19086 if test "x$tool_basename" = "x$tool_specified"; then 19087 # A command without a complete path is provided, search $PATH. 19088 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 19089 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 19090 # Extract the first word of "$tool_basename", so it can be a program name with args. 19091 set dummy $tool_basename; ac_word=$2 19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19093 $as_echo_n "checking for $ac_word... " >&6; } 19094 if ${ac_cv_path_DSYMUTIL+:} false; then : 19095 $as_echo_n "(cached) " >&6 19096 else 19097 case $DSYMUTIL in 19098 [\\/]* | ?:[\\/]*) 19099 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19100 ;; 19101 *) 19102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19103 for as_dir in $PATH 19104 do 19105 IFS=$as_save_IFS 19106 test -z "$as_dir" && as_dir=. 19107 for ac_exec_ext in '' $ac_executable_extensions; do 19108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19109 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19111 break 2 19112 fi 19113 done 19114 done 19115 IFS=$as_save_IFS 19116 19117 ;; 19118 esac 19119 fi 19120 DSYMUTIL=$ac_cv_path_DSYMUTIL 19121 if test -n "$DSYMUTIL"; then 19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19123 $as_echo "$DSYMUTIL" >&6; } 19124 else 19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19126 $as_echo "no" >&6; } 19127 fi 19128 19129 19130 if test "x$DSYMUTIL" = x; then 19131 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19132 fi 19133 else 19134 # Otherwise we believe it is a complete path. Use it as it is. 19135 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 19136 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 19137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 19138 $as_echo_n "checking for DSYMUTIL... " >&6; } 19139 if test ! -x "$tool_specified"; then 19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19141 $as_echo "not found" >&6; } 19142 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 19143 fi 19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19145 $as_echo "$tool_specified" >&6; } 19146 fi 19147 fi 19148 fi 19149 19150 19151 19152 if test "x$DSYMUTIL" = x; then 19153 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19154 fi 19155 19156 19157 19158 19159 19160 # Publish this variable in the help. 19161 19162 19163 if test "x$XATTR" = x; then 19164 # The variable is not set by user, try to locate tool using the code snippet 19165 for ac_prog in xattr 19166 do 19167 # Extract the first word of "$ac_prog", so it can be a program name with args. 19168 set dummy $ac_prog; ac_word=$2 19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19170 $as_echo_n "checking for $ac_word... " >&6; } 19171 if ${ac_cv_path_XATTR+:} false; then : 19172 $as_echo_n "(cached) " >&6 19173 else 19174 case $XATTR in 19175 [\\/]* | ?:[\\/]*) 19176 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19177 ;; 19178 *) 19179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19180 for as_dir in $PATH 19181 do 19182 IFS=$as_save_IFS 19183 test -z "$as_dir" && as_dir=. 19184 for ac_exec_ext in '' $ac_executable_extensions; do 19185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19186 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19188 break 2 19189 fi 19190 done 19191 done 19192 IFS=$as_save_IFS 19193 19194 ;; 19195 esac 19196 fi 19197 XATTR=$ac_cv_path_XATTR 19198 if test -n "$XATTR"; then 19199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19200 $as_echo "$XATTR" >&6; } 19201 else 19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19203 $as_echo "no" >&6; } 19204 fi 19205 19206 19207 test -n "$XATTR" && break 19208 done 19209 19210 else 19211 # The variable is set, but is it from the command line or the environment? 19212 19213 # Try to remove the string !XATTR! from our list. 19214 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19215 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19216 # If it failed, the variable was not from the command line. Ignore it, 19217 # but warn the user (except for BASH, which is always set by the calling BASH). 19218 if test "xXATTR" != xBASH; then 19219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19220 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19221 fi 19222 # Try to locate tool using the code snippet 19223 for ac_prog in xattr 19224 do 19225 # Extract the first word of "$ac_prog", so it can be a program name with args. 19226 set dummy $ac_prog; ac_word=$2 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19228 $as_echo_n "checking for $ac_word... " >&6; } 19229 if ${ac_cv_path_XATTR+:} false; then : 19230 $as_echo_n "(cached) " >&6 19231 else 19232 case $XATTR in 19233 [\\/]* | ?:[\\/]*) 19234 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19235 ;; 19236 *) 19237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19238 for as_dir in $PATH 19239 do 19240 IFS=$as_save_IFS 19241 test -z "$as_dir" && as_dir=. 19242 for ac_exec_ext in '' $ac_executable_extensions; do 19243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19244 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19246 break 2 19247 fi 19248 done 19249 done 19250 IFS=$as_save_IFS 19251 19252 ;; 19253 esac 19254 fi 19255 XATTR=$ac_cv_path_XATTR 19256 if test -n "$XATTR"; then 19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19258 $as_echo "$XATTR" >&6; } 19259 else 19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19261 $as_echo "no" >&6; } 19262 fi 19263 19264 19265 test -n "$XATTR" && break 19266 done 19267 19268 else 19269 # If it succeeded, then it was overridden by the user. We will use it 19270 # for the tool. 19271 19272 # First remove it from the list of overridden variables, so we can test 19273 # for unknown variables in the end. 19274 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19275 19276 # Check if the provided tool contains a complete path. 19277 tool_specified="$XATTR" 19278 tool_basename="${tool_specified##*/}" 19279 if test "x$tool_basename" = "x$tool_specified"; then 19280 # A command without a complete path is provided, search $PATH. 19281 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19282 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19283 # Extract the first word of "$tool_basename", so it can be a program name with args. 19284 set dummy $tool_basename; ac_word=$2 19285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19286 $as_echo_n "checking for $ac_word... " >&6; } 19287 if ${ac_cv_path_XATTR+:} false; then : 19288 $as_echo_n "(cached) " >&6 19289 else 19290 case $XATTR in 19291 [\\/]* | ?:[\\/]*) 19292 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19293 ;; 19294 *) 19295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19296 for as_dir in $PATH 19297 do 19298 IFS=$as_save_IFS 19299 test -z "$as_dir" && as_dir=. 19300 for ac_exec_ext in '' $ac_executable_extensions; do 19301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19302 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19304 break 2 19305 fi 19306 done 19307 done 19308 IFS=$as_save_IFS 19309 19310 ;; 19311 esac 19312 fi 19313 XATTR=$ac_cv_path_XATTR 19314 if test -n "$XATTR"; then 19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19316 $as_echo "$XATTR" >&6; } 19317 else 19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19319 $as_echo "no" >&6; } 19320 fi 19321 19322 19323 if test "x$XATTR" = x; then 19324 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19325 fi 19326 else 19327 # Otherwise we believe it is a complete path. Use it as it is. 19328 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19329 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19331 $as_echo_n "checking for XATTR... " >&6; } 19332 if test ! -x "$tool_specified"; then 19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19334 $as_echo "not found" >&6; } 19335 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19336 fi 19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19338 $as_echo "$tool_specified" >&6; } 19339 fi 19340 fi 19341 fi 19342 19343 19344 19345 if test "x$XATTR" = x; then 19346 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19347 fi 19348 19349 19350 19351 19352 # Publish this variable in the help. 19353 19354 19355 if test "x$CODESIGN" = x; then 19356 # The variable is not set by user, try to locate tool using the code snippet 19357 for ac_prog in codesign 19358 do 19359 # Extract the first word of "$ac_prog", so it can be a program name with args. 19360 set dummy $ac_prog; ac_word=$2 19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19362 $as_echo_n "checking for $ac_word... " >&6; } 19363 if ${ac_cv_path_CODESIGN+:} false; then : 19364 $as_echo_n "(cached) " >&6 19365 else 19366 case $CODESIGN in 19367 [\\/]* | ?:[\\/]*) 19368 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19369 ;; 19370 *) 19371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19372 for as_dir in $PATH 19373 do 19374 IFS=$as_save_IFS 19375 test -z "$as_dir" && as_dir=. 19376 for ac_exec_ext in '' $ac_executable_extensions; do 19377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19378 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19380 break 2 19381 fi 19382 done 19383 done 19384 IFS=$as_save_IFS 19385 19386 ;; 19387 esac 19388 fi 19389 CODESIGN=$ac_cv_path_CODESIGN 19390 if test -n "$CODESIGN"; then 19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19392 $as_echo "$CODESIGN" >&6; } 19393 else 19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19395 $as_echo "no" >&6; } 19396 fi 19397 19398 19399 test -n "$CODESIGN" && break 19400 done 19401 19402 else 19403 # The variable is set, but is it from the command line or the environment? 19404 19405 # Try to remove the string !CODESIGN! from our list. 19406 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19407 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19408 # If it failed, the variable was not from the command line. Ignore it, 19409 # but warn the user (except for BASH, which is always set by the calling BASH). 19410 if test "xCODESIGN" != xBASH; then 19411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19412 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19413 fi 19414 # Try to locate tool using the code snippet 19415 for ac_prog in codesign 19416 do 19417 # Extract the first word of "$ac_prog", so it can be a program name with args. 19418 set dummy $ac_prog; ac_word=$2 19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19420 $as_echo_n "checking for $ac_word... " >&6; } 19421 if ${ac_cv_path_CODESIGN+:} false; then : 19422 $as_echo_n "(cached) " >&6 19423 else 19424 case $CODESIGN in 19425 [\\/]* | ?:[\\/]*) 19426 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19427 ;; 19428 *) 19429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19430 for as_dir in $PATH 19431 do 19432 IFS=$as_save_IFS 19433 test -z "$as_dir" && as_dir=. 19434 for ac_exec_ext in '' $ac_executable_extensions; do 19435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19436 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19438 break 2 19439 fi 19440 done 19441 done 19442 IFS=$as_save_IFS 19443 19444 ;; 19445 esac 19446 fi 19447 CODESIGN=$ac_cv_path_CODESIGN 19448 if test -n "$CODESIGN"; then 19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19450 $as_echo "$CODESIGN" >&6; } 19451 else 19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19453 $as_echo "no" >&6; } 19454 fi 19455 19456 19457 test -n "$CODESIGN" && break 19458 done 19459 19460 else 19461 # If it succeeded, then it was overridden by the user. We will use it 19462 # for the tool. 19463 19464 # First remove it from the list of overridden variables, so we can test 19465 # for unknown variables in the end. 19466 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19467 19468 # Check if the provided tool contains a complete path. 19469 tool_specified="$CODESIGN" 19470 tool_basename="${tool_specified##*/}" 19471 if test "x$tool_basename" = "x$tool_specified"; then 19472 # A command without a complete path is provided, search $PATH. 19473 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19474 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19475 # Extract the first word of "$tool_basename", so it can be a program name with args. 19476 set dummy $tool_basename; ac_word=$2 19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19478 $as_echo_n "checking for $ac_word... " >&6; } 19479 if ${ac_cv_path_CODESIGN+:} false; then : 19480 $as_echo_n "(cached) " >&6 19481 else 19482 case $CODESIGN in 19483 [\\/]* | ?:[\\/]*) 19484 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19485 ;; 19486 *) 19487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19488 for as_dir in $PATH 19489 do 19490 IFS=$as_save_IFS 19491 test -z "$as_dir" && as_dir=. 19492 for ac_exec_ext in '' $ac_executable_extensions; do 19493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19494 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19496 break 2 19497 fi 19498 done 19499 done 19500 IFS=$as_save_IFS 19501 19502 ;; 19503 esac 19504 fi 19505 CODESIGN=$ac_cv_path_CODESIGN 19506 if test -n "$CODESIGN"; then 19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19508 $as_echo "$CODESIGN" >&6; } 19509 else 19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19511 $as_echo "no" >&6; } 19512 fi 19513 19514 19515 if test "x$CODESIGN" = x; then 19516 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19517 fi 19518 else 19519 # Otherwise we believe it is a complete path. Use it as it is. 19520 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19521 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19523 $as_echo_n "checking for CODESIGN... " >&6; } 19524 if test ! -x "$tool_specified"; then 19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19526 $as_echo "not found" >&6; } 19527 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19528 fi 19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19530 $as_echo "$tool_specified" >&6; } 19531 fi 19532 fi 19533 fi 19534 19535 19536 if test "x$CODESIGN" != "x"; then 19537 # Verify that the openjdk_codesign certificate is present 19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19539 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19540 rm -f codesign-testfile 19541 touch codesign-testfile 19542 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19543 rm -f codesign-testfile 19544 if test "x$CODESIGN" = x; then 19545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19546 $as_echo "no" >&6; } 19547 else 19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19549 $as_echo "yes" >&6; } 19550 fi 19551 fi 19552 fi 19553 19554 19555 # Test if bash supports pipefail. 19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 19557 $as_echo_n "checking if bash supports pipefail... " >&6; } 19558 if ${BASH} -c 'set -o pipefail'; then 19559 BASH_ARGS="$BASH_ARGS -o pipefail" 19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19561 $as_echo "yes" >&6; } 19562 else 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19564 $as_echo "no" >&6; } 19565 fi 19566 19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 19568 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 19569 if ${BASH} -e -c 'true'; then 19570 BASH_ARGS="$BASH_ARGS -e" 19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19572 $as_echo "yes" >&6; } 19573 else 19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19575 $as_echo "no" >&6; } 19576 fi 19577 19578 19579 19580 19581 # Check if pkg-config is available. 19582 19583 19584 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19585 if test -n "$ac_tool_prefix"; then 19586 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19587 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19589 $as_echo_n "checking for $ac_word... " >&6; } 19590 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19591 $as_echo_n "(cached) " >&6 19592 else 19593 case $PKG_CONFIG in 19594 [\\/]* | ?:[\\/]*) 19595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19596 ;; 19597 *) 19598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19599 for as_dir in $PATH 19600 do 19601 IFS=$as_save_IFS 19602 test -z "$as_dir" && as_dir=. 19603 for ac_exec_ext in '' $ac_executable_extensions; do 19604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19605 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19607 break 2 19608 fi 19609 done 19610 done 19611 IFS=$as_save_IFS 19612 19613 ;; 19614 esac 19615 fi 19616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19617 if test -n "$PKG_CONFIG"; then 19618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19619 $as_echo "$PKG_CONFIG" >&6; } 19620 else 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19622 $as_echo "no" >&6; } 19623 fi 19624 19625 19626 fi 19627 if test -z "$ac_cv_path_PKG_CONFIG"; then 19628 ac_pt_PKG_CONFIG=$PKG_CONFIG 19629 # Extract the first word of "pkg-config", so it can be a program name with args. 19630 set dummy pkg-config; ac_word=$2 19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19632 $as_echo_n "checking for $ac_word... " >&6; } 19633 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19634 $as_echo_n "(cached) " >&6 19635 else 19636 case $ac_pt_PKG_CONFIG in 19637 [\\/]* | ?:[\\/]*) 19638 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19639 ;; 19640 *) 19641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19642 for as_dir in $PATH 19643 do 19644 IFS=$as_save_IFS 19645 test -z "$as_dir" && as_dir=. 19646 for ac_exec_ext in '' $ac_executable_extensions; do 19647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19648 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19650 break 2 19651 fi 19652 done 19653 done 19654 IFS=$as_save_IFS 19655 19656 ;; 19657 esac 19658 fi 19659 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19660 if test -n "$ac_pt_PKG_CONFIG"; then 19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19662 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19663 else 19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19665 $as_echo "no" >&6; } 19666 fi 19667 19668 if test "x$ac_pt_PKG_CONFIG" = x; then 19669 PKG_CONFIG="" 19670 else 19671 case $cross_compiling:$ac_tool_warned in 19672 yes:) 19673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19675 ac_tool_warned=yes ;; 19676 esac 19677 PKG_CONFIG=$ac_pt_PKG_CONFIG 19678 fi 19679 else 19680 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19681 fi 19682 19683 fi 19684 if test -n "$PKG_CONFIG"; then 19685 _pkg_min_version=0.9.0 19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19687 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19688 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19690 $as_echo "yes" >&6; } 19691 else 19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19693 $as_echo "no" >&6; } 19694 PKG_CONFIG="" 19695 fi 19696 19697 fi 19698 19699 # After basic tools have been setup, we can check build os specific details. 19700 19701 ############################################################################### 19702 19703 # Note that this is the build platform OS version! 19704 19705 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19706 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19707 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19708 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19709 19710 19711 19712 19713 19714 # Setup builddeps, for automatic downloading of tools we need. 19715 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19716 # boot-jdk setup, but we need to have basic tools setup first. 19717 19718 19719 # Check whether --with-builddeps-conf was given. 19720 if test "${with_builddeps_conf+set}" = set; then : 19721 withval=$with_builddeps_conf; 19722 fi 19723 19724 19725 19726 # Check whether --with-builddeps-server was given. 19727 if test "${with_builddeps_server+set}" = set; then : 19728 withval=$with_builddeps_server; 19729 fi 19730 19731 19732 19733 # Check whether --with-builddeps-dir was given. 19734 if test "${with_builddeps_dir+set}" = set; then : 19735 withval=$with_builddeps_dir; 19736 else 19737 with_builddeps_dir=/localhome/builddeps 19738 fi 19739 19740 19741 19742 # Check whether --with-builddeps-group was given. 19743 if test "${with_builddeps_group+set}" = set; then : 19744 withval=$with_builddeps_group; 19745 fi 19746 19747 19748 19749 19750 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19751 if test "x$with_builddeps_conf" != x; then 19752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19753 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19754 builddepsfile=$with_builddeps_conf 19755 if test -s $builddepsfile; then 19756 . $builddepsfile 19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19758 $as_echo "loaded!" >&6; } 19759 else 19760 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19761 fi 19762 else 19763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19764 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19765 builddepsfile=`mktemp` 19766 touch $builddepsfile 19767 # Put all found confs into a single file. 19768 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19769 # Source the file to acquire the variables 19770 if test -s $builddepsfile; then 19771 . $builddepsfile 19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19773 $as_echo "found at least one!" >&6; } 19774 else 19775 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19776 fi 19777 fi 19778 # Create build and target names that use _ instead of "-" and ".". 19779 # This is necessary to use them in variable names. 19780 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19781 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19782 # Extract rewrite information for build and target 19783 eval rewritten_build=\${REWRITE_${build_var}} 19784 if test "x$rewritten_build" = x; then 19785 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19786 echo Build stays the same $rewritten_build 19787 else 19788 echo Rewriting build for builddeps into $rewritten_build 19789 fi 19790 eval rewritten_target=\${REWRITE_${target_var}} 19791 if test "x$rewritten_target" = x; then 19792 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19793 echo Target stays the same $rewritten_target 19794 else 19795 echo Rewriting target for builddeps into $rewritten_target 19796 fi 19797 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19798 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19799 fi 19800 for ac_prog in 7z unzip 19801 do 19802 # Extract the first word of "$ac_prog", so it can be a program name with args. 19803 set dummy $ac_prog; ac_word=$2 19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19805 $as_echo_n "checking for $ac_word... " >&6; } 19806 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19807 $as_echo_n "(cached) " >&6 19808 else 19809 if test -n "$BDEPS_UNZIP"; then 19810 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19811 else 19812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19813 for as_dir in $PATH 19814 do 19815 IFS=$as_save_IFS 19816 test -z "$as_dir" && as_dir=. 19817 for ac_exec_ext in '' $ac_executable_extensions; do 19818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19819 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19821 break 2 19822 fi 19823 done 19824 done 19825 IFS=$as_save_IFS 19826 19827 fi 19828 fi 19829 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19830 if test -n "$BDEPS_UNZIP"; then 19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19832 $as_echo "$BDEPS_UNZIP" >&6; } 19833 else 19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19835 $as_echo "no" >&6; } 19836 fi 19837 19838 19839 test -n "$BDEPS_UNZIP" && break 19840 done 19841 19842 if test "x$BDEPS_UNZIP" = x7z; then 19843 BDEPS_UNZIP="7z x" 19844 fi 19845 19846 for ac_prog in wget lftp ftp 19847 do 19848 # Extract the first word of "$ac_prog", so it can be a program name with args. 19849 set dummy $ac_prog; ac_word=$2 19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19851 $as_echo_n "checking for $ac_word... " >&6; } 19852 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19853 $as_echo_n "(cached) " >&6 19854 else 19855 if test -n "$BDEPS_FTP"; then 19856 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19857 else 19858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19859 for as_dir in $PATH 19860 do 19861 IFS=$as_save_IFS 19862 test -z "$as_dir" && as_dir=. 19863 for ac_exec_ext in '' $ac_executable_extensions; do 19864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19865 ac_cv_prog_BDEPS_FTP="$ac_prog" 19866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19867 break 2 19868 fi 19869 done 19870 done 19871 IFS=$as_save_IFS 19872 19873 fi 19874 fi 19875 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19876 if test -n "$BDEPS_FTP"; then 19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19878 $as_echo "$BDEPS_FTP" >&6; } 19879 else 19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19881 $as_echo "no" >&6; } 19882 fi 19883 19884 19885 test -n "$BDEPS_FTP" && break 19886 done 19887 19888 19889 19890 ############################################################################### 19891 # 19892 # Determine OpenJDK variants, options and version numbers. 19893 # 19894 ############################################################################### 19895 19896 # We need build & target for this. 19897 19898 19899 ############################################################################### 19900 # 19901 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19902 # We always build headless support. 19903 # 19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19905 $as_echo_n "checking headful support... " >&6; } 19906 # Check whether --enable-headful was given. 19907 if test "${enable_headful+set}" = set; then : 19908 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19909 else 19910 SUPPORT_HEADFUL=yes 19911 fi 19912 19913 19914 SUPPORT_HEADLESS=yes 19915 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19916 19917 if test "x$SUPPORT_HEADFUL" = xyes; then 19918 # We are building both headful and headless. 19919 headful_msg="include support for both headful and headless" 19920 fi 19921 19922 if test "x$SUPPORT_HEADFUL" = xno; then 19923 # Thus we are building headless only. 19924 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19925 headful_msg="headless only" 19926 fi 19927 19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19929 $as_echo "$headful_msg" >&6; } 19930 19931 19932 19933 19934 19935 # Control wether Hotspot runs Queens test after build. 19936 # Check whether --enable-hotspot-test-in-build was given. 19937 if test "${enable_hotspot_test_in_build+set}" = set; then : 19938 enableval=$enable_hotspot_test_in_build; 19939 else 19940 enable_hotspot_test_in_build=no 19941 fi 19942 19943 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19944 TEST_IN_BUILD=true 19945 else 19946 TEST_IN_BUILD=false 19947 fi 19948 19949 19950 ############################################################################### 19951 # 19952 # Choose cacerts source file 19953 # 19954 19955 # Check whether --with-cacerts-file was given. 19956 if test "${with_cacerts_file+set}" = set; then : 19957 withval=$with_cacerts_file; 19958 fi 19959 19960 if test "x$with_cacerts_file" != x; then 19961 CACERTS_FILE=$with_cacerts_file 19962 fi 19963 19964 19965 ############################################################################### 19966 # 19967 # Enable or disable unlimited crypto 19968 # 19969 # Check whether --enable-unlimited-crypto was given. 19970 if test "${enable_unlimited_crypto+set}" = set; then : 19971 enableval=$enable_unlimited_crypto; 19972 else 19973 enable_unlimited_crypto=no 19974 fi 19975 19976 if test "x$enable_unlimited_crypto" = "xyes"; then 19977 UNLIMITED_CRYPTO=true 19978 else 19979 UNLIMITED_CRYPTO=false 19980 fi 19981 19982 19983 ############################################################################### 19984 # 19985 # Enable or disable the elliptic curve crypto implementation 19986 # 19987 19988 19989 ############################################################################### 19990 # 19991 # --enable-rmiconnector-iiop 19992 # 19993 # Check whether --enable-rmiconnector-iiop was given. 19994 if test "${enable_rmiconnector_iiop+set}" = set; then : 19995 enableval=$enable_rmiconnector_iiop; 19996 fi 19997 19998 if test "x$enable_rmiconnector_iiop" = "xyes"; then 19999 RMICONNECTOR_IIOP=true 20000 else 20001 RMICONNECTOR_IIOP=false 20002 fi 20003 20004 20005 ############################################################################### 20006 # 20007 # Compress jars 20008 # 20009 COMPRESS_JARS=false 20010 20011 20012 20013 20014 # Source the version numbers 20015 . $AUTOCONF_DIR/version-numbers 20016 20017 # Get the settings from parameters 20018 20019 # Check whether --with-milestone was given. 20020 if test "${with_milestone+set}" = set; then : 20021 withval=$with_milestone; 20022 fi 20023 20024 if test "x$with_milestone" = xyes; then 20025 as_fn_error $? "Milestone must have a value" "$LINENO" 5 20026 elif test "x$with_milestone" != x; then 20027 MILESTONE="$with_milestone" 20028 fi 20029 if test "x$MILESTONE" = x; then 20030 MILESTONE=internal 20031 fi 20032 20033 20034 # Check whether --with-update-version was given. 20035 if test "${with_update_version+set}" = set; then : 20036 withval=$with_update_version; 20037 fi 20038 20039 if test "x$with_update_version" = xyes; then 20040 as_fn_error $? "Update version must have a value" "$LINENO" 5 20041 elif test "x$with_update_version" != x; then 20042 JDK_UPDATE_VERSION="$with_update_version" 20043 # On macosx 10.7, it's not possible to set --with-update-version=0X due 20044 # to a bug in expr (which reduces it to just X). To work around this, we 20045 # always add a 0 to one digit update versions. 20046 if test "${#JDK_UPDATE_VERSION}" = "1"; then 20047 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 20048 fi 20049 fi 20050 20051 20052 # Check whether --with-user-release-suffix was given. 20053 if test "${with_user_release_suffix+set}" = set; then : 20054 withval=$with_user_release_suffix; 20055 fi 20056 20057 if test "x$with_user_release_suffix" = xyes; then 20058 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 20059 elif test "x$with_user_release_suffix" != x; then 20060 USER_RELEASE_SUFFIX="$with_user_release_suffix" 20061 fi 20062 20063 20064 # Check whether --with-build-number was given. 20065 if test "${with_build_number+set}" = set; then : 20066 withval=$with_build_number; 20067 fi 20068 20069 if test "x$with_build_number" = xyes; then 20070 as_fn_error $? "Build number must have a value" "$LINENO" 5 20071 elif test "x$with_build_number" != x; then 20072 JDK_BUILD_NUMBER="$with_build_number" 20073 fi 20074 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 20075 if test "x$JDK_BUILD_NUMBER" = x; then 20076 JDK_BUILD_NUMBER=b00 20077 if test "x$USER_RELEASE_SUFFIX" = x; then 20078 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 20079 # Avoid [:alnum:] since it depends on the locale. 20080 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 20081 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20082 fi 20083 fi 20084 20085 # Now set the JDK version, milestone, build number etc. 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100 20101 20102 # Check whether --with-copyright-year was given. 20103 if test "${with_copyright_year+set}" = set; then : 20104 withval=$with_copyright_year; 20105 fi 20106 20107 if test "x$with_copyright_year" = xyes; then 20108 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 20109 elif test "x$with_copyright_year" != x; then 20110 COPYRIGHT_YEAR="$with_copyright_year" 20111 else 20112 COPYRIGHT_YEAR=`date +'%Y'` 20113 fi 20114 20115 20116 if test "x$JDK_UPDATE_VERSION" != x; then 20117 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 20118 else 20119 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 20120 fi 20121 20122 20123 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 20124 20125 20126 20127 ############################################################################### 20128 # 20129 # Setup BootJDK, used to bootstrap the build. 20130 # 20131 ############################################################################### 20132 20133 20134 BOOT_JDK_FOUND=no 20135 20136 # Check whether --with-boot-jdk was given. 20137 if test "${with_boot_jdk+set}" = set; then : 20138 withval=$with_boot_jdk; 20139 fi 20140 20141 20142 # We look for the Boot JDK through various means, going from more certain to 20143 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20144 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20145 # must check if this is indeed valid; otherwise we'll continue looking. 20146 20147 # Test: Is bootjdk explicitely set by command line arguments? 20148 20149 if test "x$BOOT_JDK_FOUND" = xno; then 20150 # Now execute the test 20151 20152 if test "x$with_boot_jdk" != x; then 20153 BOOT_JDK=$with_boot_jdk 20154 BOOT_JDK_FOUND=maybe 20155 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20156 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20157 fi 20158 20159 20160 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20161 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20162 # Do we have a bin/java? 20163 if test ! -x "$BOOT_JDK/bin/java"; then 20164 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20165 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20166 BOOT_JDK_FOUND=no 20167 else 20168 # Do we have a bin/javac? 20169 if test ! -x "$BOOT_JDK/bin/javac"; then 20170 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20171 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20172 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20173 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20174 BOOT_JDK_FOUND=no 20175 else 20176 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20177 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20178 20179 # Extra M4 quote needed to protect [] in grep expression. 20180 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20181 if test "x$FOUND_CORRECT_VERSION" = x; then 20182 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20183 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20184 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20185 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20186 BOOT_JDK_FOUND=no 20187 else 20188 # We're done! :-) 20189 BOOT_JDK_FOUND=yes 20190 20191 # Only process if variable expands to non-empty 20192 20193 if test "x$BOOT_JDK" != x; then 20194 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20195 20196 # Input might be given as Windows format, start by converting to 20197 # unix format. 20198 path="$BOOT_JDK" 20199 new_path=`$CYGPATH -u "$path"` 20200 20201 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20202 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20203 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20204 # "foo.exe" is OK but "foo" is an error. 20205 # 20206 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20207 # It is also a way to make sure we got the proper file name for the real test later on. 20208 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20209 if test "x$test_shortpath" = x; then 20210 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20211 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20212 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20213 fi 20214 20215 # Call helper function which possibly converts this using DOS-style short mode. 20216 # If so, the updated path is stored in $new_path. 20217 20218 input_path="$new_path" 20219 # Check if we need to convert this using DOS-style short mode. If the path 20220 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20221 # take no chances and rewrite it. 20222 # Note: m4 eats our [], so we need to use [ and ] instead. 20223 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20224 if test "x$has_forbidden_chars" != x; then 20225 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20226 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20227 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20228 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20229 # Going to short mode and back again did indeed matter. Since short mode is 20230 # case insensitive, let's make it lowercase to improve readability. 20231 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20232 # Now convert it back to Unix-stile (cygpath) 20233 input_path=`$CYGPATH -u "$shortmode_path"` 20234 new_path="$input_path" 20235 fi 20236 fi 20237 20238 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20239 if test "x$test_cygdrive_prefix" = x; then 20240 # As a simple fix, exclude /usr/bin since it's not a real path. 20241 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20242 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20243 # a path prefixed by /cygdrive for fixpath to work. 20244 new_path="$CYGWIN_ROOT_PATH$input_path" 20245 fi 20246 fi 20247 20248 20249 if test "x$path" != "x$new_path"; then 20250 BOOT_JDK="$new_path" 20251 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20252 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20253 fi 20254 20255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20256 20257 path="$BOOT_JDK" 20258 has_colon=`$ECHO $path | $GREP ^.:` 20259 new_path="$path" 20260 if test "x$has_colon" = x; then 20261 # Not in mixed or Windows style, start by that. 20262 new_path=`cmd //c echo $path` 20263 fi 20264 20265 20266 input_path="$new_path" 20267 # Check if we need to convert this using DOS-style short mode. If the path 20268 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20269 # take no chances and rewrite it. 20270 # Note: m4 eats our [], so we need to use [ and ] instead. 20271 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20272 if test "x$has_forbidden_chars" != x; then 20273 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20274 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20275 fi 20276 20277 20278 windows_path="$new_path" 20279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20280 unix_path=`$CYGPATH -u "$windows_path"` 20281 new_path="$unix_path" 20282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20284 new_path="$unix_path" 20285 fi 20286 20287 if test "x$path" != "x$new_path"; then 20288 BOOT_JDK="$new_path" 20289 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20290 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20291 fi 20292 20293 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20294 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20295 20296 else 20297 # We're on a unix platform. Hooray! :) 20298 path="$BOOT_JDK" 20299 has_space=`$ECHO "$path" | $GREP " "` 20300 if test "x$has_space" != x; then 20301 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20302 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20303 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20304 fi 20305 20306 # Use eval to expand a potential ~ 20307 eval path="$path" 20308 if test ! -f "$path" && test ! -d "$path"; then 20309 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20310 fi 20311 20312 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20313 fi 20314 fi 20315 20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20317 $as_echo_n "checking for Boot JDK... " >&6; } 20318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20319 $as_echo "$BOOT_JDK" >&6; } 20320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20321 $as_echo_n "checking Boot JDK version... " >&6; } 20322 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20324 $as_echo "$BOOT_JDK_VERSION" >&6; } 20325 fi # end check jdk version 20326 fi # end check javac 20327 fi # end check java 20328 fi # end check boot jdk found 20329 fi 20330 20331 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20332 # Having specified an argument which is incorrect will produce an instant failure; 20333 # we should not go on looking 20334 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20335 fi 20336 20337 # Test: Is bootjdk available from builddeps? 20338 20339 if test "x$BOOT_JDK_FOUND" = xno; then 20340 # Now execute the test 20341 20342 20343 20344 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20345 # Source the builddeps file again, to make sure it uses the latest variables! 20346 . $builddepsfile 20347 # Look for a target and build machine specific resource! 20348 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20349 if test "x$resource" = x; then 20350 # Ok, lets instead look for a target specific resource 20351 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20352 fi 20353 if test "x$resource" = x; then 20354 # Ok, lets instead look for a build specific resource 20355 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20356 fi 20357 if test "x$resource" = x; then 20358 # Ok, lets instead look for a generic resource 20359 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20360 resource=${builddep_bootjdk} 20361 fi 20362 if test "x$resource" != x; then 20363 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20364 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20365 # If the resource in the builddeps.conf file is an existing directory, 20366 # for example /java/linux/cups 20367 if test -d ${resource}; then 20368 depdir=${resource} 20369 else 20370 20371 # bootjdk is for example mymodule 20372 # $resource is for example libs/general/libmymod_1_2_3.zip 20373 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20374 # $with_builddeps_dir is for example /localhome/builddeps 20375 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20376 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20377 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20378 filename=`basename $resource` 20379 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20380 filebase=${filename%%.*} 20381 extension=${filename#*.} 20382 installdir=$with_builddeps_dir/$filebase 20383 if test ! -f $installdir/$filename.unpacked; then 20384 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20385 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20386 if test ! -d $installdir; then 20387 mkdir -p $installdir 20388 fi 20389 if test ! -d $installdir; then 20390 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20391 fi 20392 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20393 touch $tmpfile 20394 if test ! -f $tmpfile; then 20395 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20396 fi 20397 20398 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20399 # $tmpfile is the local file name for the downloaded file. 20400 VALID_TOOL=no 20401 if test "x$BDEPS_FTP" = xwget; then 20402 VALID_TOOL=yes 20403 wget -O $tmpfile $with_builddeps_server/$resource 20404 fi 20405 if test "x$BDEPS_FTP" = xlftp; then 20406 VALID_TOOL=yes 20407 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20408 fi 20409 if test "x$BDEPS_FTP" = xftp; then 20410 VALID_TOOL=yes 20411 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20412 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20413 FTPUSERPWD=${FTPSERVER%%@*} 20414 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20415 FTPUSER=${userpwd%%:*} 20416 FTPPWD=${userpwd#*@} 20417 FTPSERVER=${FTPSERVER#*@} 20418 else 20419 FTPUSER=ftp 20420 FTPPWD=ftp 20421 fi 20422 # the "pass" command does not work on some 20423 # ftp clients (read ftp.exe) but if it works, 20424 # passive mode is better! 20425 ( \ 20426 echo "user $FTPUSER $FTPPWD" ; \ 20427 echo "pass" ; \ 20428 echo "bin" ; \ 20429 echo "get $FTPPATH $tmpfile" ; \ 20430 ) | ftp -in $FTPSERVER 20431 fi 20432 if test "x$VALID_TOOL" != xyes; then 20433 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20434 fi 20435 20436 mv $tmpfile $installdir/$filename 20437 if test ! -s $installdir/$filename; then 20438 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20439 fi 20440 case "$extension" in 20441 zip) echo "Unzipping $installdir/$filename..." 20442 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20443 ;; 20444 tar.gz) echo "Untaring $installdir/$filename..." 20445 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20446 ;; 20447 tgz) echo "Untaring $installdir/$filename..." 20448 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20449 ;; 20450 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20451 ;; 20452 esac 20453 fi 20454 if test -f $installdir/$filename.unpacked; then 20455 depdir=$installdir 20456 fi 20457 20458 fi 20459 # Source the builddeps file again, because in the previous command, the depdir 20460 # was updated to point at the current build dependency install directory. 20461 . $builddepsfile 20462 # Now extract variables from the builddeps.conf files. 20463 theroot=${builddep_bootjdk_ROOT} 20464 thecflags=${builddep_bootjdk_CFLAGS} 20465 thelibs=${builddep_bootjdk_LIBS} 20466 if test "x$depdir" = x; then 20467 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20468 fi 20469 BOOT_JDK=$depdir 20470 if test "x$theroot" != x; then 20471 BOOT_JDK="$theroot" 20472 fi 20473 if test "x$thecflags" != x; then 20474 BOOT_JDK_CFLAGS="$thecflags" 20475 fi 20476 if test "x$thelibs" != x; then 20477 BOOT_JDK_LIBS="$thelibs" 20478 fi 20479 BOOT_JDK_FOUND=maybe 20480 else BOOT_JDK_FOUND=no 20481 20482 fi 20483 else BOOT_JDK_FOUND=no 20484 20485 fi 20486 20487 20488 20489 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20490 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20491 # Do we have a bin/java? 20492 if test ! -x "$BOOT_JDK/bin/java"; then 20493 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20494 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20495 BOOT_JDK_FOUND=no 20496 else 20497 # Do we have a bin/javac? 20498 if test ! -x "$BOOT_JDK/bin/javac"; then 20499 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20500 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20501 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20502 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20503 BOOT_JDK_FOUND=no 20504 else 20505 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20506 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20507 20508 # Extra M4 quote needed to protect [] in grep expression. 20509 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20510 if test "x$FOUND_CORRECT_VERSION" = x; then 20511 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20512 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20513 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20514 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20515 BOOT_JDK_FOUND=no 20516 else 20517 # We're done! :-) 20518 BOOT_JDK_FOUND=yes 20519 20520 # Only process if variable expands to non-empty 20521 20522 if test "x$BOOT_JDK" != x; then 20523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20524 20525 # Input might be given as Windows format, start by converting to 20526 # unix format. 20527 path="$BOOT_JDK" 20528 new_path=`$CYGPATH -u "$path"` 20529 20530 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20531 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20532 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20533 # "foo.exe" is OK but "foo" is an error. 20534 # 20535 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20536 # It is also a way to make sure we got the proper file name for the real test later on. 20537 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20538 if test "x$test_shortpath" = x; then 20539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20540 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20541 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20542 fi 20543 20544 # Call helper function which possibly converts this using DOS-style short mode. 20545 # If so, the updated path is stored in $new_path. 20546 20547 input_path="$new_path" 20548 # Check if we need to convert this using DOS-style short mode. If the path 20549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20550 # take no chances and rewrite it. 20551 # Note: m4 eats our [], so we need to use [ and ] instead. 20552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20553 if test "x$has_forbidden_chars" != x; then 20554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20555 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20556 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20557 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20558 # Going to short mode and back again did indeed matter. Since short mode is 20559 # case insensitive, let's make it lowercase to improve readability. 20560 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20561 # Now convert it back to Unix-stile (cygpath) 20562 input_path=`$CYGPATH -u "$shortmode_path"` 20563 new_path="$input_path" 20564 fi 20565 fi 20566 20567 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20568 if test "x$test_cygdrive_prefix" = x; then 20569 # As a simple fix, exclude /usr/bin since it's not a real path. 20570 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20571 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20572 # a path prefixed by /cygdrive for fixpath to work. 20573 new_path="$CYGWIN_ROOT_PATH$input_path" 20574 fi 20575 fi 20576 20577 20578 if test "x$path" != "x$new_path"; then 20579 BOOT_JDK="$new_path" 20580 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20581 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20582 fi 20583 20584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20585 20586 path="$BOOT_JDK" 20587 has_colon=`$ECHO $path | $GREP ^.:` 20588 new_path="$path" 20589 if test "x$has_colon" = x; then 20590 # Not in mixed or Windows style, start by that. 20591 new_path=`cmd //c echo $path` 20592 fi 20593 20594 20595 input_path="$new_path" 20596 # Check if we need to convert this using DOS-style short mode. If the path 20597 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20598 # take no chances and rewrite it. 20599 # Note: m4 eats our [], so we need to use [ and ] instead. 20600 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20601 if test "x$has_forbidden_chars" != x; then 20602 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20603 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20604 fi 20605 20606 20607 windows_path="$new_path" 20608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20609 unix_path=`$CYGPATH -u "$windows_path"` 20610 new_path="$unix_path" 20611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20613 new_path="$unix_path" 20614 fi 20615 20616 if test "x$path" != "x$new_path"; then 20617 BOOT_JDK="$new_path" 20618 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20619 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20620 fi 20621 20622 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20623 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20624 20625 else 20626 # We're on a unix platform. Hooray! :) 20627 path="$BOOT_JDK" 20628 has_space=`$ECHO "$path" | $GREP " "` 20629 if test "x$has_space" != x; then 20630 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20631 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20632 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20633 fi 20634 20635 # Use eval to expand a potential ~ 20636 eval path="$path" 20637 if test ! -f "$path" && test ! -d "$path"; then 20638 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20639 fi 20640 20641 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20642 fi 20643 fi 20644 20645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20646 $as_echo_n "checking for Boot JDK... " >&6; } 20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20648 $as_echo "$BOOT_JDK" >&6; } 20649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20650 $as_echo_n "checking Boot JDK version... " >&6; } 20651 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20653 $as_echo "$BOOT_JDK_VERSION" >&6; } 20654 fi # end check jdk version 20655 fi # end check javac 20656 fi # end check java 20657 fi # end check boot jdk found 20658 fi 20659 20660 20661 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20662 20663 if test "x$BOOT_JDK_FOUND" = xno; then 20664 # Now execute the test 20665 20666 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20667 # First check at user selected default 20668 20669 if test "x$BOOT_JDK_FOUND" = xno; then 20670 # Now execute the test 20671 20672 if test -x /usr/libexec/java_home; then 20673 BOOT_JDK=`/usr/libexec/java_home ` 20674 BOOT_JDK_FOUND=maybe 20675 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20676 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20677 fi 20678 20679 20680 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20681 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20682 # Do we have a bin/java? 20683 if test ! -x "$BOOT_JDK/bin/java"; then 20684 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20685 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20686 BOOT_JDK_FOUND=no 20687 else 20688 # Do we have a bin/javac? 20689 if test ! -x "$BOOT_JDK/bin/javac"; then 20690 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20691 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20692 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20693 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20694 BOOT_JDK_FOUND=no 20695 else 20696 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20697 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20698 20699 # Extra M4 quote needed to protect [] in grep expression. 20700 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20701 if test "x$FOUND_CORRECT_VERSION" = x; then 20702 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20703 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20704 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20705 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20706 BOOT_JDK_FOUND=no 20707 else 20708 # We're done! :-) 20709 BOOT_JDK_FOUND=yes 20710 20711 # Only process if variable expands to non-empty 20712 20713 if test "x$BOOT_JDK" != x; then 20714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20715 20716 # Input might be given as Windows format, start by converting to 20717 # unix format. 20718 path="$BOOT_JDK" 20719 new_path=`$CYGPATH -u "$path"` 20720 20721 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20722 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20723 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20724 # "foo.exe" is OK but "foo" is an error. 20725 # 20726 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20727 # It is also a way to make sure we got the proper file name for the real test later on. 20728 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20729 if test "x$test_shortpath" = x; then 20730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20731 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20732 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20733 fi 20734 20735 # Call helper function which possibly converts this using DOS-style short mode. 20736 # If so, the updated path is stored in $new_path. 20737 20738 input_path="$new_path" 20739 # Check if we need to convert this using DOS-style short mode. If the path 20740 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20741 # take no chances and rewrite it. 20742 # Note: m4 eats our [], so we need to use [ and ] instead. 20743 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20744 if test "x$has_forbidden_chars" != x; then 20745 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20746 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20747 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20748 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20749 # Going to short mode and back again did indeed matter. Since short mode is 20750 # case insensitive, let's make it lowercase to improve readability. 20751 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20752 # Now convert it back to Unix-stile (cygpath) 20753 input_path=`$CYGPATH -u "$shortmode_path"` 20754 new_path="$input_path" 20755 fi 20756 fi 20757 20758 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20759 if test "x$test_cygdrive_prefix" = x; then 20760 # As a simple fix, exclude /usr/bin since it's not a real path. 20761 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20762 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20763 # a path prefixed by /cygdrive for fixpath to work. 20764 new_path="$CYGWIN_ROOT_PATH$input_path" 20765 fi 20766 fi 20767 20768 20769 if test "x$path" != "x$new_path"; then 20770 BOOT_JDK="$new_path" 20771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20772 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20773 fi 20774 20775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20776 20777 path="$BOOT_JDK" 20778 has_colon=`$ECHO $path | $GREP ^.:` 20779 new_path="$path" 20780 if test "x$has_colon" = x; then 20781 # Not in mixed or Windows style, start by that. 20782 new_path=`cmd //c echo $path` 20783 fi 20784 20785 20786 input_path="$new_path" 20787 # Check if we need to convert this using DOS-style short mode. If the path 20788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20789 # take no chances and rewrite it. 20790 # Note: m4 eats our [], so we need to use [ and ] instead. 20791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20792 if test "x$has_forbidden_chars" != x; then 20793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20794 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20795 fi 20796 20797 20798 windows_path="$new_path" 20799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20800 unix_path=`$CYGPATH -u "$windows_path"` 20801 new_path="$unix_path" 20802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20804 new_path="$unix_path" 20805 fi 20806 20807 if test "x$path" != "x$new_path"; then 20808 BOOT_JDK="$new_path" 20809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20810 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20811 fi 20812 20813 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20814 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20815 20816 else 20817 # We're on a unix platform. Hooray! :) 20818 path="$BOOT_JDK" 20819 has_space=`$ECHO "$path" | $GREP " "` 20820 if test "x$has_space" != x; then 20821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20822 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20823 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20824 fi 20825 20826 # Use eval to expand a potential ~ 20827 eval path="$path" 20828 if test ! -f "$path" && test ! -d "$path"; then 20829 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20830 fi 20831 20832 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20833 fi 20834 fi 20835 20836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20837 $as_echo_n "checking for Boot JDK... " >&6; } 20838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20839 $as_echo "$BOOT_JDK" >&6; } 20840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20841 $as_echo_n "checking Boot JDK version... " >&6; } 20842 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20844 $as_echo "$BOOT_JDK_VERSION" >&6; } 20845 fi # end check jdk version 20846 fi # end check javac 20847 fi # end check java 20848 fi # end check boot jdk found 20849 fi 20850 20851 # If that did not work out (e.g. too old), try explicit versions instead 20852 20853 if test "x$BOOT_JDK_FOUND" = xno; then 20854 # Now execute the test 20855 20856 if test -x /usr/libexec/java_home; then 20857 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20858 BOOT_JDK_FOUND=maybe 20859 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20860 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20861 fi 20862 20863 20864 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20865 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20866 # Do we have a bin/java? 20867 if test ! -x "$BOOT_JDK/bin/java"; then 20868 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20869 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20870 BOOT_JDK_FOUND=no 20871 else 20872 # Do we have a bin/javac? 20873 if test ! -x "$BOOT_JDK/bin/javac"; then 20874 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20875 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20876 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20877 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20878 BOOT_JDK_FOUND=no 20879 else 20880 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20881 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20882 20883 # Extra M4 quote needed to protect [] in grep expression. 20884 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20885 if test "x$FOUND_CORRECT_VERSION" = x; then 20886 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20887 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20888 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20889 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20890 BOOT_JDK_FOUND=no 20891 else 20892 # We're done! :-) 20893 BOOT_JDK_FOUND=yes 20894 20895 # Only process if variable expands to non-empty 20896 20897 if test "x$BOOT_JDK" != x; then 20898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20899 20900 # Input might be given as Windows format, start by converting to 20901 # unix format. 20902 path="$BOOT_JDK" 20903 new_path=`$CYGPATH -u "$path"` 20904 20905 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20906 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20907 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20908 # "foo.exe" is OK but "foo" is an error. 20909 # 20910 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20911 # It is also a way to make sure we got the proper file name for the real test later on. 20912 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20913 if test "x$test_shortpath" = x; then 20914 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20915 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20916 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20917 fi 20918 20919 # Call helper function which possibly converts this using DOS-style short mode. 20920 # If so, the updated path is stored in $new_path. 20921 20922 input_path="$new_path" 20923 # Check if we need to convert this using DOS-style short mode. If the path 20924 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20925 # take no chances and rewrite it. 20926 # Note: m4 eats our [], so we need to use [ and ] instead. 20927 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20928 if test "x$has_forbidden_chars" != x; then 20929 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20930 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20931 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20932 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20933 # Going to short mode and back again did indeed matter. Since short mode is 20934 # case insensitive, let's make it lowercase to improve readability. 20935 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20936 # Now convert it back to Unix-stile (cygpath) 20937 input_path=`$CYGPATH -u "$shortmode_path"` 20938 new_path="$input_path" 20939 fi 20940 fi 20941 20942 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20943 if test "x$test_cygdrive_prefix" = x; then 20944 # As a simple fix, exclude /usr/bin since it's not a real path. 20945 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20946 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20947 # a path prefixed by /cygdrive for fixpath to work. 20948 new_path="$CYGWIN_ROOT_PATH$input_path" 20949 fi 20950 fi 20951 20952 20953 if test "x$path" != "x$new_path"; then 20954 BOOT_JDK="$new_path" 20955 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20956 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20957 fi 20958 20959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20960 20961 path="$BOOT_JDK" 20962 has_colon=`$ECHO $path | $GREP ^.:` 20963 new_path="$path" 20964 if test "x$has_colon" = x; then 20965 # Not in mixed or Windows style, start by that. 20966 new_path=`cmd //c echo $path` 20967 fi 20968 20969 20970 input_path="$new_path" 20971 # Check if we need to convert this using DOS-style short mode. If the path 20972 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20973 # take no chances and rewrite it. 20974 # Note: m4 eats our [], so we need to use [ and ] instead. 20975 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20976 if test "x$has_forbidden_chars" != x; then 20977 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20978 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20979 fi 20980 20981 20982 windows_path="$new_path" 20983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20984 unix_path=`$CYGPATH -u "$windows_path"` 20985 new_path="$unix_path" 20986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20987 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20988 new_path="$unix_path" 20989 fi 20990 20991 if test "x$path" != "x$new_path"; then 20992 BOOT_JDK="$new_path" 20993 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20994 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20995 fi 20996 20997 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20998 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20999 21000 else 21001 # We're on a unix platform. Hooray! :) 21002 path="$BOOT_JDK" 21003 has_space=`$ECHO "$path" | $GREP " "` 21004 if test "x$has_space" != x; then 21005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21006 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21007 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21008 fi 21009 21010 # Use eval to expand a potential ~ 21011 eval path="$path" 21012 if test ! -f "$path" && test ! -d "$path"; then 21013 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21014 fi 21015 21016 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21017 fi 21018 fi 21019 21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21021 $as_echo_n "checking for Boot JDK... " >&6; } 21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21023 $as_echo "$BOOT_JDK" >&6; } 21024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21025 $as_echo_n "checking Boot JDK version... " >&6; } 21026 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21028 $as_echo "$BOOT_JDK_VERSION" >&6; } 21029 fi # end check jdk version 21030 fi # end check javac 21031 fi # end check java 21032 fi # end check boot jdk found 21033 fi 21034 21035 21036 if test "x$BOOT_JDK_FOUND" = xno; then 21037 # Now execute the test 21038 21039 if test -x /usr/libexec/java_home; then 21040 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 21041 BOOT_JDK_FOUND=maybe 21042 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 21043 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 21044 fi 21045 21046 21047 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21048 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21049 # Do we have a bin/java? 21050 if test ! -x "$BOOT_JDK/bin/java"; then 21051 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21052 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21053 BOOT_JDK_FOUND=no 21054 else 21055 # Do we have a bin/javac? 21056 if test ! -x "$BOOT_JDK/bin/javac"; then 21057 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21058 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21059 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21060 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21061 BOOT_JDK_FOUND=no 21062 else 21063 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21064 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21065 21066 # Extra M4 quote needed to protect [] in grep expression. 21067 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21068 if test "x$FOUND_CORRECT_VERSION" = x; then 21069 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21070 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21071 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21072 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21073 BOOT_JDK_FOUND=no 21074 else 21075 # We're done! :-) 21076 BOOT_JDK_FOUND=yes 21077 21078 # Only process if variable expands to non-empty 21079 21080 if test "x$BOOT_JDK" != x; then 21081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21082 21083 # Input might be given as Windows format, start by converting to 21084 # unix format. 21085 path="$BOOT_JDK" 21086 new_path=`$CYGPATH -u "$path"` 21087 21088 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21089 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21090 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21091 # "foo.exe" is OK but "foo" is an error. 21092 # 21093 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21094 # It is also a way to make sure we got the proper file name for the real test later on. 21095 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21096 if test "x$test_shortpath" = x; then 21097 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21098 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21099 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21100 fi 21101 21102 # Call helper function which possibly converts this using DOS-style short mode. 21103 # If so, the updated path is stored in $new_path. 21104 21105 input_path="$new_path" 21106 # Check if we need to convert this using DOS-style short mode. If the path 21107 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21108 # take no chances and rewrite it. 21109 # Note: m4 eats our [], so we need to use [ and ] instead. 21110 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21111 if test "x$has_forbidden_chars" != x; then 21112 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21113 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21114 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21115 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21116 # Going to short mode and back again did indeed matter. Since short mode is 21117 # case insensitive, let's make it lowercase to improve readability. 21118 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21119 # Now convert it back to Unix-stile (cygpath) 21120 input_path=`$CYGPATH -u "$shortmode_path"` 21121 new_path="$input_path" 21122 fi 21123 fi 21124 21125 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21126 if test "x$test_cygdrive_prefix" = x; then 21127 # As a simple fix, exclude /usr/bin since it's not a real path. 21128 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21129 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21130 # a path prefixed by /cygdrive for fixpath to work. 21131 new_path="$CYGWIN_ROOT_PATH$input_path" 21132 fi 21133 fi 21134 21135 21136 if test "x$path" != "x$new_path"; then 21137 BOOT_JDK="$new_path" 21138 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21139 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21140 fi 21141 21142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21143 21144 path="$BOOT_JDK" 21145 has_colon=`$ECHO $path | $GREP ^.:` 21146 new_path="$path" 21147 if test "x$has_colon" = x; then 21148 # Not in mixed or Windows style, start by that. 21149 new_path=`cmd //c echo $path` 21150 fi 21151 21152 21153 input_path="$new_path" 21154 # Check if we need to convert this using DOS-style short mode. If the path 21155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21156 # take no chances and rewrite it. 21157 # Note: m4 eats our [], so we need to use [ and ] instead. 21158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21159 if test "x$has_forbidden_chars" != x; then 21160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21161 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21162 fi 21163 21164 21165 windows_path="$new_path" 21166 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21167 unix_path=`$CYGPATH -u "$windows_path"` 21168 new_path="$unix_path" 21169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21170 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21171 new_path="$unix_path" 21172 fi 21173 21174 if test "x$path" != "x$new_path"; then 21175 BOOT_JDK="$new_path" 21176 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21177 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21178 fi 21179 21180 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21181 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21182 21183 else 21184 # We're on a unix platform. Hooray! :) 21185 path="$BOOT_JDK" 21186 has_space=`$ECHO "$path" | $GREP " "` 21187 if test "x$has_space" != x; then 21188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21189 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21190 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21191 fi 21192 21193 # Use eval to expand a potential ~ 21194 eval path="$path" 21195 if test ! -f "$path" && test ! -d "$path"; then 21196 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21197 fi 21198 21199 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21200 fi 21201 fi 21202 21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21204 $as_echo_n "checking for Boot JDK... " >&6; } 21205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21206 $as_echo "$BOOT_JDK" >&6; } 21207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21208 $as_echo_n "checking Boot JDK version... " >&6; } 21209 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21211 $as_echo "$BOOT_JDK_VERSION" >&6; } 21212 fi # end check jdk version 21213 fi # end check javac 21214 fi # end check java 21215 fi # end check boot jdk found 21216 fi 21217 21218 21219 if test "x$BOOT_JDK_FOUND" = xno; then 21220 # Now execute the test 21221 21222 if test -x /usr/libexec/java_home; then 21223 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 21224 BOOT_JDK_FOUND=maybe 21225 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 21226 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 21227 fi 21228 21229 21230 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21231 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21232 # Do we have a bin/java? 21233 if test ! -x "$BOOT_JDK/bin/java"; then 21234 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21235 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21236 BOOT_JDK_FOUND=no 21237 else 21238 # Do we have a bin/javac? 21239 if test ! -x "$BOOT_JDK/bin/javac"; then 21240 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21242 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21243 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21244 BOOT_JDK_FOUND=no 21245 else 21246 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21247 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21248 21249 # Extra M4 quote needed to protect [] in grep expression. 21250 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21251 if test "x$FOUND_CORRECT_VERSION" = x; then 21252 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21253 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21254 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21255 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21256 BOOT_JDK_FOUND=no 21257 else 21258 # We're done! :-) 21259 BOOT_JDK_FOUND=yes 21260 21261 # Only process if variable expands to non-empty 21262 21263 if test "x$BOOT_JDK" != x; then 21264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21265 21266 # Input might be given as Windows format, start by converting to 21267 # unix format. 21268 path="$BOOT_JDK" 21269 new_path=`$CYGPATH -u "$path"` 21270 21271 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21272 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21273 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21274 # "foo.exe" is OK but "foo" is an error. 21275 # 21276 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21277 # It is also a way to make sure we got the proper file name for the real test later on. 21278 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21279 if test "x$test_shortpath" = x; then 21280 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21281 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21282 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21283 fi 21284 21285 # Call helper function which possibly converts this using DOS-style short mode. 21286 # If so, the updated path is stored in $new_path. 21287 21288 input_path="$new_path" 21289 # Check if we need to convert this using DOS-style short mode. If the path 21290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21291 # take no chances and rewrite it. 21292 # Note: m4 eats our [], so we need to use [ and ] instead. 21293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21294 if test "x$has_forbidden_chars" != x; then 21295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21296 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21297 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21298 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21299 # Going to short mode and back again did indeed matter. Since short mode is 21300 # case insensitive, let's make it lowercase to improve readability. 21301 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21302 # Now convert it back to Unix-stile (cygpath) 21303 input_path=`$CYGPATH -u "$shortmode_path"` 21304 new_path="$input_path" 21305 fi 21306 fi 21307 21308 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21309 if test "x$test_cygdrive_prefix" = x; then 21310 # As a simple fix, exclude /usr/bin since it's not a real path. 21311 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21312 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21313 # a path prefixed by /cygdrive for fixpath to work. 21314 new_path="$CYGWIN_ROOT_PATH$input_path" 21315 fi 21316 fi 21317 21318 21319 if test "x$path" != "x$new_path"; then 21320 BOOT_JDK="$new_path" 21321 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21322 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21323 fi 21324 21325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21326 21327 path="$BOOT_JDK" 21328 has_colon=`$ECHO $path | $GREP ^.:` 21329 new_path="$path" 21330 if test "x$has_colon" = x; then 21331 # Not in mixed or Windows style, start by that. 21332 new_path=`cmd //c echo $path` 21333 fi 21334 21335 21336 input_path="$new_path" 21337 # Check if we need to convert this using DOS-style short mode. If the path 21338 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21339 # take no chances and rewrite it. 21340 # Note: m4 eats our [], so we need to use [ and ] instead. 21341 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21342 if test "x$has_forbidden_chars" != x; then 21343 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21344 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21345 fi 21346 21347 21348 windows_path="$new_path" 21349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21350 unix_path=`$CYGPATH -u "$windows_path"` 21351 new_path="$unix_path" 21352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21353 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21354 new_path="$unix_path" 21355 fi 21356 21357 if test "x$path" != "x$new_path"; then 21358 BOOT_JDK="$new_path" 21359 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21360 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21361 fi 21362 21363 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21364 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21365 21366 else 21367 # We're on a unix platform. Hooray! :) 21368 path="$BOOT_JDK" 21369 has_space=`$ECHO "$path" | $GREP " "` 21370 if test "x$has_space" != x; then 21371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21372 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21373 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21374 fi 21375 21376 # Use eval to expand a potential ~ 21377 eval path="$path" 21378 if test ! -f "$path" && test ! -d "$path"; then 21379 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21380 fi 21381 21382 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21383 fi 21384 fi 21385 21386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21387 $as_echo_n "checking for Boot JDK... " >&6; } 21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21389 $as_echo "$BOOT_JDK" >&6; } 21390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21391 $as_echo_n "checking Boot JDK version... " >&6; } 21392 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21394 $as_echo "$BOOT_JDK_VERSION" >&6; } 21395 fi # end check jdk version 21396 fi # end check javac 21397 fi # end check java 21398 fi # end check boot jdk found 21399 fi 21400 21401 fi 21402 21403 21404 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21405 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21406 # Do we have a bin/java? 21407 if test ! -x "$BOOT_JDK/bin/java"; then 21408 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21409 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21410 BOOT_JDK_FOUND=no 21411 else 21412 # Do we have a bin/javac? 21413 if test ! -x "$BOOT_JDK/bin/javac"; then 21414 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21415 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21416 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21417 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21418 BOOT_JDK_FOUND=no 21419 else 21420 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21421 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21422 21423 # Extra M4 quote needed to protect [] in grep expression. 21424 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21425 if test "x$FOUND_CORRECT_VERSION" = x; then 21426 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21427 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21428 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21429 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21430 BOOT_JDK_FOUND=no 21431 else 21432 # We're done! :-) 21433 BOOT_JDK_FOUND=yes 21434 21435 # Only process if variable expands to non-empty 21436 21437 if test "x$BOOT_JDK" != x; then 21438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21439 21440 # Input might be given as Windows format, start by converting to 21441 # unix format. 21442 path="$BOOT_JDK" 21443 new_path=`$CYGPATH -u "$path"` 21444 21445 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21446 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21447 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21448 # "foo.exe" is OK but "foo" is an error. 21449 # 21450 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21451 # It is also a way to make sure we got the proper file name for the real test later on. 21452 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21453 if test "x$test_shortpath" = x; then 21454 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21455 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21456 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21457 fi 21458 21459 # Call helper function which possibly converts this using DOS-style short mode. 21460 # If so, the updated path is stored in $new_path. 21461 21462 input_path="$new_path" 21463 # Check if we need to convert this using DOS-style short mode. If the path 21464 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21465 # take no chances and rewrite it. 21466 # Note: m4 eats our [], so we need to use [ and ] instead. 21467 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21468 if test "x$has_forbidden_chars" != x; then 21469 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21470 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21471 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21472 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21473 # Going to short mode and back again did indeed matter. Since short mode is 21474 # case insensitive, let's make it lowercase to improve readability. 21475 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21476 # Now convert it back to Unix-stile (cygpath) 21477 input_path=`$CYGPATH -u "$shortmode_path"` 21478 new_path="$input_path" 21479 fi 21480 fi 21481 21482 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21483 if test "x$test_cygdrive_prefix" = x; then 21484 # As a simple fix, exclude /usr/bin since it's not a real path. 21485 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21486 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21487 # a path prefixed by /cygdrive for fixpath to work. 21488 new_path="$CYGWIN_ROOT_PATH$input_path" 21489 fi 21490 fi 21491 21492 21493 if test "x$path" != "x$new_path"; then 21494 BOOT_JDK="$new_path" 21495 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21496 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21497 fi 21498 21499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21500 21501 path="$BOOT_JDK" 21502 has_colon=`$ECHO $path | $GREP ^.:` 21503 new_path="$path" 21504 if test "x$has_colon" = x; then 21505 # Not in mixed or Windows style, start by that. 21506 new_path=`cmd //c echo $path` 21507 fi 21508 21509 21510 input_path="$new_path" 21511 # Check if we need to convert this using DOS-style short mode. If the path 21512 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21513 # take no chances and rewrite it. 21514 # Note: m4 eats our [], so we need to use [ and ] instead. 21515 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21516 if test "x$has_forbidden_chars" != x; then 21517 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21518 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21519 fi 21520 21521 21522 windows_path="$new_path" 21523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21524 unix_path=`$CYGPATH -u "$windows_path"` 21525 new_path="$unix_path" 21526 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21527 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21528 new_path="$unix_path" 21529 fi 21530 21531 if test "x$path" != "x$new_path"; then 21532 BOOT_JDK="$new_path" 21533 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21534 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21535 fi 21536 21537 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21538 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21539 21540 else 21541 # We're on a unix platform. Hooray! :) 21542 path="$BOOT_JDK" 21543 has_space=`$ECHO "$path" | $GREP " "` 21544 if test "x$has_space" != x; then 21545 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21546 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21547 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21548 fi 21549 21550 # Use eval to expand a potential ~ 21551 eval path="$path" 21552 if test ! -f "$path" && test ! -d "$path"; then 21553 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21554 fi 21555 21556 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21557 fi 21558 fi 21559 21560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21561 $as_echo_n "checking for Boot JDK... " >&6; } 21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21563 $as_echo "$BOOT_JDK" >&6; } 21564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21565 $as_echo_n "checking Boot JDK version... " >&6; } 21566 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21568 $as_echo "$BOOT_JDK_VERSION" >&6; } 21569 fi # end check jdk version 21570 fi # end check javac 21571 fi # end check java 21572 fi # end check boot jdk found 21573 fi 21574 21575 21576 # Test: Is $JAVA_HOME set? 21577 21578 if test "x$BOOT_JDK_FOUND" = xno; then 21579 # Now execute the test 21580 21581 if test "x$JAVA_HOME" != x; then 21582 JAVA_HOME_PROCESSED="$JAVA_HOME" 21583 21584 # Only process if variable expands to non-empty 21585 21586 if test "x$JAVA_HOME_PROCESSED" != x; then 21587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21588 21589 # Input might be given as Windows format, start by converting to 21590 # unix format. 21591 path="$JAVA_HOME_PROCESSED" 21592 new_path=`$CYGPATH -u "$path"` 21593 21594 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21595 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21596 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21597 # "foo.exe" is OK but "foo" is an error. 21598 # 21599 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21600 # It is also a way to make sure we got the proper file name for the real test later on. 21601 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21602 if test "x$test_shortpath" = x; then 21603 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21604 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21605 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21606 fi 21607 21608 # Call helper function which possibly converts this using DOS-style short mode. 21609 # If so, the updated path is stored in $new_path. 21610 21611 input_path="$new_path" 21612 # Check if we need to convert this using DOS-style short mode. If the path 21613 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21614 # take no chances and rewrite it. 21615 # Note: m4 eats our [], so we need to use [ and ] instead. 21616 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21617 if test "x$has_forbidden_chars" != x; then 21618 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21619 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21620 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21621 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21622 # Going to short mode and back again did indeed matter. Since short mode is 21623 # case insensitive, let's make it lowercase to improve readability. 21624 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21625 # Now convert it back to Unix-stile (cygpath) 21626 input_path=`$CYGPATH -u "$shortmode_path"` 21627 new_path="$input_path" 21628 fi 21629 fi 21630 21631 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21632 if test "x$test_cygdrive_prefix" = x; then 21633 # As a simple fix, exclude /usr/bin since it's not a real path. 21634 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21635 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21636 # a path prefixed by /cygdrive for fixpath to work. 21637 new_path="$CYGWIN_ROOT_PATH$input_path" 21638 fi 21639 fi 21640 21641 21642 if test "x$path" != "x$new_path"; then 21643 JAVA_HOME_PROCESSED="$new_path" 21644 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21645 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21646 fi 21647 21648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21649 21650 path="$JAVA_HOME_PROCESSED" 21651 has_colon=`$ECHO $path | $GREP ^.:` 21652 new_path="$path" 21653 if test "x$has_colon" = x; then 21654 # Not in mixed or Windows style, start by that. 21655 new_path=`cmd //c echo $path` 21656 fi 21657 21658 21659 input_path="$new_path" 21660 # Check if we need to convert this using DOS-style short mode. If the path 21661 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21662 # take no chances and rewrite it. 21663 # Note: m4 eats our [], so we need to use [ and ] instead. 21664 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21665 if test "x$has_forbidden_chars" != x; then 21666 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21667 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21668 fi 21669 21670 21671 windows_path="$new_path" 21672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21673 unix_path=`$CYGPATH -u "$windows_path"` 21674 new_path="$unix_path" 21675 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21676 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21677 new_path="$unix_path" 21678 fi 21679 21680 if test "x$path" != "x$new_path"; then 21681 JAVA_HOME_PROCESSED="$new_path" 21682 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21683 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21684 fi 21685 21686 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21687 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21688 21689 else 21690 # We're on a unix platform. Hooray! :) 21691 path="$JAVA_HOME_PROCESSED" 21692 has_space=`$ECHO "$path" | $GREP " "` 21693 if test "x$has_space" != x; then 21694 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21695 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21696 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21697 fi 21698 21699 # Use eval to expand a potential ~ 21700 eval path="$path" 21701 if test ! -f "$path" && test ! -d "$path"; then 21702 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21703 fi 21704 21705 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21706 fi 21707 fi 21708 21709 if test ! -d "$JAVA_HOME_PROCESSED"; then 21710 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21711 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21712 else 21713 # Aha, the user has set a JAVA_HOME 21714 # let us use that as the Boot JDK. 21715 BOOT_JDK="$JAVA_HOME_PROCESSED" 21716 BOOT_JDK_FOUND=maybe 21717 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21718 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21719 fi 21720 fi 21721 21722 21723 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21724 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21725 # Do we have a bin/java? 21726 if test ! -x "$BOOT_JDK/bin/java"; then 21727 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21728 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21729 BOOT_JDK_FOUND=no 21730 else 21731 # Do we have a bin/javac? 21732 if test ! -x "$BOOT_JDK/bin/javac"; then 21733 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21734 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21735 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21736 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21737 BOOT_JDK_FOUND=no 21738 else 21739 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21740 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21741 21742 # Extra M4 quote needed to protect [] in grep expression. 21743 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21744 if test "x$FOUND_CORRECT_VERSION" = x; then 21745 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21746 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21747 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21748 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21749 BOOT_JDK_FOUND=no 21750 else 21751 # We're done! :-) 21752 BOOT_JDK_FOUND=yes 21753 21754 # Only process if variable expands to non-empty 21755 21756 if test "x$BOOT_JDK" != x; then 21757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21758 21759 # Input might be given as Windows format, start by converting to 21760 # unix format. 21761 path="$BOOT_JDK" 21762 new_path=`$CYGPATH -u "$path"` 21763 21764 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21765 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21766 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21767 # "foo.exe" is OK but "foo" is an error. 21768 # 21769 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21770 # It is also a way to make sure we got the proper file name for the real test later on. 21771 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21772 if test "x$test_shortpath" = x; then 21773 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21774 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21775 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21776 fi 21777 21778 # Call helper function which possibly converts this using DOS-style short mode. 21779 # If so, the updated path is stored in $new_path. 21780 21781 input_path="$new_path" 21782 # Check if we need to convert this using DOS-style short mode. If the path 21783 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21784 # take no chances and rewrite it. 21785 # Note: m4 eats our [], so we need to use [ and ] instead. 21786 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21787 if test "x$has_forbidden_chars" != x; then 21788 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21789 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21790 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21791 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21792 # Going to short mode and back again did indeed matter. Since short mode is 21793 # case insensitive, let's make it lowercase to improve readability. 21794 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21795 # Now convert it back to Unix-stile (cygpath) 21796 input_path=`$CYGPATH -u "$shortmode_path"` 21797 new_path="$input_path" 21798 fi 21799 fi 21800 21801 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21802 if test "x$test_cygdrive_prefix" = x; then 21803 # As a simple fix, exclude /usr/bin since it's not a real path. 21804 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21805 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21806 # a path prefixed by /cygdrive for fixpath to work. 21807 new_path="$CYGWIN_ROOT_PATH$input_path" 21808 fi 21809 fi 21810 21811 21812 if test "x$path" != "x$new_path"; then 21813 BOOT_JDK="$new_path" 21814 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21815 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21816 fi 21817 21818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21819 21820 path="$BOOT_JDK" 21821 has_colon=`$ECHO $path | $GREP ^.:` 21822 new_path="$path" 21823 if test "x$has_colon" = x; then 21824 # Not in mixed or Windows style, start by that. 21825 new_path=`cmd //c echo $path` 21826 fi 21827 21828 21829 input_path="$new_path" 21830 # Check if we need to convert this using DOS-style short mode. If the path 21831 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21832 # take no chances and rewrite it. 21833 # Note: m4 eats our [], so we need to use [ and ] instead. 21834 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21835 if test "x$has_forbidden_chars" != x; then 21836 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21837 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21838 fi 21839 21840 21841 windows_path="$new_path" 21842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21843 unix_path=`$CYGPATH -u "$windows_path"` 21844 new_path="$unix_path" 21845 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21846 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21847 new_path="$unix_path" 21848 fi 21849 21850 if test "x$path" != "x$new_path"; then 21851 BOOT_JDK="$new_path" 21852 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21853 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21854 fi 21855 21856 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21857 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21858 21859 else 21860 # We're on a unix platform. Hooray! :) 21861 path="$BOOT_JDK" 21862 has_space=`$ECHO "$path" | $GREP " "` 21863 if test "x$has_space" != x; then 21864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21865 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21866 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21867 fi 21868 21869 # Use eval to expand a potential ~ 21870 eval path="$path" 21871 if test ! -f "$path" && test ! -d "$path"; then 21872 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21873 fi 21874 21875 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21876 fi 21877 fi 21878 21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21880 $as_echo_n "checking for Boot JDK... " >&6; } 21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21882 $as_echo "$BOOT_JDK" >&6; } 21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21884 $as_echo_n "checking Boot JDK version... " >&6; } 21885 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21887 $as_echo "$BOOT_JDK_VERSION" >&6; } 21888 fi # end check jdk version 21889 fi # end check javac 21890 fi # end check java 21891 fi # end check boot jdk found 21892 fi 21893 21894 21895 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21896 21897 if test "x$BOOT_JDK_FOUND" = xno; then 21898 # Now execute the test 21899 21900 # Extract the first word of "javac", so it can be a program name with args. 21901 set dummy javac; ac_word=$2 21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21903 $as_echo_n "checking for $ac_word... " >&6; } 21904 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21905 $as_echo_n "(cached) " >&6 21906 else 21907 case $JAVAC_CHECK in 21908 [\\/]* | ?:[\\/]*) 21909 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21910 ;; 21911 *) 21912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21913 for as_dir in $PATH 21914 do 21915 IFS=$as_save_IFS 21916 test -z "$as_dir" && as_dir=. 21917 for ac_exec_ext in '' $ac_executable_extensions; do 21918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21919 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21921 break 2 21922 fi 21923 done 21924 done 21925 IFS=$as_save_IFS 21926 21927 ;; 21928 esac 21929 fi 21930 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21931 if test -n "$JAVAC_CHECK"; then 21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21933 $as_echo "$JAVAC_CHECK" >&6; } 21934 else 21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21936 $as_echo "no" >&6; } 21937 fi 21938 21939 21940 # Extract the first word of "java", so it can be a program name with args. 21941 set dummy java; ac_word=$2 21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21943 $as_echo_n "checking for $ac_word... " >&6; } 21944 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21945 $as_echo_n "(cached) " >&6 21946 else 21947 case $JAVA_CHECK in 21948 [\\/]* | ?:[\\/]*) 21949 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21950 ;; 21951 *) 21952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21953 for as_dir in $PATH 21954 do 21955 IFS=$as_save_IFS 21956 test -z "$as_dir" && as_dir=. 21957 for ac_exec_ext in '' $ac_executable_extensions; do 21958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21959 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21961 break 2 21962 fi 21963 done 21964 done 21965 IFS=$as_save_IFS 21966 21967 ;; 21968 esac 21969 fi 21970 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21971 if test -n "$JAVA_CHECK"; then 21972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21973 $as_echo "$JAVA_CHECK" >&6; } 21974 else 21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21976 $as_echo "no" >&6; } 21977 fi 21978 21979 21980 BINARY="$JAVAC_CHECK" 21981 if test "x$JAVAC_CHECK" = x; then 21982 BINARY="$JAVA_CHECK" 21983 fi 21984 if test "x$BINARY" != x; then 21985 # So there is a java(c) binary, it might be part of a JDK. 21986 # Lets find the JDK/JRE directory by following symbolic links. 21987 # Linux/GNU systems often have links from /usr/bin/java to 21988 # /etc/alternatives/java to the real JDK binary. 21989 21990 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21991 # Follow a chain of symbolic links. Use readlink 21992 # where it exists, else fall back to horribly 21993 # complicated shell code. 21994 if test "x$READLINK_TESTED" != yes; then 21995 # On MacOSX there is a readlink tool with a different 21996 # purpose than the GNU readlink tool. Check the found readlink. 21997 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21998 if test "x$ISGNU" = x; then 21999 # A readlink that we do not know how to use. 22000 # Are there other non-GNU readlinks out there? 22001 READLINK_TESTED=yes 22002 READLINK= 22003 fi 22004 fi 22005 22006 if test "x$READLINK" != x; then 22007 BINARY=`$READLINK -f $BINARY` 22008 else 22009 # Save the current directory for restoring afterwards 22010 STARTDIR=$PWD 22011 COUNTER=0 22012 sym_link_dir=`$DIRNAME $BINARY` 22013 sym_link_file=`$BASENAME $BINARY` 22014 cd $sym_link_dir 22015 # Use -P flag to resolve symlinks in directories. 22016 cd `$THEPWDCMD -P` 22017 sym_link_dir=`$THEPWDCMD -P` 22018 # Resolve file symlinks 22019 while test $COUNTER -lt 20; do 22020 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 22021 if test "x$ISLINK" == x; then 22022 # This is not a symbolic link! We are done! 22023 break 22024 fi 22025 # Again resolve directory symlinks since the target of the just found 22026 # link could be in a different directory 22027 cd `$DIRNAME $ISLINK` 22028 sym_link_dir=`$THEPWDCMD -P` 22029 sym_link_file=`$BASENAME $ISLINK` 22030 let COUNTER=COUNTER+1 22031 done 22032 cd $STARTDIR 22033 BINARY=$sym_link_dir/$sym_link_file 22034 fi 22035 fi 22036 22037 BOOT_JDK=`dirname "$BINARY"` 22038 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 22039 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 22040 # Looks like we found ourselves an JDK 22041 BOOT_JDK_FOUND=maybe 22042 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 22043 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 22044 fi 22045 fi 22046 22047 22048 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22049 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22050 # Do we have a bin/java? 22051 if test ! -x "$BOOT_JDK/bin/java"; then 22052 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22053 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22054 BOOT_JDK_FOUND=no 22055 else 22056 # Do we have a bin/javac? 22057 if test ! -x "$BOOT_JDK/bin/javac"; then 22058 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22059 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22060 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22061 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22062 BOOT_JDK_FOUND=no 22063 else 22064 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22065 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22066 22067 # Extra M4 quote needed to protect [] in grep expression. 22068 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22069 if test "x$FOUND_CORRECT_VERSION" = x; then 22070 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22071 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22072 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22073 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22074 BOOT_JDK_FOUND=no 22075 else 22076 # We're done! :-) 22077 BOOT_JDK_FOUND=yes 22078 22079 # Only process if variable expands to non-empty 22080 22081 if test "x$BOOT_JDK" != x; then 22082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22083 22084 # Input might be given as Windows format, start by converting to 22085 # unix format. 22086 path="$BOOT_JDK" 22087 new_path=`$CYGPATH -u "$path"` 22088 22089 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22090 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22091 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22092 # "foo.exe" is OK but "foo" is an error. 22093 # 22094 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22095 # It is also a way to make sure we got the proper file name for the real test later on. 22096 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22097 if test "x$test_shortpath" = x; then 22098 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22099 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22100 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22101 fi 22102 22103 # Call helper function which possibly converts this using DOS-style short mode. 22104 # If so, the updated path is stored in $new_path. 22105 22106 input_path="$new_path" 22107 # Check if we need to convert this using DOS-style short mode. If the path 22108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22109 # take no chances and rewrite it. 22110 # Note: m4 eats our [], so we need to use [ and ] instead. 22111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22112 if test "x$has_forbidden_chars" != x; then 22113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22114 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22115 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22116 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22117 # Going to short mode and back again did indeed matter. Since short mode is 22118 # case insensitive, let's make it lowercase to improve readability. 22119 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22120 # Now convert it back to Unix-stile (cygpath) 22121 input_path=`$CYGPATH -u "$shortmode_path"` 22122 new_path="$input_path" 22123 fi 22124 fi 22125 22126 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22127 if test "x$test_cygdrive_prefix" = x; then 22128 # As a simple fix, exclude /usr/bin since it's not a real path. 22129 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22130 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22131 # a path prefixed by /cygdrive for fixpath to work. 22132 new_path="$CYGWIN_ROOT_PATH$input_path" 22133 fi 22134 fi 22135 22136 22137 if test "x$path" != "x$new_path"; then 22138 BOOT_JDK="$new_path" 22139 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22140 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22141 fi 22142 22143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22144 22145 path="$BOOT_JDK" 22146 has_colon=`$ECHO $path | $GREP ^.:` 22147 new_path="$path" 22148 if test "x$has_colon" = x; then 22149 # Not in mixed or Windows style, start by that. 22150 new_path=`cmd //c echo $path` 22151 fi 22152 22153 22154 input_path="$new_path" 22155 # Check if we need to convert this using DOS-style short mode. If the path 22156 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22157 # take no chances and rewrite it. 22158 # Note: m4 eats our [], so we need to use [ and ] instead. 22159 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22160 if test "x$has_forbidden_chars" != x; then 22161 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22162 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22163 fi 22164 22165 22166 windows_path="$new_path" 22167 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22168 unix_path=`$CYGPATH -u "$windows_path"` 22169 new_path="$unix_path" 22170 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22171 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22172 new_path="$unix_path" 22173 fi 22174 22175 if test "x$path" != "x$new_path"; then 22176 BOOT_JDK="$new_path" 22177 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22178 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22179 fi 22180 22181 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22182 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22183 22184 else 22185 # We're on a unix platform. Hooray! :) 22186 path="$BOOT_JDK" 22187 has_space=`$ECHO "$path" | $GREP " "` 22188 if test "x$has_space" != x; then 22189 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22190 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22191 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22192 fi 22193 22194 # Use eval to expand a potential ~ 22195 eval path="$path" 22196 if test ! -f "$path" && test ! -d "$path"; then 22197 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22198 fi 22199 22200 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22201 fi 22202 fi 22203 22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22205 $as_echo_n "checking for Boot JDK... " >&6; } 22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22207 $as_echo "$BOOT_JDK" >&6; } 22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22209 $as_echo_n "checking Boot JDK version... " >&6; } 22210 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22212 $as_echo "$BOOT_JDK_VERSION" >&6; } 22213 fi # end check jdk version 22214 fi # end check javac 22215 fi # end check java 22216 fi # end check boot jdk found 22217 fi 22218 22219 22220 # Test: Is there a JDK installed in default, well-known locations? 22221 22222 if test "x$BOOT_JDK_FOUND" = xno; then 22223 # Now execute the test 22224 22225 if test "x$OPENJDK_TARGET_OS" = xwindows; then 22226 22227 if test "x$BOOT_JDK_FOUND" = xno; then 22228 # Now execute the test 22229 22230 if test "x$ProgramW6432" != x; then 22231 VIRTUAL_DIR="$ProgramW6432/Java" 22232 22233 windows_path="$VIRTUAL_DIR" 22234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22235 unix_path=`$CYGPATH -u "$windows_path"` 22236 VIRTUAL_DIR="$unix_path" 22237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22239 VIRTUAL_DIR="$unix_path" 22240 fi 22241 22242 22243 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22244 BOOT_JDK_SUFFIX="" 22245 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22246 if test "x$ALL_JDKS_FOUND" != x; then 22247 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22248 22249 if test "x$BOOT_JDK_FOUND" = xno; then 22250 # Now execute the test 22251 22252 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22253 if test -d "$BOOT_JDK"; then 22254 BOOT_JDK_FOUND=maybe 22255 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22256 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22257 fi 22258 22259 22260 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22261 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22262 # Do we have a bin/java? 22263 if test ! -x "$BOOT_JDK/bin/java"; then 22264 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22265 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22266 BOOT_JDK_FOUND=no 22267 else 22268 # Do we have a bin/javac? 22269 if test ! -x "$BOOT_JDK/bin/javac"; then 22270 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22271 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22272 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22273 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22274 BOOT_JDK_FOUND=no 22275 else 22276 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22277 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22278 22279 # Extra M4 quote needed to protect [] in grep expression. 22280 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22281 if test "x$FOUND_CORRECT_VERSION" = x; then 22282 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22283 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22284 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22285 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22286 BOOT_JDK_FOUND=no 22287 else 22288 # We're done! :-) 22289 BOOT_JDK_FOUND=yes 22290 22291 # Only process if variable expands to non-empty 22292 22293 if test "x$BOOT_JDK" != x; then 22294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22295 22296 # Input might be given as Windows format, start by converting to 22297 # unix format. 22298 path="$BOOT_JDK" 22299 new_path=`$CYGPATH -u "$path"` 22300 22301 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22302 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22303 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22304 # "foo.exe" is OK but "foo" is an error. 22305 # 22306 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22307 # It is also a way to make sure we got the proper file name for the real test later on. 22308 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22309 if test "x$test_shortpath" = x; then 22310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22311 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22312 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22313 fi 22314 22315 # Call helper function which possibly converts this using DOS-style short mode. 22316 # If so, the updated path is stored in $new_path. 22317 22318 input_path="$new_path" 22319 # Check if we need to convert this using DOS-style short mode. If the path 22320 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22321 # take no chances and rewrite it. 22322 # Note: m4 eats our [], so we need to use [ and ] instead. 22323 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22324 if test "x$has_forbidden_chars" != x; then 22325 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22326 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22327 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22328 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22329 # Going to short mode and back again did indeed matter. Since short mode is 22330 # case insensitive, let's make it lowercase to improve readability. 22331 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22332 # Now convert it back to Unix-stile (cygpath) 22333 input_path=`$CYGPATH -u "$shortmode_path"` 22334 new_path="$input_path" 22335 fi 22336 fi 22337 22338 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22339 if test "x$test_cygdrive_prefix" = x; then 22340 # As a simple fix, exclude /usr/bin since it's not a real path. 22341 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22342 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22343 # a path prefixed by /cygdrive for fixpath to work. 22344 new_path="$CYGWIN_ROOT_PATH$input_path" 22345 fi 22346 fi 22347 22348 22349 if test "x$path" != "x$new_path"; then 22350 BOOT_JDK="$new_path" 22351 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22352 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22353 fi 22354 22355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22356 22357 path="$BOOT_JDK" 22358 has_colon=`$ECHO $path | $GREP ^.:` 22359 new_path="$path" 22360 if test "x$has_colon" = x; then 22361 # Not in mixed or Windows style, start by that. 22362 new_path=`cmd //c echo $path` 22363 fi 22364 22365 22366 input_path="$new_path" 22367 # Check if we need to convert this using DOS-style short mode. If the path 22368 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22369 # take no chances and rewrite it. 22370 # Note: m4 eats our [], so we need to use [ and ] instead. 22371 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22372 if test "x$has_forbidden_chars" != x; then 22373 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22374 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22375 fi 22376 22377 22378 windows_path="$new_path" 22379 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22380 unix_path=`$CYGPATH -u "$windows_path"` 22381 new_path="$unix_path" 22382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22383 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22384 new_path="$unix_path" 22385 fi 22386 22387 if test "x$path" != "x$new_path"; then 22388 BOOT_JDK="$new_path" 22389 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22390 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22391 fi 22392 22393 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22394 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22395 22396 else 22397 # We're on a unix platform. Hooray! :) 22398 path="$BOOT_JDK" 22399 has_space=`$ECHO "$path" | $GREP " "` 22400 if test "x$has_space" != x; then 22401 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22402 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22403 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22404 fi 22405 22406 # Use eval to expand a potential ~ 22407 eval path="$path" 22408 if test ! -f "$path" && test ! -d "$path"; then 22409 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22410 fi 22411 22412 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22413 fi 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 javac 22427 fi # end check java 22428 fi # end check boot jdk found 22429 fi 22430 22431 done 22432 fi 22433 22434 fi 22435 22436 22437 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22438 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22439 # Do we have a bin/java? 22440 if test ! -x "$BOOT_JDK/bin/java"; then 22441 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22442 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22443 BOOT_JDK_FOUND=no 22444 else 22445 # Do we have a bin/javac? 22446 if test ! -x "$BOOT_JDK/bin/javac"; then 22447 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22449 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22450 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22451 BOOT_JDK_FOUND=no 22452 else 22453 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22454 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22455 22456 # Extra M4 quote needed to protect [] in grep expression. 22457 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22458 if test "x$FOUND_CORRECT_VERSION" = x; then 22459 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22460 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22461 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22462 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22463 BOOT_JDK_FOUND=no 22464 else 22465 # We're done! :-) 22466 BOOT_JDK_FOUND=yes 22467 22468 # Only process if variable expands to non-empty 22469 22470 if test "x$BOOT_JDK" != x; then 22471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22472 22473 # Input might be given as Windows format, start by converting to 22474 # unix format. 22475 path="$BOOT_JDK" 22476 new_path=`$CYGPATH -u "$path"` 22477 22478 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22479 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22480 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22481 # "foo.exe" is OK but "foo" is an error. 22482 # 22483 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22484 # It is also a way to make sure we got the proper file name for the real test later on. 22485 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22486 if test "x$test_shortpath" = x; then 22487 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22488 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22489 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22490 fi 22491 22492 # Call helper function which possibly converts this using DOS-style short mode. 22493 # If so, the updated path is stored in $new_path. 22494 22495 input_path="$new_path" 22496 # Check if we need to convert this using DOS-style short mode. If the path 22497 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22498 # take no chances and rewrite it. 22499 # Note: m4 eats our [], so we need to use [ and ] instead. 22500 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22501 if test "x$has_forbidden_chars" != x; then 22502 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22503 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22504 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22505 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22506 # Going to short mode and back again did indeed matter. Since short mode is 22507 # case insensitive, let's make it lowercase to improve readability. 22508 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22509 # Now convert it back to Unix-stile (cygpath) 22510 input_path=`$CYGPATH -u "$shortmode_path"` 22511 new_path="$input_path" 22512 fi 22513 fi 22514 22515 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22516 if test "x$test_cygdrive_prefix" = x; then 22517 # As a simple fix, exclude /usr/bin since it's not a real path. 22518 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22519 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22520 # a path prefixed by /cygdrive for fixpath to work. 22521 new_path="$CYGWIN_ROOT_PATH$input_path" 22522 fi 22523 fi 22524 22525 22526 if test "x$path" != "x$new_path"; then 22527 BOOT_JDK="$new_path" 22528 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22529 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22530 fi 22531 22532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22533 22534 path="$BOOT_JDK" 22535 has_colon=`$ECHO $path | $GREP ^.:` 22536 new_path="$path" 22537 if test "x$has_colon" = x; then 22538 # Not in mixed or Windows style, start by that. 22539 new_path=`cmd //c echo $path` 22540 fi 22541 22542 22543 input_path="$new_path" 22544 # Check if we need to convert this using DOS-style short mode. If the path 22545 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22546 # take no chances and rewrite it. 22547 # Note: m4 eats our [], so we need to use [ and ] instead. 22548 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22549 if test "x$has_forbidden_chars" != x; then 22550 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22551 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22552 fi 22553 22554 22555 windows_path="$new_path" 22556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22557 unix_path=`$CYGPATH -u "$windows_path"` 22558 new_path="$unix_path" 22559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22560 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22561 new_path="$unix_path" 22562 fi 22563 22564 if test "x$path" != "x$new_path"; then 22565 BOOT_JDK="$new_path" 22566 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22567 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22568 fi 22569 22570 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22571 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22572 22573 else 22574 # We're on a unix platform. Hooray! :) 22575 path="$BOOT_JDK" 22576 has_space=`$ECHO "$path" | $GREP " "` 22577 if test "x$has_space" != x; then 22578 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22579 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22580 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22581 fi 22582 22583 # Use eval to expand a potential ~ 22584 eval path="$path" 22585 if test ! -f "$path" && test ! -d "$path"; then 22586 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22587 fi 22588 22589 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22590 fi 22591 fi 22592 22593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22594 $as_echo_n "checking for Boot JDK... " >&6; } 22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22596 $as_echo "$BOOT_JDK" >&6; } 22597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22598 $as_echo_n "checking Boot JDK version... " >&6; } 22599 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22601 $as_echo "$BOOT_JDK_VERSION" >&6; } 22602 fi # end check jdk version 22603 fi # end check javac 22604 fi # end check java 22605 fi # end check boot jdk found 22606 fi 22607 22608 22609 if test "x$BOOT_JDK_FOUND" = xno; then 22610 # Now execute the test 22611 22612 if test "x$PROGRAMW6432" != x; then 22613 VIRTUAL_DIR="$PROGRAMW6432/Java" 22614 22615 windows_path="$VIRTUAL_DIR" 22616 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22617 unix_path=`$CYGPATH -u "$windows_path"` 22618 VIRTUAL_DIR="$unix_path" 22619 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22620 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22621 VIRTUAL_DIR="$unix_path" 22622 fi 22623 22624 22625 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22626 BOOT_JDK_SUFFIX="" 22627 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22628 if test "x$ALL_JDKS_FOUND" != x; then 22629 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22630 22631 if test "x$BOOT_JDK_FOUND" = xno; then 22632 # Now execute the test 22633 22634 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22635 if test -d "$BOOT_JDK"; then 22636 BOOT_JDK_FOUND=maybe 22637 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22638 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22639 fi 22640 22641 22642 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22643 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22644 # Do we have a bin/java? 22645 if test ! -x "$BOOT_JDK/bin/java"; then 22646 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22647 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22648 BOOT_JDK_FOUND=no 22649 else 22650 # Do we have a bin/javac? 22651 if test ! -x "$BOOT_JDK/bin/javac"; then 22652 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22653 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22654 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22655 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22656 BOOT_JDK_FOUND=no 22657 else 22658 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22659 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22660 22661 # Extra M4 quote needed to protect [] in grep expression. 22662 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22663 if test "x$FOUND_CORRECT_VERSION" = x; then 22664 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22665 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22666 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22667 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22668 BOOT_JDK_FOUND=no 22669 else 22670 # We're done! :-) 22671 BOOT_JDK_FOUND=yes 22672 22673 # Only process if variable expands to non-empty 22674 22675 if test "x$BOOT_JDK" != x; then 22676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22677 22678 # Input might be given as Windows format, start by converting to 22679 # unix format. 22680 path="$BOOT_JDK" 22681 new_path=`$CYGPATH -u "$path"` 22682 22683 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22684 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22685 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22686 # "foo.exe" is OK but "foo" is an error. 22687 # 22688 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22689 # It is also a way to make sure we got the proper file name for the real test later on. 22690 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22691 if test "x$test_shortpath" = x; then 22692 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22693 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22694 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22695 fi 22696 22697 # Call helper function which possibly converts this using DOS-style short mode. 22698 # If so, the updated path is stored in $new_path. 22699 22700 input_path="$new_path" 22701 # Check if we need to convert this using DOS-style short mode. If the path 22702 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22703 # take no chances and rewrite it. 22704 # Note: m4 eats our [], so we need to use [ and ] instead. 22705 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22706 if test "x$has_forbidden_chars" != x; then 22707 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22708 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22709 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22710 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22711 # Going to short mode and back again did indeed matter. Since short mode is 22712 # case insensitive, let's make it lowercase to improve readability. 22713 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22714 # Now convert it back to Unix-stile (cygpath) 22715 input_path=`$CYGPATH -u "$shortmode_path"` 22716 new_path="$input_path" 22717 fi 22718 fi 22719 22720 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22721 if test "x$test_cygdrive_prefix" = x; then 22722 # As a simple fix, exclude /usr/bin since it's not a real path. 22723 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22724 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22725 # a path prefixed by /cygdrive for fixpath to work. 22726 new_path="$CYGWIN_ROOT_PATH$input_path" 22727 fi 22728 fi 22729 22730 22731 if test "x$path" != "x$new_path"; then 22732 BOOT_JDK="$new_path" 22733 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22734 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22735 fi 22736 22737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22738 22739 path="$BOOT_JDK" 22740 has_colon=`$ECHO $path | $GREP ^.:` 22741 new_path="$path" 22742 if test "x$has_colon" = x; then 22743 # Not in mixed or Windows style, start by that. 22744 new_path=`cmd //c echo $path` 22745 fi 22746 22747 22748 input_path="$new_path" 22749 # Check if we need to convert this using DOS-style short mode. If the path 22750 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22751 # take no chances and rewrite it. 22752 # Note: m4 eats our [], so we need to use [ and ] instead. 22753 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22754 if test "x$has_forbidden_chars" != x; then 22755 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22756 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22757 fi 22758 22759 22760 windows_path="$new_path" 22761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22762 unix_path=`$CYGPATH -u "$windows_path"` 22763 new_path="$unix_path" 22764 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22765 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22766 new_path="$unix_path" 22767 fi 22768 22769 if test "x$path" != "x$new_path"; then 22770 BOOT_JDK="$new_path" 22771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22772 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22773 fi 22774 22775 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22776 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22777 22778 else 22779 # We're on a unix platform. Hooray! :) 22780 path="$BOOT_JDK" 22781 has_space=`$ECHO "$path" | $GREP " "` 22782 if test "x$has_space" != x; then 22783 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22784 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22785 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22786 fi 22787 22788 # Use eval to expand a potential ~ 22789 eval path="$path" 22790 if test ! -f "$path" && test ! -d "$path"; then 22791 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22792 fi 22793 22794 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22795 fi 22796 fi 22797 22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22799 $as_echo_n "checking for Boot JDK... " >&6; } 22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22801 $as_echo "$BOOT_JDK" >&6; } 22802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22803 $as_echo_n "checking Boot JDK version... " >&6; } 22804 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22806 $as_echo "$BOOT_JDK_VERSION" >&6; } 22807 fi # end check jdk version 22808 fi # end check javac 22809 fi # end check java 22810 fi # end check boot jdk found 22811 fi 22812 22813 done 22814 fi 22815 22816 fi 22817 22818 22819 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22820 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22821 # Do we have a bin/java? 22822 if test ! -x "$BOOT_JDK/bin/java"; then 22823 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22824 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22825 BOOT_JDK_FOUND=no 22826 else 22827 # Do we have a bin/javac? 22828 if test ! -x "$BOOT_JDK/bin/javac"; then 22829 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22830 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22831 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22832 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22833 BOOT_JDK_FOUND=no 22834 else 22835 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22836 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22837 22838 # Extra M4 quote needed to protect [] in grep expression. 22839 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22840 if test "x$FOUND_CORRECT_VERSION" = x; then 22841 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22842 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22843 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22844 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22845 BOOT_JDK_FOUND=no 22846 else 22847 # We're done! :-) 22848 BOOT_JDK_FOUND=yes 22849 22850 # Only process if variable expands to non-empty 22851 22852 if test "x$BOOT_JDK" != x; then 22853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22854 22855 # Input might be given as Windows format, start by converting to 22856 # unix format. 22857 path="$BOOT_JDK" 22858 new_path=`$CYGPATH -u "$path"` 22859 22860 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22861 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22862 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22863 # "foo.exe" is OK but "foo" is an error. 22864 # 22865 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22866 # It is also a way to make sure we got the proper file name for the real test later on. 22867 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22868 if test "x$test_shortpath" = x; then 22869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22870 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22871 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22872 fi 22873 22874 # Call helper function which possibly converts this using DOS-style short mode. 22875 # If so, the updated path is stored in $new_path. 22876 22877 input_path="$new_path" 22878 # Check if we need to convert this using DOS-style short mode. If the path 22879 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22880 # take no chances and rewrite it. 22881 # Note: m4 eats our [], so we need to use [ and ] instead. 22882 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22883 if test "x$has_forbidden_chars" != x; then 22884 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22885 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22886 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22887 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22888 # Going to short mode and back again did indeed matter. Since short mode is 22889 # case insensitive, let's make it lowercase to improve readability. 22890 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22891 # Now convert it back to Unix-stile (cygpath) 22892 input_path=`$CYGPATH -u "$shortmode_path"` 22893 new_path="$input_path" 22894 fi 22895 fi 22896 22897 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22898 if test "x$test_cygdrive_prefix" = x; then 22899 # As a simple fix, exclude /usr/bin since it's not a real path. 22900 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22901 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22902 # a path prefixed by /cygdrive for fixpath to work. 22903 new_path="$CYGWIN_ROOT_PATH$input_path" 22904 fi 22905 fi 22906 22907 22908 if test "x$path" != "x$new_path"; then 22909 BOOT_JDK="$new_path" 22910 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22911 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22912 fi 22913 22914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22915 22916 path="$BOOT_JDK" 22917 has_colon=`$ECHO $path | $GREP ^.:` 22918 new_path="$path" 22919 if test "x$has_colon" = x; then 22920 # Not in mixed or Windows style, start by that. 22921 new_path=`cmd //c echo $path` 22922 fi 22923 22924 22925 input_path="$new_path" 22926 # Check if we need to convert this using DOS-style short mode. If the path 22927 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22928 # take no chances and rewrite it. 22929 # Note: m4 eats our [], so we need to use [ and ] instead. 22930 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22931 if test "x$has_forbidden_chars" != x; then 22932 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22933 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22934 fi 22935 22936 22937 windows_path="$new_path" 22938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22939 unix_path=`$CYGPATH -u "$windows_path"` 22940 new_path="$unix_path" 22941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22942 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22943 new_path="$unix_path" 22944 fi 22945 22946 if test "x$path" != "x$new_path"; then 22947 BOOT_JDK="$new_path" 22948 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22949 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22950 fi 22951 22952 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22953 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22954 22955 else 22956 # We're on a unix platform. Hooray! :) 22957 path="$BOOT_JDK" 22958 has_space=`$ECHO "$path" | $GREP " "` 22959 if test "x$has_space" != x; then 22960 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22961 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22962 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22963 fi 22964 22965 # Use eval to expand a potential ~ 22966 eval path="$path" 22967 if test ! -f "$path" && test ! -d "$path"; then 22968 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22969 fi 22970 22971 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22972 fi 22973 fi 22974 22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22976 $as_echo_n "checking for Boot JDK... " >&6; } 22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22978 $as_echo "$BOOT_JDK" >&6; } 22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22980 $as_echo_n "checking Boot JDK version... " >&6; } 22981 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22983 $as_echo "$BOOT_JDK_VERSION" >&6; } 22984 fi # end check jdk version 22985 fi # end check javac 22986 fi # end check java 22987 fi # end check boot jdk found 22988 fi 22989 22990 22991 if test "x$BOOT_JDK_FOUND" = xno; then 22992 # Now execute the test 22993 22994 if test "x$PROGRAMFILES" != x; then 22995 VIRTUAL_DIR="$PROGRAMFILES/Java" 22996 22997 windows_path="$VIRTUAL_DIR" 22998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22999 unix_path=`$CYGPATH -u "$windows_path"` 23000 VIRTUAL_DIR="$unix_path" 23001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23002 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23003 VIRTUAL_DIR="$unix_path" 23004 fi 23005 23006 23007 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23008 BOOT_JDK_SUFFIX="" 23009 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23010 if test "x$ALL_JDKS_FOUND" != x; then 23011 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23012 23013 if test "x$BOOT_JDK_FOUND" = xno; then 23014 # Now execute the test 23015 23016 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23017 if test -d "$BOOT_JDK"; then 23018 BOOT_JDK_FOUND=maybe 23019 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23020 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23021 fi 23022 23023 23024 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23025 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23026 # Do we have a bin/java? 23027 if test ! -x "$BOOT_JDK/bin/java"; then 23028 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23029 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23030 BOOT_JDK_FOUND=no 23031 else 23032 # Do we have a bin/javac? 23033 if test ! -x "$BOOT_JDK/bin/javac"; then 23034 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23035 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23036 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23037 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23038 BOOT_JDK_FOUND=no 23039 else 23040 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23041 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23042 23043 # Extra M4 quote needed to protect [] in grep expression. 23044 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23045 if test "x$FOUND_CORRECT_VERSION" = x; then 23046 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23047 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23048 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23049 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23050 BOOT_JDK_FOUND=no 23051 else 23052 # We're done! :-) 23053 BOOT_JDK_FOUND=yes 23054 23055 # Only process if variable expands to non-empty 23056 23057 if test "x$BOOT_JDK" != x; then 23058 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23059 23060 # Input might be given as Windows format, start by converting to 23061 # unix format. 23062 path="$BOOT_JDK" 23063 new_path=`$CYGPATH -u "$path"` 23064 23065 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23066 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23067 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23068 # "foo.exe" is OK but "foo" is an error. 23069 # 23070 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23071 # It is also a way to make sure we got the proper file name for the real test later on. 23072 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23073 if test "x$test_shortpath" = x; then 23074 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23075 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23076 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23077 fi 23078 23079 # Call helper function which possibly converts this using DOS-style short mode. 23080 # If so, the updated path is stored in $new_path. 23081 23082 input_path="$new_path" 23083 # Check if we need to convert this using DOS-style short mode. If the path 23084 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23085 # take no chances and rewrite it. 23086 # Note: m4 eats our [], so we need to use [ and ] instead. 23087 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23088 if test "x$has_forbidden_chars" != x; then 23089 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23090 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23091 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23092 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23093 # Going to short mode and back again did indeed matter. Since short mode is 23094 # case insensitive, let's make it lowercase to improve readability. 23095 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23096 # Now convert it back to Unix-stile (cygpath) 23097 input_path=`$CYGPATH -u "$shortmode_path"` 23098 new_path="$input_path" 23099 fi 23100 fi 23101 23102 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23103 if test "x$test_cygdrive_prefix" = x; then 23104 # As a simple fix, exclude /usr/bin since it's not a real path. 23105 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23106 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23107 # a path prefixed by /cygdrive for fixpath to work. 23108 new_path="$CYGWIN_ROOT_PATH$input_path" 23109 fi 23110 fi 23111 23112 23113 if test "x$path" != "x$new_path"; then 23114 BOOT_JDK="$new_path" 23115 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23116 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23117 fi 23118 23119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23120 23121 path="$BOOT_JDK" 23122 has_colon=`$ECHO $path | $GREP ^.:` 23123 new_path="$path" 23124 if test "x$has_colon" = x; then 23125 # Not in mixed or Windows style, start by that. 23126 new_path=`cmd //c echo $path` 23127 fi 23128 23129 23130 input_path="$new_path" 23131 # Check if we need to convert this using DOS-style short mode. If the path 23132 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23133 # take no chances and rewrite it. 23134 # Note: m4 eats our [], so we need to use [ and ] instead. 23135 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23136 if test "x$has_forbidden_chars" != x; then 23137 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23138 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23139 fi 23140 23141 23142 windows_path="$new_path" 23143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23144 unix_path=`$CYGPATH -u "$windows_path"` 23145 new_path="$unix_path" 23146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23147 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23148 new_path="$unix_path" 23149 fi 23150 23151 if test "x$path" != "x$new_path"; then 23152 BOOT_JDK="$new_path" 23153 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23154 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23155 fi 23156 23157 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23158 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23159 23160 else 23161 # We're on a unix platform. Hooray! :) 23162 path="$BOOT_JDK" 23163 has_space=`$ECHO "$path" | $GREP " "` 23164 if test "x$has_space" != x; then 23165 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23166 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23167 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23168 fi 23169 23170 # Use eval to expand a potential ~ 23171 eval path="$path" 23172 if test ! -f "$path" && test ! -d "$path"; then 23173 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23174 fi 23175 23176 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23177 fi 23178 fi 23179 23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23181 $as_echo_n "checking for Boot JDK... " >&6; } 23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23183 $as_echo "$BOOT_JDK" >&6; } 23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23185 $as_echo_n "checking Boot JDK version... " >&6; } 23186 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23188 $as_echo "$BOOT_JDK_VERSION" >&6; } 23189 fi # end check jdk version 23190 fi # end check javac 23191 fi # end check java 23192 fi # end check boot jdk found 23193 fi 23194 23195 done 23196 fi 23197 23198 fi 23199 23200 23201 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23202 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23203 # Do we have a bin/java? 23204 if test ! -x "$BOOT_JDK/bin/java"; then 23205 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23206 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23207 BOOT_JDK_FOUND=no 23208 else 23209 # Do we have a bin/javac? 23210 if test ! -x "$BOOT_JDK/bin/javac"; then 23211 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23212 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23213 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23214 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23215 BOOT_JDK_FOUND=no 23216 else 23217 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23218 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23219 23220 # Extra M4 quote needed to protect [] in grep expression. 23221 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23222 if test "x$FOUND_CORRECT_VERSION" = x; then 23223 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23224 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23225 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23226 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23227 BOOT_JDK_FOUND=no 23228 else 23229 # We're done! :-) 23230 BOOT_JDK_FOUND=yes 23231 23232 # Only process if variable expands to non-empty 23233 23234 if test "x$BOOT_JDK" != x; then 23235 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23236 23237 # Input might be given as Windows format, start by converting to 23238 # unix format. 23239 path="$BOOT_JDK" 23240 new_path=`$CYGPATH -u "$path"` 23241 23242 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23243 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23244 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23245 # "foo.exe" is OK but "foo" is an error. 23246 # 23247 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23248 # It is also a way to make sure we got the proper file name for the real test later on. 23249 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23250 if test "x$test_shortpath" = x; then 23251 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23252 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23253 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23254 fi 23255 23256 # Call helper function which possibly converts this using DOS-style short mode. 23257 # If so, the updated path is stored in $new_path. 23258 23259 input_path="$new_path" 23260 # Check if we need to convert this using DOS-style short mode. If the path 23261 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23262 # take no chances and rewrite it. 23263 # Note: m4 eats our [], so we need to use [ and ] instead. 23264 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23265 if test "x$has_forbidden_chars" != x; then 23266 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23267 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23268 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23269 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23270 # Going to short mode and back again did indeed matter. Since short mode is 23271 # case insensitive, let's make it lowercase to improve readability. 23272 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23273 # Now convert it back to Unix-stile (cygpath) 23274 input_path=`$CYGPATH -u "$shortmode_path"` 23275 new_path="$input_path" 23276 fi 23277 fi 23278 23279 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23280 if test "x$test_cygdrive_prefix" = x; then 23281 # As a simple fix, exclude /usr/bin since it's not a real path. 23282 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23283 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23284 # a path prefixed by /cygdrive for fixpath to work. 23285 new_path="$CYGWIN_ROOT_PATH$input_path" 23286 fi 23287 fi 23288 23289 23290 if test "x$path" != "x$new_path"; then 23291 BOOT_JDK="$new_path" 23292 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23293 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23294 fi 23295 23296 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23297 23298 path="$BOOT_JDK" 23299 has_colon=`$ECHO $path | $GREP ^.:` 23300 new_path="$path" 23301 if test "x$has_colon" = x; then 23302 # Not in mixed or Windows style, start by that. 23303 new_path=`cmd //c echo $path` 23304 fi 23305 23306 23307 input_path="$new_path" 23308 # Check if we need to convert this using DOS-style short mode. If the path 23309 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23310 # take no chances and rewrite it. 23311 # Note: m4 eats our [], so we need to use [ and ] instead. 23312 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23313 if test "x$has_forbidden_chars" != x; then 23314 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23315 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23316 fi 23317 23318 23319 windows_path="$new_path" 23320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23321 unix_path=`$CYGPATH -u "$windows_path"` 23322 new_path="$unix_path" 23323 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23324 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23325 new_path="$unix_path" 23326 fi 23327 23328 if test "x$path" != "x$new_path"; then 23329 BOOT_JDK="$new_path" 23330 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23331 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23332 fi 23333 23334 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23335 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23336 23337 else 23338 # We're on a unix platform. Hooray! :) 23339 path="$BOOT_JDK" 23340 has_space=`$ECHO "$path" | $GREP " "` 23341 if test "x$has_space" != x; then 23342 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23343 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23344 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23345 fi 23346 23347 # Use eval to expand a potential ~ 23348 eval path="$path" 23349 if test ! -f "$path" && test ! -d "$path"; then 23350 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23351 fi 23352 23353 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23354 fi 23355 fi 23356 23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23358 $as_echo_n "checking for Boot JDK... " >&6; } 23359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23360 $as_echo "$BOOT_JDK" >&6; } 23361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23362 $as_echo_n "checking Boot JDK version... " >&6; } 23363 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23365 $as_echo "$BOOT_JDK_VERSION" >&6; } 23366 fi # end check jdk version 23367 fi # end check javac 23368 fi # end check java 23369 fi # end check boot jdk found 23370 fi 23371 23372 23373 if test "x$BOOT_JDK_FOUND" = xno; then 23374 # Now execute the test 23375 23376 if test "x$ProgramFiles" != x; then 23377 VIRTUAL_DIR="$ProgramFiles/Java" 23378 23379 windows_path="$VIRTUAL_DIR" 23380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23381 unix_path=`$CYGPATH -u "$windows_path"` 23382 VIRTUAL_DIR="$unix_path" 23383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23384 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23385 VIRTUAL_DIR="$unix_path" 23386 fi 23387 23388 23389 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23390 BOOT_JDK_SUFFIX="" 23391 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23392 if test "x$ALL_JDKS_FOUND" != x; then 23393 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23394 23395 if test "x$BOOT_JDK_FOUND" = xno; then 23396 # Now execute the test 23397 23398 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23399 if test -d "$BOOT_JDK"; then 23400 BOOT_JDK_FOUND=maybe 23401 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23402 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23403 fi 23404 23405 23406 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23407 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23408 # Do we have a bin/java? 23409 if test ! -x "$BOOT_JDK/bin/java"; then 23410 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23411 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23412 BOOT_JDK_FOUND=no 23413 else 23414 # Do we have a bin/javac? 23415 if test ! -x "$BOOT_JDK/bin/javac"; then 23416 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23417 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23418 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23419 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23420 BOOT_JDK_FOUND=no 23421 else 23422 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23423 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23424 23425 # Extra M4 quote needed to protect [] in grep expression. 23426 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23427 if test "x$FOUND_CORRECT_VERSION" = x; then 23428 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23429 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23430 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23431 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23432 BOOT_JDK_FOUND=no 23433 else 23434 # We're done! :-) 23435 BOOT_JDK_FOUND=yes 23436 23437 # Only process if variable expands to non-empty 23438 23439 if test "x$BOOT_JDK" != x; then 23440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23441 23442 # Input might be given as Windows format, start by converting to 23443 # unix format. 23444 path="$BOOT_JDK" 23445 new_path=`$CYGPATH -u "$path"` 23446 23447 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23448 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23449 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23450 # "foo.exe" is OK but "foo" is an error. 23451 # 23452 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23453 # It is also a way to make sure we got the proper file name for the real test later on. 23454 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23455 if test "x$test_shortpath" = x; then 23456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23457 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23458 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23459 fi 23460 23461 # Call helper function which possibly converts this using DOS-style short mode. 23462 # If so, the updated path is stored in $new_path. 23463 23464 input_path="$new_path" 23465 # Check if we need to convert this using DOS-style short mode. If the path 23466 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23467 # take no chances and rewrite it. 23468 # Note: m4 eats our [], so we need to use [ and ] instead. 23469 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23470 if test "x$has_forbidden_chars" != x; then 23471 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23472 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23473 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23474 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23475 # Going to short mode and back again did indeed matter. Since short mode is 23476 # case insensitive, let's make it lowercase to improve readability. 23477 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23478 # Now convert it back to Unix-stile (cygpath) 23479 input_path=`$CYGPATH -u "$shortmode_path"` 23480 new_path="$input_path" 23481 fi 23482 fi 23483 23484 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23485 if test "x$test_cygdrive_prefix" = x; then 23486 # As a simple fix, exclude /usr/bin since it's not a real path. 23487 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23488 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23489 # a path prefixed by /cygdrive for fixpath to work. 23490 new_path="$CYGWIN_ROOT_PATH$input_path" 23491 fi 23492 fi 23493 23494 23495 if test "x$path" != "x$new_path"; then 23496 BOOT_JDK="$new_path" 23497 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23498 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23499 fi 23500 23501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23502 23503 path="$BOOT_JDK" 23504 has_colon=`$ECHO $path | $GREP ^.:` 23505 new_path="$path" 23506 if test "x$has_colon" = x; then 23507 # Not in mixed or Windows style, start by that. 23508 new_path=`cmd //c echo $path` 23509 fi 23510 23511 23512 input_path="$new_path" 23513 # Check if we need to convert this using DOS-style short mode. If the path 23514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23515 # take no chances and rewrite it. 23516 # Note: m4 eats our [], so we need to use [ and ] instead. 23517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23518 if test "x$has_forbidden_chars" != x; then 23519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23520 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23521 fi 23522 23523 23524 windows_path="$new_path" 23525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23526 unix_path=`$CYGPATH -u "$windows_path"` 23527 new_path="$unix_path" 23528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23529 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23530 new_path="$unix_path" 23531 fi 23532 23533 if test "x$path" != "x$new_path"; then 23534 BOOT_JDK="$new_path" 23535 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23536 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23537 fi 23538 23539 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23540 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23541 23542 else 23543 # We're on a unix platform. Hooray! :) 23544 path="$BOOT_JDK" 23545 has_space=`$ECHO "$path" | $GREP " "` 23546 if test "x$has_space" != x; then 23547 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23548 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23549 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23550 fi 23551 23552 # Use eval to expand a potential ~ 23553 eval path="$path" 23554 if test ! -f "$path" && test ! -d "$path"; then 23555 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23556 fi 23557 23558 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23559 fi 23560 fi 23561 23562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23563 $as_echo_n "checking for Boot JDK... " >&6; } 23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23565 $as_echo "$BOOT_JDK" >&6; } 23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23567 $as_echo_n "checking Boot JDK version... " >&6; } 23568 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23570 $as_echo "$BOOT_JDK_VERSION" >&6; } 23571 fi # end check jdk version 23572 fi # end check javac 23573 fi # end check java 23574 fi # end check boot jdk found 23575 fi 23576 23577 done 23578 fi 23579 23580 fi 23581 23582 23583 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23584 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23585 # Do we have a bin/java? 23586 if test ! -x "$BOOT_JDK/bin/java"; then 23587 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23588 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23589 BOOT_JDK_FOUND=no 23590 else 23591 # Do we have a bin/javac? 23592 if test ! -x "$BOOT_JDK/bin/javac"; then 23593 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23594 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23595 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23596 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23597 BOOT_JDK_FOUND=no 23598 else 23599 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23600 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23601 23602 # Extra M4 quote needed to protect [] in grep expression. 23603 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23604 if test "x$FOUND_CORRECT_VERSION" = x; then 23605 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23606 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23607 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23608 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23609 BOOT_JDK_FOUND=no 23610 else 23611 # We're done! :-) 23612 BOOT_JDK_FOUND=yes 23613 23614 # Only process if variable expands to non-empty 23615 23616 if test "x$BOOT_JDK" != x; then 23617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23618 23619 # Input might be given as Windows format, start by converting to 23620 # unix format. 23621 path="$BOOT_JDK" 23622 new_path=`$CYGPATH -u "$path"` 23623 23624 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23625 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23626 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23627 # "foo.exe" is OK but "foo" is an error. 23628 # 23629 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23630 # It is also a way to make sure we got the proper file name for the real test later on. 23631 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23632 if test "x$test_shortpath" = x; then 23633 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23634 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23635 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23636 fi 23637 23638 # Call helper function which possibly converts this using DOS-style short mode. 23639 # If so, the updated path is stored in $new_path. 23640 23641 input_path="$new_path" 23642 # Check if we need to convert this using DOS-style short mode. If the path 23643 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23644 # take no chances and rewrite it. 23645 # Note: m4 eats our [], so we need to use [ and ] instead. 23646 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23647 if test "x$has_forbidden_chars" != x; then 23648 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23649 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23650 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23651 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23652 # Going to short mode and back again did indeed matter. Since short mode is 23653 # case insensitive, let's make it lowercase to improve readability. 23654 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23655 # Now convert it back to Unix-stile (cygpath) 23656 input_path=`$CYGPATH -u "$shortmode_path"` 23657 new_path="$input_path" 23658 fi 23659 fi 23660 23661 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23662 if test "x$test_cygdrive_prefix" = x; then 23663 # As a simple fix, exclude /usr/bin since it's not a real path. 23664 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23665 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23666 # a path prefixed by /cygdrive for fixpath to work. 23667 new_path="$CYGWIN_ROOT_PATH$input_path" 23668 fi 23669 fi 23670 23671 23672 if test "x$path" != "x$new_path"; then 23673 BOOT_JDK="$new_path" 23674 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23675 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23676 fi 23677 23678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23679 23680 path="$BOOT_JDK" 23681 has_colon=`$ECHO $path | $GREP ^.:` 23682 new_path="$path" 23683 if test "x$has_colon" = x; then 23684 # Not in mixed or Windows style, start by that. 23685 new_path=`cmd //c echo $path` 23686 fi 23687 23688 23689 input_path="$new_path" 23690 # Check if we need to convert this using DOS-style short mode. If the path 23691 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23692 # take no chances and rewrite it. 23693 # Note: m4 eats our [], so we need to use [ and ] instead. 23694 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23695 if test "x$has_forbidden_chars" != x; then 23696 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23697 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23698 fi 23699 23700 23701 windows_path="$new_path" 23702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23703 unix_path=`$CYGPATH -u "$windows_path"` 23704 new_path="$unix_path" 23705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23706 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23707 new_path="$unix_path" 23708 fi 23709 23710 if test "x$path" != "x$new_path"; then 23711 BOOT_JDK="$new_path" 23712 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23713 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23714 fi 23715 23716 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23717 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23718 23719 else 23720 # We're on a unix platform. Hooray! :) 23721 path="$BOOT_JDK" 23722 has_space=`$ECHO "$path" | $GREP " "` 23723 if test "x$has_space" != x; then 23724 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23725 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23726 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23727 fi 23728 23729 # Use eval to expand a potential ~ 23730 eval path="$path" 23731 if test ! -f "$path" && test ! -d "$path"; then 23732 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23733 fi 23734 23735 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23736 fi 23737 fi 23738 23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23740 $as_echo_n "checking for Boot JDK... " >&6; } 23741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23742 $as_echo "$BOOT_JDK" >&6; } 23743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23744 $as_echo_n "checking Boot JDK version... " >&6; } 23745 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23747 $as_echo "$BOOT_JDK_VERSION" >&6; } 23748 fi # end check jdk version 23749 fi # end check javac 23750 fi # end check java 23751 fi # end check boot jdk found 23752 fi 23753 23754 23755 if test "x$BOOT_JDK_FOUND" = xno; then 23756 # Now execute the test 23757 23758 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23759 BOOT_JDK_SUFFIX="" 23760 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23761 if test "x$ALL_JDKS_FOUND" != x; then 23762 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23763 23764 if test "x$BOOT_JDK_FOUND" = xno; then 23765 # Now execute the test 23766 23767 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23768 if test -d "$BOOT_JDK"; then 23769 BOOT_JDK_FOUND=maybe 23770 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23771 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23772 fi 23773 23774 23775 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23776 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23777 # Do we have a bin/java? 23778 if test ! -x "$BOOT_JDK/bin/java"; then 23779 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23780 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23781 BOOT_JDK_FOUND=no 23782 else 23783 # Do we have a bin/javac? 23784 if test ! -x "$BOOT_JDK/bin/javac"; then 23785 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23786 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23787 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23788 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23789 BOOT_JDK_FOUND=no 23790 else 23791 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23792 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23793 23794 # Extra M4 quote needed to protect [] in grep expression. 23795 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23796 if test "x$FOUND_CORRECT_VERSION" = x; then 23797 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23798 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23799 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23800 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23801 BOOT_JDK_FOUND=no 23802 else 23803 # We're done! :-) 23804 BOOT_JDK_FOUND=yes 23805 23806 # Only process if variable expands to non-empty 23807 23808 if test "x$BOOT_JDK" != x; then 23809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23810 23811 # Input might be given as Windows format, start by converting to 23812 # unix format. 23813 path="$BOOT_JDK" 23814 new_path=`$CYGPATH -u "$path"` 23815 23816 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23817 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23818 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23819 # "foo.exe" is OK but "foo" is an error. 23820 # 23821 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23822 # It is also a way to make sure we got the proper file name for the real test later on. 23823 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23824 if test "x$test_shortpath" = x; then 23825 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23826 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23827 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23828 fi 23829 23830 # Call helper function which possibly converts this using DOS-style short mode. 23831 # If so, the updated path is stored in $new_path. 23832 23833 input_path="$new_path" 23834 # Check if we need to convert this using DOS-style short mode. If the path 23835 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23836 # take no chances and rewrite it. 23837 # Note: m4 eats our [], so we need to use [ and ] instead. 23838 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23839 if test "x$has_forbidden_chars" != x; then 23840 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23841 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23842 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23843 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23844 # Going to short mode and back again did indeed matter. Since short mode is 23845 # case insensitive, let's make it lowercase to improve readability. 23846 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23847 # Now convert it back to Unix-stile (cygpath) 23848 input_path=`$CYGPATH -u "$shortmode_path"` 23849 new_path="$input_path" 23850 fi 23851 fi 23852 23853 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23854 if test "x$test_cygdrive_prefix" = x; then 23855 # As a simple fix, exclude /usr/bin since it's not a real path. 23856 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23857 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23858 # a path prefixed by /cygdrive for fixpath to work. 23859 new_path="$CYGWIN_ROOT_PATH$input_path" 23860 fi 23861 fi 23862 23863 23864 if test "x$path" != "x$new_path"; then 23865 BOOT_JDK="$new_path" 23866 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23867 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23868 fi 23869 23870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23871 23872 path="$BOOT_JDK" 23873 has_colon=`$ECHO $path | $GREP ^.:` 23874 new_path="$path" 23875 if test "x$has_colon" = x; then 23876 # Not in mixed or Windows style, start by that. 23877 new_path=`cmd //c echo $path` 23878 fi 23879 23880 23881 input_path="$new_path" 23882 # Check if we need to convert this using DOS-style short mode. If the path 23883 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23884 # take no chances and rewrite it. 23885 # Note: m4 eats our [], so we need to use [ and ] instead. 23886 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23887 if test "x$has_forbidden_chars" != x; then 23888 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23889 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23890 fi 23891 23892 23893 windows_path="$new_path" 23894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23895 unix_path=`$CYGPATH -u "$windows_path"` 23896 new_path="$unix_path" 23897 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23898 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23899 new_path="$unix_path" 23900 fi 23901 23902 if test "x$path" != "x$new_path"; then 23903 BOOT_JDK="$new_path" 23904 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23905 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23906 fi 23907 23908 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23909 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23910 23911 else 23912 # We're on a unix platform. Hooray! :) 23913 path="$BOOT_JDK" 23914 has_space=`$ECHO "$path" | $GREP " "` 23915 if test "x$has_space" != x; then 23916 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23917 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23918 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23919 fi 23920 23921 # Use eval to expand a potential ~ 23922 eval path="$path" 23923 if test ! -f "$path" && test ! -d "$path"; then 23924 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23925 fi 23926 23927 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23928 fi 23929 fi 23930 23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23932 $as_echo_n "checking for Boot JDK... " >&6; } 23933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23934 $as_echo "$BOOT_JDK" >&6; } 23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23936 $as_echo_n "checking Boot JDK version... " >&6; } 23937 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23939 $as_echo "$BOOT_JDK_VERSION" >&6; } 23940 fi # end check jdk version 23941 fi # end check javac 23942 fi # end check java 23943 fi # end check boot jdk found 23944 fi 23945 23946 done 23947 fi 23948 23949 23950 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23951 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23952 # Do we have a bin/java? 23953 if test ! -x "$BOOT_JDK/bin/java"; then 23954 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23955 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23956 BOOT_JDK_FOUND=no 23957 else 23958 # Do we have a bin/javac? 23959 if test ! -x "$BOOT_JDK/bin/javac"; then 23960 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23961 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23962 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23963 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23964 BOOT_JDK_FOUND=no 23965 else 23966 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23967 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23968 23969 # Extra M4 quote needed to protect [] in grep expression. 23970 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23971 if test "x$FOUND_CORRECT_VERSION" = x; then 23972 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23973 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23974 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23975 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23976 BOOT_JDK_FOUND=no 23977 else 23978 # We're done! :-) 23979 BOOT_JDK_FOUND=yes 23980 23981 # Only process if variable expands to non-empty 23982 23983 if test "x$BOOT_JDK" != x; then 23984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23985 23986 # Input might be given as Windows format, start by converting to 23987 # unix format. 23988 path="$BOOT_JDK" 23989 new_path=`$CYGPATH -u "$path"` 23990 23991 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23992 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23993 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23994 # "foo.exe" is OK but "foo" is an error. 23995 # 23996 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23997 # It is also a way to make sure we got the proper file name for the real test later on. 23998 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23999 if test "x$test_shortpath" = x; then 24000 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24001 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24002 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24003 fi 24004 24005 # Call helper function which possibly converts this using DOS-style short mode. 24006 # If so, the updated path is stored in $new_path. 24007 24008 input_path="$new_path" 24009 # Check if we need to convert this using DOS-style short mode. If the path 24010 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24011 # take no chances and rewrite it. 24012 # Note: m4 eats our [], so we need to use [ and ] instead. 24013 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24014 if test "x$has_forbidden_chars" != x; then 24015 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24016 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24017 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24018 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24019 # Going to short mode and back again did indeed matter. Since short mode is 24020 # case insensitive, let's make it lowercase to improve readability. 24021 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24022 # Now convert it back to Unix-stile (cygpath) 24023 input_path=`$CYGPATH -u "$shortmode_path"` 24024 new_path="$input_path" 24025 fi 24026 fi 24027 24028 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24029 if test "x$test_cygdrive_prefix" = x; then 24030 # As a simple fix, exclude /usr/bin since it's not a real path. 24031 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24032 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24033 # a path prefixed by /cygdrive for fixpath to work. 24034 new_path="$CYGWIN_ROOT_PATH$input_path" 24035 fi 24036 fi 24037 24038 24039 if test "x$path" != "x$new_path"; then 24040 BOOT_JDK="$new_path" 24041 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24042 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24043 fi 24044 24045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24046 24047 path="$BOOT_JDK" 24048 has_colon=`$ECHO $path | $GREP ^.:` 24049 new_path="$path" 24050 if test "x$has_colon" = x; then 24051 # Not in mixed or Windows style, start by that. 24052 new_path=`cmd //c echo $path` 24053 fi 24054 24055 24056 input_path="$new_path" 24057 # Check if we need to convert this using DOS-style short mode. If the path 24058 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24059 # take no chances and rewrite it. 24060 # Note: m4 eats our [], so we need to use [ and ] instead. 24061 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24062 if test "x$has_forbidden_chars" != x; then 24063 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24064 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24065 fi 24066 24067 24068 windows_path="$new_path" 24069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24070 unix_path=`$CYGPATH -u "$windows_path"` 24071 new_path="$unix_path" 24072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24073 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24074 new_path="$unix_path" 24075 fi 24076 24077 if test "x$path" != "x$new_path"; then 24078 BOOT_JDK="$new_path" 24079 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24080 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24081 fi 24082 24083 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24084 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24085 24086 else 24087 # We're on a unix platform. Hooray! :) 24088 path="$BOOT_JDK" 24089 has_space=`$ECHO "$path" | $GREP " "` 24090 if test "x$has_space" != x; then 24091 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24092 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24093 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24094 fi 24095 24096 # Use eval to expand a potential ~ 24097 eval path="$path" 24098 if test ! -f "$path" && test ! -d "$path"; then 24099 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24100 fi 24101 24102 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24103 fi 24104 fi 24105 24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24107 $as_echo_n "checking for Boot JDK... " >&6; } 24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24109 $as_echo "$BOOT_JDK" >&6; } 24110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24111 $as_echo_n "checking Boot JDK version... " >&6; } 24112 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24114 $as_echo "$BOOT_JDK_VERSION" >&6; } 24115 fi # end check jdk version 24116 fi # end check javac 24117 fi # end check java 24118 fi # end check boot jdk found 24119 fi 24120 24121 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 24122 24123 if test "x$BOOT_JDK_FOUND" = xno; then 24124 # Now execute the test 24125 24126 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 24127 BOOT_JDK_SUFFIX="/Contents/Home" 24128 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24129 if test "x$ALL_JDKS_FOUND" != x; then 24130 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24131 24132 if test "x$BOOT_JDK_FOUND" = xno; then 24133 # Now execute the test 24134 24135 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24136 if test -d "$BOOT_JDK"; then 24137 BOOT_JDK_FOUND=maybe 24138 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24139 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24140 fi 24141 24142 24143 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24144 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24145 # Do we have a bin/java? 24146 if test ! -x "$BOOT_JDK/bin/java"; then 24147 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24148 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24149 BOOT_JDK_FOUND=no 24150 else 24151 # Do we have a bin/javac? 24152 if test ! -x "$BOOT_JDK/bin/javac"; then 24153 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24154 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24155 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24156 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24157 BOOT_JDK_FOUND=no 24158 else 24159 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24160 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24161 24162 # Extra M4 quote needed to protect [] in grep expression. 24163 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24164 if test "x$FOUND_CORRECT_VERSION" = x; then 24165 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24166 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24167 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24168 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24169 BOOT_JDK_FOUND=no 24170 else 24171 # We're done! :-) 24172 BOOT_JDK_FOUND=yes 24173 24174 # Only process if variable expands to non-empty 24175 24176 if test "x$BOOT_JDK" != x; then 24177 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24178 24179 # Input might be given as Windows format, start by converting to 24180 # unix format. 24181 path="$BOOT_JDK" 24182 new_path=`$CYGPATH -u "$path"` 24183 24184 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24185 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24186 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24187 # "foo.exe" is OK but "foo" is an error. 24188 # 24189 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24190 # It is also a way to make sure we got the proper file name for the real test later on. 24191 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24192 if test "x$test_shortpath" = x; then 24193 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24194 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24195 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24196 fi 24197 24198 # Call helper function which possibly converts this using DOS-style short mode. 24199 # If so, the updated path is stored in $new_path. 24200 24201 input_path="$new_path" 24202 # Check if we need to convert this using DOS-style short mode. If the path 24203 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24204 # take no chances and rewrite it. 24205 # Note: m4 eats our [], so we need to use [ and ] instead. 24206 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24207 if test "x$has_forbidden_chars" != x; then 24208 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24209 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24210 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24211 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24212 # Going to short mode and back again did indeed matter. Since short mode is 24213 # case insensitive, let's make it lowercase to improve readability. 24214 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24215 # Now convert it back to Unix-stile (cygpath) 24216 input_path=`$CYGPATH -u "$shortmode_path"` 24217 new_path="$input_path" 24218 fi 24219 fi 24220 24221 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24222 if test "x$test_cygdrive_prefix" = x; then 24223 # As a simple fix, exclude /usr/bin since it's not a real path. 24224 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24225 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24226 # a path prefixed by /cygdrive for fixpath to work. 24227 new_path="$CYGWIN_ROOT_PATH$input_path" 24228 fi 24229 fi 24230 24231 24232 if test "x$path" != "x$new_path"; then 24233 BOOT_JDK="$new_path" 24234 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24235 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24236 fi 24237 24238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24239 24240 path="$BOOT_JDK" 24241 has_colon=`$ECHO $path | $GREP ^.:` 24242 new_path="$path" 24243 if test "x$has_colon" = x; then 24244 # Not in mixed or Windows style, start by that. 24245 new_path=`cmd //c echo $path` 24246 fi 24247 24248 24249 input_path="$new_path" 24250 # Check if we need to convert this using DOS-style short mode. If the path 24251 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24252 # take no chances and rewrite it. 24253 # Note: m4 eats our [], so we need to use [ and ] instead. 24254 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24255 if test "x$has_forbidden_chars" != x; then 24256 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24257 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24258 fi 24259 24260 24261 windows_path="$new_path" 24262 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24263 unix_path=`$CYGPATH -u "$windows_path"` 24264 new_path="$unix_path" 24265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24266 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24267 new_path="$unix_path" 24268 fi 24269 24270 if test "x$path" != "x$new_path"; then 24271 BOOT_JDK="$new_path" 24272 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24273 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24274 fi 24275 24276 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24277 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24278 24279 else 24280 # We're on a unix platform. Hooray! :) 24281 path="$BOOT_JDK" 24282 has_space=`$ECHO "$path" | $GREP " "` 24283 if test "x$has_space" != x; then 24284 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24285 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24286 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24287 fi 24288 24289 # Use eval to expand a potential ~ 24290 eval path="$path" 24291 if test ! -f "$path" && test ! -d "$path"; then 24292 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24293 fi 24294 24295 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24296 fi 24297 fi 24298 24299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24300 $as_echo_n "checking for Boot JDK... " >&6; } 24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24302 $as_echo "$BOOT_JDK" >&6; } 24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24304 $as_echo_n "checking Boot JDK version... " >&6; } 24305 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24307 $as_echo "$BOOT_JDK_VERSION" >&6; } 24308 fi # end check jdk version 24309 fi # end check javac 24310 fi # end check java 24311 fi # end check boot jdk found 24312 fi 24313 24314 done 24315 fi 24316 24317 24318 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24319 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24320 # Do we have a bin/java? 24321 if test ! -x "$BOOT_JDK/bin/java"; then 24322 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24323 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24324 BOOT_JDK_FOUND=no 24325 else 24326 # Do we have a bin/javac? 24327 if test ! -x "$BOOT_JDK/bin/javac"; then 24328 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24329 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24330 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24331 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24332 BOOT_JDK_FOUND=no 24333 else 24334 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24335 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24336 24337 # Extra M4 quote needed to protect [] in grep expression. 24338 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24339 if test "x$FOUND_CORRECT_VERSION" = x; then 24340 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24341 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24342 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24343 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24344 BOOT_JDK_FOUND=no 24345 else 24346 # We're done! :-) 24347 BOOT_JDK_FOUND=yes 24348 24349 # Only process if variable expands to non-empty 24350 24351 if test "x$BOOT_JDK" != x; then 24352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24353 24354 # Input might be given as Windows format, start by converting to 24355 # unix format. 24356 path="$BOOT_JDK" 24357 new_path=`$CYGPATH -u "$path"` 24358 24359 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24360 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24361 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24362 # "foo.exe" is OK but "foo" is an error. 24363 # 24364 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24365 # It is also a way to make sure we got the proper file name for the real test later on. 24366 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24367 if test "x$test_shortpath" = x; then 24368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24369 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24370 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24371 fi 24372 24373 # Call helper function which possibly converts this using DOS-style short mode. 24374 # If so, the updated path is stored in $new_path. 24375 24376 input_path="$new_path" 24377 # Check if we need to convert this using DOS-style short mode. If the path 24378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24379 # take no chances and rewrite it. 24380 # Note: m4 eats our [], so we need to use [ and ] instead. 24381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24382 if test "x$has_forbidden_chars" != x; then 24383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24384 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24385 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24386 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24387 # Going to short mode and back again did indeed matter. Since short mode is 24388 # case insensitive, let's make it lowercase to improve readability. 24389 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24390 # Now convert it back to Unix-stile (cygpath) 24391 input_path=`$CYGPATH -u "$shortmode_path"` 24392 new_path="$input_path" 24393 fi 24394 fi 24395 24396 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24397 if test "x$test_cygdrive_prefix" = x; then 24398 # As a simple fix, exclude /usr/bin since it's not a real path. 24399 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24400 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24401 # a path prefixed by /cygdrive for fixpath to work. 24402 new_path="$CYGWIN_ROOT_PATH$input_path" 24403 fi 24404 fi 24405 24406 24407 if test "x$path" != "x$new_path"; then 24408 BOOT_JDK="$new_path" 24409 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24410 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24411 fi 24412 24413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24414 24415 path="$BOOT_JDK" 24416 has_colon=`$ECHO $path | $GREP ^.:` 24417 new_path="$path" 24418 if test "x$has_colon" = x; then 24419 # Not in mixed or Windows style, start by that. 24420 new_path=`cmd //c echo $path` 24421 fi 24422 24423 24424 input_path="$new_path" 24425 # Check if we need to convert this using DOS-style short mode. If the path 24426 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24427 # take no chances and rewrite it. 24428 # Note: m4 eats our [], so we need to use [ and ] instead. 24429 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24430 if test "x$has_forbidden_chars" != x; then 24431 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24432 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24433 fi 24434 24435 24436 windows_path="$new_path" 24437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24438 unix_path=`$CYGPATH -u "$windows_path"` 24439 new_path="$unix_path" 24440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24441 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24442 new_path="$unix_path" 24443 fi 24444 24445 if test "x$path" != "x$new_path"; then 24446 BOOT_JDK="$new_path" 24447 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24448 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24449 fi 24450 24451 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24452 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24453 24454 else 24455 # We're on a unix platform. Hooray! :) 24456 path="$BOOT_JDK" 24457 has_space=`$ECHO "$path" | $GREP " "` 24458 if test "x$has_space" != x; then 24459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24460 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24461 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24462 fi 24463 24464 # Use eval to expand a potential ~ 24465 eval path="$path" 24466 if test ! -f "$path" && test ! -d "$path"; then 24467 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24468 fi 24469 24470 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24471 fi 24472 fi 24473 24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24475 $as_echo_n "checking for Boot JDK... " >&6; } 24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24477 $as_echo "$BOOT_JDK" >&6; } 24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24479 $as_echo_n "checking Boot JDK version... " >&6; } 24480 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24482 $as_echo "$BOOT_JDK_VERSION" >&6; } 24483 fi # end check jdk version 24484 fi # end check javac 24485 fi # end check java 24486 fi # end check boot jdk found 24487 fi 24488 24489 24490 if test "x$BOOT_JDK_FOUND" = xno; then 24491 # Now execute the test 24492 24493 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24494 BOOT_JDK_SUFFIX="/Contents/Home" 24495 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24496 if test "x$ALL_JDKS_FOUND" != x; then 24497 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24498 24499 if test "x$BOOT_JDK_FOUND" = xno; then 24500 # Now execute the test 24501 24502 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24503 if test -d "$BOOT_JDK"; then 24504 BOOT_JDK_FOUND=maybe 24505 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24506 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24507 fi 24508 24509 24510 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24511 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24512 # Do we have a bin/java? 24513 if test ! -x "$BOOT_JDK/bin/java"; then 24514 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24515 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24516 BOOT_JDK_FOUND=no 24517 else 24518 # Do we have a bin/javac? 24519 if test ! -x "$BOOT_JDK/bin/javac"; then 24520 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24521 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24522 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24523 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24524 BOOT_JDK_FOUND=no 24525 else 24526 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24527 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24528 24529 # Extra M4 quote needed to protect [] in grep expression. 24530 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24531 if test "x$FOUND_CORRECT_VERSION" = x; then 24532 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24533 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24534 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24535 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24536 BOOT_JDK_FOUND=no 24537 else 24538 # We're done! :-) 24539 BOOT_JDK_FOUND=yes 24540 24541 # Only process if variable expands to non-empty 24542 24543 if test "x$BOOT_JDK" != x; then 24544 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24545 24546 # Input might be given as Windows format, start by converting to 24547 # unix format. 24548 path="$BOOT_JDK" 24549 new_path=`$CYGPATH -u "$path"` 24550 24551 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24552 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24553 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24554 # "foo.exe" is OK but "foo" is an error. 24555 # 24556 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24557 # It is also a way to make sure we got the proper file name for the real test later on. 24558 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24559 if test "x$test_shortpath" = x; then 24560 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24561 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24562 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24563 fi 24564 24565 # Call helper function which possibly converts this using DOS-style short mode. 24566 # If so, the updated path is stored in $new_path. 24567 24568 input_path="$new_path" 24569 # Check if we need to convert this using DOS-style short mode. If the path 24570 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24571 # take no chances and rewrite it. 24572 # Note: m4 eats our [], so we need to use [ and ] instead. 24573 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24574 if test "x$has_forbidden_chars" != x; then 24575 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24576 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24577 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24578 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24579 # Going to short mode and back again did indeed matter. Since short mode is 24580 # case insensitive, let's make it lowercase to improve readability. 24581 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24582 # Now convert it back to Unix-stile (cygpath) 24583 input_path=`$CYGPATH -u "$shortmode_path"` 24584 new_path="$input_path" 24585 fi 24586 fi 24587 24588 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24589 if test "x$test_cygdrive_prefix" = x; then 24590 # As a simple fix, exclude /usr/bin since it's not a real path. 24591 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24592 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24593 # a path prefixed by /cygdrive for fixpath to work. 24594 new_path="$CYGWIN_ROOT_PATH$input_path" 24595 fi 24596 fi 24597 24598 24599 if test "x$path" != "x$new_path"; then 24600 BOOT_JDK="$new_path" 24601 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24602 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24603 fi 24604 24605 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24606 24607 path="$BOOT_JDK" 24608 has_colon=`$ECHO $path | $GREP ^.:` 24609 new_path="$path" 24610 if test "x$has_colon" = x; then 24611 # Not in mixed or Windows style, start by that. 24612 new_path=`cmd //c echo $path` 24613 fi 24614 24615 24616 input_path="$new_path" 24617 # Check if we need to convert this using DOS-style short mode. If the path 24618 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24619 # take no chances and rewrite it. 24620 # Note: m4 eats our [], so we need to use [ and ] instead. 24621 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24622 if test "x$has_forbidden_chars" != x; then 24623 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24624 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24625 fi 24626 24627 24628 windows_path="$new_path" 24629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24630 unix_path=`$CYGPATH -u "$windows_path"` 24631 new_path="$unix_path" 24632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24633 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24634 new_path="$unix_path" 24635 fi 24636 24637 if test "x$path" != "x$new_path"; then 24638 BOOT_JDK="$new_path" 24639 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24640 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24641 fi 24642 24643 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24644 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24645 24646 else 24647 # We're on a unix platform. Hooray! :) 24648 path="$BOOT_JDK" 24649 has_space=`$ECHO "$path" | $GREP " "` 24650 if test "x$has_space" != x; then 24651 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24652 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24653 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24654 fi 24655 24656 # Use eval to expand a potential ~ 24657 eval path="$path" 24658 if test ! -f "$path" && test ! -d "$path"; then 24659 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24660 fi 24661 24662 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24663 fi 24664 fi 24665 24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24667 $as_echo_n "checking for Boot JDK... " >&6; } 24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24669 $as_echo "$BOOT_JDK" >&6; } 24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24671 $as_echo_n "checking Boot JDK version... " >&6; } 24672 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24674 $as_echo "$BOOT_JDK_VERSION" >&6; } 24675 fi # end check jdk version 24676 fi # end check javac 24677 fi # end check java 24678 fi # end check boot jdk found 24679 fi 24680 24681 done 24682 fi 24683 24684 24685 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24686 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24687 # Do we have a bin/java? 24688 if test ! -x "$BOOT_JDK/bin/java"; then 24689 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24690 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24691 BOOT_JDK_FOUND=no 24692 else 24693 # Do we have a bin/javac? 24694 if test ! -x "$BOOT_JDK/bin/javac"; then 24695 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24696 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24697 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24698 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24699 BOOT_JDK_FOUND=no 24700 else 24701 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24702 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24703 24704 # Extra M4 quote needed to protect [] in grep expression. 24705 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24706 if test "x$FOUND_CORRECT_VERSION" = x; then 24707 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24708 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24709 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24710 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24711 BOOT_JDK_FOUND=no 24712 else 24713 # We're done! :-) 24714 BOOT_JDK_FOUND=yes 24715 24716 # Only process if variable expands to non-empty 24717 24718 if test "x$BOOT_JDK" != x; then 24719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24720 24721 # Input might be given as Windows format, start by converting to 24722 # unix format. 24723 path="$BOOT_JDK" 24724 new_path=`$CYGPATH -u "$path"` 24725 24726 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24727 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24728 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24729 # "foo.exe" is OK but "foo" is an error. 24730 # 24731 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24732 # It is also a way to make sure we got the proper file name for the real test later on. 24733 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24734 if test "x$test_shortpath" = x; then 24735 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24736 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24737 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24738 fi 24739 24740 # Call helper function which possibly converts this using DOS-style short mode. 24741 # If so, the updated path is stored in $new_path. 24742 24743 input_path="$new_path" 24744 # Check if we need to convert this using DOS-style short mode. If the path 24745 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24746 # take no chances and rewrite it. 24747 # Note: m4 eats our [], so we need to use [ and ] instead. 24748 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24749 if test "x$has_forbidden_chars" != x; then 24750 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24751 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24752 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24753 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24754 # Going to short mode and back again did indeed matter. Since short mode is 24755 # case insensitive, let's make it lowercase to improve readability. 24756 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24757 # Now convert it back to Unix-stile (cygpath) 24758 input_path=`$CYGPATH -u "$shortmode_path"` 24759 new_path="$input_path" 24760 fi 24761 fi 24762 24763 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24764 if test "x$test_cygdrive_prefix" = x; then 24765 # As a simple fix, exclude /usr/bin since it's not a real path. 24766 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24767 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24768 # a path prefixed by /cygdrive for fixpath to work. 24769 new_path="$CYGWIN_ROOT_PATH$input_path" 24770 fi 24771 fi 24772 24773 24774 if test "x$path" != "x$new_path"; then 24775 BOOT_JDK="$new_path" 24776 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24777 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24778 fi 24779 24780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24781 24782 path="$BOOT_JDK" 24783 has_colon=`$ECHO $path | $GREP ^.:` 24784 new_path="$path" 24785 if test "x$has_colon" = x; then 24786 # Not in mixed or Windows style, start by that. 24787 new_path=`cmd //c echo $path` 24788 fi 24789 24790 24791 input_path="$new_path" 24792 # Check if we need to convert this using DOS-style short mode. If the path 24793 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24794 # take no chances and rewrite it. 24795 # Note: m4 eats our [], so we need to use [ and ] instead. 24796 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24797 if test "x$has_forbidden_chars" != x; then 24798 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24799 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24800 fi 24801 24802 24803 windows_path="$new_path" 24804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24805 unix_path=`$CYGPATH -u "$windows_path"` 24806 new_path="$unix_path" 24807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24808 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24809 new_path="$unix_path" 24810 fi 24811 24812 if test "x$path" != "x$new_path"; then 24813 BOOT_JDK="$new_path" 24814 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24815 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24816 fi 24817 24818 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24819 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24820 24821 else 24822 # We're on a unix platform. Hooray! :) 24823 path="$BOOT_JDK" 24824 has_space=`$ECHO "$path" | $GREP " "` 24825 if test "x$has_space" != x; then 24826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24827 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24828 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24829 fi 24830 24831 # Use eval to expand a potential ~ 24832 eval path="$path" 24833 if test ! -f "$path" && test ! -d "$path"; then 24834 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24835 fi 24836 24837 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24838 fi 24839 fi 24840 24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24842 $as_echo_n "checking for Boot JDK... " >&6; } 24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24844 $as_echo "$BOOT_JDK" >&6; } 24845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24846 $as_echo_n "checking Boot JDK version... " >&6; } 24847 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24849 $as_echo "$BOOT_JDK_VERSION" >&6; } 24850 fi # end check jdk version 24851 fi # end check javac 24852 fi # end check java 24853 fi # end check boot jdk found 24854 fi 24855 24856 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24857 24858 if test "x$BOOT_JDK_FOUND" = xno; then 24859 # Now execute the test 24860 24861 BOOT_JDK_PREFIX="/usr/lib/jvm" 24862 BOOT_JDK_SUFFIX="" 24863 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24864 if test "x$ALL_JDKS_FOUND" != x; then 24865 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24866 24867 if test "x$BOOT_JDK_FOUND" = xno; then 24868 # Now execute the test 24869 24870 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24871 if test -d "$BOOT_JDK"; then 24872 BOOT_JDK_FOUND=maybe 24873 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24874 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24875 fi 24876 24877 24878 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24879 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24880 # Do we have a bin/java? 24881 if test ! -x "$BOOT_JDK/bin/java"; then 24882 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24883 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24884 BOOT_JDK_FOUND=no 24885 else 24886 # Do we have a bin/javac? 24887 if test ! -x "$BOOT_JDK/bin/javac"; then 24888 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24889 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24890 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24891 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24892 BOOT_JDK_FOUND=no 24893 else 24894 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24895 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24896 24897 # Extra M4 quote needed to protect [] in grep expression. 24898 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24899 if test "x$FOUND_CORRECT_VERSION" = x; then 24900 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24901 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24902 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24903 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24904 BOOT_JDK_FOUND=no 24905 else 24906 # We're done! :-) 24907 BOOT_JDK_FOUND=yes 24908 24909 # Only process if variable expands to non-empty 24910 24911 if test "x$BOOT_JDK" != x; then 24912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24913 24914 # Input might be given as Windows format, start by converting to 24915 # unix format. 24916 path="$BOOT_JDK" 24917 new_path=`$CYGPATH -u "$path"` 24918 24919 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24920 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24921 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24922 # "foo.exe" is OK but "foo" is an error. 24923 # 24924 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24925 # It is also a way to make sure we got the proper file name for the real test later on. 24926 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24927 if test "x$test_shortpath" = x; then 24928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24929 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24930 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24931 fi 24932 24933 # Call helper function which possibly converts this using DOS-style short mode. 24934 # If so, the updated path is stored in $new_path. 24935 24936 input_path="$new_path" 24937 # Check if we need to convert this using DOS-style short mode. If the path 24938 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24939 # take no chances and rewrite it. 24940 # Note: m4 eats our [], so we need to use [ and ] instead. 24941 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24942 if test "x$has_forbidden_chars" != x; then 24943 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24944 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24945 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24946 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24947 # Going to short mode and back again did indeed matter. Since short mode is 24948 # case insensitive, let's make it lowercase to improve readability. 24949 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24950 # Now convert it back to Unix-stile (cygpath) 24951 input_path=`$CYGPATH -u "$shortmode_path"` 24952 new_path="$input_path" 24953 fi 24954 fi 24955 24956 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24957 if test "x$test_cygdrive_prefix" = x; then 24958 # As a simple fix, exclude /usr/bin since it's not a real path. 24959 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24960 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24961 # a path prefixed by /cygdrive for fixpath to work. 24962 new_path="$CYGWIN_ROOT_PATH$input_path" 24963 fi 24964 fi 24965 24966 24967 if test "x$path" != "x$new_path"; then 24968 BOOT_JDK="$new_path" 24969 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24970 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24971 fi 24972 24973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24974 24975 path="$BOOT_JDK" 24976 has_colon=`$ECHO $path | $GREP ^.:` 24977 new_path="$path" 24978 if test "x$has_colon" = x; then 24979 # Not in mixed or Windows style, start by that. 24980 new_path=`cmd //c echo $path` 24981 fi 24982 24983 24984 input_path="$new_path" 24985 # Check if we need to convert this using DOS-style short mode. If the path 24986 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24987 # take no chances and rewrite it. 24988 # Note: m4 eats our [], so we need to use [ and ] instead. 24989 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24990 if test "x$has_forbidden_chars" != x; then 24991 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24992 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24993 fi 24994 24995 24996 windows_path="$new_path" 24997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24998 unix_path=`$CYGPATH -u "$windows_path"` 24999 new_path="$unix_path" 25000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25002 new_path="$unix_path" 25003 fi 25004 25005 if test "x$path" != "x$new_path"; then 25006 BOOT_JDK="$new_path" 25007 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25008 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25009 fi 25010 25011 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25012 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25013 25014 else 25015 # We're on a unix platform. Hooray! :) 25016 path="$BOOT_JDK" 25017 has_space=`$ECHO "$path" | $GREP " "` 25018 if test "x$has_space" != x; then 25019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25020 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25021 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25022 fi 25023 25024 # Use eval to expand a potential ~ 25025 eval path="$path" 25026 if test ! -f "$path" && test ! -d "$path"; then 25027 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25028 fi 25029 25030 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25031 fi 25032 fi 25033 25034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25035 $as_echo_n "checking for Boot JDK... " >&6; } 25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25037 $as_echo "$BOOT_JDK" >&6; } 25038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25039 $as_echo_n "checking Boot JDK version... " >&6; } 25040 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25042 $as_echo "$BOOT_JDK_VERSION" >&6; } 25043 fi # end check jdk version 25044 fi # end check javac 25045 fi # end check java 25046 fi # end check boot jdk found 25047 fi 25048 25049 done 25050 fi 25051 25052 25053 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25054 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25055 # Do we have a bin/java? 25056 if test ! -x "$BOOT_JDK/bin/java"; then 25057 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25058 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25059 BOOT_JDK_FOUND=no 25060 else 25061 # Do we have a bin/javac? 25062 if test ! -x "$BOOT_JDK/bin/javac"; then 25063 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25064 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25065 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25066 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25067 BOOT_JDK_FOUND=no 25068 else 25069 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25070 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25071 25072 # Extra M4 quote needed to protect [] in grep expression. 25073 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25074 if test "x$FOUND_CORRECT_VERSION" = x; then 25075 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25076 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25077 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25078 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25079 BOOT_JDK_FOUND=no 25080 else 25081 # We're done! :-) 25082 BOOT_JDK_FOUND=yes 25083 25084 # Only process if variable expands to non-empty 25085 25086 if test "x$BOOT_JDK" != x; then 25087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25088 25089 # Input might be given as Windows format, start by converting to 25090 # unix format. 25091 path="$BOOT_JDK" 25092 new_path=`$CYGPATH -u "$path"` 25093 25094 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25095 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25096 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25097 # "foo.exe" is OK but "foo" is an error. 25098 # 25099 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25100 # It is also a way to make sure we got the proper file name for the real test later on. 25101 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25102 if test "x$test_shortpath" = x; then 25103 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25104 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25105 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25106 fi 25107 25108 # Call helper function which possibly converts this using DOS-style short mode. 25109 # If so, the updated path is stored in $new_path. 25110 25111 input_path="$new_path" 25112 # Check if we need to convert this using DOS-style short mode. If the path 25113 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25114 # take no chances and rewrite it. 25115 # Note: m4 eats our [], so we need to use [ and ] instead. 25116 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25117 if test "x$has_forbidden_chars" != x; then 25118 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25119 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25120 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25121 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25122 # Going to short mode and back again did indeed matter. Since short mode is 25123 # case insensitive, let's make it lowercase to improve readability. 25124 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25125 # Now convert it back to Unix-stile (cygpath) 25126 input_path=`$CYGPATH -u "$shortmode_path"` 25127 new_path="$input_path" 25128 fi 25129 fi 25130 25131 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25132 if test "x$test_cygdrive_prefix" = x; then 25133 # As a simple fix, exclude /usr/bin since it's not a real path. 25134 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25135 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25136 # a path prefixed by /cygdrive for fixpath to work. 25137 new_path="$CYGWIN_ROOT_PATH$input_path" 25138 fi 25139 fi 25140 25141 25142 if test "x$path" != "x$new_path"; then 25143 BOOT_JDK="$new_path" 25144 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25145 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25146 fi 25147 25148 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25149 25150 path="$BOOT_JDK" 25151 has_colon=`$ECHO $path | $GREP ^.:` 25152 new_path="$path" 25153 if test "x$has_colon" = x; then 25154 # Not in mixed or Windows style, start by that. 25155 new_path=`cmd //c echo $path` 25156 fi 25157 25158 25159 input_path="$new_path" 25160 # Check if we need to convert this using DOS-style short mode. If the path 25161 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25162 # take no chances and rewrite it. 25163 # Note: m4 eats our [], so we need to use [ and ] instead. 25164 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25165 if test "x$has_forbidden_chars" != x; then 25166 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25167 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25168 fi 25169 25170 25171 windows_path="$new_path" 25172 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25173 unix_path=`$CYGPATH -u "$windows_path"` 25174 new_path="$unix_path" 25175 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25176 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25177 new_path="$unix_path" 25178 fi 25179 25180 if test "x$path" != "x$new_path"; then 25181 BOOT_JDK="$new_path" 25182 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25183 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25184 fi 25185 25186 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25187 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25188 25189 else 25190 # We're on a unix platform. Hooray! :) 25191 path="$BOOT_JDK" 25192 has_space=`$ECHO "$path" | $GREP " "` 25193 if test "x$has_space" != x; then 25194 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25195 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25196 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25197 fi 25198 25199 # Use eval to expand a potential ~ 25200 eval path="$path" 25201 if test ! -f "$path" && test ! -d "$path"; then 25202 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25203 fi 25204 25205 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25206 fi 25207 fi 25208 25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25210 $as_echo_n "checking for Boot JDK... " >&6; } 25211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25212 $as_echo "$BOOT_JDK" >&6; } 25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25214 $as_echo_n "checking Boot JDK version... " >&6; } 25215 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25217 $as_echo "$BOOT_JDK_VERSION" >&6; } 25218 fi # end check jdk version 25219 fi # end check javac 25220 fi # end check java 25221 fi # end check boot jdk found 25222 fi 25223 25224 fi 25225 25226 25227 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25228 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25229 # Do we have a bin/java? 25230 if test ! -x "$BOOT_JDK/bin/java"; then 25231 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25232 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25233 BOOT_JDK_FOUND=no 25234 else 25235 # Do we have a bin/javac? 25236 if test ! -x "$BOOT_JDK/bin/javac"; then 25237 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25238 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25239 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25240 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25241 BOOT_JDK_FOUND=no 25242 else 25243 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25244 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25245 25246 # Extra M4 quote needed to protect [] in grep expression. 25247 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25248 if test "x$FOUND_CORRECT_VERSION" = x; then 25249 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25250 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25251 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25252 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25253 BOOT_JDK_FOUND=no 25254 else 25255 # We're done! :-) 25256 BOOT_JDK_FOUND=yes 25257 25258 # Only process if variable expands to non-empty 25259 25260 if test "x$BOOT_JDK" != x; then 25261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25262 25263 # Input might be given as Windows format, start by converting to 25264 # unix format. 25265 path="$BOOT_JDK" 25266 new_path=`$CYGPATH -u "$path"` 25267 25268 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25269 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25270 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25271 # "foo.exe" is OK but "foo" is an error. 25272 # 25273 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25274 # It is also a way to make sure we got the proper file name for the real test later on. 25275 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25276 if test "x$test_shortpath" = x; then 25277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25278 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25279 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25280 fi 25281 25282 # Call helper function which possibly converts this using DOS-style short mode. 25283 # If so, the updated path is stored in $new_path. 25284 25285 input_path="$new_path" 25286 # Check if we need to convert this using DOS-style short mode. If the path 25287 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25288 # take no chances and rewrite it. 25289 # Note: m4 eats our [], so we need to use [ and ] instead. 25290 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25291 if test "x$has_forbidden_chars" != x; then 25292 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25293 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25294 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25295 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25296 # Going to short mode and back again did indeed matter. Since short mode is 25297 # case insensitive, let's make it lowercase to improve readability. 25298 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25299 # Now convert it back to Unix-stile (cygpath) 25300 input_path=`$CYGPATH -u "$shortmode_path"` 25301 new_path="$input_path" 25302 fi 25303 fi 25304 25305 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25306 if test "x$test_cygdrive_prefix" = x; then 25307 # As a simple fix, exclude /usr/bin since it's not a real path. 25308 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25309 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25310 # a path prefixed by /cygdrive for fixpath to work. 25311 new_path="$CYGWIN_ROOT_PATH$input_path" 25312 fi 25313 fi 25314 25315 25316 if test "x$path" != "x$new_path"; then 25317 BOOT_JDK="$new_path" 25318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25319 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25320 fi 25321 25322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25323 25324 path="$BOOT_JDK" 25325 has_colon=`$ECHO $path | $GREP ^.:` 25326 new_path="$path" 25327 if test "x$has_colon" = x; then 25328 # Not in mixed or Windows style, start by that. 25329 new_path=`cmd //c echo $path` 25330 fi 25331 25332 25333 input_path="$new_path" 25334 # Check if we need to convert this using DOS-style short mode. If the path 25335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25336 # take no chances and rewrite it. 25337 # Note: m4 eats our [], so we need to use [ and ] instead. 25338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25339 if test "x$has_forbidden_chars" != x; then 25340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25341 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25342 fi 25343 25344 25345 windows_path="$new_path" 25346 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25347 unix_path=`$CYGPATH -u "$windows_path"` 25348 new_path="$unix_path" 25349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25350 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25351 new_path="$unix_path" 25352 fi 25353 25354 if test "x$path" != "x$new_path"; then 25355 BOOT_JDK="$new_path" 25356 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25357 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25358 fi 25359 25360 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25361 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25362 25363 else 25364 # We're on a unix platform. Hooray! :) 25365 path="$BOOT_JDK" 25366 has_space=`$ECHO "$path" | $GREP " "` 25367 if test "x$has_space" != x; then 25368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25369 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25370 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25371 fi 25372 25373 # Use eval to expand a potential ~ 25374 eval path="$path" 25375 if test ! -f "$path" && test ! -d "$path"; then 25376 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25377 fi 25378 25379 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25380 fi 25381 fi 25382 25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25384 $as_echo_n "checking for Boot JDK... " >&6; } 25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25386 $as_echo "$BOOT_JDK" >&6; } 25387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25388 $as_echo_n "checking Boot JDK version... " >&6; } 25389 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25391 $as_echo "$BOOT_JDK_VERSION" >&6; } 25392 fi # end check jdk version 25393 fi # end check javac 25394 fi # end check java 25395 fi # end check boot jdk found 25396 fi 25397 25398 25399 # If we haven't found anything yet, we've truly lost. Give up. 25400 if test "x$BOOT_JDK_FOUND" = xno; then 25401 25402 # Print a helpful message on how to acquire the necessary build dependency. 25403 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25404 MISSING_DEPENDENCY=openjdk 25405 25406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25407 cygwin_help $MISSING_DEPENDENCY 25408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25409 msys_help $MISSING_DEPENDENCY 25410 else 25411 PKGHANDLER_COMMAND= 25412 25413 case $PKGHANDLER in 25414 apt-get) 25415 apt_help $MISSING_DEPENDENCY ;; 25416 yum) 25417 yum_help $MISSING_DEPENDENCY ;; 25418 port) 25419 port_help $MISSING_DEPENDENCY ;; 25420 pkgutil) 25421 pkgutil_help $MISSING_DEPENDENCY ;; 25422 pkgadd) 25423 pkgadd_help $MISSING_DEPENDENCY ;; 25424 esac 25425 25426 if test "x$PKGHANDLER_COMMAND" != x; then 25427 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25428 fi 25429 fi 25430 25431 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25432 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25433 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25434 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25435 as_fn_error $? "Cannot continue" "$LINENO" 5 25436 fi 25437 25438 25439 25440 # Setup tools from the Boot JDK. 25441 25442 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25443 25444 # Publish this variable in the help. 25445 25446 25447 if test "x$JAVA" = x; then 25448 # The variable is not set by user, try to locate tool using the code snippet 25449 25450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25451 $as_echo_n "checking for java in Boot JDK... " >&6; } 25452 JAVA=$BOOT_JDK/bin/java 25453 if test ! -x $JAVA; then 25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25455 $as_echo "not found" >&6; } 25456 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25457 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25458 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25459 fi 25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25461 $as_echo "ok" >&6; } 25462 25463 25464 else 25465 # The variable is set, but is it from the command line or the environment? 25466 25467 # Try to remove the string !JAVA! from our list. 25468 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 25469 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25470 # If it failed, the variable was not from the command line. Ignore it, 25471 # but warn the user (except for BASH, which is always set by the calling BASH). 25472 if test "xJAVA" != xBASH; then 25473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 25474 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 25475 fi 25476 # Try to locate tool using the code snippet 25477 25478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25479 $as_echo_n "checking for java in Boot JDK... " >&6; } 25480 JAVA=$BOOT_JDK/bin/java 25481 if test ! -x $JAVA; then 25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25483 $as_echo "not found" >&6; } 25484 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25485 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25486 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25487 fi 25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25489 $as_echo "ok" >&6; } 25490 25491 25492 else 25493 # If it succeeded, then it was overridden by the user. We will use it 25494 # for the tool. 25495 25496 # First remove it from the list of overridden variables, so we can test 25497 # for unknown variables in the end. 25498 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25499 25500 # Check if the provided tool contains a complete path. 25501 tool_specified="$JAVA" 25502 tool_basename="${tool_specified##*/}" 25503 if test "x$tool_basename" = "x$tool_specified"; then 25504 # A command without a complete path is provided, search $PATH. 25505 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 25506 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 25507 # Extract the first word of "$tool_basename", so it can be a program name with args. 25508 set dummy $tool_basename; ac_word=$2 25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25510 $as_echo_n "checking for $ac_word... " >&6; } 25511 if ${ac_cv_path_JAVA+:} false; then : 25512 $as_echo_n "(cached) " >&6 25513 else 25514 case $JAVA in 25515 [\\/]* | ?:[\\/]*) 25516 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 25517 ;; 25518 *) 25519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25520 for as_dir in $PATH 25521 do 25522 IFS=$as_save_IFS 25523 test -z "$as_dir" && as_dir=. 25524 for ac_exec_ext in '' $ac_executable_extensions; do 25525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25526 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25528 break 2 25529 fi 25530 done 25531 done 25532 IFS=$as_save_IFS 25533 25534 ;; 25535 esac 25536 fi 25537 JAVA=$ac_cv_path_JAVA 25538 if test -n "$JAVA"; then 25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25540 $as_echo "$JAVA" >&6; } 25541 else 25542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25543 $as_echo "no" >&6; } 25544 fi 25545 25546 25547 if test "x$JAVA" = x; then 25548 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25549 fi 25550 else 25551 # Otherwise we believe it is a complete path. Use it as it is. 25552 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25553 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25555 $as_echo_n "checking for JAVA... " >&6; } 25556 if test ! -x "$tool_specified"; then 25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25558 $as_echo "not found" >&6; } 25559 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25560 fi 25561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25562 $as_echo "$tool_specified" >&6; } 25563 fi 25564 fi 25565 fi 25566 25567 25568 25569 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25570 25571 # Publish this variable in the help. 25572 25573 25574 if test "x$JAVAC" = x; then 25575 # The variable is not set by user, try to locate tool using the code snippet 25576 25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25578 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25579 JAVAC=$BOOT_JDK/bin/javac 25580 if test ! -x $JAVAC; then 25581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25582 $as_echo "not found" >&6; } 25583 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25584 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25585 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25586 fi 25587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25588 $as_echo "ok" >&6; } 25589 25590 25591 else 25592 # The variable is set, but is it from the command line or the environment? 25593 25594 # Try to remove the string !JAVAC! from our list. 25595 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25596 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25597 # If it failed, the variable was not from the command line. Ignore it, 25598 # but warn the user (except for BASH, which is always set by the calling BASH). 25599 if test "xJAVAC" != xBASH; then 25600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25601 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25602 fi 25603 # Try to locate tool using the code snippet 25604 25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25606 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25607 JAVAC=$BOOT_JDK/bin/javac 25608 if test ! -x $JAVAC; then 25609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25610 $as_echo "not found" >&6; } 25611 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25612 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25613 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25614 fi 25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25616 $as_echo "ok" >&6; } 25617 25618 25619 else 25620 # If it succeeded, then it was overridden by the user. We will use it 25621 # for the tool. 25622 25623 # First remove it from the list of overridden variables, so we can test 25624 # for unknown variables in the end. 25625 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25626 25627 # Check if the provided tool contains a complete path. 25628 tool_specified="$JAVAC" 25629 tool_basename="${tool_specified##*/}" 25630 if test "x$tool_basename" = "x$tool_specified"; then 25631 # A command without a complete path is provided, search $PATH. 25632 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25633 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25634 # Extract the first word of "$tool_basename", so it can be a program name with args. 25635 set dummy $tool_basename; ac_word=$2 25636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25637 $as_echo_n "checking for $ac_word... " >&6; } 25638 if ${ac_cv_path_JAVAC+:} false; then : 25639 $as_echo_n "(cached) " >&6 25640 else 25641 case $JAVAC in 25642 [\\/]* | ?:[\\/]*) 25643 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25644 ;; 25645 *) 25646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25647 for as_dir in $PATH 25648 do 25649 IFS=$as_save_IFS 25650 test -z "$as_dir" && as_dir=. 25651 for ac_exec_ext in '' $ac_executable_extensions; do 25652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25653 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25655 break 2 25656 fi 25657 done 25658 done 25659 IFS=$as_save_IFS 25660 25661 ;; 25662 esac 25663 fi 25664 JAVAC=$ac_cv_path_JAVAC 25665 if test -n "$JAVAC"; then 25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25667 $as_echo "$JAVAC" >&6; } 25668 else 25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25670 $as_echo "no" >&6; } 25671 fi 25672 25673 25674 if test "x$JAVAC" = x; then 25675 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25676 fi 25677 else 25678 # Otherwise we believe it is a complete path. Use it as it is. 25679 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25680 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25682 $as_echo_n "checking for JAVAC... " >&6; } 25683 if test ! -x "$tool_specified"; then 25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25685 $as_echo "not found" >&6; } 25686 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25687 fi 25688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25689 $as_echo "$tool_specified" >&6; } 25690 fi 25691 fi 25692 fi 25693 25694 25695 25696 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25697 25698 # Publish this variable in the help. 25699 25700 25701 if test "x$JAVAH" = x; then 25702 # The variable is not set by user, try to locate tool using the code snippet 25703 25704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25705 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25706 JAVAH=$BOOT_JDK/bin/javah 25707 if test ! -x $JAVAH; then 25708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25709 $as_echo "not found" >&6; } 25710 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25711 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25712 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25713 fi 25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25715 $as_echo "ok" >&6; } 25716 25717 25718 else 25719 # The variable is set, but is it from the command line or the environment? 25720 25721 # Try to remove the string !JAVAH! from our list. 25722 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25723 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25724 # If it failed, the variable was not from the command line. Ignore it, 25725 # but warn the user (except for BASH, which is always set by the calling BASH). 25726 if test "xJAVAH" != xBASH; then 25727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25728 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25729 fi 25730 # Try to locate tool using the code snippet 25731 25732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25733 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25734 JAVAH=$BOOT_JDK/bin/javah 25735 if test ! -x $JAVAH; then 25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25737 $as_echo "not found" >&6; } 25738 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25739 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25740 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25741 fi 25742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25743 $as_echo "ok" >&6; } 25744 25745 25746 else 25747 # If it succeeded, then it was overridden by the user. We will use it 25748 # for the tool. 25749 25750 # First remove it from the list of overridden variables, so we can test 25751 # for unknown variables in the end. 25752 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25753 25754 # Check if the provided tool contains a complete path. 25755 tool_specified="$JAVAH" 25756 tool_basename="${tool_specified##*/}" 25757 if test "x$tool_basename" = "x$tool_specified"; then 25758 # A command without a complete path is provided, search $PATH. 25759 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25760 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25761 # Extract the first word of "$tool_basename", so it can be a program name with args. 25762 set dummy $tool_basename; ac_word=$2 25763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25764 $as_echo_n "checking for $ac_word... " >&6; } 25765 if ${ac_cv_path_JAVAH+:} false; then : 25766 $as_echo_n "(cached) " >&6 25767 else 25768 case $JAVAH in 25769 [\\/]* | ?:[\\/]*) 25770 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25771 ;; 25772 *) 25773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25774 for as_dir in $PATH 25775 do 25776 IFS=$as_save_IFS 25777 test -z "$as_dir" && as_dir=. 25778 for ac_exec_ext in '' $ac_executable_extensions; do 25779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25780 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25782 break 2 25783 fi 25784 done 25785 done 25786 IFS=$as_save_IFS 25787 25788 ;; 25789 esac 25790 fi 25791 JAVAH=$ac_cv_path_JAVAH 25792 if test -n "$JAVAH"; then 25793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25794 $as_echo "$JAVAH" >&6; } 25795 else 25796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25797 $as_echo "no" >&6; } 25798 fi 25799 25800 25801 if test "x$JAVAH" = x; then 25802 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25803 fi 25804 else 25805 # Otherwise we believe it is a complete path. Use it as it is. 25806 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25807 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25809 $as_echo_n "checking for JAVAH... " >&6; } 25810 if test ! -x "$tool_specified"; then 25811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25812 $as_echo "not found" >&6; } 25813 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25814 fi 25815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25816 $as_echo "$tool_specified" >&6; } 25817 fi 25818 fi 25819 fi 25820 25821 25822 25823 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25824 25825 # Publish this variable in the help. 25826 25827 25828 if test "x$JAR" = x; then 25829 # The variable is not set by user, try to locate tool using the code snippet 25830 25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25832 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25833 JAR=$BOOT_JDK/bin/jar 25834 if test ! -x $JAR; then 25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25836 $as_echo "not found" >&6; } 25837 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25838 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25839 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25840 fi 25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25842 $as_echo "ok" >&6; } 25843 25844 25845 else 25846 # The variable is set, but is it from the command line or the environment? 25847 25848 # Try to remove the string !JAR! from our list. 25849 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25850 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25851 # If it failed, the variable was not from the command line. Ignore it, 25852 # but warn the user (except for BASH, which is always set by the calling BASH). 25853 if test "xJAR" != xBASH; then 25854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25855 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25856 fi 25857 # Try to locate tool using the code snippet 25858 25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25860 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25861 JAR=$BOOT_JDK/bin/jar 25862 if test ! -x $JAR; then 25863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25864 $as_echo "not found" >&6; } 25865 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25866 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25867 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25868 fi 25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25870 $as_echo "ok" >&6; } 25871 25872 25873 else 25874 # If it succeeded, then it was overridden by the user. We will use it 25875 # for the tool. 25876 25877 # First remove it from the list of overridden variables, so we can test 25878 # for unknown variables in the end. 25879 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25880 25881 # Check if the provided tool contains a complete path. 25882 tool_specified="$JAR" 25883 tool_basename="${tool_specified##*/}" 25884 if test "x$tool_basename" = "x$tool_specified"; then 25885 # A command without a complete path is provided, search $PATH. 25886 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 25887 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 25888 # Extract the first word of "$tool_basename", so it can be a program name with args. 25889 set dummy $tool_basename; ac_word=$2 25890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25891 $as_echo_n "checking for $ac_word... " >&6; } 25892 if ${ac_cv_path_JAR+:} false; then : 25893 $as_echo_n "(cached) " >&6 25894 else 25895 case $JAR in 25896 [\\/]* | ?:[\\/]*) 25897 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 25898 ;; 25899 *) 25900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25901 for as_dir in $PATH 25902 do 25903 IFS=$as_save_IFS 25904 test -z "$as_dir" && as_dir=. 25905 for ac_exec_ext in '' $ac_executable_extensions; do 25906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25907 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 25908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25909 break 2 25910 fi 25911 done 25912 done 25913 IFS=$as_save_IFS 25914 25915 ;; 25916 esac 25917 fi 25918 JAR=$ac_cv_path_JAR 25919 if test -n "$JAR"; then 25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 25921 $as_echo "$JAR" >&6; } 25922 else 25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25924 $as_echo "no" >&6; } 25925 fi 25926 25927 25928 if test "x$JAR" = x; then 25929 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25930 fi 25931 else 25932 # Otherwise we believe it is a complete path. Use it as it is. 25933 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 25934 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 25935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 25936 $as_echo_n "checking for JAR... " >&6; } 25937 if test ! -x "$tool_specified"; then 25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25939 $as_echo "not found" >&6; } 25940 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 25941 fi 25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25943 $as_echo "$tool_specified" >&6; } 25944 fi 25945 fi 25946 fi 25947 25948 25949 25950 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25951 25952 # Publish this variable in the help. 25953 25954 25955 if test "x$NATIVE2ASCII" = x; then 25956 # The variable is not set by user, try to locate tool using the code snippet 25957 25958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25959 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25960 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25961 if test ! -x $NATIVE2ASCII; then 25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25963 $as_echo "not found" >&6; } 25964 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25965 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25966 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25967 fi 25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25969 $as_echo "ok" >&6; } 25970 25971 25972 else 25973 # The variable is set, but is it from the command line or the environment? 25974 25975 # Try to remove the string !NATIVE2ASCII! from our list. 25976 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 25977 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25978 # If it failed, the variable was not from the command line. Ignore it, 25979 # but warn the user (except for BASH, which is always set by the calling BASH). 25980 if test "xNATIVE2ASCII" != xBASH; then 25981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 25982 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 25983 fi 25984 # Try to locate tool using the code snippet 25985 25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25987 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25988 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25989 if test ! -x $NATIVE2ASCII; then 25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25991 $as_echo "not found" >&6; } 25992 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25993 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25994 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25995 fi 25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25997 $as_echo "ok" >&6; } 25998 25999 26000 else 26001 # If it succeeded, then it was overridden by the user. We will use it 26002 # for the tool. 26003 26004 # First remove it from the list of overridden variables, so we can test 26005 # for unknown variables in the end. 26006 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26007 26008 # Check if the provided tool contains a complete path. 26009 tool_specified="$NATIVE2ASCII" 26010 tool_basename="${tool_specified##*/}" 26011 if test "x$tool_basename" = "x$tool_specified"; then 26012 # A command without a complete path is provided, search $PATH. 26013 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 26014 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 26015 # Extract the first word of "$tool_basename", so it can be a program name with args. 26016 set dummy $tool_basename; ac_word=$2 26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26018 $as_echo_n "checking for $ac_word... " >&6; } 26019 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 26020 $as_echo_n "(cached) " >&6 26021 else 26022 case $NATIVE2ASCII in 26023 [\\/]* | ?:[\\/]*) 26024 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 26025 ;; 26026 *) 26027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26028 for as_dir in $PATH 26029 do 26030 IFS=$as_save_IFS 26031 test -z "$as_dir" && as_dir=. 26032 for ac_exec_ext in '' $ac_executable_extensions; do 26033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26034 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 26035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26036 break 2 26037 fi 26038 done 26039 done 26040 IFS=$as_save_IFS 26041 26042 ;; 26043 esac 26044 fi 26045 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 26046 if test -n "$NATIVE2ASCII"; then 26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 26048 $as_echo "$NATIVE2ASCII" >&6; } 26049 else 26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26051 $as_echo "no" >&6; } 26052 fi 26053 26054 26055 if test "x$NATIVE2ASCII" = x; then 26056 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26057 fi 26058 else 26059 # Otherwise we believe it is a complete path. Use it as it is. 26060 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 26061 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 26062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 26063 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 26064 if test ! -x "$tool_specified"; then 26065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26066 $as_echo "not found" >&6; } 26067 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 26068 fi 26069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26070 $as_echo "$tool_specified" >&6; } 26071 fi 26072 fi 26073 fi 26074 26075 26076 26077 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26078 26079 # Publish this variable in the help. 26080 26081 26082 if test "x$JARSIGNER" = x; then 26083 # The variable is not set by user, try to locate tool using the code snippet 26084 26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26086 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26087 JARSIGNER=$BOOT_JDK/bin/jarsigner 26088 if test ! -x $JARSIGNER; then 26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26090 $as_echo "not found" >&6; } 26091 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26092 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26093 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26094 fi 26095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26096 $as_echo "ok" >&6; } 26097 26098 26099 else 26100 # The variable is set, but is it from the command line or the environment? 26101 26102 # Try to remove the string !JARSIGNER! from our list. 26103 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 26104 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26105 # If it failed, the variable was not from the command line. Ignore it, 26106 # but warn the user (except for BASH, which is always set by the calling BASH). 26107 if test "xJARSIGNER" != xBASH; then 26108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 26109 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 26110 fi 26111 # Try to locate tool using the code snippet 26112 26113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26114 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26115 JARSIGNER=$BOOT_JDK/bin/jarsigner 26116 if test ! -x $JARSIGNER; then 26117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26118 $as_echo "not found" >&6; } 26119 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26120 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26121 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26122 fi 26123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26124 $as_echo "ok" >&6; } 26125 26126 26127 else 26128 # If it succeeded, then it was overridden by the user. We will use it 26129 # for the tool. 26130 26131 # First remove it from the list of overridden variables, so we can test 26132 # for unknown variables in the end. 26133 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26134 26135 # Check if the provided tool contains a complete path. 26136 tool_specified="$JARSIGNER" 26137 tool_basename="${tool_specified##*/}" 26138 if test "x$tool_basename" = "x$tool_specified"; then 26139 # A command without a complete path is provided, search $PATH. 26140 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 26141 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 26142 # Extract the first word of "$tool_basename", so it can be a program name with args. 26143 set dummy $tool_basename; ac_word=$2 26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26145 $as_echo_n "checking for $ac_word... " >&6; } 26146 if ${ac_cv_path_JARSIGNER+:} false; then : 26147 $as_echo_n "(cached) " >&6 26148 else 26149 case $JARSIGNER in 26150 [\\/]* | ?:[\\/]*) 26151 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 26152 ;; 26153 *) 26154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26155 for as_dir in $PATH 26156 do 26157 IFS=$as_save_IFS 26158 test -z "$as_dir" && as_dir=. 26159 for ac_exec_ext in '' $ac_executable_extensions; do 26160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26161 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 26162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26163 break 2 26164 fi 26165 done 26166 done 26167 IFS=$as_save_IFS 26168 26169 ;; 26170 esac 26171 fi 26172 JARSIGNER=$ac_cv_path_JARSIGNER 26173 if test -n "$JARSIGNER"; then 26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 26175 $as_echo "$JARSIGNER" >&6; } 26176 else 26177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26178 $as_echo "no" >&6; } 26179 fi 26180 26181 26182 if test "x$JARSIGNER" = x; then 26183 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26184 fi 26185 else 26186 # Otherwise we believe it is a complete path. Use it as it is. 26187 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 26188 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 26190 $as_echo_n "checking for JARSIGNER... " >&6; } 26191 if test ! -x "$tool_specified"; then 26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26193 $as_echo "not found" >&6; } 26194 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 26195 fi 26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26197 $as_echo "$tool_specified" >&6; } 26198 fi 26199 fi 26200 fi 26201 26202 26203 26204 # Finally, set some other options... 26205 26206 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 26207 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 26208 26209 26210 26211 26212 ############################################################################### 26213 # 26214 # Configure the sources to use. We can add or override individual directories. 26215 # 26216 ############################################################################### 26217 26218 26219 # Where are the sources. Any of these can be overridden 26220 # using --with-override-corba and the likes. 26221 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26222 CORBA_TOPDIR="$SRC_ROOT/corba" 26223 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26224 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26225 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26226 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26227 JDK_TOPDIR="$SRC_ROOT/jdk" 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 ############################################################################### 26239 # 26240 # Pickup additional source for a component from outside of the source root 26241 # or override source for a component. 26242 # 26243 26244 # Check whether --with-add-source-root was given. 26245 if test "${with_add_source_root+set}" = set; then : 26246 withval=$with_add_source_root; 26247 fi 26248 26249 26250 26251 # Check whether --with-override-source-root was given. 26252 if test "${with_override_source_root+set}" = set; then : 26253 withval=$with_override_source_root; 26254 fi 26255 26256 26257 26258 # Check whether --with-adds-and-overrides was given. 26259 if test "${with_adds_and_overrides+set}" = set; then : 26260 withval=$with_adds_and_overrides; 26261 fi 26262 26263 26264 if test "x$with_adds_and_overrides" != x; then 26265 with_add_source_root="$with_adds_and_overrides/adds" 26266 with_override_source_root="$with_adds_and_overrides/overrides" 26267 fi 26268 26269 if test "x$with_add_source_root" != x; then 26270 if ! test -d $with_add_source_root; then 26271 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26272 fi 26273 CURDIR="$PWD" 26274 cd "$with_add_source_root" 26275 ADD_SRC_ROOT="`pwd`" 26276 cd "$CURDIR" 26277 # Verify that the addon source root does not have any root makefiles. 26278 # If it does, then it is usually an error, prevent this. 26279 if test -f $with_add_source_root/langtools/make/Makefile; then 26280 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 26281 fi 26282 if test -f $with_add_source_root/corba/make/Makefile; then 26283 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 26284 fi 26285 if test -f $with_add_source_root/jaxp/make/Makefile; then 26286 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 26287 fi 26288 if test -f $with_add_source_root/jaxws/make/Makefile; then 26289 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 26290 fi 26291 if test -f $with_add_source_root/hotspot/make/Makefile; then 26292 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 26293 fi 26294 if test -f $with_add_source_root/nashorn/make/Makefile; then 26295 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 26296 fi 26297 if test -f $with_add_source_root/jdk/make/Makefile; then 26298 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 26299 fi 26300 fi 26301 26302 26303 if test "x$with_override_source_root" != x; then 26304 if ! test -d $with_override_source_root; then 26305 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26306 fi 26307 CURDIR="$PWD" 26308 cd "$with_override_source_root" 26309 OVERRIDE_SRC_ROOT="`pwd`" 26310 cd "$CURDIR" 26311 if test -f $with_override_source_root/langtools/make/Makefile; then 26312 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 26313 fi 26314 if test -f $with_override_source_root/corba/make/Makefile; then 26315 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 26316 fi 26317 if test -f $with_override_source_root/jaxp/make/Makefile; then 26318 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 26319 fi 26320 if test -f $with_override_source_root/jaxws/make/Makefile; then 26321 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 26322 fi 26323 if test -f $with_override_source_root/hotspot/make/Makefile; then 26324 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 26325 fi 26326 if test -f $with_override_source_root/nashorn/make/Makefile; then 26327 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 26328 fi 26329 if test -f $with_override_source_root/jdk/make/Makefile; then 26330 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 26331 fi 26332 fi 26333 26334 26335 ############################################################################### 26336 # 26337 # Override a repo completely, this is used for example when you have 3 small 26338 # development sandboxes of the langtools sources and want to avoid having 3 full 26339 # OpenJDK sources checked out on disk. 26340 # 26341 # Assuming that the 3 langtools sandboxes are located here: 26342 # /home/fredrik/sandbox1/langtools 26343 # /home/fredrik/sandbox2/langtools 26344 # /home/fredrik/sandbox3/langtools 26345 # 26346 # From the source root you create build subdirs manually: 26347 # mkdir -p build1 build2 build3 26348 # in each build directory run: 26349 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26350 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26351 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26352 # 26353 26354 26355 # Check whether --with-override-langtools was given. 26356 if test "${with_override_langtools+set}" = set; then : 26357 withval=$with_override_langtools; 26358 fi 26359 26360 26361 26362 # Check whether --with-override-corba was given. 26363 if test "${with_override_corba+set}" = set; then : 26364 withval=$with_override_corba; 26365 fi 26366 26367 26368 26369 # Check whether --with-override-jaxp was given. 26370 if test "${with_override_jaxp+set}" = set; then : 26371 withval=$with_override_jaxp; 26372 fi 26373 26374 26375 26376 # Check whether --with-override-jaxws was given. 26377 if test "${with_override_jaxws+set}" = set; then : 26378 withval=$with_override_jaxws; 26379 fi 26380 26381 26382 26383 # Check whether --with-override-hotspot was given. 26384 if test "${with_override_hotspot+set}" = set; then : 26385 withval=$with_override_hotspot; 26386 fi 26387 26388 26389 26390 # Check whether --with-override-nashorn was given. 26391 if test "${with_override_nashorn+set}" = set; then : 26392 withval=$with_override_nashorn; 26393 fi 26394 26395 26396 26397 # Check whether --with-override-jdk was given. 26398 if test "${with_override_jdk+set}" = set; then : 26399 withval=$with_override_jdk; 26400 fi 26401 26402 26403 if test "x$with_override_langtools" != x; then 26404 CURDIR="$PWD" 26405 cd "$with_override_langtools" 26406 LANGTOOLS_TOPDIR="`pwd`" 26407 cd "$CURDIR" 26408 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26409 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26410 fi 26411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26412 $as_echo_n "checking if langtools should be overridden... " >&6; } 26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26414 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26415 fi 26416 if test "x$with_override_corba" != x; then 26417 CURDIR="$PWD" 26418 cd "$with_override_corba" 26419 CORBA_TOPDIR="`pwd`" 26420 cd "$CURDIR" 26421 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26422 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26423 fi 26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26425 $as_echo_n "checking if corba should be overridden... " >&6; } 26426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26427 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26428 fi 26429 if test "x$with_override_jaxp" != x; then 26430 CURDIR="$PWD" 26431 cd "$with_override_jaxp" 26432 JAXP_TOPDIR="`pwd`" 26433 cd "$CURDIR" 26434 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26435 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26436 fi 26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26438 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26440 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26441 fi 26442 if test "x$with_override_jaxws" != x; then 26443 CURDIR="$PWD" 26444 cd "$with_override_jaxws" 26445 JAXWS_TOPDIR="`pwd`" 26446 cd "$CURDIR" 26447 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26448 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26449 fi 26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26451 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26453 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26454 fi 26455 if test "x$with_override_hotspot" != x; then 26456 CURDIR="$PWD" 26457 cd "$with_override_hotspot" 26458 HOTSPOT_TOPDIR="`pwd`" 26459 cd "$CURDIR" 26460 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26461 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26462 fi 26463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26464 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26466 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26467 fi 26468 if test "x$with_override_nashorn" != x; then 26469 CURDIR="$PWD" 26470 cd "$with_override_nashorn" 26471 NASHORN_TOPDIR="`pwd`" 26472 cd "$CURDIR" 26473 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26474 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26475 fi 26476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26477 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26479 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26480 fi 26481 if test "x$with_override_jdk" != x; then 26482 CURDIR="$PWD" 26483 cd "$with_override_jdk" 26484 JDK_TOPDIR="`pwd`" 26485 cd "$CURDIR" 26486 if ! test -f $JDK_TOPDIR/make/Makefile; then 26487 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26488 fi 26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26490 $as_echo_n "checking if JDK should be overridden... " >&6; } 26491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26492 $as_echo "yes with $JDK_TOPDIR" >&6; } 26493 fi 26494 26495 26496 BUILD_OUTPUT="$OUTPUT_ROOT" 26497 26498 26499 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26500 BUILD_HOTSPOT=true 26501 26502 26503 26504 # Check whether --with-import-hotspot was given. 26505 if test "${with_import_hotspot+set}" = set; then : 26506 withval=$with_import_hotspot; 26507 fi 26508 26509 if test "x$with_import_hotspot" != x; then 26510 CURDIR="$PWD" 26511 cd "$with_import_hotspot" 26512 HOTSPOT_DIST="`pwd`" 26513 cd "$CURDIR" 26514 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26515 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26516 fi 26517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26518 $as_echo_n "checking if hotspot should be imported... " >&6; } 26519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26520 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26521 BUILD_HOTSPOT=false 26522 fi 26523 26524 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26525 26526 26527 ############################################################################### 26528 # 26529 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26530 # native code. 26531 # 26532 ############################################################################### 26533 26534 # First determine the toolchain type (compiler family) 26535 26536 26537 # Check whether --with-toolchain-type was given. 26538 if test "${with_toolchain_type+set}" = set; then : 26539 withval=$with_toolchain_type; 26540 fi 26541 26542 26543 # Use indirect variable referencing 26544 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26545 VALID_TOOLCHAINS=${!toolchain_var_name} 26546 26547 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26548 if test -n "$XCODEBUILD"; then 26549 # On Mac OS X, default toolchain to clang after Xcode 5 26550 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 26551 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26552 if test $? -ne 0; then 26553 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26554 fi 26555 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26556 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26557 $CUT -f 1 -d .` 26558 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26559 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26560 if test $XCODE_MAJOR_VERSION -ge 5; then 26561 DEFAULT_TOOLCHAIN="clang" 26562 else 26563 DEFAULT_TOOLCHAIN="gcc" 26564 fi 26565 else 26566 # If Xcode is not installed, but the command line tools are 26567 # then we can't run xcodebuild. On these systems we should 26568 # default to clang 26569 DEFAULT_TOOLCHAIN="clang" 26570 fi 26571 else 26572 # First toolchain type in the list is the default 26573 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26574 fi 26575 26576 if test "x$with_toolchain_type" = xlist; then 26577 # List all toolchains 26578 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26579 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26580 for toolchain in $VALID_TOOLCHAINS; do 26581 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 26582 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26583 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 26584 done 26585 26586 exit 0 26587 elif test "x$with_toolchain_type" != x; then 26588 # User override; check that it is valid 26589 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 26590 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 26591 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 26592 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 26593 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 26594 as_fn_error $? "Cannot continue." "$LINENO" 5 26595 fi 26596 TOOLCHAIN_TYPE=$with_toolchain_type 26597 else 26598 # No flag given, use default 26599 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 26600 fi 26601 26602 26603 TOOLCHAIN_CC_BINARY_clang="clang" 26604 TOOLCHAIN_CC_BINARY_gcc="gcc" 26605 TOOLCHAIN_CC_BINARY_microsoft="cl" 26606 TOOLCHAIN_CC_BINARY_solstudio="cc" 26607 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 26608 26609 TOOLCHAIN_CXX_BINARY_clang="clang++" 26610 TOOLCHAIN_CXX_BINARY_gcc="g++" 26611 TOOLCHAIN_CXX_BINARY_microsoft="cl" 26612 TOOLCHAIN_CXX_BINARY_solstudio="CC" 26613 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 26614 26615 # Use indirect variable referencing 26616 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 26617 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26618 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 26619 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 26620 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 26621 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 26622 26623 26624 # Define filename patterns 26625 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26626 LIBRARY_PREFIX= 26627 SHARED_LIBRARY_SUFFIX='.dll' 26628 STATIC_LIBRARY_SUFFIX='.lib' 26629 SHARED_LIBRARY='$1.dll' 26630 STATIC_LIBRARY='$1.lib' 26631 OBJ_SUFFIX='.obj' 26632 EXE_SUFFIX='.exe' 26633 else 26634 LIBRARY_PREFIX=lib 26635 SHARED_LIBRARY_SUFFIX='.so' 26636 STATIC_LIBRARY_SUFFIX='.a' 26637 SHARED_LIBRARY='lib$1.so' 26638 STATIC_LIBRARY='lib$1.a' 26639 OBJ_SUFFIX='.o' 26640 EXE_SUFFIX='' 26641 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26642 SHARED_LIBRARY='lib$1.dylib' 26643 SHARED_LIBRARY_SUFFIX='.dylib' 26644 fi 26645 fi 26646 26647 26648 26649 26650 26651 26652 26653 26654 26655 26656 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 26657 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 26658 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 26659 else 26660 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 26661 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 26662 fi 26663 26664 26665 # Then detect the actual binaries needed 26666 26667 # FIXME: Is this needed? 26668 ac_ext=cpp 26669 ac_cpp='$CXXCPP $CPPFLAGS' 26670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26673 26674 26675 # Store the CFLAGS etc passed to the configure script. 26676 ORG_CFLAGS="$CFLAGS" 26677 ORG_CXXFLAGS="$CXXFLAGS" 26678 26679 # On Windows, we need to detect the visual studio installation first. 26680 # This will change the PATH, but we need to keep that new PATH even 26681 # after toolchain detection is done, since the compiler (on x86) uses 26682 # it for DLL resolution in runtime. 26683 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 26684 26685 # Store path to cygwin link.exe to help excluding it when searching for 26686 # VS linker. This must be done before changing the PATH when looking for VS. 26687 # Extract the first word of "link", so it can be a program name with args. 26688 set dummy link; ac_word=$2 26689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26690 $as_echo_n "checking for $ac_word... " >&6; } 26691 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26692 $as_echo_n "(cached) " >&6 26693 else 26694 case $CYGWIN_LINK in 26695 [\\/]* | ?:[\\/]*) 26696 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26697 ;; 26698 *) 26699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26700 for as_dir in $PATH 26701 do 26702 IFS=$as_save_IFS 26703 test -z "$as_dir" && as_dir=. 26704 for ac_exec_ext in '' $ac_executable_extensions; do 26705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26706 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26708 break 2 26709 fi 26710 done 26711 done 26712 IFS=$as_save_IFS 26713 26714 ;; 26715 esac 26716 fi 26717 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26718 if test -n "$CYGWIN_LINK"; then 26719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26720 $as_echo "$CYGWIN_LINK" >&6; } 26721 else 26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26723 $as_echo "no" >&6; } 26724 fi 26725 26726 26727 if test "x$CYGWIN_LINK" != x; then 26728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26729 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26730 "$CYGWIN_LINK" --version > /dev/null 26731 if test $? -eq 0 ; then 26732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26733 $as_echo "yes" >&6; } 26734 else 26735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26736 $as_echo "no" >&6; } 26737 # This might be the VS linker. Don't exclude it later on. 26738 CYGWIN_LINK="" 26739 fi 26740 fi 26741 26742 # First-hand choice is to locate and run the vsvars bat file. 26743 26744 26745 # Check whether --with-toolchain-version was given. 26746 if test "${with_toolchain_version+set}" = set; then : 26747 withval=$with_toolchain_version; 26748 fi 26749 26750 26751 if test "x$with_toolchain_version" = xlist; then 26752 # List all toolchains 26753 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 26754 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 26755 for version in $VALID_VS_VERSIONS; do 26756 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 26757 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 26758 done 26759 26760 exit 0 26761 elif test "x$with_toolchain_version" != x; then 26762 # User override; check that it is valid 26763 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 26764 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 26765 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 26766 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 26767 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 26768 as_fn_error $? "Cannot continue." "$LINENO" 5 26769 fi 26770 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 26771 else 26772 # No flag given, use default 26773 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 26774 fi 26775 26776 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 26777 26778 VS_VERSION="$VS_VERSION" 26779 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 26780 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 26781 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 26782 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 26783 26784 # When using --with-tools-dir, assume it points to the correct and default 26785 # version of Visual Studio or that --with-toolchain-version was also set. 26786 if test "x$with_tools_dir" != x; then 26787 26788 if test "x$VS_ENV_CMD" = x; then 26789 VS_VERSION="${VS_VERSION}" 26790 VS_BASE="$with_tools_dir/../.." 26791 METHOD="--with-tools-dir" 26792 26793 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26794 VCVARSFILE="vc/bin/vcvars32.bat" 26795 else 26796 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26797 fi 26798 26799 26800 windows_path="$VS_BASE" 26801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26802 unix_path=`$CYGPATH -u "$windows_path"` 26803 VS_BASE="$unix_path" 26804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26805 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26806 VS_BASE="$unix_path" 26807 fi 26808 26809 if test -d "$VS_BASE"; then 26810 if test -f "$VS_BASE/$VCVARSFILE"; then 26811 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26812 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26813 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26814 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26815 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26816 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26817 else 26818 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26819 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26820 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26821 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26822 fi 26823 fi 26824 fi 26825 26826 26827 if test "x$VS_ENV_CMD" = x; then 26828 VS_VERSION="${VS_VERSION}" 26829 VS_BASE="$with_tools_dir/../../.." 26830 METHOD="--with-tools-dir" 26831 26832 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26833 VCVARSFILE="vc/bin/vcvars32.bat" 26834 else 26835 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26836 fi 26837 26838 26839 windows_path="$VS_BASE" 26840 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26841 unix_path=`$CYGPATH -u "$windows_path"` 26842 VS_BASE="$unix_path" 26843 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26844 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26845 VS_BASE="$unix_path" 26846 fi 26847 26848 if test -d "$VS_BASE"; then 26849 if test -f "$VS_BASE/$VCVARSFILE"; then 26850 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26851 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26852 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26853 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26854 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26855 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26856 else 26857 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26858 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26859 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26860 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26861 fi 26862 fi 26863 fi 26864 26865 if test "x$VS_ENV_CMD" = x; then 26866 # Having specified an argument which is incorrect will produce an instant failure; 26867 # we should not go on looking 26868 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 26869 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 26870 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 26871 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 26872 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 26873 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 26874 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 26875 fi 26876 fi 26877 26878 VS_ENV_CMD="" 26879 VS_ENV_ARGS="" 26880 26881 if test "x$VS_COMNTOOLS" != x; then 26882 26883 if test "x$VS_ENV_CMD" = x; then 26884 VS_VERSION="${VS_VERSION}" 26885 VS_BASE="$VS_COMNTOOLS/../.." 26886 METHOD="$VS_COMNTOOLS_VAR variable" 26887 26888 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26889 VCVARSFILE="vc/bin/vcvars32.bat" 26890 else 26891 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26892 fi 26893 26894 26895 windows_path="$VS_BASE" 26896 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26897 unix_path=`$CYGPATH -u "$windows_path"` 26898 VS_BASE="$unix_path" 26899 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26900 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26901 VS_BASE="$unix_path" 26902 fi 26903 26904 if test -d "$VS_BASE"; then 26905 if test -f "$VS_BASE/$VCVARSFILE"; then 26906 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26907 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26908 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26909 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26910 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26911 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26912 else 26913 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26914 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26915 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26916 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26917 fi 26918 fi 26919 fi 26920 26921 fi 26922 if test "x$PROGRAMFILES" != x; then 26923 26924 if test "x$VS_ENV_CMD" = x; then 26925 VS_VERSION="${VS_VERSION}" 26926 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 26927 METHOD="well-known name" 26928 26929 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26930 VCVARSFILE="vc/bin/vcvars32.bat" 26931 else 26932 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26933 fi 26934 26935 26936 windows_path="$VS_BASE" 26937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26938 unix_path=`$CYGPATH -u "$windows_path"` 26939 VS_BASE="$unix_path" 26940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26941 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26942 VS_BASE="$unix_path" 26943 fi 26944 26945 if test -d "$VS_BASE"; then 26946 if test -f "$VS_BASE/$VCVARSFILE"; then 26947 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26948 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26949 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26950 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26951 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26952 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26953 else 26954 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26955 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26956 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26957 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26958 fi 26959 fi 26960 fi 26961 26962 fi 26963 # Work around the insanely named ProgramFiles(x86) env variable 26964 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 26965 if test "x$PROGRAMFILES_X86" != x; then 26966 26967 if test "x$VS_ENV_CMD" = x; then 26968 VS_VERSION="${VS_VERSION}" 26969 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 26970 METHOD="well-known name" 26971 26972 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26973 VCVARSFILE="vc/bin/vcvars32.bat" 26974 else 26975 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26976 fi 26977 26978 26979 windows_path="$VS_BASE" 26980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26981 unix_path=`$CYGPATH -u "$windows_path"` 26982 VS_BASE="$unix_path" 26983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26984 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26985 VS_BASE="$unix_path" 26986 fi 26987 26988 if test -d "$VS_BASE"; then 26989 if test -f "$VS_BASE/$VCVARSFILE"; then 26990 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26991 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26992 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26993 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26994 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26995 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26996 else 26997 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26998 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26999 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27000 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27001 fi 27002 fi 27003 fi 27004 27005 fi 27006 27007 if test "x$VS_ENV_CMD" = x; then 27008 VS_VERSION="${VS_VERSION}" 27009 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 27010 METHOD="well-known name" 27011 27012 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27013 VCVARSFILE="vc/bin/vcvars32.bat" 27014 else 27015 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27016 fi 27017 27018 27019 windows_path="$VS_BASE" 27020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27021 unix_path=`$CYGPATH -u "$windows_path"` 27022 VS_BASE="$unix_path" 27023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27024 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27025 VS_BASE="$unix_path" 27026 fi 27027 27028 if test -d "$VS_BASE"; then 27029 if test -f "$VS_BASE/$VCVARSFILE"; then 27030 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27031 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27032 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27033 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27034 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27035 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27036 else 27037 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27038 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27039 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27040 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27041 fi 27042 fi 27043 fi 27044 27045 27046 if test "x$VS_ENV_CMD" = x; then 27047 VS_VERSION="${VS_VERSION}" 27048 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 27049 METHOD="well-known name" 27050 27051 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27052 VCVARSFILE="vc/bin/vcvars32.bat" 27053 else 27054 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27055 fi 27056 27057 27058 windows_path="$VS_BASE" 27059 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27060 unix_path=`$CYGPATH -u "$windows_path"` 27061 VS_BASE="$unix_path" 27062 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27063 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27064 VS_BASE="$unix_path" 27065 fi 27066 27067 if test -d "$VS_BASE"; then 27068 if test -f "$VS_BASE/$VCVARSFILE"; then 27069 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27070 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27071 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27072 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27073 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27074 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27075 else 27076 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27077 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27078 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27079 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27080 fi 27081 fi 27082 fi 27083 27084 27085 if test "x$SDK_INSTALL_DIR" != x; then 27086 if test "x$ProgramW6432" != x; then 27087 27088 if test "x$VS_ENV_CMD" = x; then 27089 VS_VERSION="${VS_VERSION}" 27090 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 27091 METHOD="well-known name" 27092 27093 windows_path="$WIN_SDK_BASE" 27094 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27095 unix_path=`$CYGPATH -u "$windows_path"` 27096 WIN_SDK_BASE="$unix_path" 27097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27098 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27099 WIN_SDK_BASE="$unix_path" 27100 fi 27101 27102 if test -d "$WIN_SDK_BASE"; then 27103 # There have been cases of partial or broken SDK installations. A missing 27104 # lib dir is not going to work. 27105 if test ! -d "$WIN_SDK_BASE/lib"; then 27106 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27107 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27108 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27109 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27110 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27111 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27112 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27113 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27114 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27115 VS_ENV_ARGS="/x86" 27116 else 27117 VS_ENV_ARGS="/x64" 27118 fi 27119 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27120 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27121 # TODO: improve detection for other versions of SDK 27122 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27123 else 27124 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27125 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27126 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27127 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27128 fi 27129 fi 27130 fi 27131 27132 fi 27133 if test "x$PROGRAMW6432" != x; then 27134 27135 if test "x$VS_ENV_CMD" = x; then 27136 VS_VERSION="${VS_VERSION}" 27137 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 27138 METHOD="well-known name" 27139 27140 windows_path="$WIN_SDK_BASE" 27141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27142 unix_path=`$CYGPATH -u "$windows_path"` 27143 WIN_SDK_BASE="$unix_path" 27144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27146 WIN_SDK_BASE="$unix_path" 27147 fi 27148 27149 if test -d "$WIN_SDK_BASE"; then 27150 # There have been cases of partial or broken SDK installations. A missing 27151 # lib dir is not going to work. 27152 if test ! -d "$WIN_SDK_BASE/lib"; then 27153 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27154 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27155 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27156 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27157 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27158 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27159 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27160 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27161 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27162 VS_ENV_ARGS="/x86" 27163 else 27164 VS_ENV_ARGS="/x64" 27165 fi 27166 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27167 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27168 # TODO: improve detection for other versions of SDK 27169 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27170 else 27171 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27172 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27173 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27174 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27175 fi 27176 fi 27177 fi 27178 27179 fi 27180 if test "x$PROGRAMFILES" != x; then 27181 27182 if test "x$VS_ENV_CMD" = x; then 27183 VS_VERSION="${VS_VERSION}" 27184 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 27185 METHOD="well-known name" 27186 27187 windows_path="$WIN_SDK_BASE" 27188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27189 unix_path=`$CYGPATH -u "$windows_path"` 27190 WIN_SDK_BASE="$unix_path" 27191 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27192 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27193 WIN_SDK_BASE="$unix_path" 27194 fi 27195 27196 if test -d "$WIN_SDK_BASE"; then 27197 # There have been cases of partial or broken SDK installations. A missing 27198 # lib dir is not going to work. 27199 if test ! -d "$WIN_SDK_BASE/lib"; then 27200 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27201 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27202 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27203 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27204 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27205 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27206 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27207 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27208 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27209 VS_ENV_ARGS="/x86" 27210 else 27211 VS_ENV_ARGS="/x64" 27212 fi 27213 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27214 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27215 # TODO: improve detection for other versions of SDK 27216 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27217 else 27218 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27219 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27220 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27221 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27222 fi 27223 fi 27224 fi 27225 27226 fi 27227 27228 if test "x$VS_ENV_CMD" = x; then 27229 VS_VERSION="${VS_VERSION}" 27230 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 27231 METHOD="well-known name" 27232 27233 windows_path="$WIN_SDK_BASE" 27234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27235 unix_path=`$CYGPATH -u "$windows_path"` 27236 WIN_SDK_BASE="$unix_path" 27237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27239 WIN_SDK_BASE="$unix_path" 27240 fi 27241 27242 if test -d "$WIN_SDK_BASE"; then 27243 # There have been cases of partial or broken SDK installations. A missing 27244 # lib dir is not going to work. 27245 if test ! -d "$WIN_SDK_BASE/lib"; then 27246 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27247 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27248 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27249 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27250 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27251 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27252 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27253 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27254 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27255 VS_ENV_ARGS="/x86" 27256 else 27257 VS_ENV_ARGS="/x64" 27258 fi 27259 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27260 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27261 # TODO: improve detection for other versions of SDK 27262 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27263 else 27264 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27265 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27266 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27267 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27268 fi 27269 fi 27270 fi 27271 27272 27273 if test "x$VS_ENV_CMD" = x; then 27274 VS_VERSION="${VS_VERSION}" 27275 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 27276 METHOD="well-known name" 27277 27278 windows_path="$WIN_SDK_BASE" 27279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27280 unix_path=`$CYGPATH -u "$windows_path"` 27281 WIN_SDK_BASE="$unix_path" 27282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27284 WIN_SDK_BASE="$unix_path" 27285 fi 27286 27287 if test -d "$WIN_SDK_BASE"; then 27288 # There have been cases of partial or broken SDK installations. A missing 27289 # lib dir is not going to work. 27290 if test ! -d "$WIN_SDK_BASE/lib"; then 27291 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27292 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27293 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27294 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27295 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27296 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27297 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27298 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27299 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27300 VS_ENV_ARGS="/x86" 27301 else 27302 VS_ENV_ARGS="/x64" 27303 fi 27304 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27305 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27306 # TODO: improve detection for other versions of SDK 27307 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27308 else 27309 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27310 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27311 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27312 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27313 fi 27314 fi 27315 fi 27316 27317 fi 27318 27319 if test "x$VS_ENV_CMD" != x; then 27320 TOOLCHAIN_VERSION=$VS_VERSION 27321 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 27322 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 27323 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 27324 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 27325 # The rest of the variables are already evaled while probing 27326 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 27327 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 27328 break 27329 fi 27330 done 27331 27332 27333 if test "x$VS_ENV_CMD" != x; then 27334 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 27335 27336 # Only process if variable expands to non-empty 27337 27338 if test "x$VS_ENV_CMD" != x; then 27339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27340 27341 # First separate the path from the arguments. This will split at the first 27342 # space. 27343 complete="$VS_ENV_CMD" 27344 path="${complete%% *}" 27345 tmp="$complete EOL" 27346 arguments="${tmp#* }" 27347 27348 # Input might be given as Windows format, start by converting to 27349 # unix format. 27350 new_path=`$CYGPATH -u "$path"` 27351 27352 # Now try to locate executable using which 27353 new_path=`$WHICH "$new_path" 2> /dev/null` 27354 # bat and cmd files are not always considered executable in cygwin causing which 27355 # to not find them 27356 if test "x$new_path" = x \ 27357 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27358 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27359 new_path=`$CYGPATH -u "$path"` 27360 fi 27361 if test "x$new_path" = x; then 27362 # Oops. Which didn't find the executable. 27363 # The splitting of arguments from the executable at a space might have been incorrect, 27364 # since paths with space are more likely in Windows. Give it another try with the whole 27365 # argument. 27366 path="$complete" 27367 arguments="EOL" 27368 new_path=`$CYGPATH -u "$path"` 27369 new_path=`$WHICH "$new_path" 2> /dev/null` 27370 # bat and cmd files are not always considered executable in cygwin causing which 27371 # to not find them 27372 if test "x$new_path" = x \ 27373 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27374 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27375 new_path=`$CYGPATH -u "$path"` 27376 fi 27377 if test "x$new_path" = x; then 27378 # It's still not found. Now this is an unrecoverable error. 27379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27380 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27381 has_space=`$ECHO "$complete" | $GREP " "` 27382 if test "x$has_space" != x; then 27383 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27384 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27385 fi 27386 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27387 fi 27388 fi 27389 27390 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27391 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27392 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27393 # "foo.exe" is OK but "foo" is an error. 27394 # 27395 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27396 # It is also a way to make sure we got the proper file name for the real test later on. 27397 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27398 if test "x$test_shortpath" = x; then 27399 # Short path failed, file does not exist as specified. 27400 # Try adding .exe or .cmd 27401 if test -f "${new_path}.exe"; then 27402 input_to_shortpath="${new_path}.exe" 27403 elif test -f "${new_path}.cmd"; then 27404 input_to_shortpath="${new_path}.cmd" 27405 else 27406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27407 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27408 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27409 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27410 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27411 fi 27412 else 27413 input_to_shortpath="$new_path" 27414 fi 27415 27416 # Call helper function which possibly converts this using DOS-style short mode. 27417 # If so, the updated path is stored in $new_path. 27418 new_path="$input_to_shortpath" 27419 27420 input_path="$input_to_shortpath" 27421 # Check if we need to convert this using DOS-style short mode. If the path 27422 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27423 # take no chances and rewrite it. 27424 # Note: m4 eats our [], so we need to use [ and ] instead. 27425 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27426 if test "x$has_forbidden_chars" != x; then 27427 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27428 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27429 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27430 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27431 # Going to short mode and back again did indeed matter. Since short mode is 27432 # case insensitive, let's make it lowercase to improve readability. 27433 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27434 # Now convert it back to Unix-stile (cygpath) 27435 input_path=`$CYGPATH -u "$shortmode_path"` 27436 new_path="$input_path" 27437 fi 27438 fi 27439 27440 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27441 if test "x$test_cygdrive_prefix" = x; then 27442 # As a simple fix, exclude /usr/bin since it's not a real path. 27443 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27444 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27445 # a path prefixed by /cygdrive for fixpath to work. 27446 new_path="$CYGWIN_ROOT_PATH$input_path" 27447 fi 27448 fi 27449 27450 # remove trailing .exe if any 27451 new_path="${new_path/%.exe/}" 27452 27453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27454 27455 # First separate the path from the arguments. This will split at the first 27456 # space. 27457 complete="$VS_ENV_CMD" 27458 path="${complete%% *}" 27459 tmp="$complete EOL" 27460 arguments="${tmp#* }" 27461 27462 # Input might be given as Windows format, start by converting to 27463 # unix format. 27464 new_path="$path" 27465 27466 windows_path="$new_path" 27467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27468 unix_path=`$CYGPATH -u "$windows_path"` 27469 new_path="$unix_path" 27470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27472 new_path="$unix_path" 27473 fi 27474 27475 27476 # Now try to locate executable using which 27477 new_path=`$WHICH "$new_path" 2> /dev/null` 27478 27479 if test "x$new_path" = x; then 27480 # Oops. Which didn't find the executable. 27481 # The splitting of arguments from the executable at a space might have been incorrect, 27482 # since paths with space are more likely in Windows. Give it another try with the whole 27483 # argument. 27484 path="$complete" 27485 arguments="EOL" 27486 new_path="$path" 27487 27488 windows_path="$new_path" 27489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27490 unix_path=`$CYGPATH -u "$windows_path"` 27491 new_path="$unix_path" 27492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27493 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27494 new_path="$unix_path" 27495 fi 27496 27497 27498 new_path=`$WHICH "$new_path" 2> /dev/null` 27499 # bat and cmd files are not always considered executable in MSYS causing which 27500 # to not find them 27501 if test "x$new_path" = x \ 27502 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27503 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27504 new_path="$path" 27505 27506 windows_path="$new_path" 27507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27508 unix_path=`$CYGPATH -u "$windows_path"` 27509 new_path="$unix_path" 27510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27512 new_path="$unix_path" 27513 fi 27514 27515 fi 27516 27517 if test "x$new_path" = x; then 27518 # It's still not found. Now this is an unrecoverable error. 27519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27520 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27521 has_space=`$ECHO "$complete" | $GREP " "` 27522 if test "x$has_space" != x; then 27523 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27524 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27525 fi 27526 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27527 fi 27528 fi 27529 27530 # Now new_path has a complete unix path to the binary 27531 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27532 # Keep paths in /bin as-is, but remove trailing .exe if any 27533 new_path="${new_path/%.exe/}" 27534 # Do not save /bin paths to all_fixpath_prefixes! 27535 else 27536 # Not in mixed or Windows style, start by that. 27537 new_path=`cmd //c echo $new_path` 27538 27539 input_path="$new_path" 27540 # Check if we need to convert this using DOS-style short mode. If the path 27541 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27542 # take no chances and rewrite it. 27543 # Note: m4 eats our [], so we need to use [ and ] instead. 27544 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27545 if test "x$has_forbidden_chars" != x; then 27546 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27547 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27548 fi 27549 27550 # Output is in $new_path 27551 27552 windows_path="$new_path" 27553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27554 unix_path=`$CYGPATH -u "$windows_path"` 27555 new_path="$unix_path" 27556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27557 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27558 new_path="$unix_path" 27559 fi 27560 27561 # remove trailing .exe if any 27562 new_path="${new_path/%.exe/}" 27563 27564 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27565 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27566 fi 27567 27568 else 27569 # We're on a unix platform. Hooray! :) 27570 # First separate the path from the arguments. This will split at the first 27571 # space. 27572 complete="$VS_ENV_CMD" 27573 path="${complete%% *}" 27574 tmp="$complete EOL" 27575 arguments="${tmp#* }" 27576 27577 # Cannot rely on the command "which" here since it doesn't always work. 27578 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27579 if test -z "$is_absolute_path"; then 27580 # Path to executable is not absolute. Find it. 27581 IFS_save="$IFS" 27582 IFS=: 27583 for p in $PATH; do 27584 if test -f "$p/$path" && test -x "$p/$path"; then 27585 new_path="$p/$path" 27586 break 27587 fi 27588 done 27589 IFS="$IFS_save" 27590 else 27591 # This is an absolute path, we can use it without further modifications. 27592 new_path="$path" 27593 fi 27594 27595 if test "x$new_path" = x; then 27596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27597 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27598 has_space=`$ECHO "$complete" | $GREP " "` 27599 if test "x$has_space" != x; then 27600 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27601 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27602 fi 27603 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27604 fi 27605 fi 27606 27607 # Now join together the path and the arguments once again 27608 if test "x$arguments" != xEOL; then 27609 new_complete="$new_path ${arguments% *}" 27610 else 27611 new_complete="$new_path" 27612 fi 27613 27614 if test "x$complete" != "x$new_complete"; then 27615 VS_ENV_CMD="$new_complete" 27616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 27617 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 27618 fi 27619 fi 27620 27621 27622 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 27623 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 27624 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 27625 27626 # We need to create a couple of temporary files. 27627 VS_ENV_TMP_DIR="$CONFIGURE_SUPPORT/vs-env" 27628 $MKDIR -p $VS_ENV_TMP_DIR 27629 27630 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 27631 # Instead create a shell script which will set the relevant variables when run. 27632 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 27633 27634 unix_path="$WINPATH_VS_ENV_CMD" 27635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27636 windows_path=`$CYGPATH -m "$unix_path"` 27637 WINPATH_VS_ENV_CMD="$windows_path" 27638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27639 windows_path=`cmd //c echo $unix_path` 27640 WINPATH_VS_ENV_CMD="$windows_path" 27641 fi 27642 27643 WINPATH_BASH="$BASH" 27644 27645 unix_path="$WINPATH_BASH" 27646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27647 windows_path=`$CYGPATH -m "$unix_path"` 27648 WINPATH_BASH="$windows_path" 27649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27650 windows_path=`cmd //c echo $unix_path` 27651 WINPATH_BASH="$windows_path" 27652 fi 27653 27654 27655 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 27656 # script (executable by bash) that will setup the important variables. 27657 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 27658 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 27659 # This will end up something like: 27660 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 27661 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 27662 # These will end up something like: 27663 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 27664 # The trailing space for everyone except PATH is no typo, but is needed due 27665 # to trailing \ in the Windows paths. These will be stripped later. 27666 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27667 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27668 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27669 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27670 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27671 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27672 27673 # Now execute the newly created bat file. 27674 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 27675 # Change directory so we don't need to mess with Windows paths in redirects. 27676 cd $VS_ENV_TMP_DIR 27677 cmd /c extract-vs-env.bat | $CAT 27678 cd $CURDIR 27679 27680 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 27681 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 27682 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 27683 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27684 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27685 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27686 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27687 as_fn_error $? "Cannot continue" "$LINENO" 5 27688 fi 27689 27690 # Now set all paths and other env variables. This will allow the rest of 27691 # the configure script to find and run the compiler in the proper way. 27692 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 27693 $as_echo "$as_me: Setting extracted environment variables" >&6;} 27694 . $VS_ENV_TMP_DIR/set-vs-env.sh 27695 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 27696 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 27697 else 27698 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 27699 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 27700 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 27701 fi 27702 27703 # At this point, we should have correct variables in the environment, or we can't continue. 27704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 27705 $as_echo_n "checking for Visual Studio variables... " >&6; } 27706 27707 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 27708 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 27709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 27710 $as_echo "present but broken" >&6; } 27711 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 27712 else 27713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27714 $as_echo "ok" >&6; } 27715 # Remove any trailing "\" ";" and " " from the variables. 27716 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 27717 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 27718 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 27719 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 27720 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 27721 # Remove any paths containing # (typically F#) as that messes up make. This 27722 # is needed if visual studio was installed with F# support. 27723 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 27724 27725 27726 27727 27728 27729 # Convert VS_INCLUDE into SYSROOT_CFLAGS 27730 OLDIFS="$IFS" 27731 IFS=";" 27732 for i in $VS_INCLUDE; do 27733 ipath=$i 27734 # Only process non-empty elements 27735 if test "x$ipath" != x; then 27736 IFS="$OLDIFS" 27737 # Check that directory exists before calling fixup_path 27738 testpath=$ipath 27739 27740 windows_path="$testpath" 27741 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27742 unix_path=`$CYGPATH -u "$windows_path"` 27743 testpath="$unix_path" 27744 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27745 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27746 testpath="$unix_path" 27747 fi 27748 27749 if test -d "$testpath"; then 27750 27751 # Only process if variable expands to non-empty 27752 27753 if test "x$ipath" != x; then 27754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27755 27756 # Input might be given as Windows format, start by converting to 27757 # unix format. 27758 path="$ipath" 27759 new_path=`$CYGPATH -u "$path"` 27760 27761 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27762 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27763 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27764 # "foo.exe" is OK but "foo" is an error. 27765 # 27766 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27767 # It is also a way to make sure we got the proper file name for the real test later on. 27768 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27769 if test "x$test_shortpath" = x; then 27770 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 27771 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 27772 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 27773 fi 27774 27775 # Call helper function which possibly converts this using DOS-style short mode. 27776 # If so, the updated path is stored in $new_path. 27777 27778 input_path="$new_path" 27779 # Check if we need to convert this using DOS-style short mode. If the path 27780 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27781 # take no chances and rewrite it. 27782 # Note: m4 eats our [], so we need to use [ and ] instead. 27783 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27784 if test "x$has_forbidden_chars" != x; then 27785 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27786 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27787 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27788 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27789 # Going to short mode and back again did indeed matter. Since short mode is 27790 # case insensitive, let's make it lowercase to improve readability. 27791 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27792 # Now convert it back to Unix-stile (cygpath) 27793 input_path=`$CYGPATH -u "$shortmode_path"` 27794 new_path="$input_path" 27795 fi 27796 fi 27797 27798 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27799 if test "x$test_cygdrive_prefix" = x; then 27800 # As a simple fix, exclude /usr/bin since it's not a real path. 27801 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27802 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27803 # a path prefixed by /cygdrive for fixpath to work. 27804 new_path="$CYGWIN_ROOT_PATH$input_path" 27805 fi 27806 fi 27807 27808 27809 if test "x$path" != "x$new_path"; then 27810 ipath="$new_path" 27811 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 27812 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 27813 fi 27814 27815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27816 27817 path="$ipath" 27818 has_colon=`$ECHO $path | $GREP ^.:` 27819 new_path="$path" 27820 if test "x$has_colon" = x; then 27821 # Not in mixed or Windows style, start by that. 27822 new_path=`cmd //c echo $path` 27823 fi 27824 27825 27826 input_path="$new_path" 27827 # Check if we need to convert this using DOS-style short mode. If the path 27828 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27829 # take no chances and rewrite it. 27830 # Note: m4 eats our [], so we need to use [ and ] instead. 27831 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27832 if test "x$has_forbidden_chars" != x; then 27833 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27834 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27835 fi 27836 27837 27838 windows_path="$new_path" 27839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27840 unix_path=`$CYGPATH -u "$windows_path"` 27841 new_path="$unix_path" 27842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27844 new_path="$unix_path" 27845 fi 27846 27847 if test "x$path" != "x$new_path"; then 27848 ipath="$new_path" 27849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 27850 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 27851 fi 27852 27853 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27854 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27855 27856 else 27857 # We're on a unix platform. Hooray! :) 27858 path="$ipath" 27859 has_space=`$ECHO "$path" | $GREP " "` 27860 if test "x$has_space" != x; then 27861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 27862 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 27863 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27864 fi 27865 27866 # Use eval to expand a potential ~ 27867 eval path="$path" 27868 if test ! -f "$path" && test ! -d "$path"; then 27869 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 27870 fi 27871 27872 ipath="`cd "$path"; $THEPWDCMD -L`" 27873 fi 27874 fi 27875 27876 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 27877 fi 27878 IFS=";" 27879 fi 27880 done 27881 # Convert VS_LIB into SYSROOT_LDFLAGS 27882 for i in $VS_LIB; do 27883 libpath=$i 27884 # Only process non-empty elements 27885 if test "x$libpath" != x; then 27886 IFS="$OLDIFS" 27887 # Check that directory exists before calling fixup_path 27888 testpath=$libpath 27889 27890 windows_path="$testpath" 27891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27892 unix_path=`$CYGPATH -u "$windows_path"` 27893 testpath="$unix_path" 27894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27895 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27896 testpath="$unix_path" 27897 fi 27898 27899 if test -d "$testpath"; then 27900 27901 # Only process if variable expands to non-empty 27902 27903 if test "x$libpath" != x; then 27904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27905 27906 # Input might be given as Windows format, start by converting to 27907 # unix format. 27908 path="$libpath" 27909 new_path=`$CYGPATH -u "$path"` 27910 27911 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27912 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27913 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27914 # "foo.exe" is OK but "foo" is an error. 27915 # 27916 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27917 # It is also a way to make sure we got the proper file name for the real test later on. 27918 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27919 if test "x$test_shortpath" = x; then 27920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 27921 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 27922 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 27923 fi 27924 27925 # Call helper function which possibly converts this using DOS-style short mode. 27926 # If so, the updated path is stored in $new_path. 27927 27928 input_path="$new_path" 27929 # Check if we need to convert this using DOS-style short mode. If the path 27930 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27931 # take no chances and rewrite it. 27932 # Note: m4 eats our [], so we need to use [ and ] instead. 27933 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27934 if test "x$has_forbidden_chars" != x; then 27935 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27936 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27937 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27938 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27939 # Going to short mode and back again did indeed matter. Since short mode is 27940 # case insensitive, let's make it lowercase to improve readability. 27941 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27942 # Now convert it back to Unix-stile (cygpath) 27943 input_path=`$CYGPATH -u "$shortmode_path"` 27944 new_path="$input_path" 27945 fi 27946 fi 27947 27948 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27949 if test "x$test_cygdrive_prefix" = x; then 27950 # As a simple fix, exclude /usr/bin since it's not a real path. 27951 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27952 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27953 # a path prefixed by /cygdrive for fixpath to work. 27954 new_path="$CYGWIN_ROOT_PATH$input_path" 27955 fi 27956 fi 27957 27958 27959 if test "x$path" != "x$new_path"; then 27960 libpath="$new_path" 27961 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 27962 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 27963 fi 27964 27965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27966 27967 path="$libpath" 27968 has_colon=`$ECHO $path | $GREP ^.:` 27969 new_path="$path" 27970 if test "x$has_colon" = x; then 27971 # Not in mixed or Windows style, start by that. 27972 new_path=`cmd //c echo $path` 27973 fi 27974 27975 27976 input_path="$new_path" 27977 # Check if we need to convert this using DOS-style short mode. If the path 27978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27979 # take no chances and rewrite it. 27980 # Note: m4 eats our [], so we need to use [ and ] instead. 27981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27982 if test "x$has_forbidden_chars" != x; then 27983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27984 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27985 fi 27986 27987 27988 windows_path="$new_path" 27989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27990 unix_path=`$CYGPATH -u "$windows_path"` 27991 new_path="$unix_path" 27992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27994 new_path="$unix_path" 27995 fi 27996 27997 if test "x$path" != "x$new_path"; then 27998 libpath="$new_path" 27999 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 28000 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 28001 fi 28002 28003 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28004 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28005 28006 else 28007 # We're on a unix platform. Hooray! :) 28008 path="$libpath" 28009 has_space=`$ECHO "$path" | $GREP " "` 28010 if test "x$has_space" != x; then 28011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 28012 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 28013 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28014 fi 28015 28016 # Use eval to expand a potential ~ 28017 eval path="$path" 28018 if test ! -f "$path" && test ! -d "$path"; then 28019 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 28020 fi 28021 28022 libpath="`cd "$path"; $THEPWDCMD -L`" 28023 fi 28024 fi 28025 28026 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 28027 fi 28028 IFS=";" 28029 fi 28030 done 28031 IFS="$OLDIFS" 28032 fi 28033 else 28034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28035 $as_echo "not found" >&6; } 28036 28037 if test "x$VS_ENV_CMD" = x; then 28038 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 28039 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 28040 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 28041 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 28042 else 28043 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 28044 $as_echo "$as_me: Running the extraction script failed." >&6;} 28045 fi 28046 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 28047 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 28048 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 28049 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 28050 as_fn_error $? "Cannot continue" "$LINENO" 5 28051 fi 28052 28053 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 28054 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 28055 PATH="$VS_PATH" 28056 # The microsoft toolchain also requires INCLUDE and LIB to be set. 28057 export INCLUDE="$VS_INCLUDE" 28058 export LIB="$VS_LIB" 28059 fi 28060 28061 # autoconf magic only relies on PATH, so update it if tools dir is specified 28062 OLD_PATH="$PATH" 28063 28064 # For solaris we really need solaris tools, and not the GNU equivalent. 28065 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 28066 # so add that to path before starting to probe. 28067 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 28068 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 28069 PATH="/usr/ccs/bin:$PATH" 28070 fi 28071 28072 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 28073 # override all other locations. 28074 if test "x$TOOLCHAIN_PATH" != x; then 28075 PATH=$TOOLCHAIN_PATH:$PATH 28076 fi 28077 28078 28079 # 28080 # Setup the compilers (CC and CXX) 28081 # 28082 28083 COMPILER_NAME=C 28084 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 28085 28086 if test "x$CC" != x; then 28087 # User has supplied compiler name already, always let that override. 28088 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 28089 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 28090 if test "x`basename $CC`" = "x$CC"; then 28091 # A command without a complete path is provided, search $PATH. 28092 28093 for ac_prog in $CC 28094 do 28095 # Extract the first word of "$ac_prog", so it can be a program name with args. 28096 set dummy $ac_prog; ac_word=$2 28097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28098 $as_echo_n "checking for $ac_word... " >&6; } 28099 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 28100 $as_echo_n "(cached) " >&6 28101 else 28102 case $POTENTIAL_CC in 28103 [\\/]* | ?:[\\/]*) 28104 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 28105 ;; 28106 *) 28107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28108 for as_dir in $PATH 28109 do 28110 IFS=$as_save_IFS 28111 test -z "$as_dir" && as_dir=. 28112 for ac_exec_ext in '' $ac_executable_extensions; do 28113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28114 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 28115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28116 break 2 28117 fi 28118 done 28119 done 28120 IFS=$as_save_IFS 28121 28122 ;; 28123 esac 28124 fi 28125 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 28126 if test -n "$POTENTIAL_CC"; then 28127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 28128 $as_echo "$POTENTIAL_CC" >&6; } 28129 else 28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28131 $as_echo "no" >&6; } 28132 fi 28133 28134 28135 test -n "$POTENTIAL_CC" && break 28136 done 28137 28138 if test "x$POTENTIAL_CC" != x; then 28139 CC=$POTENTIAL_CC 28140 else 28141 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 28142 fi 28143 else 28144 # Otherwise it might already be a complete path 28145 if test ! -x "$CC"; then 28146 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 28147 fi 28148 fi 28149 else 28150 # No user supplied value. Locate compiler ourselves. 28151 28152 # If we are cross compiling, assume cross compilation tools follows the 28153 # cross compilation standard where they are prefixed with the autoconf 28154 # standard name for the target. For example the binary 28155 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 28156 # If we are not cross compiling, then the default compiler name will be 28157 # used. 28158 28159 CC= 28160 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 28161 # before checking the rest of the PATH. 28162 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 28163 # step, this should not be necessary. 28164 if test -n "$TOOLCHAIN_PATH"; then 28165 PATH_save="$PATH" 28166 PATH="$TOOLCHAIN_PATH" 28167 for ac_prog in $SEARCH_LIST 28168 do 28169 # Extract the first word of "$ac_prog", so it can be a program name with args. 28170 set dummy $ac_prog; ac_word=$2 28171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28172 $as_echo_n "checking for $ac_word... " >&6; } 28173 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 28174 $as_echo_n "(cached) " >&6 28175 else 28176 case $TOOLCHAIN_PATH_CC in 28177 [\\/]* | ?:[\\/]*) 28178 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 28179 ;; 28180 *) 28181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28182 for as_dir in $PATH 28183 do 28184 IFS=$as_save_IFS 28185 test -z "$as_dir" && as_dir=. 28186 for ac_exec_ext in '' $ac_executable_extensions; do 28187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28188 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 28189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28190 break 2 28191 fi 28192 done 28193 done 28194 IFS=$as_save_IFS 28195 28196 ;; 28197 esac 28198 fi 28199 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 28200 if test -n "$TOOLCHAIN_PATH_CC"; then 28201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 28202 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 28203 else 28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28205 $as_echo "no" >&6; } 28206 fi 28207 28208 28209 test -n "$TOOLCHAIN_PATH_CC" && break 28210 done 28211 28212 CC=$TOOLCHAIN_PATH_CC 28213 PATH="$PATH_save" 28214 fi 28215 28216 # AC_PATH_PROGS can't be run multiple times with the same variable, 28217 # so create a new name for this run. 28218 if test "x$CC" = x; then 28219 for ac_prog in $SEARCH_LIST 28220 do 28221 # Extract the first word of "$ac_prog", so it can be a program name with args. 28222 set dummy $ac_prog; ac_word=$2 28223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28224 $as_echo_n "checking for $ac_word... " >&6; } 28225 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 28226 $as_echo_n "(cached) " >&6 28227 else 28228 case $POTENTIAL_CC in 28229 [\\/]* | ?:[\\/]*) 28230 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 28231 ;; 28232 *) 28233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28234 for as_dir in $PATH 28235 do 28236 IFS=$as_save_IFS 28237 test -z "$as_dir" && as_dir=. 28238 for ac_exec_ext in '' $ac_executable_extensions; do 28239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28240 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 28241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28242 break 2 28243 fi 28244 done 28245 done 28246 IFS=$as_save_IFS 28247 28248 ;; 28249 esac 28250 fi 28251 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 28252 if test -n "$POTENTIAL_CC"; then 28253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 28254 $as_echo "$POTENTIAL_CC" >&6; } 28255 else 28256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28257 $as_echo "no" >&6; } 28258 fi 28259 28260 28261 test -n "$POTENTIAL_CC" && break 28262 done 28263 28264 CC=$POTENTIAL_CC 28265 fi 28266 28267 if test "x$CC" = x; then 28268 28269 # Print a helpful message on how to acquire the necessary build dependency. 28270 # devkit is the help tag: freetype, cups, pulse, alsa etc 28271 MISSING_DEPENDENCY=devkit 28272 28273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28274 cygwin_help $MISSING_DEPENDENCY 28275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28276 msys_help $MISSING_DEPENDENCY 28277 else 28278 PKGHANDLER_COMMAND= 28279 28280 case $PKGHANDLER in 28281 apt-get) 28282 apt_help $MISSING_DEPENDENCY ;; 28283 yum) 28284 yum_help $MISSING_DEPENDENCY ;; 28285 port) 28286 port_help $MISSING_DEPENDENCY ;; 28287 pkgutil) 28288 pkgutil_help $MISSING_DEPENDENCY ;; 28289 pkgadd) 28290 pkgadd_help $MISSING_DEPENDENCY ;; 28291 esac 28292 28293 if test "x$PKGHANDLER_COMMAND" != x; then 28294 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28295 fi 28296 fi 28297 28298 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 28299 fi 28300 fi 28301 28302 # Now we have a compiler binary in CC. Make sure it's okay. 28303 28304 # Only process if variable expands to non-empty 28305 28306 if test "x$CC" != x; then 28307 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28308 28309 # First separate the path from the arguments. This will split at the first 28310 # space. 28311 complete="$CC" 28312 path="${complete%% *}" 28313 tmp="$complete EOL" 28314 arguments="${tmp#* }" 28315 28316 # Input might be given as Windows format, start by converting to 28317 # unix format. 28318 new_path=`$CYGPATH -u "$path"` 28319 28320 # Now try to locate executable using which 28321 new_path=`$WHICH "$new_path" 2> /dev/null` 28322 # bat and cmd files are not always considered executable in cygwin causing which 28323 # to not find them 28324 if test "x$new_path" = x \ 28325 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28326 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28327 new_path=`$CYGPATH -u "$path"` 28328 fi 28329 if test "x$new_path" = x; then 28330 # Oops. Which didn't find the executable. 28331 # The splitting of arguments from the executable at a space might have been incorrect, 28332 # since paths with space are more likely in Windows. Give it another try with the whole 28333 # argument. 28334 path="$complete" 28335 arguments="EOL" 28336 new_path=`$CYGPATH -u "$path"` 28337 new_path=`$WHICH "$new_path" 2> /dev/null` 28338 # bat and cmd files are not always considered executable in cygwin causing which 28339 # to not find them 28340 if test "x$new_path" = x \ 28341 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28342 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28343 new_path=`$CYGPATH -u "$path"` 28344 fi 28345 if test "x$new_path" = x; then 28346 # It's still not found. Now this is an unrecoverable error. 28347 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28348 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28349 has_space=`$ECHO "$complete" | $GREP " "` 28350 if test "x$has_space" != x; then 28351 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28352 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28353 fi 28354 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28355 fi 28356 fi 28357 28358 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28359 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28360 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28361 # "foo.exe" is OK but "foo" is an error. 28362 # 28363 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28364 # It is also a way to make sure we got the proper file name for the real test later on. 28365 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28366 if test "x$test_shortpath" = x; then 28367 # Short path failed, file does not exist as specified. 28368 # Try adding .exe or .cmd 28369 if test -f "${new_path}.exe"; then 28370 input_to_shortpath="${new_path}.exe" 28371 elif test -f "${new_path}.cmd"; then 28372 input_to_shortpath="${new_path}.cmd" 28373 else 28374 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 28375 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 28376 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28377 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28378 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28379 fi 28380 else 28381 input_to_shortpath="$new_path" 28382 fi 28383 28384 # Call helper function which possibly converts this using DOS-style short mode. 28385 # If so, the updated path is stored in $new_path. 28386 new_path="$input_to_shortpath" 28387 28388 input_path="$input_to_shortpath" 28389 # Check if we need to convert this using DOS-style short mode. If the path 28390 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28391 # take no chances and rewrite it. 28392 # Note: m4 eats our [], so we need to use [ and ] instead. 28393 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28394 if test "x$has_forbidden_chars" != x; then 28395 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28396 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28397 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28398 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28399 # Going to short mode and back again did indeed matter. Since short mode is 28400 # case insensitive, let's make it lowercase to improve readability. 28401 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28402 # Now convert it back to Unix-stile (cygpath) 28403 input_path=`$CYGPATH -u "$shortmode_path"` 28404 new_path="$input_path" 28405 fi 28406 fi 28407 28408 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28409 if test "x$test_cygdrive_prefix" = x; then 28410 # As a simple fix, exclude /usr/bin since it's not a real path. 28411 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28412 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28413 # a path prefixed by /cygdrive for fixpath to work. 28414 new_path="$CYGWIN_ROOT_PATH$input_path" 28415 fi 28416 fi 28417 28418 # remove trailing .exe if any 28419 new_path="${new_path/%.exe/}" 28420 28421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28422 28423 # First separate the path from the arguments. This will split at the first 28424 # space. 28425 complete="$CC" 28426 path="${complete%% *}" 28427 tmp="$complete EOL" 28428 arguments="${tmp#* }" 28429 28430 # Input might be given as Windows format, start by converting to 28431 # unix format. 28432 new_path="$path" 28433 28434 windows_path="$new_path" 28435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28436 unix_path=`$CYGPATH -u "$windows_path"` 28437 new_path="$unix_path" 28438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28439 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28440 new_path="$unix_path" 28441 fi 28442 28443 28444 # Now try to locate executable using which 28445 new_path=`$WHICH "$new_path" 2> /dev/null` 28446 28447 if test "x$new_path" = x; then 28448 # Oops. Which didn't find the executable. 28449 # The splitting of arguments from the executable at a space might have been incorrect, 28450 # since paths with space are more likely in Windows. Give it another try with the whole 28451 # argument. 28452 path="$complete" 28453 arguments="EOL" 28454 new_path="$path" 28455 28456 windows_path="$new_path" 28457 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28458 unix_path=`$CYGPATH -u "$windows_path"` 28459 new_path="$unix_path" 28460 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28461 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28462 new_path="$unix_path" 28463 fi 28464 28465 28466 new_path=`$WHICH "$new_path" 2> /dev/null` 28467 # bat and cmd files are not always considered executable in MSYS causing which 28468 # to not find them 28469 if test "x$new_path" = x \ 28470 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28471 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28472 new_path="$path" 28473 28474 windows_path="$new_path" 28475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28476 unix_path=`$CYGPATH -u "$windows_path"` 28477 new_path="$unix_path" 28478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28479 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28480 new_path="$unix_path" 28481 fi 28482 28483 fi 28484 28485 if test "x$new_path" = x; then 28486 # It's still not found. Now this is an unrecoverable error. 28487 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28488 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28489 has_space=`$ECHO "$complete" | $GREP " "` 28490 if test "x$has_space" != x; then 28491 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28492 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28493 fi 28494 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28495 fi 28496 fi 28497 28498 # Now new_path has a complete unix path to the binary 28499 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28500 # Keep paths in /bin as-is, but remove trailing .exe if any 28501 new_path="${new_path/%.exe/}" 28502 # Do not save /bin paths to all_fixpath_prefixes! 28503 else 28504 # Not in mixed or Windows style, start by that. 28505 new_path=`cmd //c echo $new_path` 28506 28507 input_path="$new_path" 28508 # Check if we need to convert this using DOS-style short mode. If the path 28509 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28510 # take no chances and rewrite it. 28511 # Note: m4 eats our [], so we need to use [ and ] instead. 28512 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28513 if test "x$has_forbidden_chars" != x; then 28514 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28515 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28516 fi 28517 28518 # Output is in $new_path 28519 28520 windows_path="$new_path" 28521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28522 unix_path=`$CYGPATH -u "$windows_path"` 28523 new_path="$unix_path" 28524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28525 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28526 new_path="$unix_path" 28527 fi 28528 28529 # remove trailing .exe if any 28530 new_path="${new_path/%.exe/}" 28531 28532 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28533 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28534 fi 28535 28536 else 28537 # We're on a unix platform. Hooray! :) 28538 # First separate the path from the arguments. This will split at the first 28539 # space. 28540 complete="$CC" 28541 path="${complete%% *}" 28542 tmp="$complete EOL" 28543 arguments="${tmp#* }" 28544 28545 # Cannot rely on the command "which" here since it doesn't always work. 28546 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28547 if test -z "$is_absolute_path"; then 28548 # Path to executable is not absolute. Find it. 28549 IFS_save="$IFS" 28550 IFS=: 28551 for p in $PATH; do 28552 if test -f "$p/$path" && test -x "$p/$path"; then 28553 new_path="$p/$path" 28554 break 28555 fi 28556 done 28557 IFS="$IFS_save" 28558 else 28559 # This is an absolute path, we can use it without further modifications. 28560 new_path="$path" 28561 fi 28562 28563 if test "x$new_path" = x; then 28564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28565 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28566 has_space=`$ECHO "$complete" | $GREP " "` 28567 if test "x$has_space" != x; then 28568 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28569 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28570 fi 28571 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28572 fi 28573 fi 28574 28575 # Now join together the path and the arguments once again 28576 if test "x$arguments" != xEOL; then 28577 new_complete="$new_path ${arguments% *}" 28578 else 28579 new_complete="$new_path" 28580 fi 28581 28582 if test "x$complete" != "x$new_complete"; then 28583 CC="$new_complete" 28584 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 28585 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 28586 fi 28587 fi 28588 28589 TEST_COMPILER="$CC" 28590 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 28591 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 28592 if test "x$OPENJDK_BUILD_OS" != xaix; then 28593 # FIXME: This test should not be needed anymore; we don't do that for any platform. 28594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 28595 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 28596 28597 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28598 # Follow a chain of symbolic links. Use readlink 28599 # where it exists, else fall back to horribly 28600 # complicated shell code. 28601 if test "x$READLINK_TESTED" != yes; then 28602 # On MacOSX there is a readlink tool with a different 28603 # purpose than the GNU readlink tool. Check the found readlink. 28604 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28605 if test "x$ISGNU" = x; then 28606 # A readlink that we do not know how to use. 28607 # Are there other non-GNU readlinks out there? 28608 READLINK_TESTED=yes 28609 READLINK= 28610 fi 28611 fi 28612 28613 if test "x$READLINK" != x; then 28614 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 28615 else 28616 # Save the current directory for restoring afterwards 28617 STARTDIR=$PWD 28618 COUNTER=0 28619 sym_link_dir=`$DIRNAME $TEST_COMPILER` 28620 sym_link_file=`$BASENAME $TEST_COMPILER` 28621 cd $sym_link_dir 28622 # Use -P flag to resolve symlinks in directories. 28623 cd `$THEPWDCMD -P` 28624 sym_link_dir=`$THEPWDCMD -P` 28625 # Resolve file symlinks 28626 while test $COUNTER -lt 20; do 28627 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28628 if test "x$ISLINK" == x; then 28629 # This is not a symbolic link! We are done! 28630 break 28631 fi 28632 # Again resolve directory symlinks since the target of the just found 28633 # link could be in a different directory 28634 cd `$DIRNAME $ISLINK` 28635 sym_link_dir=`$THEPWDCMD -P` 28636 sym_link_file=`$BASENAME $ISLINK` 28637 let COUNTER=COUNTER+1 28638 done 28639 cd $STARTDIR 28640 TEST_COMPILER=$sym_link_dir/$sym_link_file 28641 fi 28642 fi 28643 28644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28645 $as_echo "$TEST_COMPILER" >&6; } 28646 fi 28647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 28648 $as_echo_n "checking if CC is disguised ccache... " >&6; } 28649 28650 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28651 if test "x$COMPILER_BASENAME" = "xccache"; then 28652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28653 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28654 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28655 # We want to control ccache invocation ourselves, so ignore this cc and try 28656 # searching again. 28657 28658 # Remove the path to the fake ccache cc from the PATH 28659 RETRY_COMPILER_SAVED_PATH="$PATH" 28660 COMPILER_DIRNAME=`$DIRNAME $CC` 28661 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28662 28663 # Try again looking for our compiler 28664 if test -n "$ac_tool_prefix"; then 28665 for ac_prog in $TOOLCHAIN_CC_BINARY 28666 do 28667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28670 $as_echo_n "checking for $ac_word... " >&6; } 28671 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 28672 $as_echo_n "(cached) " >&6 28673 else 28674 if test -n "$PROPER_COMPILER_CC"; then 28675 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 28676 else 28677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28678 for as_dir in $PATH 28679 do 28680 IFS=$as_save_IFS 28681 test -z "$as_dir" && as_dir=. 28682 for ac_exec_ext in '' $ac_executable_extensions; do 28683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28684 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 28685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28686 break 2 28687 fi 28688 done 28689 done 28690 IFS=$as_save_IFS 28691 28692 fi 28693 fi 28694 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 28695 if test -n "$PROPER_COMPILER_CC"; then 28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28697 $as_echo "$PROPER_COMPILER_CC" >&6; } 28698 else 28699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28700 $as_echo "no" >&6; } 28701 fi 28702 28703 28704 test -n "$PROPER_COMPILER_CC" && break 28705 done 28706 fi 28707 if test -z "$PROPER_COMPILER_CC"; then 28708 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 28709 for ac_prog in $TOOLCHAIN_CC_BINARY 28710 do 28711 # Extract the first word of "$ac_prog", so it can be a program name with args. 28712 set dummy $ac_prog; ac_word=$2 28713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28714 $as_echo_n "checking for $ac_word... " >&6; } 28715 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 28716 $as_echo_n "(cached) " >&6 28717 else 28718 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28719 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 28720 else 28721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28722 for as_dir in $PATH 28723 do 28724 IFS=$as_save_IFS 28725 test -z "$as_dir" && as_dir=. 28726 for ac_exec_ext in '' $ac_executable_extensions; do 28727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28728 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 28729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28730 break 2 28731 fi 28732 done 28733 done 28734 IFS=$as_save_IFS 28735 28736 fi 28737 fi 28738 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 28739 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 28741 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 28742 else 28743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28744 $as_echo "no" >&6; } 28745 fi 28746 28747 28748 test -n "$ac_ct_PROPER_COMPILER_CC" && break 28749 done 28750 28751 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 28752 PROPER_COMPILER_CC="" 28753 else 28754 case $cross_compiling:$ac_tool_warned in 28755 yes:) 28756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28758 ac_tool_warned=yes ;; 28759 esac 28760 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 28761 fi 28762 fi 28763 28764 28765 # Only process if variable expands to non-empty 28766 28767 if test "x$PROPER_COMPILER_CC" != x; then 28768 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28769 28770 # First separate the path from the arguments. This will split at the first 28771 # space. 28772 complete="$PROPER_COMPILER_CC" 28773 path="${complete%% *}" 28774 tmp="$complete EOL" 28775 arguments="${tmp#* }" 28776 28777 # Input might be given as Windows format, start by converting to 28778 # unix format. 28779 new_path=`$CYGPATH -u "$path"` 28780 28781 # Now try to locate executable using which 28782 new_path=`$WHICH "$new_path" 2> /dev/null` 28783 # bat and cmd files are not always considered executable in cygwin causing which 28784 # to not find them 28785 if test "x$new_path" = x \ 28786 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28787 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28788 new_path=`$CYGPATH -u "$path"` 28789 fi 28790 if test "x$new_path" = x; then 28791 # Oops. Which didn't find the executable. 28792 # The splitting of arguments from the executable at a space might have been incorrect, 28793 # since paths with space are more likely in Windows. Give it another try with the whole 28794 # argument. 28795 path="$complete" 28796 arguments="EOL" 28797 new_path=`$CYGPATH -u "$path"` 28798 new_path=`$WHICH "$new_path" 2> /dev/null` 28799 # bat and cmd files are not always considered executable in cygwin causing which 28800 # to not find them 28801 if test "x$new_path" = x \ 28802 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28803 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28804 new_path=`$CYGPATH -u "$path"` 28805 fi 28806 if test "x$new_path" = x; then 28807 # It's still not found. Now this is an unrecoverable error. 28808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28809 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28810 has_space=`$ECHO "$complete" | $GREP " "` 28811 if test "x$has_space" != x; then 28812 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28813 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28814 fi 28815 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28816 fi 28817 fi 28818 28819 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28820 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28821 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28822 # "foo.exe" is OK but "foo" is an error. 28823 # 28824 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28825 # It is also a way to make sure we got the proper file name for the real test later on. 28826 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28827 if test "x$test_shortpath" = x; then 28828 # Short path failed, file does not exist as specified. 28829 # Try adding .exe or .cmd 28830 if test -f "${new_path}.exe"; then 28831 input_to_shortpath="${new_path}.exe" 28832 elif test -f "${new_path}.cmd"; then 28833 input_to_shortpath="${new_path}.cmd" 28834 else 28835 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 28836 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 28837 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28838 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28839 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28840 fi 28841 else 28842 input_to_shortpath="$new_path" 28843 fi 28844 28845 # Call helper function which possibly converts this using DOS-style short mode. 28846 # If so, the updated path is stored in $new_path. 28847 new_path="$input_to_shortpath" 28848 28849 input_path="$input_to_shortpath" 28850 # Check if we need to convert this using DOS-style short mode. If the path 28851 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28852 # take no chances and rewrite it. 28853 # Note: m4 eats our [], so we need to use [ and ] instead. 28854 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28855 if test "x$has_forbidden_chars" != x; then 28856 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28857 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28858 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28859 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28860 # Going to short mode and back again did indeed matter. Since short mode is 28861 # case insensitive, let's make it lowercase to improve readability. 28862 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28863 # Now convert it back to Unix-stile (cygpath) 28864 input_path=`$CYGPATH -u "$shortmode_path"` 28865 new_path="$input_path" 28866 fi 28867 fi 28868 28869 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28870 if test "x$test_cygdrive_prefix" = x; then 28871 # As a simple fix, exclude /usr/bin since it's not a real path. 28872 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28873 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28874 # a path prefixed by /cygdrive for fixpath to work. 28875 new_path="$CYGWIN_ROOT_PATH$input_path" 28876 fi 28877 fi 28878 28879 # remove trailing .exe if any 28880 new_path="${new_path/%.exe/}" 28881 28882 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28883 28884 # First separate the path from the arguments. This will split at the first 28885 # space. 28886 complete="$PROPER_COMPILER_CC" 28887 path="${complete%% *}" 28888 tmp="$complete EOL" 28889 arguments="${tmp#* }" 28890 28891 # Input might be given as Windows format, start by converting to 28892 # unix format. 28893 new_path="$path" 28894 28895 windows_path="$new_path" 28896 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28897 unix_path=`$CYGPATH -u "$windows_path"` 28898 new_path="$unix_path" 28899 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28900 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28901 new_path="$unix_path" 28902 fi 28903 28904 28905 # Now try to locate executable using which 28906 new_path=`$WHICH "$new_path" 2> /dev/null` 28907 28908 if test "x$new_path" = x; then 28909 # Oops. Which didn't find the executable. 28910 # The splitting of arguments from the executable at a space might have been incorrect, 28911 # since paths with space are more likely in Windows. Give it another try with the whole 28912 # argument. 28913 path="$complete" 28914 arguments="EOL" 28915 new_path="$path" 28916 28917 windows_path="$new_path" 28918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28919 unix_path=`$CYGPATH -u "$windows_path"` 28920 new_path="$unix_path" 28921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28922 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28923 new_path="$unix_path" 28924 fi 28925 28926 28927 new_path=`$WHICH "$new_path" 2> /dev/null` 28928 # bat and cmd files are not always considered executable in MSYS causing which 28929 # to not find them 28930 if test "x$new_path" = x \ 28931 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28932 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28933 new_path="$path" 28934 28935 windows_path="$new_path" 28936 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28937 unix_path=`$CYGPATH -u "$windows_path"` 28938 new_path="$unix_path" 28939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28940 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28941 new_path="$unix_path" 28942 fi 28943 28944 fi 28945 28946 if test "x$new_path" = x; then 28947 # It's still not found. Now this is an unrecoverable error. 28948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28949 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28950 has_space=`$ECHO "$complete" | $GREP " "` 28951 if test "x$has_space" != x; then 28952 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28953 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28954 fi 28955 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28956 fi 28957 fi 28958 28959 # Now new_path has a complete unix path to the binary 28960 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28961 # Keep paths in /bin as-is, but remove trailing .exe if any 28962 new_path="${new_path/%.exe/}" 28963 # Do not save /bin paths to all_fixpath_prefixes! 28964 else 28965 # Not in mixed or Windows style, start by that. 28966 new_path=`cmd //c echo $new_path` 28967 28968 input_path="$new_path" 28969 # Check if we need to convert this using DOS-style short mode. If the path 28970 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28971 # take no chances and rewrite it. 28972 # Note: m4 eats our [], so we need to use [ and ] instead. 28973 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28974 if test "x$has_forbidden_chars" != x; then 28975 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28976 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28977 fi 28978 28979 # Output is in $new_path 28980 28981 windows_path="$new_path" 28982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28983 unix_path=`$CYGPATH -u "$windows_path"` 28984 new_path="$unix_path" 28985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28986 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28987 new_path="$unix_path" 28988 fi 28989 28990 # remove trailing .exe if any 28991 new_path="${new_path/%.exe/}" 28992 28993 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28994 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28995 fi 28996 28997 else 28998 # We're on a unix platform. Hooray! :) 28999 # First separate the path from the arguments. This will split at the first 29000 # space. 29001 complete="$PROPER_COMPILER_CC" 29002 path="${complete%% *}" 29003 tmp="$complete EOL" 29004 arguments="${tmp#* }" 29005 29006 # Cannot rely on the command "which" here since it doesn't always work. 29007 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29008 if test -z "$is_absolute_path"; then 29009 # Path to executable is not absolute. Find it. 29010 IFS_save="$IFS" 29011 IFS=: 29012 for p in $PATH; do 29013 if test -f "$p/$path" && test -x "$p/$path"; then 29014 new_path="$p/$path" 29015 break 29016 fi 29017 done 29018 IFS="$IFS_save" 29019 else 29020 # This is an absolute path, we can use it without further modifications. 29021 new_path="$path" 29022 fi 29023 29024 if test "x$new_path" = x; then 29025 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 29026 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 29027 has_space=`$ECHO "$complete" | $GREP " "` 29028 if test "x$has_space" != x; then 29029 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29030 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29031 fi 29032 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 29033 fi 29034 fi 29035 29036 # Now join together the path and the arguments once again 29037 if test "x$arguments" != xEOL; then 29038 new_complete="$new_path ${arguments% *}" 29039 else 29040 new_complete="$new_path" 29041 fi 29042 29043 if test "x$complete" != "x$new_complete"; then 29044 PROPER_COMPILER_CC="$new_complete" 29045 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 29046 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 29047 fi 29048 fi 29049 29050 PATH="$RETRY_COMPILER_SAVED_PATH" 29051 29052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 29053 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 29054 29055 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29056 # Follow a chain of symbolic links. Use readlink 29057 # where it exists, else fall back to horribly 29058 # complicated shell code. 29059 if test "x$READLINK_TESTED" != yes; then 29060 # On MacOSX there is a readlink tool with a different 29061 # purpose than the GNU readlink tool. Check the found readlink. 29062 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29063 if test "x$ISGNU" = x; then 29064 # A readlink that we do not know how to use. 29065 # Are there other non-GNU readlinks out there? 29066 READLINK_TESTED=yes 29067 READLINK= 29068 fi 29069 fi 29070 29071 if test "x$READLINK" != x; then 29072 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 29073 else 29074 # Save the current directory for restoring afterwards 29075 STARTDIR=$PWD 29076 COUNTER=0 29077 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 29078 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 29079 cd $sym_link_dir 29080 # Use -P flag to resolve symlinks in directories. 29081 cd `$THEPWDCMD -P` 29082 sym_link_dir=`$THEPWDCMD -P` 29083 # Resolve file symlinks 29084 while test $COUNTER -lt 20; do 29085 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29086 if test "x$ISLINK" == x; then 29087 # This is not a symbolic link! We are done! 29088 break 29089 fi 29090 # Again resolve directory symlinks since the target of the just found 29091 # link could be in a different directory 29092 cd `$DIRNAME $ISLINK` 29093 sym_link_dir=`$THEPWDCMD -P` 29094 sym_link_file=`$BASENAME $ISLINK` 29095 let COUNTER=COUNTER+1 29096 done 29097 cd $STARTDIR 29098 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 29099 fi 29100 fi 29101 29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 29103 $as_echo "$PROPER_COMPILER_CC" >&6; } 29104 CC="$PROPER_COMPILER_CC" 29105 else 29106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 29107 $as_echo "no, keeping CC" >&6; } 29108 fi 29109 29110 29111 COMPILER=$CC 29112 COMPILER_NAME=$COMPILER_NAME 29113 29114 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 29115 # cc -V output typically looks like 29116 # cc: Sun C 5.12 Linux_i386 2011/11/16 29117 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 29118 # Check that this is likely to be the Solaris Studio cc. 29119 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 29120 if test $? -ne 0; then 29121 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29122 { $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 29123 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29124 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29125 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29126 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29127 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29128 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29129 fi 29130 # Remove usage instructions (if present), and 29131 # collapse compiler output into a single line 29132 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29133 $SED -e 's/ *[Uu]sage:.*//'` 29134 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29135 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 29136 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 29137 # xlc -qversion output typically looks like 29138 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 29139 # Version: 11.01.0000.0015 29140 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 29141 # Check that this is likely to be the IBM XL C compiler. 29142 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 29143 if test $? -ne 0; then 29144 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29145 { $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 29146 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29147 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29148 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29149 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29150 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29151 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29152 fi 29153 # Collapse compiler output into a single line 29154 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29155 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29156 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 29157 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 29158 # There is no specific version flag, but all output starts with a version string. 29159 # First line typically looks something like: 29160 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 29161 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 29162 # Check that this is likely to be Microsoft CL.EXE. 29163 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 29164 if test $? -ne 0; then 29165 { $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 29166 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29167 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29168 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29169 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29170 fi 29171 # Collapse compiler output into a single line 29172 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29173 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29174 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 29175 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 29176 # gcc --version output typically looks like 29177 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 29178 # Copyright (C) 2013 Free Software Foundation, Inc. 29179 # This is free software; see the source for copying conditions. There is NO 29180 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 29181 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29182 # Check that this is likely to be GCC. 29183 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 29184 if test $? -ne 0; then 29185 { $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 29186 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29187 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 29188 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 29189 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29190 fi 29191 # Remove Copyright and legalese from version string, and 29192 # collapse into a single line 29193 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29194 $SED -e 's/ *Copyright .*//'` 29195 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29196 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 29197 elif test "x$TOOLCHAIN_TYPE" = xclang; then 29198 # clang --version output typically looks like 29199 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 29200 # clang version 3.3 (tags/RELEASE_33/final) 29201 # or 29202 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 29203 # Target: x86_64-pc-linux-gnu 29204 # Thread model: posix 29205 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29206 # Check that this is likely to be clang 29207 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 29208 if test $? -ne 0; then 29209 { $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 29210 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29211 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29212 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29213 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29214 fi 29215 # Collapse compiler output into a single line 29216 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29217 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29218 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 29219 else 29220 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 29221 fi 29222 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 29223 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 29224 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 29225 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 29226 29227 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 29228 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 29229 29230 29231 # Now that we have resolved CC ourself, let autoconf have its go at it 29232 ac_ext=c 29233 ac_cpp='$CPP $CPPFLAGS' 29234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29236 ac_compiler_gnu=$ac_cv_c_compiler_gnu 29237 if test -n "$ac_tool_prefix"; then 29238 for ac_prog in $CC 29239 do 29240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29243 $as_echo_n "checking for $ac_word... " >&6; } 29244 if ${ac_cv_prog_CC+:} false; then : 29245 $as_echo_n "(cached) " >&6 29246 else 29247 if test -n "$CC"; then 29248 ac_cv_prog_CC="$CC" # Let the user override the test. 29249 else 29250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29251 for as_dir in $PATH 29252 do 29253 IFS=$as_save_IFS 29254 test -z "$as_dir" && as_dir=. 29255 for ac_exec_ext in '' $ac_executable_extensions; do 29256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 29258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29259 break 2 29260 fi 29261 done 29262 done 29263 IFS=$as_save_IFS 29264 29265 fi 29266 fi 29267 CC=$ac_cv_prog_CC 29268 if test -n "$CC"; then 29269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29270 $as_echo "$CC" >&6; } 29271 else 29272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29273 $as_echo "no" >&6; } 29274 fi 29275 29276 29277 test -n "$CC" && break 29278 done 29279 fi 29280 if test -z "$CC"; then 29281 ac_ct_CC=$CC 29282 for ac_prog in $CC 29283 do 29284 # Extract the first word of "$ac_prog", so it can be a program name with args. 29285 set dummy $ac_prog; ac_word=$2 29286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29287 $as_echo_n "checking for $ac_word... " >&6; } 29288 if ${ac_cv_prog_ac_ct_CC+:} false; then : 29289 $as_echo_n "(cached) " >&6 29290 else 29291 if test -n "$ac_ct_CC"; then 29292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 29293 else 29294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29295 for as_dir in $PATH 29296 do 29297 IFS=$as_save_IFS 29298 test -z "$as_dir" && as_dir=. 29299 for ac_exec_ext in '' $ac_executable_extensions; do 29300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29301 ac_cv_prog_ac_ct_CC="$ac_prog" 29302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29303 break 2 29304 fi 29305 done 29306 done 29307 IFS=$as_save_IFS 29308 29309 fi 29310 fi 29311 ac_ct_CC=$ac_cv_prog_ac_ct_CC 29312 if test -n "$ac_ct_CC"; then 29313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 29314 $as_echo "$ac_ct_CC" >&6; } 29315 else 29316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29317 $as_echo "no" >&6; } 29318 fi 29319 29320 29321 test -n "$ac_ct_CC" && break 29322 done 29323 29324 if test "x$ac_ct_CC" = x; then 29325 CC="" 29326 else 29327 case $cross_compiling:$ac_tool_warned in 29328 yes:) 29329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29331 ac_tool_warned=yes ;; 29332 esac 29333 CC=$ac_ct_CC 29334 fi 29335 fi 29336 29337 29338 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29340 as_fn_error $? "no acceptable C compiler found in \$PATH 29341 See \`config.log' for more details" "$LINENO" 5; } 29342 29343 # Provide some information about the compiler. 29344 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 29345 set X $ac_compile 29346 ac_compiler=$2 29347 for ac_option in --version -v -V -qversion; do 29348 { { ac_try="$ac_compiler $ac_option >&5" 29349 case "(($ac_try" in 29350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29351 *) ac_try_echo=$ac_try;; 29352 esac 29353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29354 $as_echo "$ac_try_echo"; } >&5 29355 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 29356 ac_status=$? 29357 if test -s conftest.err; then 29358 sed '10a\ 29359 ... rest of stderr output deleted ... 29360 10q' conftest.err >conftest.er1 29361 cat conftest.er1 >&5 29362 fi 29363 rm -f conftest.er1 conftest.err 29364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29365 test $ac_status = 0; } 29366 done 29367 29368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29369 /* end confdefs.h. */ 29370 29371 int 29372 main () 29373 { 29374 29375 ; 29376 return 0; 29377 } 29378 _ACEOF 29379 ac_clean_files_save=$ac_clean_files 29380 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 29381 # Try to create an executable without -o first, disregard a.out. 29382 # It will help us diagnose broken compilers, and finding out an intuition 29383 # of exeext. 29384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 29385 $as_echo_n "checking whether the C compiler works... " >&6; } 29386 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 29387 29388 # The possible output files: 29389 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 29390 29391 ac_rmfiles= 29392 for ac_file in $ac_files 29393 do 29394 case $ac_file in 29395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29396 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 29397 esac 29398 done 29399 rm -f $ac_rmfiles 29400 29401 if { { ac_try="$ac_link_default" 29402 case "(($ac_try" in 29403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29404 *) ac_try_echo=$ac_try;; 29405 esac 29406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29407 $as_echo "$ac_try_echo"; } >&5 29408 (eval "$ac_link_default") 2>&5 29409 ac_status=$? 29410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29411 test $ac_status = 0; }; then : 29412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 29413 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 29414 # in a Makefile. We should not override ac_cv_exeext if it was cached, 29415 # so that the user can short-circuit this test for compilers unknown to 29416 # Autoconf. 29417 for ac_file in $ac_files '' 29418 do 29419 test -f "$ac_file" || continue 29420 case $ac_file in 29421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 29422 ;; 29423 [ab].out ) 29424 # We found the default executable, but exeext='' is most 29425 # certainly right. 29426 break;; 29427 *.* ) 29428 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 29429 then :; else 29430 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29431 fi 29432 # We set ac_cv_exeext here because the later test for it is not 29433 # safe: cross compilers may not add the suffix if given an `-o' 29434 # argument, so we may need to know it at that point already. 29435 # Even if this section looks crufty: it has the advantage of 29436 # actually working. 29437 break;; 29438 * ) 29439 break;; 29440 esac 29441 done 29442 test "$ac_cv_exeext" = no && ac_cv_exeext= 29443 29444 else 29445 ac_file='' 29446 fi 29447 if test -z "$ac_file"; then : 29448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29449 $as_echo "no" >&6; } 29450 $as_echo "$as_me: failed program was:" >&5 29451 sed 's/^/| /' conftest.$ac_ext >&5 29452 29453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29455 as_fn_error 77 "C compiler cannot create executables 29456 See \`config.log' for more details" "$LINENO" 5; } 29457 else 29458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29459 $as_echo "yes" >&6; } 29460 fi 29461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 29462 $as_echo_n "checking for C compiler default output file name... " >&6; } 29463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 29464 $as_echo "$ac_file" >&6; } 29465 ac_exeext=$ac_cv_exeext 29466 29467 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 29468 ac_clean_files=$ac_clean_files_save 29469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 29470 $as_echo_n "checking for suffix of executables... " >&6; } 29471 if { { ac_try="$ac_link" 29472 case "(($ac_try" in 29473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29474 *) ac_try_echo=$ac_try;; 29475 esac 29476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29477 $as_echo "$ac_try_echo"; } >&5 29478 (eval "$ac_link") 2>&5 29479 ac_status=$? 29480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29481 test $ac_status = 0; }; then : 29482 # If both `conftest.exe' and `conftest' are `present' (well, observable) 29483 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 29484 # work properly (i.e., refer to `conftest.exe'), while it won't with 29485 # `rm'. 29486 for ac_file in conftest.exe conftest conftest.*; do 29487 test -f "$ac_file" || continue 29488 case $ac_file in 29489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29491 break;; 29492 * ) break;; 29493 esac 29494 done 29495 else 29496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29498 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 29499 See \`config.log' for more details" "$LINENO" 5; } 29500 fi 29501 rm -f conftest conftest$ac_cv_exeext 29502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 29503 $as_echo "$ac_cv_exeext" >&6; } 29504 29505 rm -f conftest.$ac_ext 29506 EXEEXT=$ac_cv_exeext 29507 ac_exeext=$EXEEXT 29508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29509 /* end confdefs.h. */ 29510 #include <stdio.h> 29511 int 29512 main () 29513 { 29514 FILE *f = fopen ("conftest.out", "w"); 29515 return ferror (f) || fclose (f) != 0; 29516 29517 ; 29518 return 0; 29519 } 29520 _ACEOF 29521 ac_clean_files="$ac_clean_files conftest.out" 29522 # Check that the compiler produces executables we can run. If not, either 29523 # the compiler is broken, or we cross compile. 29524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 29525 $as_echo_n "checking whether we are cross compiling... " >&6; } 29526 if test "$cross_compiling" != yes; then 29527 { { ac_try="$ac_link" 29528 case "(($ac_try" in 29529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29530 *) ac_try_echo=$ac_try;; 29531 esac 29532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29533 $as_echo "$ac_try_echo"; } >&5 29534 (eval "$ac_link") 2>&5 29535 ac_status=$? 29536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29537 test $ac_status = 0; } 29538 if { ac_try='./conftest$ac_cv_exeext' 29539 { { case "(($ac_try" in 29540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29541 *) ac_try_echo=$ac_try;; 29542 esac 29543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29544 $as_echo "$ac_try_echo"; } >&5 29545 (eval "$ac_try") 2>&5 29546 ac_status=$? 29547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29548 test $ac_status = 0; }; }; then 29549 cross_compiling=no 29550 else 29551 if test "$cross_compiling" = maybe; then 29552 cross_compiling=yes 29553 else 29554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29556 as_fn_error $? "cannot run C compiled programs. 29557 If you meant to cross compile, use \`--host'. 29558 See \`config.log' for more details" "$LINENO" 5; } 29559 fi 29560 fi 29561 fi 29562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 29563 $as_echo "$cross_compiling" >&6; } 29564 29565 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 29566 ac_clean_files=$ac_clean_files_save 29567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 29568 $as_echo_n "checking for suffix of object files... " >&6; } 29569 if ${ac_cv_objext+:} false; then : 29570 $as_echo_n "(cached) " >&6 29571 else 29572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29573 /* end confdefs.h. */ 29574 29575 int 29576 main () 29577 { 29578 29579 ; 29580 return 0; 29581 } 29582 _ACEOF 29583 rm -f conftest.o conftest.obj 29584 if { { ac_try="$ac_compile" 29585 case "(($ac_try" in 29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29587 *) ac_try_echo=$ac_try;; 29588 esac 29589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29590 $as_echo "$ac_try_echo"; } >&5 29591 (eval "$ac_compile") 2>&5 29592 ac_status=$? 29593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29594 test $ac_status = 0; }; then : 29595 for ac_file in conftest.o conftest.obj conftest.*; do 29596 test -f "$ac_file" || continue; 29597 case $ac_file in 29598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 29599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 29600 break;; 29601 esac 29602 done 29603 else 29604 $as_echo "$as_me: failed program was:" >&5 29605 sed 's/^/| /' conftest.$ac_ext >&5 29606 29607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29609 as_fn_error $? "cannot compute suffix of object files: cannot compile 29610 See \`config.log' for more details" "$LINENO" 5; } 29611 fi 29612 rm -f conftest.$ac_cv_objext conftest.$ac_ext 29613 fi 29614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 29615 $as_echo "$ac_cv_objext" >&6; } 29616 OBJEXT=$ac_cv_objext 29617 ac_objext=$OBJEXT 29618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 29619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 29620 if ${ac_cv_c_compiler_gnu+:} false; then : 29621 $as_echo_n "(cached) " >&6 29622 else 29623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29624 /* end confdefs.h. */ 29625 29626 int 29627 main () 29628 { 29629 #ifndef __GNUC__ 29630 choke me 29631 #endif 29632 29633 ; 29634 return 0; 29635 } 29636 _ACEOF 29637 if ac_fn_c_try_compile "$LINENO"; then : 29638 ac_compiler_gnu=yes 29639 else 29640 ac_compiler_gnu=no 29641 fi 29642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29643 ac_cv_c_compiler_gnu=$ac_compiler_gnu 29644 29645 fi 29646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 29647 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 29648 if test $ac_compiler_gnu = yes; then 29649 GCC=yes 29650 else 29651 GCC= 29652 fi 29653 ac_test_CFLAGS=${CFLAGS+set} 29654 ac_save_CFLAGS=$CFLAGS 29655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 29656 $as_echo_n "checking whether $CC accepts -g... " >&6; } 29657 if ${ac_cv_prog_cc_g+:} false; then : 29658 $as_echo_n "(cached) " >&6 29659 else 29660 ac_save_c_werror_flag=$ac_c_werror_flag 29661 ac_c_werror_flag=yes 29662 ac_cv_prog_cc_g=no 29663 CFLAGS="-g" 29664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29665 /* end confdefs.h. */ 29666 29667 int 29668 main () 29669 { 29670 29671 ; 29672 return 0; 29673 } 29674 _ACEOF 29675 if ac_fn_c_try_compile "$LINENO"; then : 29676 ac_cv_prog_cc_g=yes 29677 else 29678 CFLAGS="" 29679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29680 /* end confdefs.h. */ 29681 29682 int 29683 main () 29684 { 29685 29686 ; 29687 return 0; 29688 } 29689 _ACEOF 29690 if ac_fn_c_try_compile "$LINENO"; then : 29691 29692 else 29693 ac_c_werror_flag=$ac_save_c_werror_flag 29694 CFLAGS="-g" 29695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29696 /* end confdefs.h. */ 29697 29698 int 29699 main () 29700 { 29701 29702 ; 29703 return 0; 29704 } 29705 _ACEOF 29706 if ac_fn_c_try_compile "$LINENO"; then : 29707 ac_cv_prog_cc_g=yes 29708 fi 29709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29710 fi 29711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29712 fi 29713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29714 ac_c_werror_flag=$ac_save_c_werror_flag 29715 fi 29716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 29717 $as_echo "$ac_cv_prog_cc_g" >&6; } 29718 if test "$ac_test_CFLAGS" = set; then 29719 CFLAGS=$ac_save_CFLAGS 29720 elif test $ac_cv_prog_cc_g = yes; then 29721 if test "$GCC" = yes; then 29722 CFLAGS="-g -O2" 29723 else 29724 CFLAGS="-g" 29725 fi 29726 else 29727 if test "$GCC" = yes; then 29728 CFLAGS="-O2" 29729 else 29730 CFLAGS= 29731 fi 29732 fi 29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 29734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 29735 if ${ac_cv_prog_cc_c89+:} false; then : 29736 $as_echo_n "(cached) " >&6 29737 else 29738 ac_cv_prog_cc_c89=no 29739 ac_save_CC=$CC 29740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29741 /* end confdefs.h. */ 29742 #include <stdarg.h> 29743 #include <stdio.h> 29744 struct stat; 29745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29746 struct buf { int x; }; 29747 FILE * (*rcsopen) (struct buf *, struct stat *, int); 29748 static char *e (p, i) 29749 char **p; 29750 int i; 29751 { 29752 return p[i]; 29753 } 29754 static char *f (char * (*g) (char **, int), char **p, ...) 29755 { 29756 char *s; 29757 va_list v; 29758 va_start (v,p); 29759 s = g (p, va_arg (v,int)); 29760 va_end (v); 29761 return s; 29762 } 29763 29764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29765 function prototypes and stuff, but not '\xHH' hex character constants. 29766 These don't provoke an error unfortunately, instead are silently treated 29767 as 'x'. The following induces an error, until -std is added to get 29768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29769 array size at least. It's necessary to write '\x00'==0 to get something 29770 that's true only with -std. */ 29771 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29772 29773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29774 inside strings and character constants. */ 29775 #define FOO(x) 'x' 29776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29777 29778 int test (int i, double x); 29779 struct s1 {int (*f) (int a);}; 29780 struct s2 {int (*f) (double a);}; 29781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29782 int argc; 29783 char **argv; 29784 int 29785 main () 29786 { 29787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29788 ; 29789 return 0; 29790 } 29791 _ACEOF 29792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29794 do 29795 CC="$ac_save_CC $ac_arg" 29796 if ac_fn_c_try_compile "$LINENO"; then : 29797 ac_cv_prog_cc_c89=$ac_arg 29798 fi 29799 rm -f core conftest.err conftest.$ac_objext 29800 test "x$ac_cv_prog_cc_c89" != "xno" && break 29801 done 29802 rm -f conftest.$ac_ext 29803 CC=$ac_save_CC 29804 29805 fi 29806 # AC_CACHE_VAL 29807 case "x$ac_cv_prog_cc_c89" in 29808 x) 29809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29810 $as_echo "none needed" >&6; } ;; 29811 xno) 29812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29813 $as_echo "unsupported" >&6; } ;; 29814 *) 29815 CC="$CC $ac_cv_prog_cc_c89" 29816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29818 esac 29819 if test "x$ac_cv_prog_cc_c89" != xno; then : 29820 29821 fi 29822 29823 ac_ext=cpp 29824 ac_cpp='$CXXCPP $CPPFLAGS' 29825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29828 29829 29830 29831 COMPILER_NAME=C++ 29832 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 29833 29834 if test "x$CXX" != x; then 29835 # User has supplied compiler name already, always let that override. 29836 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 29837 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 29838 if test "x`basename $CXX`" = "x$CXX"; then 29839 # A command without a complete path is provided, search $PATH. 29840 29841 for ac_prog in $CXX 29842 do 29843 # Extract the first word of "$ac_prog", so it can be a program name with args. 29844 set dummy $ac_prog; ac_word=$2 29845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29846 $as_echo_n "checking for $ac_word... " >&6; } 29847 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29848 $as_echo_n "(cached) " >&6 29849 else 29850 case $POTENTIAL_CXX in 29851 [\\/]* | ?:[\\/]*) 29852 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29853 ;; 29854 *) 29855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29856 for as_dir in $PATH 29857 do 29858 IFS=$as_save_IFS 29859 test -z "$as_dir" && as_dir=. 29860 for ac_exec_ext in '' $ac_executable_extensions; do 29861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29862 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29864 break 2 29865 fi 29866 done 29867 done 29868 IFS=$as_save_IFS 29869 29870 ;; 29871 esac 29872 fi 29873 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29874 if test -n "$POTENTIAL_CXX"; then 29875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29876 $as_echo "$POTENTIAL_CXX" >&6; } 29877 else 29878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29879 $as_echo "no" >&6; } 29880 fi 29881 29882 29883 test -n "$POTENTIAL_CXX" && break 29884 done 29885 29886 if test "x$POTENTIAL_CXX" != x; then 29887 CXX=$POTENTIAL_CXX 29888 else 29889 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 29890 fi 29891 else 29892 # Otherwise it might already be a complete path 29893 if test ! -x "$CXX"; then 29894 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 29895 fi 29896 fi 29897 else 29898 # No user supplied value. Locate compiler ourselves. 29899 29900 # If we are cross compiling, assume cross compilation tools follows the 29901 # cross compilation standard where they are prefixed with the autoconf 29902 # standard name for the target. For example the binary 29903 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29904 # If we are not cross compiling, then the default compiler name will be 29905 # used. 29906 29907 CXX= 29908 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 29909 # before checking the rest of the PATH. 29910 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 29911 # step, this should not be necessary. 29912 if test -n "$TOOLCHAIN_PATH"; then 29913 PATH_save="$PATH" 29914 PATH="$TOOLCHAIN_PATH" 29915 for ac_prog in $SEARCH_LIST 29916 do 29917 # Extract the first word of "$ac_prog", so it can be a program name with args. 29918 set dummy $ac_prog; ac_word=$2 29919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29920 $as_echo_n "checking for $ac_word... " >&6; } 29921 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 29922 $as_echo_n "(cached) " >&6 29923 else 29924 case $TOOLCHAIN_PATH_CXX in 29925 [\\/]* | ?:[\\/]*) 29926 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 29927 ;; 29928 *) 29929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29930 for as_dir in $PATH 29931 do 29932 IFS=$as_save_IFS 29933 test -z "$as_dir" && as_dir=. 29934 for ac_exec_ext in '' $ac_executable_extensions; do 29935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29936 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 29937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29938 break 2 29939 fi 29940 done 29941 done 29942 IFS=$as_save_IFS 29943 29944 ;; 29945 esac 29946 fi 29947 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 29948 if test -n "$TOOLCHAIN_PATH_CXX"; then 29949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 29950 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 29951 else 29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29953 $as_echo "no" >&6; } 29954 fi 29955 29956 29957 test -n "$TOOLCHAIN_PATH_CXX" && break 29958 done 29959 29960 CXX=$TOOLCHAIN_PATH_CXX 29961 PATH="$PATH_save" 29962 fi 29963 29964 # AC_PATH_PROGS can't be run multiple times with the same variable, 29965 # so create a new name for this run. 29966 if test "x$CXX" = x; then 29967 for ac_prog in $SEARCH_LIST 29968 do 29969 # Extract the first word of "$ac_prog", so it can be a program name with args. 29970 set dummy $ac_prog; ac_word=$2 29971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29972 $as_echo_n "checking for $ac_word... " >&6; } 29973 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29974 $as_echo_n "(cached) " >&6 29975 else 29976 case $POTENTIAL_CXX in 29977 [\\/]* | ?:[\\/]*) 29978 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29979 ;; 29980 *) 29981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29982 for as_dir in $PATH 29983 do 29984 IFS=$as_save_IFS 29985 test -z "$as_dir" && as_dir=. 29986 for ac_exec_ext in '' $ac_executable_extensions; do 29987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29988 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29990 break 2 29991 fi 29992 done 29993 done 29994 IFS=$as_save_IFS 29995 29996 ;; 29997 esac 29998 fi 29999 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 30000 if test -n "$POTENTIAL_CXX"; then 30001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 30002 $as_echo "$POTENTIAL_CXX" >&6; } 30003 else 30004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30005 $as_echo "no" >&6; } 30006 fi 30007 30008 30009 test -n "$POTENTIAL_CXX" && break 30010 done 30011 30012 CXX=$POTENTIAL_CXX 30013 fi 30014 30015 if test "x$CXX" = x; then 30016 30017 # Print a helpful message on how to acquire the necessary build dependency. 30018 # devkit is the help tag: freetype, cups, pulse, alsa etc 30019 MISSING_DEPENDENCY=devkit 30020 30021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30022 cygwin_help $MISSING_DEPENDENCY 30023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30024 msys_help $MISSING_DEPENDENCY 30025 else 30026 PKGHANDLER_COMMAND= 30027 30028 case $PKGHANDLER in 30029 apt-get) 30030 apt_help $MISSING_DEPENDENCY ;; 30031 yum) 30032 yum_help $MISSING_DEPENDENCY ;; 30033 port) 30034 port_help $MISSING_DEPENDENCY ;; 30035 pkgutil) 30036 pkgutil_help $MISSING_DEPENDENCY ;; 30037 pkgadd) 30038 pkgadd_help $MISSING_DEPENDENCY ;; 30039 esac 30040 30041 if test "x$PKGHANDLER_COMMAND" != x; then 30042 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30043 fi 30044 fi 30045 30046 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 30047 fi 30048 fi 30049 30050 # Now we have a compiler binary in CXX. Make sure it's okay. 30051 30052 # Only process if variable expands to non-empty 30053 30054 if test "x$CXX" != x; then 30055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30056 30057 # First separate the path from the arguments. This will split at the first 30058 # space. 30059 complete="$CXX" 30060 path="${complete%% *}" 30061 tmp="$complete EOL" 30062 arguments="${tmp#* }" 30063 30064 # Input might be given as Windows format, start by converting to 30065 # unix format. 30066 new_path=`$CYGPATH -u "$path"` 30067 30068 # Now try to locate executable using which 30069 new_path=`$WHICH "$new_path" 2> /dev/null` 30070 # bat and cmd files are not always considered executable in cygwin causing which 30071 # to not find them 30072 if test "x$new_path" = x \ 30073 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30074 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30075 new_path=`$CYGPATH -u "$path"` 30076 fi 30077 if test "x$new_path" = x; then 30078 # Oops. Which didn't find the executable. 30079 # The splitting of arguments from the executable at a space might have been incorrect, 30080 # since paths with space are more likely in Windows. Give it another try with the whole 30081 # argument. 30082 path="$complete" 30083 arguments="EOL" 30084 new_path=`$CYGPATH -u "$path"` 30085 new_path=`$WHICH "$new_path" 2> /dev/null` 30086 # bat and cmd files are not always considered executable in cygwin causing which 30087 # to not find them 30088 if test "x$new_path" = x \ 30089 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30090 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30091 new_path=`$CYGPATH -u "$path"` 30092 fi 30093 if test "x$new_path" = x; then 30094 # It's still not found. Now this is an unrecoverable error. 30095 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30096 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30097 has_space=`$ECHO "$complete" | $GREP " "` 30098 if test "x$has_space" != x; then 30099 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30100 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30101 fi 30102 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30103 fi 30104 fi 30105 30106 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30107 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30108 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30109 # "foo.exe" is OK but "foo" is an error. 30110 # 30111 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30112 # It is also a way to make sure we got the proper file name for the real test later on. 30113 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30114 if test "x$test_shortpath" = x; then 30115 # Short path failed, file does not exist as specified. 30116 # Try adding .exe or .cmd 30117 if test -f "${new_path}.exe"; then 30118 input_to_shortpath="${new_path}.exe" 30119 elif test -f "${new_path}.cmd"; then 30120 input_to_shortpath="${new_path}.cmd" 30121 else 30122 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 30123 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 30124 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30125 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30126 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30127 fi 30128 else 30129 input_to_shortpath="$new_path" 30130 fi 30131 30132 # Call helper function which possibly converts this using DOS-style short mode. 30133 # If so, the updated path is stored in $new_path. 30134 new_path="$input_to_shortpath" 30135 30136 input_path="$input_to_shortpath" 30137 # Check if we need to convert this using DOS-style short mode. If the path 30138 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30139 # take no chances and rewrite it. 30140 # Note: m4 eats our [], so we need to use [ and ] instead. 30141 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30142 if test "x$has_forbidden_chars" != x; then 30143 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30144 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30145 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30146 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30147 # Going to short mode and back again did indeed matter. Since short mode is 30148 # case insensitive, let's make it lowercase to improve readability. 30149 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30150 # Now convert it back to Unix-stile (cygpath) 30151 input_path=`$CYGPATH -u "$shortmode_path"` 30152 new_path="$input_path" 30153 fi 30154 fi 30155 30156 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30157 if test "x$test_cygdrive_prefix" = x; then 30158 # As a simple fix, exclude /usr/bin since it's not a real path. 30159 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30160 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30161 # a path prefixed by /cygdrive for fixpath to work. 30162 new_path="$CYGWIN_ROOT_PATH$input_path" 30163 fi 30164 fi 30165 30166 # remove trailing .exe if any 30167 new_path="${new_path/%.exe/}" 30168 30169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30170 30171 # First separate the path from the arguments. This will split at the first 30172 # space. 30173 complete="$CXX" 30174 path="${complete%% *}" 30175 tmp="$complete EOL" 30176 arguments="${tmp#* }" 30177 30178 # Input might be given as Windows format, start by converting to 30179 # unix format. 30180 new_path="$path" 30181 30182 windows_path="$new_path" 30183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30184 unix_path=`$CYGPATH -u "$windows_path"` 30185 new_path="$unix_path" 30186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30187 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30188 new_path="$unix_path" 30189 fi 30190 30191 30192 # Now try to locate executable using which 30193 new_path=`$WHICH "$new_path" 2> /dev/null` 30194 30195 if test "x$new_path" = x; then 30196 # Oops. Which didn't find the executable. 30197 # The splitting of arguments from the executable at a space might have been incorrect, 30198 # since paths with space are more likely in Windows. Give it another try with the whole 30199 # argument. 30200 path="$complete" 30201 arguments="EOL" 30202 new_path="$path" 30203 30204 windows_path="$new_path" 30205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30206 unix_path=`$CYGPATH -u "$windows_path"` 30207 new_path="$unix_path" 30208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30209 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30210 new_path="$unix_path" 30211 fi 30212 30213 30214 new_path=`$WHICH "$new_path" 2> /dev/null` 30215 # bat and cmd files are not always considered executable in MSYS causing which 30216 # to not find them 30217 if test "x$new_path" = x \ 30218 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30219 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30220 new_path="$path" 30221 30222 windows_path="$new_path" 30223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30224 unix_path=`$CYGPATH -u "$windows_path"` 30225 new_path="$unix_path" 30226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30227 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30228 new_path="$unix_path" 30229 fi 30230 30231 fi 30232 30233 if test "x$new_path" = x; then 30234 # It's still not found. Now this is an unrecoverable error. 30235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30236 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30237 has_space=`$ECHO "$complete" | $GREP " "` 30238 if test "x$has_space" != x; then 30239 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30240 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30241 fi 30242 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30243 fi 30244 fi 30245 30246 # Now new_path has a complete unix path to the binary 30247 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30248 # Keep paths in /bin as-is, but remove trailing .exe if any 30249 new_path="${new_path/%.exe/}" 30250 # Do not save /bin paths to all_fixpath_prefixes! 30251 else 30252 # Not in mixed or Windows style, start by that. 30253 new_path=`cmd //c echo $new_path` 30254 30255 input_path="$new_path" 30256 # Check if we need to convert this using DOS-style short mode. If the path 30257 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30258 # take no chances and rewrite it. 30259 # Note: m4 eats our [], so we need to use [ and ] instead. 30260 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30261 if test "x$has_forbidden_chars" != x; then 30262 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30263 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30264 fi 30265 30266 # Output is in $new_path 30267 30268 windows_path="$new_path" 30269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30270 unix_path=`$CYGPATH -u "$windows_path"` 30271 new_path="$unix_path" 30272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30273 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30274 new_path="$unix_path" 30275 fi 30276 30277 # remove trailing .exe if any 30278 new_path="${new_path/%.exe/}" 30279 30280 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30281 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30282 fi 30283 30284 else 30285 # We're on a unix platform. Hooray! :) 30286 # First separate the path from the arguments. This will split at the first 30287 # space. 30288 complete="$CXX" 30289 path="${complete%% *}" 30290 tmp="$complete EOL" 30291 arguments="${tmp#* }" 30292 30293 # Cannot rely on the command "which" here since it doesn't always work. 30294 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30295 if test -z "$is_absolute_path"; then 30296 # Path to executable is not absolute. Find it. 30297 IFS_save="$IFS" 30298 IFS=: 30299 for p in $PATH; do 30300 if test -f "$p/$path" && test -x "$p/$path"; then 30301 new_path="$p/$path" 30302 break 30303 fi 30304 done 30305 IFS="$IFS_save" 30306 else 30307 # This is an absolute path, we can use it without further modifications. 30308 new_path="$path" 30309 fi 30310 30311 if test "x$new_path" = x; then 30312 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30313 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30314 has_space=`$ECHO "$complete" | $GREP " "` 30315 if test "x$has_space" != x; then 30316 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30317 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30318 fi 30319 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30320 fi 30321 fi 30322 30323 # Now join together the path and the arguments once again 30324 if test "x$arguments" != xEOL; then 30325 new_complete="$new_path ${arguments% *}" 30326 else 30327 new_complete="$new_path" 30328 fi 30329 30330 if test "x$complete" != "x$new_complete"; then 30331 CXX="$new_complete" 30332 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 30333 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 30334 fi 30335 fi 30336 30337 TEST_COMPILER="$CXX" 30338 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 30339 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 30340 if test "x$OPENJDK_BUILD_OS" != xaix; then 30341 # FIXME: This test should not be needed anymore; we don't do that for any platform. 30342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 30343 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 30344 30345 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30346 # Follow a chain of symbolic links. Use readlink 30347 # where it exists, else fall back to horribly 30348 # complicated shell code. 30349 if test "x$READLINK_TESTED" != yes; then 30350 # On MacOSX there is a readlink tool with a different 30351 # purpose than the GNU readlink tool. Check the found readlink. 30352 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30353 if test "x$ISGNU" = x; then 30354 # A readlink that we do not know how to use. 30355 # Are there other non-GNU readlinks out there? 30356 READLINK_TESTED=yes 30357 READLINK= 30358 fi 30359 fi 30360 30361 if test "x$READLINK" != x; then 30362 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 30363 else 30364 # Save the current directory for restoring afterwards 30365 STARTDIR=$PWD 30366 COUNTER=0 30367 sym_link_dir=`$DIRNAME $TEST_COMPILER` 30368 sym_link_file=`$BASENAME $TEST_COMPILER` 30369 cd $sym_link_dir 30370 # Use -P flag to resolve symlinks in directories. 30371 cd `$THEPWDCMD -P` 30372 sym_link_dir=`$THEPWDCMD -P` 30373 # Resolve file symlinks 30374 while test $COUNTER -lt 20; do 30375 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30376 if test "x$ISLINK" == x; then 30377 # This is not a symbolic link! We are done! 30378 break 30379 fi 30380 # Again resolve directory symlinks since the target of the just found 30381 # link could be in a different directory 30382 cd `$DIRNAME $ISLINK` 30383 sym_link_dir=`$THEPWDCMD -P` 30384 sym_link_file=`$BASENAME $ISLINK` 30385 let COUNTER=COUNTER+1 30386 done 30387 cd $STARTDIR 30388 TEST_COMPILER=$sym_link_dir/$sym_link_file 30389 fi 30390 fi 30391 30392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 30393 $as_echo "$TEST_COMPILER" >&6; } 30394 fi 30395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 30396 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 30397 30398 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 30399 if test "x$COMPILER_BASENAME" = "xccache"; then 30400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 30401 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 30402 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 30403 # We want to control ccache invocation ourselves, so ignore this cc and try 30404 # searching again. 30405 30406 # Remove the path to the fake ccache cc from the PATH 30407 RETRY_COMPILER_SAVED_PATH="$PATH" 30408 COMPILER_DIRNAME=`$DIRNAME $CXX` 30409 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 30410 30411 # Try again looking for our compiler 30412 if test -n "$ac_tool_prefix"; then 30413 for ac_prog in $TOOLCHAIN_CXX_BINARY 30414 do 30415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30418 $as_echo_n "checking for $ac_word... " >&6; } 30419 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 30420 $as_echo_n "(cached) " >&6 30421 else 30422 if test -n "$PROPER_COMPILER_CXX"; then 30423 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 30424 else 30425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30426 for as_dir in $PATH 30427 do 30428 IFS=$as_save_IFS 30429 test -z "$as_dir" && as_dir=. 30430 for ac_exec_ext in '' $ac_executable_extensions; do 30431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30432 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 30433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30434 break 2 30435 fi 30436 done 30437 done 30438 IFS=$as_save_IFS 30439 30440 fi 30441 fi 30442 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 30443 if test -n "$PROPER_COMPILER_CXX"; then 30444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30445 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30446 else 30447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30448 $as_echo "no" >&6; } 30449 fi 30450 30451 30452 test -n "$PROPER_COMPILER_CXX" && break 30453 done 30454 fi 30455 if test -z "$PROPER_COMPILER_CXX"; then 30456 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 30457 for ac_prog in $TOOLCHAIN_CXX_BINARY 30458 do 30459 # Extract the first word of "$ac_prog", so it can be a program name with args. 30460 set dummy $ac_prog; ac_word=$2 30461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30462 $as_echo_n "checking for $ac_word... " >&6; } 30463 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 30464 $as_echo_n "(cached) " >&6 30465 else 30466 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30467 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 30468 else 30469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30470 for as_dir in $PATH 30471 do 30472 IFS=$as_save_IFS 30473 test -z "$as_dir" && as_dir=. 30474 for ac_exec_ext in '' $ac_executable_extensions; do 30475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30476 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 30477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30478 break 2 30479 fi 30480 done 30481 done 30482 IFS=$as_save_IFS 30483 30484 fi 30485 fi 30486 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 30487 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 30489 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 30490 else 30491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30492 $as_echo "no" >&6; } 30493 fi 30494 30495 30496 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 30497 done 30498 30499 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 30500 PROPER_COMPILER_CXX="" 30501 else 30502 case $cross_compiling:$ac_tool_warned in 30503 yes:) 30504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30506 ac_tool_warned=yes ;; 30507 esac 30508 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 30509 fi 30510 fi 30511 30512 30513 # Only process if variable expands to non-empty 30514 30515 if test "x$PROPER_COMPILER_CXX" != x; then 30516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30517 30518 # First separate the path from the arguments. This will split at the first 30519 # space. 30520 complete="$PROPER_COMPILER_CXX" 30521 path="${complete%% *}" 30522 tmp="$complete EOL" 30523 arguments="${tmp#* }" 30524 30525 # Input might be given as Windows format, start by converting to 30526 # unix format. 30527 new_path=`$CYGPATH -u "$path"` 30528 30529 # Now try to locate executable using which 30530 new_path=`$WHICH "$new_path" 2> /dev/null` 30531 # bat and cmd files are not always considered executable in cygwin causing which 30532 # to not find them 30533 if test "x$new_path" = x \ 30534 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30535 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30536 new_path=`$CYGPATH -u "$path"` 30537 fi 30538 if test "x$new_path" = x; then 30539 # Oops. Which didn't find the executable. 30540 # The splitting of arguments from the executable at a space might have been incorrect, 30541 # since paths with space are more likely in Windows. Give it another try with the whole 30542 # argument. 30543 path="$complete" 30544 arguments="EOL" 30545 new_path=`$CYGPATH -u "$path"` 30546 new_path=`$WHICH "$new_path" 2> /dev/null` 30547 # bat and cmd files are not always considered executable in cygwin causing which 30548 # to not find them 30549 if test "x$new_path" = x \ 30550 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30551 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30552 new_path=`$CYGPATH -u "$path"` 30553 fi 30554 if test "x$new_path" = x; then 30555 # It's still not found. Now this is an unrecoverable error. 30556 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30557 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30558 has_space=`$ECHO "$complete" | $GREP " "` 30559 if test "x$has_space" != x; then 30560 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30561 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30562 fi 30563 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30564 fi 30565 fi 30566 30567 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30568 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30569 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30570 # "foo.exe" is OK but "foo" is an error. 30571 # 30572 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30573 # It is also a way to make sure we got the proper file name for the real test later on. 30574 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30575 if test "x$test_shortpath" = x; then 30576 # Short path failed, file does not exist as specified. 30577 # Try adding .exe or .cmd 30578 if test -f "${new_path}.exe"; then 30579 input_to_shortpath="${new_path}.exe" 30580 elif test -f "${new_path}.cmd"; then 30581 input_to_shortpath="${new_path}.cmd" 30582 else 30583 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 30584 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 30585 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30586 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30587 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30588 fi 30589 else 30590 input_to_shortpath="$new_path" 30591 fi 30592 30593 # Call helper function which possibly converts this using DOS-style short mode. 30594 # If so, the updated path is stored in $new_path. 30595 new_path="$input_to_shortpath" 30596 30597 input_path="$input_to_shortpath" 30598 # Check if we need to convert this using DOS-style short mode. If the path 30599 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30600 # take no chances and rewrite it. 30601 # Note: m4 eats our [], so we need to use [ and ] instead. 30602 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30603 if test "x$has_forbidden_chars" != x; then 30604 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30605 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30606 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30607 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30608 # Going to short mode and back again did indeed matter. Since short mode is 30609 # case insensitive, let's make it lowercase to improve readability. 30610 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30611 # Now convert it back to Unix-stile (cygpath) 30612 input_path=`$CYGPATH -u "$shortmode_path"` 30613 new_path="$input_path" 30614 fi 30615 fi 30616 30617 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30618 if test "x$test_cygdrive_prefix" = x; then 30619 # As a simple fix, exclude /usr/bin since it's not a real path. 30620 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30621 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30622 # a path prefixed by /cygdrive for fixpath to work. 30623 new_path="$CYGWIN_ROOT_PATH$input_path" 30624 fi 30625 fi 30626 30627 # remove trailing .exe if any 30628 new_path="${new_path/%.exe/}" 30629 30630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30631 30632 # First separate the path from the arguments. This will split at the first 30633 # space. 30634 complete="$PROPER_COMPILER_CXX" 30635 path="${complete%% *}" 30636 tmp="$complete EOL" 30637 arguments="${tmp#* }" 30638 30639 # Input might be given as Windows format, start by converting to 30640 # unix format. 30641 new_path="$path" 30642 30643 windows_path="$new_path" 30644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30645 unix_path=`$CYGPATH -u "$windows_path"` 30646 new_path="$unix_path" 30647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30649 new_path="$unix_path" 30650 fi 30651 30652 30653 # Now try to locate executable using which 30654 new_path=`$WHICH "$new_path" 2> /dev/null` 30655 30656 if test "x$new_path" = x; then 30657 # Oops. Which didn't find the executable. 30658 # The splitting of arguments from the executable at a space might have been incorrect, 30659 # since paths with space are more likely in Windows. Give it another try with the whole 30660 # argument. 30661 path="$complete" 30662 arguments="EOL" 30663 new_path="$path" 30664 30665 windows_path="$new_path" 30666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30667 unix_path=`$CYGPATH -u "$windows_path"` 30668 new_path="$unix_path" 30669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30670 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30671 new_path="$unix_path" 30672 fi 30673 30674 30675 new_path=`$WHICH "$new_path" 2> /dev/null` 30676 # bat and cmd files are not always considered executable in MSYS causing which 30677 # to not find them 30678 if test "x$new_path" = x \ 30679 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30680 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30681 new_path="$path" 30682 30683 windows_path="$new_path" 30684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30685 unix_path=`$CYGPATH -u "$windows_path"` 30686 new_path="$unix_path" 30687 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30688 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30689 new_path="$unix_path" 30690 fi 30691 30692 fi 30693 30694 if test "x$new_path" = x; then 30695 # It's still not found. Now this is an unrecoverable error. 30696 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30697 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30698 has_space=`$ECHO "$complete" | $GREP " "` 30699 if test "x$has_space" != x; then 30700 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30701 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30702 fi 30703 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30704 fi 30705 fi 30706 30707 # Now new_path has a complete unix path to the binary 30708 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30709 # Keep paths in /bin as-is, but remove trailing .exe if any 30710 new_path="${new_path/%.exe/}" 30711 # Do not save /bin paths to all_fixpath_prefixes! 30712 else 30713 # Not in mixed or Windows style, start by that. 30714 new_path=`cmd //c echo $new_path` 30715 30716 input_path="$new_path" 30717 # Check if we need to convert this using DOS-style short mode. If the path 30718 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30719 # take no chances and rewrite it. 30720 # Note: m4 eats our [], so we need to use [ and ] instead. 30721 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30722 if test "x$has_forbidden_chars" != x; then 30723 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30724 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30725 fi 30726 30727 # Output is in $new_path 30728 30729 windows_path="$new_path" 30730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30731 unix_path=`$CYGPATH -u "$windows_path"` 30732 new_path="$unix_path" 30733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30734 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30735 new_path="$unix_path" 30736 fi 30737 30738 # remove trailing .exe if any 30739 new_path="${new_path/%.exe/}" 30740 30741 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30742 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30743 fi 30744 30745 else 30746 # We're on a unix platform. Hooray! :) 30747 # First separate the path from the arguments. This will split at the first 30748 # space. 30749 complete="$PROPER_COMPILER_CXX" 30750 path="${complete%% *}" 30751 tmp="$complete EOL" 30752 arguments="${tmp#* }" 30753 30754 # Cannot rely on the command "which" here since it doesn't always work. 30755 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30756 if test -z "$is_absolute_path"; then 30757 # Path to executable is not absolute. Find it. 30758 IFS_save="$IFS" 30759 IFS=: 30760 for p in $PATH; do 30761 if test -f "$p/$path" && test -x "$p/$path"; then 30762 new_path="$p/$path" 30763 break 30764 fi 30765 done 30766 IFS="$IFS_save" 30767 else 30768 # This is an absolute path, we can use it without further modifications. 30769 new_path="$path" 30770 fi 30771 30772 if test "x$new_path" = x; then 30773 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30774 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30775 has_space=`$ECHO "$complete" | $GREP " "` 30776 if test "x$has_space" != x; then 30777 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30778 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30779 fi 30780 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30781 fi 30782 fi 30783 30784 # Now join together the path and the arguments once again 30785 if test "x$arguments" != xEOL; then 30786 new_complete="$new_path ${arguments% *}" 30787 else 30788 new_complete="$new_path" 30789 fi 30790 30791 if test "x$complete" != "x$new_complete"; then 30792 PROPER_COMPILER_CXX="$new_complete" 30793 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 30794 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 30795 fi 30796 fi 30797 30798 PATH="$RETRY_COMPILER_SAVED_PATH" 30799 30800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 30801 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 30802 30803 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30804 # Follow a chain of symbolic links. Use readlink 30805 # where it exists, else fall back to horribly 30806 # complicated shell code. 30807 if test "x$READLINK_TESTED" != yes; then 30808 # On MacOSX there is a readlink tool with a different 30809 # purpose than the GNU readlink tool. Check the found readlink. 30810 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30811 if test "x$ISGNU" = x; then 30812 # A readlink that we do not know how to use. 30813 # Are there other non-GNU readlinks out there? 30814 READLINK_TESTED=yes 30815 READLINK= 30816 fi 30817 fi 30818 30819 if test "x$READLINK" != x; then 30820 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 30821 else 30822 # Save the current directory for restoring afterwards 30823 STARTDIR=$PWD 30824 COUNTER=0 30825 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 30826 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 30827 cd $sym_link_dir 30828 # Use -P flag to resolve symlinks in directories. 30829 cd `$THEPWDCMD -P` 30830 sym_link_dir=`$THEPWDCMD -P` 30831 # Resolve file symlinks 30832 while test $COUNTER -lt 20; do 30833 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30834 if test "x$ISLINK" == x; then 30835 # This is not a symbolic link! We are done! 30836 break 30837 fi 30838 # Again resolve directory symlinks since the target of the just found 30839 # link could be in a different directory 30840 cd `$DIRNAME $ISLINK` 30841 sym_link_dir=`$THEPWDCMD -P` 30842 sym_link_file=`$BASENAME $ISLINK` 30843 let COUNTER=COUNTER+1 30844 done 30845 cd $STARTDIR 30846 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 30847 fi 30848 fi 30849 30850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30851 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30852 CXX="$PROPER_COMPILER_CXX" 30853 else 30854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 30855 $as_echo "no, keeping CXX" >&6; } 30856 fi 30857 30858 30859 COMPILER=$CXX 30860 COMPILER_NAME=$COMPILER_NAME 30861 30862 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30863 # cc -V output typically looks like 30864 # cc: Sun C 5.12 Linux_i386 2011/11/16 30865 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 30866 # Check that this is likely to be the Solaris Studio cc. 30867 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30868 if test $? -ne 0; then 30869 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30870 { $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 30871 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30872 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30873 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30874 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30875 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30876 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30877 fi 30878 # Remove usage instructions (if present), and 30879 # collapse compiler output into a single line 30880 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30881 $SED -e 's/ *[Uu]sage:.*//'` 30882 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30883 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30884 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30885 # xlc -qversion output typically looks like 30886 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30887 # Version: 11.01.0000.0015 30888 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30889 # Check that this is likely to be the IBM XL C compiler. 30890 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30891 if test $? -ne 0; then 30892 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30893 { $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 30894 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30895 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30896 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30897 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30898 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30899 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30900 fi 30901 # Collapse compiler output into a single line 30902 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30903 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30904 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30905 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30906 # There is no specific version flag, but all output starts with a version string. 30907 # First line typically looks something like: 30908 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30909 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30910 # Check that this is likely to be Microsoft CL.EXE. 30911 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30912 if test $? -ne 0; then 30913 { $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 30914 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30915 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30916 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30917 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30918 fi 30919 # Collapse compiler output into a single line 30920 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30921 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30922 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30923 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30924 # gcc --version output typically looks like 30925 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30926 # Copyright (C) 2013 Free Software Foundation, Inc. 30927 # This is free software; see the source for copying conditions. There is NO 30928 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30929 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30930 # Check that this is likely to be GCC. 30931 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30932 if test $? -ne 0; then 30933 { $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 30934 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30935 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30936 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30937 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30938 fi 30939 # Remove Copyright and legalese from version string, and 30940 # collapse into a single line 30941 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30942 $SED -e 's/ *Copyright .*//'` 30943 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30944 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 30945 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30946 # clang --version output typically looks like 30947 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 30948 # clang version 3.3 (tags/RELEASE_33/final) 30949 # or 30950 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 30951 # Target: x86_64-pc-linux-gnu 30952 # Thread model: posix 30953 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30954 # Check that this is likely to be clang 30955 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 30956 if test $? -ne 0; then 30957 { $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 30958 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30959 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30960 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30961 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30962 fi 30963 # Collapse compiler output into a single line 30964 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30965 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30966 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 30967 else 30968 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 30969 fi 30970 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 30971 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 30972 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 30973 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 30974 30975 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 30976 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 30977 30978 30979 # Now that we have resolved CXX ourself, let autoconf have its go at it 30980 ac_ext=cpp 30981 ac_cpp='$CXXCPP $CPPFLAGS' 30982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30985 if test -z "$CXX"; then 30986 if test -n "$CCC"; then 30987 CXX=$CCC 30988 else 30989 if test -n "$ac_tool_prefix"; then 30990 for ac_prog in $CXX 30991 do 30992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30995 $as_echo_n "checking for $ac_word... " >&6; } 30996 if ${ac_cv_prog_CXX+:} false; then : 30997 $as_echo_n "(cached) " >&6 30998 else 30999 if test -n "$CXX"; then 31000 ac_cv_prog_CXX="$CXX" # Let the user override the test. 31001 else 31002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31003 for as_dir in $PATH 31004 do 31005 IFS=$as_save_IFS 31006 test -z "$as_dir" && as_dir=. 31007 for ac_exec_ext in '' $ac_executable_extensions; do 31008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31009 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 31010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31011 break 2 31012 fi 31013 done 31014 done 31015 IFS=$as_save_IFS 31016 31017 fi 31018 fi 31019 CXX=$ac_cv_prog_CXX 31020 if test -n "$CXX"; then 31021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 31022 $as_echo "$CXX" >&6; } 31023 else 31024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31025 $as_echo "no" >&6; } 31026 fi 31027 31028 31029 test -n "$CXX" && break 31030 done 31031 fi 31032 if test -z "$CXX"; then 31033 ac_ct_CXX=$CXX 31034 for ac_prog in $CXX 31035 do 31036 # Extract the first word of "$ac_prog", so it can be a program name with args. 31037 set dummy $ac_prog; ac_word=$2 31038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31039 $as_echo_n "checking for $ac_word... " >&6; } 31040 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 31041 $as_echo_n "(cached) " >&6 31042 else 31043 if test -n "$ac_ct_CXX"; then 31044 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 31045 else 31046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31047 for as_dir in $PATH 31048 do 31049 IFS=$as_save_IFS 31050 test -z "$as_dir" && as_dir=. 31051 for ac_exec_ext in '' $ac_executable_extensions; do 31052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31053 ac_cv_prog_ac_ct_CXX="$ac_prog" 31054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31055 break 2 31056 fi 31057 done 31058 done 31059 IFS=$as_save_IFS 31060 31061 fi 31062 fi 31063 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 31064 if test -n "$ac_ct_CXX"; then 31065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 31066 $as_echo "$ac_ct_CXX" >&6; } 31067 else 31068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31069 $as_echo "no" >&6; } 31070 fi 31071 31072 31073 test -n "$ac_ct_CXX" && break 31074 done 31075 31076 if test "x$ac_ct_CXX" = x; then 31077 CXX="g++" 31078 else 31079 case $cross_compiling:$ac_tool_warned in 31080 yes:) 31081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31083 ac_tool_warned=yes ;; 31084 esac 31085 CXX=$ac_ct_CXX 31086 fi 31087 fi 31088 31089 fi 31090 fi 31091 # Provide some information about the compiler. 31092 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 31093 set X $ac_compile 31094 ac_compiler=$2 31095 for ac_option in --version -v -V -qversion; do 31096 { { ac_try="$ac_compiler $ac_option >&5" 31097 case "(($ac_try" in 31098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31099 *) ac_try_echo=$ac_try;; 31100 esac 31101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31102 $as_echo "$ac_try_echo"; } >&5 31103 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 31104 ac_status=$? 31105 if test -s conftest.err; then 31106 sed '10a\ 31107 ... rest of stderr output deleted ... 31108 10q' conftest.err >conftest.er1 31109 cat conftest.er1 >&5 31110 fi 31111 rm -f conftest.er1 conftest.err 31112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31113 test $ac_status = 0; } 31114 done 31115 31116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 31117 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 31118 if ${ac_cv_cxx_compiler_gnu+:} false; then : 31119 $as_echo_n "(cached) " >&6 31120 else 31121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31122 /* end confdefs.h. */ 31123 31124 int 31125 main () 31126 { 31127 #ifndef __GNUC__ 31128 choke me 31129 #endif 31130 31131 ; 31132 return 0; 31133 } 31134 _ACEOF 31135 if ac_fn_cxx_try_compile "$LINENO"; then : 31136 ac_compiler_gnu=yes 31137 else 31138 ac_compiler_gnu=no 31139 fi 31140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31141 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 31142 31143 fi 31144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 31145 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 31146 if test $ac_compiler_gnu = yes; then 31147 GXX=yes 31148 else 31149 GXX= 31150 fi 31151 ac_test_CXXFLAGS=${CXXFLAGS+set} 31152 ac_save_CXXFLAGS=$CXXFLAGS 31153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 31154 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 31155 if ${ac_cv_prog_cxx_g+:} false; then : 31156 $as_echo_n "(cached) " >&6 31157 else 31158 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 31159 ac_cxx_werror_flag=yes 31160 ac_cv_prog_cxx_g=no 31161 CXXFLAGS="-g" 31162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31163 /* end confdefs.h. */ 31164 31165 int 31166 main () 31167 { 31168 31169 ; 31170 return 0; 31171 } 31172 _ACEOF 31173 if ac_fn_cxx_try_compile "$LINENO"; then : 31174 ac_cv_prog_cxx_g=yes 31175 else 31176 CXXFLAGS="" 31177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31178 /* end confdefs.h. */ 31179 31180 int 31181 main () 31182 { 31183 31184 ; 31185 return 0; 31186 } 31187 _ACEOF 31188 if ac_fn_cxx_try_compile "$LINENO"; then : 31189 31190 else 31191 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 31192 CXXFLAGS="-g" 31193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31194 /* end confdefs.h. */ 31195 31196 int 31197 main () 31198 { 31199 31200 ; 31201 return 0; 31202 } 31203 _ACEOF 31204 if ac_fn_cxx_try_compile "$LINENO"; then : 31205 ac_cv_prog_cxx_g=yes 31206 fi 31207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31208 fi 31209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31210 fi 31211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31212 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 31213 fi 31214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 31215 $as_echo "$ac_cv_prog_cxx_g" >&6; } 31216 if test "$ac_test_CXXFLAGS" = set; then 31217 CXXFLAGS=$ac_save_CXXFLAGS 31218 elif test $ac_cv_prog_cxx_g = yes; then 31219 if test "$GXX" = yes; then 31220 CXXFLAGS="-g -O2" 31221 else 31222 CXXFLAGS="-g" 31223 fi 31224 else 31225 if test "$GXX" = yes; then 31226 CXXFLAGS="-O2" 31227 else 31228 CXXFLAGS= 31229 fi 31230 fi 31231 ac_ext=cpp 31232 ac_cpp='$CXXCPP $CPPFLAGS' 31233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31236 31237 31238 # 31239 # Setup the preprocessor (CPP and CXXCPP) 31240 # 31241 ac_ext=c 31242 ac_cpp='$CPP $CPPFLAGS' 31243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31245 ac_compiler_gnu=$ac_cv_c_compiler_gnu 31246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 31247 $as_echo_n "checking how to run the C preprocessor... " >&6; } 31248 # On Suns, sometimes $CPP names a directory. 31249 if test -n "$CPP" && test -d "$CPP"; then 31250 CPP= 31251 fi 31252 if test -z "$CPP"; then 31253 if ${ac_cv_prog_CPP+:} false; then : 31254 $as_echo_n "(cached) " >&6 31255 else 31256 # Double quotes because CPP needs to be expanded 31257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 31258 do 31259 ac_preproc_ok=false 31260 for ac_c_preproc_warn_flag in '' yes 31261 do 31262 # Use a header file that comes with gcc, so configuring glibc 31263 # with a fresh cross-compiler works. 31264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31265 # <limits.h> exists even on freestanding compilers. 31266 # On the NeXT, cc -E runs the code through the compiler's parser, 31267 # not just through cpp. "Syntax error" is here to catch this case. 31268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31269 /* end confdefs.h. */ 31270 #ifdef __STDC__ 31271 # include <limits.h> 31272 #else 31273 # include <assert.h> 31274 #endif 31275 Syntax error 31276 _ACEOF 31277 if ac_fn_c_try_cpp "$LINENO"; then : 31278 31279 else 31280 # Broken: fails on valid input. 31281 continue 31282 fi 31283 rm -f conftest.err conftest.i conftest.$ac_ext 31284 31285 # OK, works on sane cases. Now check whether nonexistent headers 31286 # can be detected and how. 31287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31288 /* end confdefs.h. */ 31289 #include <ac_nonexistent.h> 31290 _ACEOF 31291 if ac_fn_c_try_cpp "$LINENO"; then : 31292 # Broken: success on invalid input. 31293 continue 31294 else 31295 # Passes both tests. 31296 ac_preproc_ok=: 31297 break 31298 fi 31299 rm -f conftest.err conftest.i conftest.$ac_ext 31300 31301 done 31302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31303 rm -f conftest.i conftest.err conftest.$ac_ext 31304 if $ac_preproc_ok; then : 31305 break 31306 fi 31307 31308 done 31309 ac_cv_prog_CPP=$CPP 31310 31311 fi 31312 CPP=$ac_cv_prog_CPP 31313 else 31314 ac_cv_prog_CPP=$CPP 31315 fi 31316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 31317 $as_echo "$CPP" >&6; } 31318 ac_preproc_ok=false 31319 for ac_c_preproc_warn_flag in '' yes 31320 do 31321 # Use a header file that comes with gcc, so configuring glibc 31322 # with a fresh cross-compiler works. 31323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31324 # <limits.h> exists even on freestanding compilers. 31325 # On the NeXT, cc -E runs the code through the compiler's parser, 31326 # not just through cpp. "Syntax error" is here to catch this case. 31327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31328 /* end confdefs.h. */ 31329 #ifdef __STDC__ 31330 # include <limits.h> 31331 #else 31332 # include <assert.h> 31333 #endif 31334 Syntax error 31335 _ACEOF 31336 if ac_fn_c_try_cpp "$LINENO"; then : 31337 31338 else 31339 # Broken: fails on valid input. 31340 continue 31341 fi 31342 rm -f conftest.err conftest.i conftest.$ac_ext 31343 31344 # OK, works on sane cases. Now check whether nonexistent headers 31345 # can be detected and how. 31346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31347 /* end confdefs.h. */ 31348 #include <ac_nonexistent.h> 31349 _ACEOF 31350 if ac_fn_c_try_cpp "$LINENO"; then : 31351 # Broken: success on invalid input. 31352 continue 31353 else 31354 # Passes both tests. 31355 ac_preproc_ok=: 31356 break 31357 fi 31358 rm -f conftest.err conftest.i conftest.$ac_ext 31359 31360 done 31361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31362 rm -f conftest.i conftest.err conftest.$ac_ext 31363 if $ac_preproc_ok; then : 31364 31365 else 31366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31368 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 31369 See \`config.log' for more details" "$LINENO" 5; } 31370 fi 31371 31372 ac_ext=cpp 31373 ac_cpp='$CXXCPP $CPPFLAGS' 31374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31377 31378 31379 # Only process if variable expands to non-empty 31380 31381 if test "x$CPP" != x; then 31382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31383 31384 # First separate the path from the arguments. This will split at the first 31385 # space. 31386 complete="$CPP" 31387 path="${complete%% *}" 31388 tmp="$complete EOL" 31389 arguments="${tmp#* }" 31390 31391 # Input might be given as Windows format, start by converting to 31392 # unix format. 31393 new_path=`$CYGPATH -u "$path"` 31394 31395 # Now try to locate executable using which 31396 new_path=`$WHICH "$new_path" 2> /dev/null` 31397 # bat and cmd files are not always considered executable in cygwin causing which 31398 # to not find them 31399 if test "x$new_path" = x \ 31400 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31401 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31402 new_path=`$CYGPATH -u "$path"` 31403 fi 31404 if test "x$new_path" = x; then 31405 # Oops. Which didn't find the executable. 31406 # The splitting of arguments from the executable at a space might have been incorrect, 31407 # since paths with space are more likely in Windows. Give it another try with the whole 31408 # argument. 31409 path="$complete" 31410 arguments="EOL" 31411 new_path=`$CYGPATH -u "$path"` 31412 new_path=`$WHICH "$new_path" 2> /dev/null` 31413 # bat and cmd files are not always considered executable in cygwin causing which 31414 # to not find them 31415 if test "x$new_path" = x \ 31416 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31417 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31418 new_path=`$CYGPATH -u "$path"` 31419 fi 31420 if test "x$new_path" = x; then 31421 # It's still not found. Now this is an unrecoverable error. 31422 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31423 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31424 has_space=`$ECHO "$complete" | $GREP " "` 31425 if test "x$has_space" != x; then 31426 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31427 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31428 fi 31429 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31430 fi 31431 fi 31432 31433 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31434 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31435 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31436 # "foo.exe" is OK but "foo" is an error. 31437 # 31438 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31439 # It is also a way to make sure we got the proper file name for the real test later on. 31440 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31441 if test "x$test_shortpath" = x; then 31442 # Short path failed, file does not exist as specified. 31443 # Try adding .exe or .cmd 31444 if test -f "${new_path}.exe"; then 31445 input_to_shortpath="${new_path}.exe" 31446 elif test -f "${new_path}.cmd"; then 31447 input_to_shortpath="${new_path}.cmd" 31448 else 31449 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 31450 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 31451 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31452 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31453 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31454 fi 31455 else 31456 input_to_shortpath="$new_path" 31457 fi 31458 31459 # Call helper function which possibly converts this using DOS-style short mode. 31460 # If so, the updated path is stored in $new_path. 31461 new_path="$input_to_shortpath" 31462 31463 input_path="$input_to_shortpath" 31464 # Check if we need to convert this using DOS-style short mode. If the path 31465 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31466 # take no chances and rewrite it. 31467 # Note: m4 eats our [], so we need to use [ and ] instead. 31468 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31469 if test "x$has_forbidden_chars" != x; then 31470 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31471 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31472 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31473 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31474 # Going to short mode and back again did indeed matter. Since short mode is 31475 # case insensitive, let's make it lowercase to improve readability. 31476 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31477 # Now convert it back to Unix-stile (cygpath) 31478 input_path=`$CYGPATH -u "$shortmode_path"` 31479 new_path="$input_path" 31480 fi 31481 fi 31482 31483 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31484 if test "x$test_cygdrive_prefix" = x; then 31485 # As a simple fix, exclude /usr/bin since it's not a real path. 31486 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31487 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31488 # a path prefixed by /cygdrive for fixpath to work. 31489 new_path="$CYGWIN_ROOT_PATH$input_path" 31490 fi 31491 fi 31492 31493 # remove trailing .exe if any 31494 new_path="${new_path/%.exe/}" 31495 31496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31497 31498 # First separate the path from the arguments. This will split at the first 31499 # space. 31500 complete="$CPP" 31501 path="${complete%% *}" 31502 tmp="$complete EOL" 31503 arguments="${tmp#* }" 31504 31505 # Input might be given as Windows format, start by converting to 31506 # unix format. 31507 new_path="$path" 31508 31509 windows_path="$new_path" 31510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31511 unix_path=`$CYGPATH -u "$windows_path"` 31512 new_path="$unix_path" 31513 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31514 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31515 new_path="$unix_path" 31516 fi 31517 31518 31519 # Now try to locate executable using which 31520 new_path=`$WHICH "$new_path" 2> /dev/null` 31521 31522 if test "x$new_path" = x; then 31523 # Oops. Which didn't find the executable. 31524 # The splitting of arguments from the executable at a space might have been incorrect, 31525 # since paths with space are more likely in Windows. Give it another try with the whole 31526 # argument. 31527 path="$complete" 31528 arguments="EOL" 31529 new_path="$path" 31530 31531 windows_path="$new_path" 31532 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31533 unix_path=`$CYGPATH -u "$windows_path"` 31534 new_path="$unix_path" 31535 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31536 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31537 new_path="$unix_path" 31538 fi 31539 31540 31541 new_path=`$WHICH "$new_path" 2> /dev/null` 31542 # bat and cmd files are not always considered executable in MSYS causing which 31543 # to not find them 31544 if test "x$new_path" = x \ 31545 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31546 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31547 new_path="$path" 31548 31549 windows_path="$new_path" 31550 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31551 unix_path=`$CYGPATH -u "$windows_path"` 31552 new_path="$unix_path" 31553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31554 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31555 new_path="$unix_path" 31556 fi 31557 31558 fi 31559 31560 if test "x$new_path" = x; then 31561 # It's still not found. Now this is an unrecoverable error. 31562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31563 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31564 has_space=`$ECHO "$complete" | $GREP " "` 31565 if test "x$has_space" != x; then 31566 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31567 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31568 fi 31569 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31570 fi 31571 fi 31572 31573 # Now new_path has a complete unix path to the binary 31574 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31575 # Keep paths in /bin as-is, but remove trailing .exe if any 31576 new_path="${new_path/%.exe/}" 31577 # Do not save /bin paths to all_fixpath_prefixes! 31578 else 31579 # Not in mixed or Windows style, start by that. 31580 new_path=`cmd //c echo $new_path` 31581 31582 input_path="$new_path" 31583 # Check if we need to convert this using DOS-style short mode. If the path 31584 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31585 # take no chances and rewrite it. 31586 # Note: m4 eats our [], so we need to use [ and ] instead. 31587 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31588 if test "x$has_forbidden_chars" != x; then 31589 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31590 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31591 fi 31592 31593 # Output is in $new_path 31594 31595 windows_path="$new_path" 31596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31597 unix_path=`$CYGPATH -u "$windows_path"` 31598 new_path="$unix_path" 31599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31600 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31601 new_path="$unix_path" 31602 fi 31603 31604 # remove trailing .exe if any 31605 new_path="${new_path/%.exe/}" 31606 31607 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31608 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31609 fi 31610 31611 else 31612 # We're on a unix platform. Hooray! :) 31613 # First separate the path from the arguments. This will split at the first 31614 # space. 31615 complete="$CPP" 31616 path="${complete%% *}" 31617 tmp="$complete EOL" 31618 arguments="${tmp#* }" 31619 31620 # Cannot rely on the command "which" here since it doesn't always work. 31621 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31622 if test -z "$is_absolute_path"; then 31623 # Path to executable is not absolute. Find it. 31624 IFS_save="$IFS" 31625 IFS=: 31626 for p in $PATH; do 31627 if test -f "$p/$path" && test -x "$p/$path"; then 31628 new_path="$p/$path" 31629 break 31630 fi 31631 done 31632 IFS="$IFS_save" 31633 else 31634 # This is an absolute path, we can use it without further modifications. 31635 new_path="$path" 31636 fi 31637 31638 if test "x$new_path" = x; then 31639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31640 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31641 has_space=`$ECHO "$complete" | $GREP " "` 31642 if test "x$has_space" != x; then 31643 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31644 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31645 fi 31646 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31647 fi 31648 fi 31649 31650 # Now join together the path and the arguments once again 31651 if test "x$arguments" != xEOL; then 31652 new_complete="$new_path ${arguments% *}" 31653 else 31654 new_complete="$new_path" 31655 fi 31656 31657 if test "x$complete" != "x$new_complete"; then 31658 CPP="$new_complete" 31659 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 31660 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 31661 fi 31662 fi 31663 31664 ac_ext=cpp 31665 ac_cpp='$CXXCPP $CPPFLAGS' 31666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 31670 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 31671 if test -z "$CXXCPP"; then 31672 if ${ac_cv_prog_CXXCPP+:} false; then : 31673 $as_echo_n "(cached) " >&6 31674 else 31675 # Double quotes because CXXCPP needs to be expanded 31676 for CXXCPP in "$CXX -E" "/lib/cpp" 31677 do 31678 ac_preproc_ok=false 31679 for ac_cxx_preproc_warn_flag in '' yes 31680 do 31681 # Use a header file that comes with gcc, so configuring glibc 31682 # with a fresh cross-compiler works. 31683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31684 # <limits.h> exists even on freestanding compilers. 31685 # On the NeXT, cc -E runs the code through the compiler's parser, 31686 # not just through cpp. "Syntax error" is here to catch this case. 31687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31688 /* end confdefs.h. */ 31689 #ifdef __STDC__ 31690 # include <limits.h> 31691 #else 31692 # include <assert.h> 31693 #endif 31694 Syntax error 31695 _ACEOF 31696 if ac_fn_cxx_try_cpp "$LINENO"; then : 31697 31698 else 31699 # Broken: fails on valid input. 31700 continue 31701 fi 31702 rm -f conftest.err conftest.i conftest.$ac_ext 31703 31704 # OK, works on sane cases. Now check whether nonexistent headers 31705 # can be detected and how. 31706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31707 /* end confdefs.h. */ 31708 #include <ac_nonexistent.h> 31709 _ACEOF 31710 if ac_fn_cxx_try_cpp "$LINENO"; then : 31711 # Broken: success on invalid input. 31712 continue 31713 else 31714 # Passes both tests. 31715 ac_preproc_ok=: 31716 break 31717 fi 31718 rm -f conftest.err conftest.i conftest.$ac_ext 31719 31720 done 31721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31722 rm -f conftest.i conftest.err conftest.$ac_ext 31723 if $ac_preproc_ok; then : 31724 break 31725 fi 31726 31727 done 31728 ac_cv_prog_CXXCPP=$CXXCPP 31729 31730 fi 31731 CXXCPP=$ac_cv_prog_CXXCPP 31732 else 31733 ac_cv_prog_CXXCPP=$CXXCPP 31734 fi 31735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 31736 $as_echo "$CXXCPP" >&6; } 31737 ac_preproc_ok=false 31738 for ac_cxx_preproc_warn_flag in '' yes 31739 do 31740 # Use a header file that comes with gcc, so configuring glibc 31741 # with a fresh cross-compiler works. 31742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31743 # <limits.h> exists even on freestanding compilers. 31744 # On the NeXT, cc -E runs the code through the compiler's parser, 31745 # not just through cpp. "Syntax error" is here to catch this case. 31746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31747 /* end confdefs.h. */ 31748 #ifdef __STDC__ 31749 # include <limits.h> 31750 #else 31751 # include <assert.h> 31752 #endif 31753 Syntax error 31754 _ACEOF 31755 if ac_fn_cxx_try_cpp "$LINENO"; then : 31756 31757 else 31758 # Broken: fails on valid input. 31759 continue 31760 fi 31761 rm -f conftest.err conftest.i conftest.$ac_ext 31762 31763 # OK, works on sane cases. Now check whether nonexistent headers 31764 # can be detected and how. 31765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31766 /* end confdefs.h. */ 31767 #include <ac_nonexistent.h> 31768 _ACEOF 31769 if ac_fn_cxx_try_cpp "$LINENO"; then : 31770 # Broken: success on invalid input. 31771 continue 31772 else 31773 # Passes both tests. 31774 ac_preproc_ok=: 31775 break 31776 fi 31777 rm -f conftest.err conftest.i conftest.$ac_ext 31778 31779 done 31780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31781 rm -f conftest.i conftest.err conftest.$ac_ext 31782 if $ac_preproc_ok; then : 31783 31784 else 31785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31787 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 31788 See \`config.log' for more details" "$LINENO" 5; } 31789 fi 31790 31791 ac_ext=cpp 31792 ac_cpp='$CXXCPP $CPPFLAGS' 31793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31796 31797 31798 # Only process if variable expands to non-empty 31799 31800 if test "x$CXXCPP" != x; then 31801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31802 31803 # First separate the path from the arguments. This will split at the first 31804 # space. 31805 complete="$CXXCPP" 31806 path="${complete%% *}" 31807 tmp="$complete EOL" 31808 arguments="${tmp#* }" 31809 31810 # Input might be given as Windows format, start by converting to 31811 # unix format. 31812 new_path=`$CYGPATH -u "$path"` 31813 31814 # Now try to locate executable using which 31815 new_path=`$WHICH "$new_path" 2> /dev/null` 31816 # bat and cmd files are not always considered executable in cygwin causing which 31817 # to not find them 31818 if test "x$new_path" = x \ 31819 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31820 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31821 new_path=`$CYGPATH -u "$path"` 31822 fi 31823 if test "x$new_path" = x; then 31824 # Oops. Which didn't find the executable. 31825 # The splitting of arguments from the executable at a space might have been incorrect, 31826 # since paths with space are more likely in Windows. Give it another try with the whole 31827 # argument. 31828 path="$complete" 31829 arguments="EOL" 31830 new_path=`$CYGPATH -u "$path"` 31831 new_path=`$WHICH "$new_path" 2> /dev/null` 31832 # bat and cmd files are not always considered executable in cygwin causing which 31833 # to not find them 31834 if test "x$new_path" = x \ 31835 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31836 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31837 new_path=`$CYGPATH -u "$path"` 31838 fi 31839 if test "x$new_path" = x; then 31840 # It's still not found. Now this is an unrecoverable error. 31841 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31842 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31843 has_space=`$ECHO "$complete" | $GREP " "` 31844 if test "x$has_space" != x; then 31845 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31846 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31847 fi 31848 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31849 fi 31850 fi 31851 31852 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31853 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31854 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31855 # "foo.exe" is OK but "foo" is an error. 31856 # 31857 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31858 # It is also a way to make sure we got the proper file name for the real test later on. 31859 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31860 if test "x$test_shortpath" = x; then 31861 # Short path failed, file does not exist as specified. 31862 # Try adding .exe or .cmd 31863 if test -f "${new_path}.exe"; then 31864 input_to_shortpath="${new_path}.exe" 31865 elif test -f "${new_path}.cmd"; then 31866 input_to_shortpath="${new_path}.cmd" 31867 else 31868 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 31869 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 31870 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31871 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31872 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31873 fi 31874 else 31875 input_to_shortpath="$new_path" 31876 fi 31877 31878 # Call helper function which possibly converts this using DOS-style short mode. 31879 # If so, the updated path is stored in $new_path. 31880 new_path="$input_to_shortpath" 31881 31882 input_path="$input_to_shortpath" 31883 # Check if we need to convert this using DOS-style short mode. If the path 31884 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31885 # take no chances and rewrite it. 31886 # Note: m4 eats our [], so we need to use [ and ] instead. 31887 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31888 if test "x$has_forbidden_chars" != x; then 31889 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31890 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31891 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31892 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31893 # Going to short mode and back again did indeed matter. Since short mode is 31894 # case insensitive, let's make it lowercase to improve readability. 31895 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31896 # Now convert it back to Unix-stile (cygpath) 31897 input_path=`$CYGPATH -u "$shortmode_path"` 31898 new_path="$input_path" 31899 fi 31900 fi 31901 31902 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31903 if test "x$test_cygdrive_prefix" = x; then 31904 # As a simple fix, exclude /usr/bin since it's not a real path. 31905 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31906 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31907 # a path prefixed by /cygdrive for fixpath to work. 31908 new_path="$CYGWIN_ROOT_PATH$input_path" 31909 fi 31910 fi 31911 31912 # remove trailing .exe if any 31913 new_path="${new_path/%.exe/}" 31914 31915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31916 31917 # First separate the path from the arguments. This will split at the first 31918 # space. 31919 complete="$CXXCPP" 31920 path="${complete%% *}" 31921 tmp="$complete EOL" 31922 arguments="${tmp#* }" 31923 31924 # Input might be given as Windows format, start by converting to 31925 # unix format. 31926 new_path="$path" 31927 31928 windows_path="$new_path" 31929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31930 unix_path=`$CYGPATH -u "$windows_path"` 31931 new_path="$unix_path" 31932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31933 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31934 new_path="$unix_path" 31935 fi 31936 31937 31938 # Now try to locate executable using which 31939 new_path=`$WHICH "$new_path" 2> /dev/null` 31940 31941 if test "x$new_path" = x; then 31942 # Oops. Which didn't find the executable. 31943 # The splitting of arguments from the executable at a space might have been incorrect, 31944 # since paths with space are more likely in Windows. Give it another try with the whole 31945 # argument. 31946 path="$complete" 31947 arguments="EOL" 31948 new_path="$path" 31949 31950 windows_path="$new_path" 31951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31952 unix_path=`$CYGPATH -u "$windows_path"` 31953 new_path="$unix_path" 31954 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31955 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31956 new_path="$unix_path" 31957 fi 31958 31959 31960 new_path=`$WHICH "$new_path" 2> /dev/null` 31961 # bat and cmd files are not always considered executable in MSYS causing which 31962 # to not find them 31963 if test "x$new_path" = x \ 31964 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31965 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31966 new_path="$path" 31967 31968 windows_path="$new_path" 31969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31970 unix_path=`$CYGPATH -u "$windows_path"` 31971 new_path="$unix_path" 31972 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31973 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31974 new_path="$unix_path" 31975 fi 31976 31977 fi 31978 31979 if test "x$new_path" = x; then 31980 # It's still not found. Now this is an unrecoverable error. 31981 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31982 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31983 has_space=`$ECHO "$complete" | $GREP " "` 31984 if test "x$has_space" != x; then 31985 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31986 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31987 fi 31988 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31989 fi 31990 fi 31991 31992 # Now new_path has a complete unix path to the binary 31993 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31994 # Keep paths in /bin as-is, but remove trailing .exe if any 31995 new_path="${new_path/%.exe/}" 31996 # Do not save /bin paths to all_fixpath_prefixes! 31997 else 31998 # Not in mixed or Windows style, start by that. 31999 new_path=`cmd //c echo $new_path` 32000 32001 input_path="$new_path" 32002 # Check if we need to convert this using DOS-style short mode. If the path 32003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32004 # take no chances and rewrite it. 32005 # Note: m4 eats our [], so we need to use [ and ] instead. 32006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32007 if test "x$has_forbidden_chars" != x; then 32008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32009 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32010 fi 32011 32012 # Output is in $new_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 # remove trailing .exe if any 32024 new_path="${new_path/%.exe/}" 32025 32026 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32027 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32028 fi 32029 32030 else 32031 # We're on a unix platform. Hooray! :) 32032 # First separate the path from the arguments. This will split at the first 32033 # space. 32034 complete="$CXXCPP" 32035 path="${complete%% *}" 32036 tmp="$complete EOL" 32037 arguments="${tmp#* }" 32038 32039 # Cannot rely on the command "which" here since it doesn't always work. 32040 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32041 if test -z "$is_absolute_path"; then 32042 # Path to executable is not absolute. Find it. 32043 IFS_save="$IFS" 32044 IFS=: 32045 for p in $PATH; do 32046 if test -f "$p/$path" && test -x "$p/$path"; then 32047 new_path="$p/$path" 32048 break 32049 fi 32050 done 32051 IFS="$IFS_save" 32052 else 32053 # This is an absolute path, we can use it without further modifications. 32054 new_path="$path" 32055 fi 32056 32057 if test "x$new_path" = x; then 32058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 32059 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 32060 has_space=`$ECHO "$complete" | $GREP " "` 32061 if test "x$has_space" != x; then 32062 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32063 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32064 fi 32065 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 32066 fi 32067 fi 32068 32069 # Now join together the path and the arguments once again 32070 if test "x$arguments" != xEOL; then 32071 new_complete="$new_path ${arguments% *}" 32072 else 32073 new_complete="$new_path" 32074 fi 32075 32076 if test "x$complete" != "x$new_complete"; then 32077 CXXCPP="$new_complete" 32078 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 32079 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 32080 fi 32081 fi 32082 32083 32084 # 32085 # Setup the linker (LD) 32086 # 32087 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32088 # In the Microsoft toolchain we have a separate LD command "link". 32089 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 32090 # a cygwin program for something completely different. 32091 # Extract the first word of "link", so it can be a program name with args. 32092 set dummy link; ac_word=$2 32093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32094 $as_echo_n "checking for $ac_word... " >&6; } 32095 if ${ac_cv_prog_LD+:} false; then : 32096 $as_echo_n "(cached) " >&6 32097 else 32098 if test -n "$LD"; then 32099 ac_cv_prog_LD="$LD" # Let the user override the test. 32100 else 32101 ac_prog_rejected=no 32102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32103 for as_dir in $PATH 32104 do 32105 IFS=$as_save_IFS 32106 test -z "$as_dir" && as_dir=. 32107 for ac_exec_ext in '' $ac_executable_extensions; do 32108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32109 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 32110 ac_prog_rejected=yes 32111 continue 32112 fi 32113 ac_cv_prog_LD="link" 32114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32115 break 2 32116 fi 32117 done 32118 done 32119 IFS=$as_save_IFS 32120 32121 if test $ac_prog_rejected = yes; then 32122 # We found a bogon in the path, so make sure we never use it. 32123 set dummy $ac_cv_prog_LD 32124 shift 32125 if test $# != 0; then 32126 # We chose a different compiler from the bogus one. 32127 # However, it has the same basename, so the bogon will be chosen 32128 # first if we set LD to just the basename; use the full file name. 32129 shift 32130 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 32131 fi 32132 fi 32133 fi 32134 fi 32135 LD=$ac_cv_prog_LD 32136 if test -n "$LD"; then 32137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 32138 $as_echo "$LD" >&6; } 32139 else 32140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32141 $as_echo "no" >&6; } 32142 fi 32143 32144 32145 32146 # Only process if variable expands to non-empty 32147 32148 if test "x$LD" != x; then 32149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32150 32151 # First separate the path from the arguments. This will split at the first 32152 # space. 32153 complete="$LD" 32154 path="${complete%% *}" 32155 tmp="$complete EOL" 32156 arguments="${tmp#* }" 32157 32158 # Input might be given as Windows format, start by converting to 32159 # unix format. 32160 new_path=`$CYGPATH -u "$path"` 32161 32162 # Now try to locate executable using which 32163 new_path=`$WHICH "$new_path" 2> /dev/null` 32164 # bat and cmd files are not always considered executable in cygwin causing which 32165 # to not find them 32166 if test "x$new_path" = x \ 32167 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32168 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32169 new_path=`$CYGPATH -u "$path"` 32170 fi 32171 if test "x$new_path" = x; then 32172 # Oops. Which didn't find the executable. 32173 # The splitting of arguments from the executable at a space might have been incorrect, 32174 # since paths with space are more likely in Windows. Give it another try with the whole 32175 # argument. 32176 path="$complete" 32177 arguments="EOL" 32178 new_path=`$CYGPATH -u "$path"` 32179 new_path=`$WHICH "$new_path" 2> /dev/null` 32180 # bat and cmd files are not always considered executable in cygwin causing which 32181 # to not find them 32182 if test "x$new_path" = x \ 32183 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32184 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32185 new_path=`$CYGPATH -u "$path"` 32186 fi 32187 if test "x$new_path" = x; then 32188 # It's still not found. Now this is an unrecoverable error. 32189 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32190 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32191 has_space=`$ECHO "$complete" | $GREP " "` 32192 if test "x$has_space" != x; then 32193 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32194 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32195 fi 32196 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32197 fi 32198 fi 32199 32200 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32201 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32202 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32203 # "foo.exe" is OK but "foo" is an error. 32204 # 32205 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32206 # It is also a way to make sure we got the proper file name for the real test later on. 32207 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32208 if test "x$test_shortpath" = x; then 32209 # Short path failed, file does not exist as specified. 32210 # Try adding .exe or .cmd 32211 if test -f "${new_path}.exe"; then 32212 input_to_shortpath="${new_path}.exe" 32213 elif test -f "${new_path}.cmd"; then 32214 input_to_shortpath="${new_path}.cmd" 32215 else 32216 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 32217 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 32218 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32219 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32220 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32221 fi 32222 else 32223 input_to_shortpath="$new_path" 32224 fi 32225 32226 # Call helper function which possibly converts this using DOS-style short mode. 32227 # If so, the updated path is stored in $new_path. 32228 new_path="$input_to_shortpath" 32229 32230 input_path="$input_to_shortpath" 32231 # Check if we need to convert this using DOS-style short mode. If the path 32232 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32233 # take no chances and rewrite it. 32234 # Note: m4 eats our [], so we need to use [ and ] instead. 32235 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32236 if test "x$has_forbidden_chars" != x; then 32237 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32238 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32239 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32240 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32241 # Going to short mode and back again did indeed matter. Since short mode is 32242 # case insensitive, let's make it lowercase to improve readability. 32243 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32244 # Now convert it back to Unix-stile (cygpath) 32245 input_path=`$CYGPATH -u "$shortmode_path"` 32246 new_path="$input_path" 32247 fi 32248 fi 32249 32250 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32251 if test "x$test_cygdrive_prefix" = x; then 32252 # As a simple fix, exclude /usr/bin since it's not a real path. 32253 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32254 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32255 # a path prefixed by /cygdrive for fixpath to work. 32256 new_path="$CYGWIN_ROOT_PATH$input_path" 32257 fi 32258 fi 32259 32260 # remove trailing .exe if any 32261 new_path="${new_path/%.exe/}" 32262 32263 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32264 32265 # First separate the path from the arguments. This will split at the first 32266 # space. 32267 complete="$LD" 32268 path="${complete%% *}" 32269 tmp="$complete EOL" 32270 arguments="${tmp#* }" 32271 32272 # Input might be given as Windows format, start by converting to 32273 # unix format. 32274 new_path="$path" 32275 32276 windows_path="$new_path" 32277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32278 unix_path=`$CYGPATH -u "$windows_path"` 32279 new_path="$unix_path" 32280 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32281 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32282 new_path="$unix_path" 32283 fi 32284 32285 32286 # Now try to locate executable using which 32287 new_path=`$WHICH "$new_path" 2> /dev/null` 32288 32289 if test "x$new_path" = x; then 32290 # Oops. Which didn't find the executable. 32291 # The splitting of arguments from the executable at a space might have been incorrect, 32292 # since paths with space are more likely in Windows. Give it another try with the whole 32293 # argument. 32294 path="$complete" 32295 arguments="EOL" 32296 new_path="$path" 32297 32298 windows_path="$new_path" 32299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32300 unix_path=`$CYGPATH -u "$windows_path"` 32301 new_path="$unix_path" 32302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32303 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32304 new_path="$unix_path" 32305 fi 32306 32307 32308 new_path=`$WHICH "$new_path" 2> /dev/null` 32309 # bat and cmd files are not always considered executable in MSYS causing which 32310 # to not find them 32311 if test "x$new_path" = x \ 32312 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32313 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32314 new_path="$path" 32315 32316 windows_path="$new_path" 32317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32318 unix_path=`$CYGPATH -u "$windows_path"` 32319 new_path="$unix_path" 32320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32321 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32322 new_path="$unix_path" 32323 fi 32324 32325 fi 32326 32327 if test "x$new_path" = x; then 32328 # It's still not found. Now this is an unrecoverable error. 32329 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32330 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32331 has_space=`$ECHO "$complete" | $GREP " "` 32332 if test "x$has_space" != x; then 32333 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32334 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32335 fi 32336 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32337 fi 32338 fi 32339 32340 # Now new_path has a complete unix path to the binary 32341 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32342 # Keep paths in /bin as-is, but remove trailing .exe if any 32343 new_path="${new_path/%.exe/}" 32344 # Do not save /bin paths to all_fixpath_prefixes! 32345 else 32346 # Not in mixed or Windows style, start by that. 32347 new_path=`cmd //c echo $new_path` 32348 32349 input_path="$new_path" 32350 # Check if we need to convert this using DOS-style short mode. If the path 32351 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32352 # take no chances and rewrite it. 32353 # Note: m4 eats our [], so we need to use [ and ] instead. 32354 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32355 if test "x$has_forbidden_chars" != x; then 32356 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32357 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32358 fi 32359 32360 # Output is in $new_path 32361 32362 windows_path="$new_path" 32363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32364 unix_path=`$CYGPATH -u "$windows_path"` 32365 new_path="$unix_path" 32366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32368 new_path="$unix_path" 32369 fi 32370 32371 # remove trailing .exe if any 32372 new_path="${new_path/%.exe/}" 32373 32374 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32375 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32376 fi 32377 32378 else 32379 # We're on a unix platform. Hooray! :) 32380 # First separate the path from the arguments. This will split at the first 32381 # space. 32382 complete="$LD" 32383 path="${complete%% *}" 32384 tmp="$complete EOL" 32385 arguments="${tmp#* }" 32386 32387 # Cannot rely on the command "which" here since it doesn't always work. 32388 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32389 if test -z "$is_absolute_path"; then 32390 # Path to executable is not absolute. Find it. 32391 IFS_save="$IFS" 32392 IFS=: 32393 for p in $PATH; do 32394 if test -f "$p/$path" && test -x "$p/$path"; then 32395 new_path="$p/$path" 32396 break 32397 fi 32398 done 32399 IFS="$IFS_save" 32400 else 32401 # This is an absolute path, we can use it without further modifications. 32402 new_path="$path" 32403 fi 32404 32405 if test "x$new_path" = x; then 32406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32407 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32408 has_space=`$ECHO "$complete" | $GREP " "` 32409 if test "x$has_space" != x; then 32410 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32411 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32412 fi 32413 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32414 fi 32415 fi 32416 32417 # Now join together the path and the arguments once again 32418 if test "x$arguments" != xEOL; then 32419 new_complete="$new_path ${arguments% *}" 32420 else 32421 new_complete="$new_path" 32422 fi 32423 32424 if test "x$complete" != "x$new_complete"; then 32425 LD="$new_complete" 32426 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 32427 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 32428 fi 32429 fi 32430 32431 # Verify that we indeed succeeded with this trick. 32432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 32433 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 32434 "$LD" --version > /dev/null 32435 if test $? -eq 0 ; then 32436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32437 $as_echo "no" >&6; } 32438 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 32439 else 32440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32441 $as_echo "yes" >&6; } 32442 fi 32443 LDCXX="$LD" 32444 else 32445 # All other toolchains use the compiler to link. 32446 LD="$CC" 32447 LDCXX="$CXX" 32448 fi 32449 32450 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 32451 32452 32453 # 32454 # Setup the assembler (AS) 32455 # 32456 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32457 # FIXME: should this really be solaris, or solstudio? 32458 32459 32460 # Publish this variable in the help. 32461 32462 32463 if test "x$AS" = x; then 32464 # The variable is not set by user, try to locate tool using the code snippet 32465 for ac_prog in as 32466 do 32467 # Extract the first word of "$ac_prog", so it can be a program name with args. 32468 set dummy $ac_prog; ac_word=$2 32469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32470 $as_echo_n "checking for $ac_word... " >&6; } 32471 if ${ac_cv_path_AS+:} false; then : 32472 $as_echo_n "(cached) " >&6 32473 else 32474 case $AS in 32475 [\\/]* | ?:[\\/]*) 32476 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32477 ;; 32478 *) 32479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32480 for as_dir in $PATH 32481 do 32482 IFS=$as_save_IFS 32483 test -z "$as_dir" && as_dir=. 32484 for ac_exec_ext in '' $ac_executable_extensions; do 32485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32486 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32488 break 2 32489 fi 32490 done 32491 done 32492 IFS=$as_save_IFS 32493 32494 ;; 32495 esac 32496 fi 32497 AS=$ac_cv_path_AS 32498 if test -n "$AS"; then 32499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32500 $as_echo "$AS" >&6; } 32501 else 32502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32503 $as_echo "no" >&6; } 32504 fi 32505 32506 32507 test -n "$AS" && break 32508 done 32509 32510 else 32511 # The variable is set, but is it from the command line or the environment? 32512 32513 # Try to remove the string !AS! from our list. 32514 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 32515 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32516 # If it failed, the variable was not from the command line. Ignore it, 32517 # but warn the user (except for BASH, which is always set by the calling BASH). 32518 if test "xAS" != xBASH; then 32519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 32520 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 32521 fi 32522 # Try to locate tool using the code snippet 32523 for ac_prog in as 32524 do 32525 # Extract the first word of "$ac_prog", so it can be a program name with args. 32526 set dummy $ac_prog; ac_word=$2 32527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32528 $as_echo_n "checking for $ac_word... " >&6; } 32529 if ${ac_cv_path_AS+:} false; then : 32530 $as_echo_n "(cached) " >&6 32531 else 32532 case $AS in 32533 [\\/]* | ?:[\\/]*) 32534 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32535 ;; 32536 *) 32537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32538 for as_dir in $PATH 32539 do 32540 IFS=$as_save_IFS 32541 test -z "$as_dir" && as_dir=. 32542 for ac_exec_ext in '' $ac_executable_extensions; do 32543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32544 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32546 break 2 32547 fi 32548 done 32549 done 32550 IFS=$as_save_IFS 32551 32552 ;; 32553 esac 32554 fi 32555 AS=$ac_cv_path_AS 32556 if test -n "$AS"; then 32557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32558 $as_echo "$AS" >&6; } 32559 else 32560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32561 $as_echo "no" >&6; } 32562 fi 32563 32564 32565 test -n "$AS" && break 32566 done 32567 32568 else 32569 # If it succeeded, then it was overridden by the user. We will use it 32570 # for the tool. 32571 32572 # First remove it from the list of overridden variables, so we can test 32573 # for unknown variables in the end. 32574 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32575 32576 # Check if the provided tool contains a complete path. 32577 tool_specified="$AS" 32578 tool_basename="${tool_specified##*/}" 32579 if test "x$tool_basename" = "x$tool_specified"; then 32580 # A command without a complete path is provided, search $PATH. 32581 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 32582 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 32583 # Extract the first word of "$tool_basename", so it can be a program name with args. 32584 set dummy $tool_basename; ac_word=$2 32585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32586 $as_echo_n "checking for $ac_word... " >&6; } 32587 if ${ac_cv_path_AS+:} false; then : 32588 $as_echo_n "(cached) " >&6 32589 else 32590 case $AS in 32591 [\\/]* | ?:[\\/]*) 32592 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32593 ;; 32594 *) 32595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32596 for as_dir in $PATH 32597 do 32598 IFS=$as_save_IFS 32599 test -z "$as_dir" && as_dir=. 32600 for ac_exec_ext in '' $ac_executable_extensions; do 32601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32602 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32604 break 2 32605 fi 32606 done 32607 done 32608 IFS=$as_save_IFS 32609 32610 ;; 32611 esac 32612 fi 32613 AS=$ac_cv_path_AS 32614 if test -n "$AS"; then 32615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32616 $as_echo "$AS" >&6; } 32617 else 32618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32619 $as_echo "no" >&6; } 32620 fi 32621 32622 32623 if test "x$AS" = x; then 32624 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32625 fi 32626 else 32627 # Otherwise we believe it is a complete path. Use it as it is. 32628 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 32629 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 32630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 32631 $as_echo_n "checking for AS... " >&6; } 32632 if test ! -x "$tool_specified"; then 32633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32634 $as_echo "not found" >&6; } 32635 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 32636 fi 32637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32638 $as_echo "$tool_specified" >&6; } 32639 fi 32640 fi 32641 fi 32642 32643 32644 32645 # Only process if variable expands to non-empty 32646 32647 if test "x$AS" != x; then 32648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32649 32650 # First separate the path from the arguments. This will split at the first 32651 # space. 32652 complete="$AS" 32653 path="${complete%% *}" 32654 tmp="$complete EOL" 32655 arguments="${tmp#* }" 32656 32657 # Input might be given as Windows format, start by converting to 32658 # unix format. 32659 new_path=`$CYGPATH -u "$path"` 32660 32661 # Now try to locate executable using which 32662 new_path=`$WHICH "$new_path" 2> /dev/null` 32663 # bat and cmd files are not always considered executable in cygwin causing which 32664 # to not find them 32665 if test "x$new_path" = x \ 32666 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32667 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32668 new_path=`$CYGPATH -u "$path"` 32669 fi 32670 if test "x$new_path" = x; then 32671 # Oops. Which didn't find the executable. 32672 # The splitting of arguments from the executable at a space might have been incorrect, 32673 # since paths with space are more likely in Windows. Give it another try with the whole 32674 # argument. 32675 path="$complete" 32676 arguments="EOL" 32677 new_path=`$CYGPATH -u "$path"` 32678 new_path=`$WHICH "$new_path" 2> /dev/null` 32679 # bat and cmd files are not always considered executable in cygwin causing which 32680 # to not find them 32681 if test "x$new_path" = x \ 32682 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32683 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32684 new_path=`$CYGPATH -u "$path"` 32685 fi 32686 if test "x$new_path" = x; then 32687 # It's still not found. Now this is an unrecoverable error. 32688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32689 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32690 has_space=`$ECHO "$complete" | $GREP " "` 32691 if test "x$has_space" != x; then 32692 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32693 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32694 fi 32695 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32696 fi 32697 fi 32698 32699 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32700 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32701 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32702 # "foo.exe" is OK but "foo" is an error. 32703 # 32704 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32705 # It is also a way to make sure we got the proper file name for the real test later on. 32706 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32707 if test "x$test_shortpath" = x; then 32708 # Short path failed, file does not exist as specified. 32709 # Try adding .exe or .cmd 32710 if test -f "${new_path}.exe"; then 32711 input_to_shortpath="${new_path}.exe" 32712 elif test -f "${new_path}.cmd"; then 32713 input_to_shortpath="${new_path}.cmd" 32714 else 32715 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 32716 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 32717 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32718 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32719 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32720 fi 32721 else 32722 input_to_shortpath="$new_path" 32723 fi 32724 32725 # Call helper function which possibly converts this using DOS-style short mode. 32726 # If so, the updated path is stored in $new_path. 32727 new_path="$input_to_shortpath" 32728 32729 input_path="$input_to_shortpath" 32730 # Check if we need to convert this using DOS-style short mode. If the path 32731 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32732 # take no chances and rewrite it. 32733 # Note: m4 eats our [], so we need to use [ and ] instead. 32734 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32735 if test "x$has_forbidden_chars" != x; then 32736 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32737 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32738 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32739 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32740 # Going to short mode and back again did indeed matter. Since short mode is 32741 # case insensitive, let's make it lowercase to improve readability. 32742 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32743 # Now convert it back to Unix-stile (cygpath) 32744 input_path=`$CYGPATH -u "$shortmode_path"` 32745 new_path="$input_path" 32746 fi 32747 fi 32748 32749 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32750 if test "x$test_cygdrive_prefix" = x; then 32751 # As a simple fix, exclude /usr/bin since it's not a real path. 32752 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32753 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32754 # a path prefixed by /cygdrive for fixpath to work. 32755 new_path="$CYGWIN_ROOT_PATH$input_path" 32756 fi 32757 fi 32758 32759 # remove trailing .exe if any 32760 new_path="${new_path/%.exe/}" 32761 32762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32763 32764 # First separate the path from the arguments. This will split at the first 32765 # space. 32766 complete="$AS" 32767 path="${complete%% *}" 32768 tmp="$complete EOL" 32769 arguments="${tmp#* }" 32770 32771 # Input might be given as Windows format, start by converting to 32772 # unix format. 32773 new_path="$path" 32774 32775 windows_path="$new_path" 32776 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32777 unix_path=`$CYGPATH -u "$windows_path"` 32778 new_path="$unix_path" 32779 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32780 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32781 new_path="$unix_path" 32782 fi 32783 32784 32785 # Now try to locate executable using which 32786 new_path=`$WHICH "$new_path" 2> /dev/null` 32787 32788 if test "x$new_path" = x; then 32789 # Oops. Which didn't find the executable. 32790 # The splitting of arguments from the executable at a space might have been incorrect, 32791 # since paths with space are more likely in Windows. Give it another try with the whole 32792 # argument. 32793 path="$complete" 32794 arguments="EOL" 32795 new_path="$path" 32796 32797 windows_path="$new_path" 32798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32799 unix_path=`$CYGPATH -u "$windows_path"` 32800 new_path="$unix_path" 32801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32803 new_path="$unix_path" 32804 fi 32805 32806 32807 new_path=`$WHICH "$new_path" 2> /dev/null` 32808 # bat and cmd files are not always considered executable in MSYS causing which 32809 # to not find them 32810 if test "x$new_path" = x \ 32811 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32812 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32813 new_path="$path" 32814 32815 windows_path="$new_path" 32816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32817 unix_path=`$CYGPATH -u "$windows_path"` 32818 new_path="$unix_path" 32819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32820 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32821 new_path="$unix_path" 32822 fi 32823 32824 fi 32825 32826 if test "x$new_path" = x; then 32827 # It's still not found. Now this is an unrecoverable error. 32828 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32829 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32830 has_space=`$ECHO "$complete" | $GREP " "` 32831 if test "x$has_space" != x; then 32832 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32833 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32834 fi 32835 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32836 fi 32837 fi 32838 32839 # Now new_path has a complete unix path to the binary 32840 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32841 # Keep paths in /bin as-is, but remove trailing .exe if any 32842 new_path="${new_path/%.exe/}" 32843 # Do not save /bin paths to all_fixpath_prefixes! 32844 else 32845 # Not in mixed or Windows style, start by that. 32846 new_path=`cmd //c echo $new_path` 32847 32848 input_path="$new_path" 32849 # Check if we need to convert this using DOS-style short mode. If the path 32850 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32851 # take no chances and rewrite it. 32852 # Note: m4 eats our [], so we need to use [ and ] instead. 32853 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32854 if test "x$has_forbidden_chars" != x; then 32855 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32856 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32857 fi 32858 32859 # Output is in $new_path 32860 32861 windows_path="$new_path" 32862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32863 unix_path=`$CYGPATH -u "$windows_path"` 32864 new_path="$unix_path" 32865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32866 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32867 new_path="$unix_path" 32868 fi 32869 32870 # remove trailing .exe if any 32871 new_path="${new_path/%.exe/}" 32872 32873 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32874 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32875 fi 32876 32877 else 32878 # We're on a unix platform. Hooray! :) 32879 # First separate the path from the arguments. This will split at the first 32880 # space. 32881 complete="$AS" 32882 path="${complete%% *}" 32883 tmp="$complete EOL" 32884 arguments="${tmp#* }" 32885 32886 # Cannot rely on the command "which" here since it doesn't always work. 32887 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32888 if test -z "$is_absolute_path"; then 32889 # Path to executable is not absolute. Find it. 32890 IFS_save="$IFS" 32891 IFS=: 32892 for p in $PATH; do 32893 if test -f "$p/$path" && test -x "$p/$path"; then 32894 new_path="$p/$path" 32895 break 32896 fi 32897 done 32898 IFS="$IFS_save" 32899 else 32900 # This is an absolute path, we can use it without further modifications. 32901 new_path="$path" 32902 fi 32903 32904 if test "x$new_path" = x; then 32905 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32906 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32907 has_space=`$ECHO "$complete" | $GREP " "` 32908 if test "x$has_space" != x; then 32909 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32910 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32911 fi 32912 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32913 fi 32914 fi 32915 32916 # Now join together the path and the arguments once again 32917 if test "x$arguments" != xEOL; then 32918 new_complete="$new_path ${arguments% *}" 32919 else 32920 new_complete="$new_path" 32921 fi 32922 32923 if test "x$complete" != "x$new_complete"; then 32924 AS="$new_complete" 32925 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 32926 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 32927 fi 32928 fi 32929 32930 else 32931 # FIXME: is this correct for microsoft? 32932 AS="$CC -c" 32933 fi 32934 32935 32936 # 32937 # Setup the archiver (AR) 32938 # 32939 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32940 # The corresponding ar tool is lib.exe (used to create static libraries) 32941 # Extract the first word of "lib", so it can be a program name with args. 32942 set dummy lib; ac_word=$2 32943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32944 $as_echo_n "checking for $ac_word... " >&6; } 32945 if ${ac_cv_prog_AR+:} false; then : 32946 $as_echo_n "(cached) " >&6 32947 else 32948 if test -n "$AR"; then 32949 ac_cv_prog_AR="$AR" # Let the user override the test. 32950 else 32951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32952 for as_dir in $PATH 32953 do 32954 IFS=$as_save_IFS 32955 test -z "$as_dir" && as_dir=. 32956 for ac_exec_ext in '' $ac_executable_extensions; do 32957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32958 ac_cv_prog_AR="lib" 32959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32960 break 2 32961 fi 32962 done 32963 done 32964 IFS=$as_save_IFS 32965 32966 fi 32967 fi 32968 AR=$ac_cv_prog_AR 32969 if test -n "$AR"; then 32970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32971 $as_echo "$AR" >&6; } 32972 else 32973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32974 $as_echo "no" >&6; } 32975 fi 32976 32977 32978 else 32979 32980 32981 # Publish this variable in the help. 32982 32983 32984 if test "x$AR" = x; then 32985 # The variable is not set by user, try to locate tool using the code snippet 32986 if test -n "$ac_tool_prefix"; then 32987 for ac_prog in ar 32988 do 32989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32992 $as_echo_n "checking for $ac_word... " >&6; } 32993 if ${ac_cv_prog_AR+:} false; then : 32994 $as_echo_n "(cached) " >&6 32995 else 32996 if test -n "$AR"; then 32997 ac_cv_prog_AR="$AR" # Let the user override the test. 32998 else 32999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33000 for as_dir in $PATH 33001 do 33002 IFS=$as_save_IFS 33003 test -z "$as_dir" && as_dir=. 33004 for ac_exec_ext in '' $ac_executable_extensions; do 33005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33006 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 33007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33008 break 2 33009 fi 33010 done 33011 done 33012 IFS=$as_save_IFS 33013 33014 fi 33015 fi 33016 AR=$ac_cv_prog_AR 33017 if test -n "$AR"; then 33018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33019 $as_echo "$AR" >&6; } 33020 else 33021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33022 $as_echo "no" >&6; } 33023 fi 33024 33025 33026 test -n "$AR" && break 33027 done 33028 fi 33029 if test -z "$AR"; then 33030 ac_ct_AR=$AR 33031 for ac_prog in ar 33032 do 33033 # Extract the first word of "$ac_prog", so it can be a program name with args. 33034 set dummy $ac_prog; ac_word=$2 33035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33036 $as_echo_n "checking for $ac_word... " >&6; } 33037 if ${ac_cv_prog_ac_ct_AR+:} false; then : 33038 $as_echo_n "(cached) " >&6 33039 else 33040 if test -n "$ac_ct_AR"; then 33041 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 33042 else 33043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33044 for as_dir in $PATH 33045 do 33046 IFS=$as_save_IFS 33047 test -z "$as_dir" && as_dir=. 33048 for ac_exec_ext in '' $ac_executable_extensions; do 33049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33050 ac_cv_prog_ac_ct_AR="$ac_prog" 33051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33052 break 2 33053 fi 33054 done 33055 done 33056 IFS=$as_save_IFS 33057 33058 fi 33059 fi 33060 ac_ct_AR=$ac_cv_prog_ac_ct_AR 33061 if test -n "$ac_ct_AR"; then 33062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 33063 $as_echo "$ac_ct_AR" >&6; } 33064 else 33065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33066 $as_echo "no" >&6; } 33067 fi 33068 33069 33070 test -n "$ac_ct_AR" && break 33071 done 33072 33073 if test "x$ac_ct_AR" = x; then 33074 AR="" 33075 else 33076 case $cross_compiling:$ac_tool_warned in 33077 yes:) 33078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33080 ac_tool_warned=yes ;; 33081 esac 33082 AR=$ac_ct_AR 33083 fi 33084 fi 33085 33086 else 33087 # The variable is set, but is it from the command line or the environment? 33088 33089 # Try to remove the string !AR! from our list. 33090 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 33091 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33092 # If it failed, the variable was not from the command line. Ignore it, 33093 # but warn the user (except for BASH, which is always set by the calling BASH). 33094 if test "xAR" != xBASH; then 33095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 33096 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 33097 fi 33098 # Try to locate tool using the code snippet 33099 if test -n "$ac_tool_prefix"; then 33100 for ac_prog in ar 33101 do 33102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33105 $as_echo_n "checking for $ac_word... " >&6; } 33106 if ${ac_cv_prog_AR+:} false; then : 33107 $as_echo_n "(cached) " >&6 33108 else 33109 if test -n "$AR"; then 33110 ac_cv_prog_AR="$AR" # Let the user override the test. 33111 else 33112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33113 for as_dir in $PATH 33114 do 33115 IFS=$as_save_IFS 33116 test -z "$as_dir" && as_dir=. 33117 for ac_exec_ext in '' $ac_executable_extensions; do 33118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33119 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 33120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33121 break 2 33122 fi 33123 done 33124 done 33125 IFS=$as_save_IFS 33126 33127 fi 33128 fi 33129 AR=$ac_cv_prog_AR 33130 if test -n "$AR"; then 33131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33132 $as_echo "$AR" >&6; } 33133 else 33134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33135 $as_echo "no" >&6; } 33136 fi 33137 33138 33139 test -n "$AR" && break 33140 done 33141 fi 33142 if test -z "$AR"; then 33143 ac_ct_AR=$AR 33144 for ac_prog in ar 33145 do 33146 # Extract the first word of "$ac_prog", so it can be a program name with args. 33147 set dummy $ac_prog; ac_word=$2 33148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33149 $as_echo_n "checking for $ac_word... " >&6; } 33150 if ${ac_cv_prog_ac_ct_AR+:} false; then : 33151 $as_echo_n "(cached) " >&6 33152 else 33153 if test -n "$ac_ct_AR"; then 33154 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 33155 else 33156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33157 for as_dir in $PATH 33158 do 33159 IFS=$as_save_IFS 33160 test -z "$as_dir" && as_dir=. 33161 for ac_exec_ext in '' $ac_executable_extensions; do 33162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33163 ac_cv_prog_ac_ct_AR="$ac_prog" 33164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33165 break 2 33166 fi 33167 done 33168 done 33169 IFS=$as_save_IFS 33170 33171 fi 33172 fi 33173 ac_ct_AR=$ac_cv_prog_ac_ct_AR 33174 if test -n "$ac_ct_AR"; then 33175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 33176 $as_echo "$ac_ct_AR" >&6; } 33177 else 33178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33179 $as_echo "no" >&6; } 33180 fi 33181 33182 33183 test -n "$ac_ct_AR" && break 33184 done 33185 33186 if test "x$ac_ct_AR" = x; then 33187 AR="" 33188 else 33189 case $cross_compiling:$ac_tool_warned in 33190 yes:) 33191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33193 ac_tool_warned=yes ;; 33194 esac 33195 AR=$ac_ct_AR 33196 fi 33197 fi 33198 33199 else 33200 # If it succeeded, then it was overridden by the user. We will use it 33201 # for the tool. 33202 33203 # First remove it from the list of overridden variables, so we can test 33204 # for unknown variables in the end. 33205 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33206 33207 # Check if the provided tool contains a complete path. 33208 tool_specified="$AR" 33209 tool_basename="${tool_specified##*/}" 33210 if test "x$tool_basename" = "x$tool_specified"; then 33211 # A command without a complete path is provided, search $PATH. 33212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 33213 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 33214 # Extract the first word of "$tool_basename", so it can be a program name with args. 33215 set dummy $tool_basename; ac_word=$2 33216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33217 $as_echo_n "checking for $ac_word... " >&6; } 33218 if ${ac_cv_path_AR+:} false; then : 33219 $as_echo_n "(cached) " >&6 33220 else 33221 case $AR in 33222 [\\/]* | ?:[\\/]*) 33223 ac_cv_path_AR="$AR" # Let the user override the test with a path. 33224 ;; 33225 *) 33226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33227 for as_dir in $PATH 33228 do 33229 IFS=$as_save_IFS 33230 test -z "$as_dir" && as_dir=. 33231 for ac_exec_ext in '' $ac_executable_extensions; do 33232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33233 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 33234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33235 break 2 33236 fi 33237 done 33238 done 33239 IFS=$as_save_IFS 33240 33241 ;; 33242 esac 33243 fi 33244 AR=$ac_cv_path_AR 33245 if test -n "$AR"; then 33246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33247 $as_echo "$AR" >&6; } 33248 else 33249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33250 $as_echo "no" >&6; } 33251 fi 33252 33253 33254 if test "x$AR" = x; then 33255 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33256 fi 33257 else 33258 # Otherwise we believe it is a complete path. Use it as it is. 33259 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 33260 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 33261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 33262 $as_echo_n "checking for AR... " >&6; } 33263 if test ! -x "$tool_specified"; then 33264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33265 $as_echo "not found" >&6; } 33266 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 33267 fi 33268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33269 $as_echo "$tool_specified" >&6; } 33270 fi 33271 fi 33272 fi 33273 33274 33275 fi 33276 33277 # Only process if variable expands to non-empty 33278 33279 if test "x$AR" != x; then 33280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33281 33282 # First separate the path from the arguments. This will split at the first 33283 # space. 33284 complete="$AR" 33285 path="${complete%% *}" 33286 tmp="$complete EOL" 33287 arguments="${tmp#* }" 33288 33289 # Input might be given as Windows format, start by converting to 33290 # unix format. 33291 new_path=`$CYGPATH -u "$path"` 33292 33293 # Now try to locate executable using which 33294 new_path=`$WHICH "$new_path" 2> /dev/null` 33295 # bat and cmd files are not always considered executable in cygwin causing which 33296 # to not find them 33297 if test "x$new_path" = x \ 33298 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33299 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33300 new_path=`$CYGPATH -u "$path"` 33301 fi 33302 if test "x$new_path" = x; then 33303 # Oops. Which didn't find the executable. 33304 # The splitting of arguments from the executable at a space might have been incorrect, 33305 # since paths with space are more likely in Windows. Give it another try with the whole 33306 # argument. 33307 path="$complete" 33308 arguments="EOL" 33309 new_path=`$CYGPATH -u "$path"` 33310 new_path=`$WHICH "$new_path" 2> /dev/null` 33311 # bat and cmd files are not always considered executable in cygwin causing which 33312 # to not find them 33313 if test "x$new_path" = x \ 33314 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33315 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33316 new_path=`$CYGPATH -u "$path"` 33317 fi 33318 if test "x$new_path" = x; then 33319 # It's still not found. Now this is an unrecoverable error. 33320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33321 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33322 has_space=`$ECHO "$complete" | $GREP " "` 33323 if test "x$has_space" != x; then 33324 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33325 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33326 fi 33327 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33328 fi 33329 fi 33330 33331 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33332 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33333 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33334 # "foo.exe" is OK but "foo" is an error. 33335 # 33336 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33337 # It is also a way to make sure we got the proper file name for the real test later on. 33338 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33339 if test "x$test_shortpath" = x; then 33340 # Short path failed, file does not exist as specified. 33341 # Try adding .exe or .cmd 33342 if test -f "${new_path}.exe"; then 33343 input_to_shortpath="${new_path}.exe" 33344 elif test -f "${new_path}.cmd"; then 33345 input_to_shortpath="${new_path}.cmd" 33346 else 33347 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 33348 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 33349 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33350 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33351 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33352 fi 33353 else 33354 input_to_shortpath="$new_path" 33355 fi 33356 33357 # Call helper function which possibly converts this using DOS-style short mode. 33358 # If so, the updated path is stored in $new_path. 33359 new_path="$input_to_shortpath" 33360 33361 input_path="$input_to_shortpath" 33362 # Check if we need to convert this using DOS-style short mode. If the path 33363 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33364 # take no chances and rewrite it. 33365 # Note: m4 eats our [], so we need to use [ and ] instead. 33366 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33367 if test "x$has_forbidden_chars" != x; then 33368 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33369 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33370 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33371 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33372 # Going to short mode and back again did indeed matter. Since short mode is 33373 # case insensitive, let's make it lowercase to improve readability. 33374 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33375 # Now convert it back to Unix-stile (cygpath) 33376 input_path=`$CYGPATH -u "$shortmode_path"` 33377 new_path="$input_path" 33378 fi 33379 fi 33380 33381 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33382 if test "x$test_cygdrive_prefix" = x; then 33383 # As a simple fix, exclude /usr/bin since it's not a real path. 33384 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33385 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33386 # a path prefixed by /cygdrive for fixpath to work. 33387 new_path="$CYGWIN_ROOT_PATH$input_path" 33388 fi 33389 fi 33390 33391 # remove trailing .exe if any 33392 new_path="${new_path/%.exe/}" 33393 33394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33395 33396 # First separate the path from the arguments. This will split at the first 33397 # space. 33398 complete="$AR" 33399 path="${complete%% *}" 33400 tmp="$complete EOL" 33401 arguments="${tmp#* }" 33402 33403 # Input might be given as Windows format, start by converting to 33404 # unix format. 33405 new_path="$path" 33406 33407 windows_path="$new_path" 33408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33409 unix_path=`$CYGPATH -u "$windows_path"` 33410 new_path="$unix_path" 33411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33413 new_path="$unix_path" 33414 fi 33415 33416 33417 # Now try to locate executable using which 33418 new_path=`$WHICH "$new_path" 2> /dev/null` 33419 33420 if test "x$new_path" = x; then 33421 # Oops. Which didn't find the executable. 33422 # The splitting of arguments from the executable at a space might have been incorrect, 33423 # since paths with space are more likely in Windows. Give it another try with the whole 33424 # argument. 33425 path="$complete" 33426 arguments="EOL" 33427 new_path="$path" 33428 33429 windows_path="$new_path" 33430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33431 unix_path=`$CYGPATH -u "$windows_path"` 33432 new_path="$unix_path" 33433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33434 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33435 new_path="$unix_path" 33436 fi 33437 33438 33439 new_path=`$WHICH "$new_path" 2> /dev/null` 33440 # bat and cmd files are not always considered executable in MSYS causing which 33441 # to not find them 33442 if test "x$new_path" = x \ 33443 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33444 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33445 new_path="$path" 33446 33447 windows_path="$new_path" 33448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33449 unix_path=`$CYGPATH -u "$windows_path"` 33450 new_path="$unix_path" 33451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33453 new_path="$unix_path" 33454 fi 33455 33456 fi 33457 33458 if test "x$new_path" = x; then 33459 # It's still not found. Now this is an unrecoverable error. 33460 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33461 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33462 has_space=`$ECHO "$complete" | $GREP " "` 33463 if test "x$has_space" != x; then 33464 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33465 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33466 fi 33467 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33468 fi 33469 fi 33470 33471 # Now new_path has a complete unix path to the binary 33472 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33473 # Keep paths in /bin as-is, but remove trailing .exe if any 33474 new_path="${new_path/%.exe/}" 33475 # Do not save /bin paths to all_fixpath_prefixes! 33476 else 33477 # Not in mixed or Windows style, start by that. 33478 new_path=`cmd //c echo $new_path` 33479 33480 input_path="$new_path" 33481 # Check if we need to convert this using DOS-style short mode. If the path 33482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33483 # take no chances and rewrite it. 33484 # Note: m4 eats our [], so we need to use [ and ] instead. 33485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33486 if test "x$has_forbidden_chars" != x; then 33487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33488 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33489 fi 33490 33491 # Output is in $new_path 33492 33493 windows_path="$new_path" 33494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33495 unix_path=`$CYGPATH -u "$windows_path"` 33496 new_path="$unix_path" 33497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33499 new_path="$unix_path" 33500 fi 33501 33502 # remove trailing .exe if any 33503 new_path="${new_path/%.exe/}" 33504 33505 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33506 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33507 fi 33508 33509 else 33510 # We're on a unix platform. Hooray! :) 33511 # First separate the path from the arguments. This will split at the first 33512 # space. 33513 complete="$AR" 33514 path="${complete%% *}" 33515 tmp="$complete EOL" 33516 arguments="${tmp#* }" 33517 33518 # Cannot rely on the command "which" here since it doesn't always work. 33519 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33520 if test -z "$is_absolute_path"; then 33521 # Path to executable is not absolute. Find it. 33522 IFS_save="$IFS" 33523 IFS=: 33524 for p in $PATH; do 33525 if test -f "$p/$path" && test -x "$p/$path"; then 33526 new_path="$p/$path" 33527 break 33528 fi 33529 done 33530 IFS="$IFS_save" 33531 else 33532 # This is an absolute path, we can use it without further modifications. 33533 new_path="$path" 33534 fi 33535 33536 if test "x$new_path" = x; then 33537 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33538 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33539 has_space=`$ECHO "$complete" | $GREP " "` 33540 if test "x$has_space" != x; then 33541 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33542 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33543 fi 33544 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33545 fi 33546 fi 33547 33548 # Now join together the path and the arguments once again 33549 if test "x$arguments" != xEOL; then 33550 new_complete="$new_path ${arguments% *}" 33551 else 33552 new_complete="$new_path" 33553 fi 33554 33555 if test "x$complete" != "x$new_complete"; then 33556 AR="$new_complete" 33557 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 33558 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 33559 fi 33560 fi 33561 33562 33563 33564 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 33565 33566 33567 # Publish this variable in the help. 33568 33569 33570 if test "x$LIPO" = x; then 33571 # The variable is not set by user, try to locate tool using the code snippet 33572 for ac_prog in lipo 33573 do 33574 # Extract the first word of "$ac_prog", so it can be a program name with args. 33575 set dummy $ac_prog; ac_word=$2 33576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33577 $as_echo_n "checking for $ac_word... " >&6; } 33578 if ${ac_cv_path_LIPO+:} false; then : 33579 $as_echo_n "(cached) " >&6 33580 else 33581 case $LIPO in 33582 [\\/]* | ?:[\\/]*) 33583 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33584 ;; 33585 *) 33586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33587 for as_dir in $PATH 33588 do 33589 IFS=$as_save_IFS 33590 test -z "$as_dir" && as_dir=. 33591 for ac_exec_ext in '' $ac_executable_extensions; do 33592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33593 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33595 break 2 33596 fi 33597 done 33598 done 33599 IFS=$as_save_IFS 33600 33601 ;; 33602 esac 33603 fi 33604 LIPO=$ac_cv_path_LIPO 33605 if test -n "$LIPO"; then 33606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33607 $as_echo "$LIPO" >&6; } 33608 else 33609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33610 $as_echo "no" >&6; } 33611 fi 33612 33613 33614 test -n "$LIPO" && break 33615 done 33616 33617 else 33618 # The variable is set, but is it from the command line or the environment? 33619 33620 # Try to remove the string !LIPO! from our list. 33621 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 33622 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33623 # If it failed, the variable was not from the command line. Ignore it, 33624 # but warn the user (except for BASH, which is always set by the calling BASH). 33625 if test "xLIPO" != xBASH; then 33626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 33627 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33628 fi 33629 # Try to locate tool using the code snippet 33630 for ac_prog in lipo 33631 do 33632 # Extract the first word of "$ac_prog", so it can be a program name with args. 33633 set dummy $ac_prog; ac_word=$2 33634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33635 $as_echo_n "checking for $ac_word... " >&6; } 33636 if ${ac_cv_path_LIPO+:} false; then : 33637 $as_echo_n "(cached) " >&6 33638 else 33639 case $LIPO in 33640 [\\/]* | ?:[\\/]*) 33641 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33642 ;; 33643 *) 33644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33645 for as_dir in $PATH 33646 do 33647 IFS=$as_save_IFS 33648 test -z "$as_dir" && as_dir=. 33649 for ac_exec_ext in '' $ac_executable_extensions; do 33650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33651 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33653 break 2 33654 fi 33655 done 33656 done 33657 IFS=$as_save_IFS 33658 33659 ;; 33660 esac 33661 fi 33662 LIPO=$ac_cv_path_LIPO 33663 if test -n "$LIPO"; then 33664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33665 $as_echo "$LIPO" >&6; } 33666 else 33667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33668 $as_echo "no" >&6; } 33669 fi 33670 33671 33672 test -n "$LIPO" && break 33673 done 33674 33675 else 33676 # If it succeeded, then it was overridden by the user. We will use it 33677 # for the tool. 33678 33679 # First remove it from the list of overridden variables, so we can test 33680 # for unknown variables in the end. 33681 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33682 33683 # Check if the provided tool contains a complete path. 33684 tool_specified="$LIPO" 33685 tool_basename="${tool_specified##*/}" 33686 if test "x$tool_basename" = "x$tool_specified"; then 33687 # A command without a complete path is provided, search $PATH. 33688 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33689 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33690 # Extract the first word of "$tool_basename", so it can be a program name with args. 33691 set dummy $tool_basename; ac_word=$2 33692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33693 $as_echo_n "checking for $ac_word... " >&6; } 33694 if ${ac_cv_path_LIPO+:} false; then : 33695 $as_echo_n "(cached) " >&6 33696 else 33697 case $LIPO in 33698 [\\/]* | ?:[\\/]*) 33699 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33700 ;; 33701 *) 33702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33703 for as_dir in $PATH 33704 do 33705 IFS=$as_save_IFS 33706 test -z "$as_dir" && as_dir=. 33707 for ac_exec_ext in '' $ac_executable_extensions; do 33708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33709 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33711 break 2 33712 fi 33713 done 33714 done 33715 IFS=$as_save_IFS 33716 33717 ;; 33718 esac 33719 fi 33720 LIPO=$ac_cv_path_LIPO 33721 if test -n "$LIPO"; then 33722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33723 $as_echo "$LIPO" >&6; } 33724 else 33725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33726 $as_echo "no" >&6; } 33727 fi 33728 33729 33730 if test "x$LIPO" = x; then 33731 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33732 fi 33733 else 33734 # Otherwise we believe it is a complete path. Use it as it is. 33735 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33736 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33738 $as_echo_n "checking for LIPO... " >&6; } 33739 if test ! -x "$tool_specified"; then 33740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33741 $as_echo "not found" >&6; } 33742 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33743 fi 33744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33745 $as_echo "$tool_specified" >&6; } 33746 fi 33747 fi 33748 fi 33749 33750 33751 33752 # Only process if variable expands to non-empty 33753 33754 if test "x$LIPO" != x; then 33755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33756 33757 # First separate the path from the arguments. This will split at the first 33758 # space. 33759 complete="$LIPO" 33760 path="${complete%% *}" 33761 tmp="$complete EOL" 33762 arguments="${tmp#* }" 33763 33764 # Input might be given as Windows format, start by converting to 33765 # unix format. 33766 new_path=`$CYGPATH -u "$path"` 33767 33768 # Now try to locate executable using which 33769 new_path=`$WHICH "$new_path" 2> /dev/null` 33770 # bat and cmd files are not always considered executable in cygwin causing which 33771 # to not find them 33772 if test "x$new_path" = x \ 33773 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33774 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33775 new_path=`$CYGPATH -u "$path"` 33776 fi 33777 if test "x$new_path" = x; then 33778 # Oops. Which didn't find the executable. 33779 # The splitting of arguments from the executable at a space might have been incorrect, 33780 # since paths with space are more likely in Windows. Give it another try with the whole 33781 # argument. 33782 path="$complete" 33783 arguments="EOL" 33784 new_path=`$CYGPATH -u "$path"` 33785 new_path=`$WHICH "$new_path" 2> /dev/null` 33786 # bat and cmd files are not always considered executable in cygwin causing which 33787 # to not find them 33788 if test "x$new_path" = x \ 33789 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33790 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33791 new_path=`$CYGPATH -u "$path"` 33792 fi 33793 if test "x$new_path" = x; then 33794 # It's still not found. Now this is an unrecoverable error. 33795 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33796 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33797 has_space=`$ECHO "$complete" | $GREP " "` 33798 if test "x$has_space" != x; then 33799 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33800 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33801 fi 33802 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33803 fi 33804 fi 33805 33806 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33807 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33808 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33809 # "foo.exe" is OK but "foo" is an error. 33810 # 33811 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33812 # It is also a way to make sure we got the proper file name for the real test later on. 33813 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33814 if test "x$test_shortpath" = x; then 33815 # Short path failed, file does not exist as specified. 33816 # Try adding .exe or .cmd 33817 if test -f "${new_path}.exe"; then 33818 input_to_shortpath="${new_path}.exe" 33819 elif test -f "${new_path}.cmd"; then 33820 input_to_shortpath="${new_path}.cmd" 33821 else 33822 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33823 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33824 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33825 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33826 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33827 fi 33828 else 33829 input_to_shortpath="$new_path" 33830 fi 33831 33832 # Call helper function which possibly converts this using DOS-style short mode. 33833 # If so, the updated path is stored in $new_path. 33834 new_path="$input_to_shortpath" 33835 33836 input_path="$input_to_shortpath" 33837 # Check if we need to convert this using DOS-style short mode. If the path 33838 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33839 # take no chances and rewrite it. 33840 # Note: m4 eats our [], so we need to use [ and ] instead. 33841 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33842 if test "x$has_forbidden_chars" != x; then 33843 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33844 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33845 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33846 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33847 # Going to short mode and back again did indeed matter. Since short mode is 33848 # case insensitive, let's make it lowercase to improve readability. 33849 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33850 # Now convert it back to Unix-stile (cygpath) 33851 input_path=`$CYGPATH -u "$shortmode_path"` 33852 new_path="$input_path" 33853 fi 33854 fi 33855 33856 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33857 if test "x$test_cygdrive_prefix" = x; then 33858 # As a simple fix, exclude /usr/bin since it's not a real path. 33859 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33860 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33861 # a path prefixed by /cygdrive for fixpath to work. 33862 new_path="$CYGWIN_ROOT_PATH$input_path" 33863 fi 33864 fi 33865 33866 # remove trailing .exe if any 33867 new_path="${new_path/%.exe/}" 33868 33869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33870 33871 # First separate the path from the arguments. This will split at the first 33872 # space. 33873 complete="$LIPO" 33874 path="${complete%% *}" 33875 tmp="$complete EOL" 33876 arguments="${tmp#* }" 33877 33878 # Input might be given as Windows format, start by converting to 33879 # unix format. 33880 new_path="$path" 33881 33882 windows_path="$new_path" 33883 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33884 unix_path=`$CYGPATH -u "$windows_path"` 33885 new_path="$unix_path" 33886 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33887 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33888 new_path="$unix_path" 33889 fi 33890 33891 33892 # Now try to locate executable using which 33893 new_path=`$WHICH "$new_path" 2> /dev/null` 33894 33895 if test "x$new_path" = x; then 33896 # Oops. Which didn't find the executable. 33897 # The splitting of arguments from the executable at a space might have been incorrect, 33898 # since paths with space are more likely in Windows. Give it another try with the whole 33899 # argument. 33900 path="$complete" 33901 arguments="EOL" 33902 new_path="$path" 33903 33904 windows_path="$new_path" 33905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33906 unix_path=`$CYGPATH -u "$windows_path"` 33907 new_path="$unix_path" 33908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33910 new_path="$unix_path" 33911 fi 33912 33913 33914 new_path=`$WHICH "$new_path" 2> /dev/null` 33915 # bat and cmd files are not always considered executable in MSYS causing which 33916 # to not find them 33917 if test "x$new_path" = x \ 33918 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33919 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33920 new_path="$path" 33921 33922 windows_path="$new_path" 33923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33924 unix_path=`$CYGPATH -u "$windows_path"` 33925 new_path="$unix_path" 33926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33927 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33928 new_path="$unix_path" 33929 fi 33930 33931 fi 33932 33933 if test "x$new_path" = x; then 33934 # It's still not found. Now this is an unrecoverable error. 33935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33936 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33937 has_space=`$ECHO "$complete" | $GREP " "` 33938 if test "x$has_space" != x; then 33939 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33940 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33941 fi 33942 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33943 fi 33944 fi 33945 33946 # Now new_path has a complete unix path to the binary 33947 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33948 # Keep paths in /bin as-is, but remove trailing .exe if any 33949 new_path="${new_path/%.exe/}" 33950 # Do not save /bin paths to all_fixpath_prefixes! 33951 else 33952 # Not in mixed or Windows style, start by that. 33953 new_path=`cmd //c echo $new_path` 33954 33955 input_path="$new_path" 33956 # Check if we need to convert this using DOS-style short mode. If the path 33957 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33958 # take no chances and rewrite it. 33959 # Note: m4 eats our [], so we need to use [ and ] instead. 33960 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33961 if test "x$has_forbidden_chars" != x; then 33962 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33963 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33964 fi 33965 33966 # Output is in $new_path 33967 33968 windows_path="$new_path" 33969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33970 unix_path=`$CYGPATH -u "$windows_path"` 33971 new_path="$unix_path" 33972 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33973 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33974 new_path="$unix_path" 33975 fi 33976 33977 # remove trailing .exe if any 33978 new_path="${new_path/%.exe/}" 33979 33980 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33981 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33982 fi 33983 33984 else 33985 # We're on a unix platform. Hooray! :) 33986 # First separate the path from the arguments. This will split at the first 33987 # space. 33988 complete="$LIPO" 33989 path="${complete%% *}" 33990 tmp="$complete EOL" 33991 arguments="${tmp#* }" 33992 33993 # Cannot rely on the command "which" here since it doesn't always work. 33994 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33995 if test -z "$is_absolute_path"; then 33996 # Path to executable is not absolute. Find it. 33997 IFS_save="$IFS" 33998 IFS=: 33999 for p in $PATH; do 34000 if test -f "$p/$path" && test -x "$p/$path"; then 34001 new_path="$p/$path" 34002 break 34003 fi 34004 done 34005 IFS="$IFS_save" 34006 else 34007 # This is an absolute path, we can use it without further modifications. 34008 new_path="$path" 34009 fi 34010 34011 if test "x$new_path" = x; then 34012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34013 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34014 has_space=`$ECHO "$complete" | $GREP " "` 34015 if test "x$has_space" != x; then 34016 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34017 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34018 fi 34019 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34020 fi 34021 fi 34022 34023 # Now join together the path and the arguments once again 34024 if test "x$arguments" != xEOL; then 34025 new_complete="$new_path ${arguments% *}" 34026 else 34027 new_complete="$new_path" 34028 fi 34029 34030 if test "x$complete" != "x$new_complete"; then 34031 LIPO="$new_complete" 34032 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 34033 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 34034 fi 34035 fi 34036 34037 fi 34038 34039 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34040 # Extract the first word of "mt", so it can be a program name with args. 34041 set dummy mt; ac_word=$2 34042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34043 $as_echo_n "checking for $ac_word... " >&6; } 34044 if ${ac_cv_prog_MT+:} false; then : 34045 $as_echo_n "(cached) " >&6 34046 else 34047 if test -n "$MT"; then 34048 ac_cv_prog_MT="$MT" # Let the user override the test. 34049 else 34050 ac_prog_rejected=no 34051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34052 for as_dir in $PATH 34053 do 34054 IFS=$as_save_IFS 34055 test -z "$as_dir" && as_dir=. 34056 for ac_exec_ext in '' $ac_executable_extensions; do 34057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34058 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 34059 ac_prog_rejected=yes 34060 continue 34061 fi 34062 ac_cv_prog_MT="mt" 34063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34064 break 2 34065 fi 34066 done 34067 done 34068 IFS=$as_save_IFS 34069 34070 if test $ac_prog_rejected = yes; then 34071 # We found a bogon in the path, so make sure we never use it. 34072 set dummy $ac_cv_prog_MT 34073 shift 34074 if test $# != 0; then 34075 # We chose a different compiler from the bogus one. 34076 # However, it has the same basename, so the bogon will be chosen 34077 # first if we set MT to just the basename; use the full file name. 34078 shift 34079 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 34080 fi 34081 fi 34082 fi 34083 fi 34084 MT=$ac_cv_prog_MT 34085 if test -n "$MT"; then 34086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 34087 $as_echo "$MT" >&6; } 34088 else 34089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34090 $as_echo "no" >&6; } 34091 fi 34092 34093 34094 34095 # Only process if variable expands to non-empty 34096 34097 if test "x$MT" != x; then 34098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34099 34100 # First separate the path from the arguments. This will split at the first 34101 # space. 34102 complete="$MT" 34103 path="${complete%% *}" 34104 tmp="$complete EOL" 34105 arguments="${tmp#* }" 34106 34107 # Input might be given as Windows format, start by converting to 34108 # unix format. 34109 new_path=`$CYGPATH -u "$path"` 34110 34111 # Now try to locate executable using which 34112 new_path=`$WHICH "$new_path" 2> /dev/null` 34113 # bat and cmd files are not always considered executable in cygwin causing which 34114 # to not find them 34115 if test "x$new_path" = x \ 34116 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34117 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34118 new_path=`$CYGPATH -u "$path"` 34119 fi 34120 if test "x$new_path" = x; then 34121 # Oops. Which didn't find the executable. 34122 # The splitting of arguments from the executable at a space might have been incorrect, 34123 # since paths with space are more likely in Windows. Give it another try with the whole 34124 # argument. 34125 path="$complete" 34126 arguments="EOL" 34127 new_path=`$CYGPATH -u "$path"` 34128 new_path=`$WHICH "$new_path" 2> /dev/null` 34129 # bat and cmd files are not always considered executable in cygwin causing which 34130 # to not find them 34131 if test "x$new_path" = x \ 34132 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34133 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34134 new_path=`$CYGPATH -u "$path"` 34135 fi 34136 if test "x$new_path" = x; then 34137 # It's still not found. Now this is an unrecoverable error. 34138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34139 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34140 has_space=`$ECHO "$complete" | $GREP " "` 34141 if test "x$has_space" != x; then 34142 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34143 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34144 fi 34145 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34146 fi 34147 fi 34148 34149 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34150 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34151 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34152 # "foo.exe" is OK but "foo" is an error. 34153 # 34154 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34155 # It is also a way to make sure we got the proper file name for the real test later on. 34156 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34157 if test "x$test_shortpath" = x; then 34158 # Short path failed, file does not exist as specified. 34159 # Try adding .exe or .cmd 34160 if test -f "${new_path}.exe"; then 34161 input_to_shortpath="${new_path}.exe" 34162 elif test -f "${new_path}.cmd"; then 34163 input_to_shortpath="${new_path}.cmd" 34164 else 34165 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 34166 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 34167 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34168 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34169 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34170 fi 34171 else 34172 input_to_shortpath="$new_path" 34173 fi 34174 34175 # Call helper function which possibly converts this using DOS-style short mode. 34176 # If so, the updated path is stored in $new_path. 34177 new_path="$input_to_shortpath" 34178 34179 input_path="$input_to_shortpath" 34180 # Check if we need to convert this using DOS-style short mode. If the path 34181 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34182 # take no chances and rewrite it. 34183 # Note: m4 eats our [], so we need to use [ and ] instead. 34184 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34185 if test "x$has_forbidden_chars" != x; then 34186 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34187 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34188 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34189 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34190 # Going to short mode and back again did indeed matter. Since short mode is 34191 # case insensitive, let's make it lowercase to improve readability. 34192 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34193 # Now convert it back to Unix-stile (cygpath) 34194 input_path=`$CYGPATH -u "$shortmode_path"` 34195 new_path="$input_path" 34196 fi 34197 fi 34198 34199 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34200 if test "x$test_cygdrive_prefix" = x; then 34201 # As a simple fix, exclude /usr/bin since it's not a real path. 34202 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34203 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34204 # a path prefixed by /cygdrive for fixpath to work. 34205 new_path="$CYGWIN_ROOT_PATH$input_path" 34206 fi 34207 fi 34208 34209 # remove trailing .exe if any 34210 new_path="${new_path/%.exe/}" 34211 34212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34213 34214 # First separate the path from the arguments. This will split at the first 34215 # space. 34216 complete="$MT" 34217 path="${complete%% *}" 34218 tmp="$complete EOL" 34219 arguments="${tmp#* }" 34220 34221 # Input might be given as Windows format, start by converting to 34222 # unix format. 34223 new_path="$path" 34224 34225 windows_path="$new_path" 34226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34227 unix_path=`$CYGPATH -u "$windows_path"` 34228 new_path="$unix_path" 34229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34230 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34231 new_path="$unix_path" 34232 fi 34233 34234 34235 # Now try to locate executable using which 34236 new_path=`$WHICH "$new_path" 2> /dev/null` 34237 34238 if test "x$new_path" = x; then 34239 # Oops. Which didn't find the executable. 34240 # The splitting of arguments from the executable at a space might have been incorrect, 34241 # since paths with space are more likely in Windows. Give it another try with the whole 34242 # argument. 34243 path="$complete" 34244 arguments="EOL" 34245 new_path="$path" 34246 34247 windows_path="$new_path" 34248 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34249 unix_path=`$CYGPATH -u "$windows_path"` 34250 new_path="$unix_path" 34251 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34252 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34253 new_path="$unix_path" 34254 fi 34255 34256 34257 new_path=`$WHICH "$new_path" 2> /dev/null` 34258 # bat and cmd files are not always considered executable in MSYS causing which 34259 # to not find them 34260 if test "x$new_path" = x \ 34261 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34262 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34263 new_path="$path" 34264 34265 windows_path="$new_path" 34266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34267 unix_path=`$CYGPATH -u "$windows_path"` 34268 new_path="$unix_path" 34269 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34270 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34271 new_path="$unix_path" 34272 fi 34273 34274 fi 34275 34276 if test "x$new_path" = x; then 34277 # It's still not found. Now this is an unrecoverable error. 34278 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34279 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34280 has_space=`$ECHO "$complete" | $GREP " "` 34281 if test "x$has_space" != x; then 34282 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34283 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34284 fi 34285 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34286 fi 34287 fi 34288 34289 # Now new_path has a complete unix path to the binary 34290 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34291 # Keep paths in /bin as-is, but remove trailing .exe if any 34292 new_path="${new_path/%.exe/}" 34293 # Do not save /bin paths to all_fixpath_prefixes! 34294 else 34295 # Not in mixed or Windows style, start by that. 34296 new_path=`cmd //c echo $new_path` 34297 34298 input_path="$new_path" 34299 # Check if we need to convert this using DOS-style short mode. If the path 34300 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34301 # take no chances and rewrite it. 34302 # Note: m4 eats our [], so we need to use [ and ] instead. 34303 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34304 if test "x$has_forbidden_chars" != x; then 34305 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34306 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34307 fi 34308 34309 # Output is in $new_path 34310 34311 windows_path="$new_path" 34312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34313 unix_path=`$CYGPATH -u "$windows_path"` 34314 new_path="$unix_path" 34315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34317 new_path="$unix_path" 34318 fi 34319 34320 # remove trailing .exe if any 34321 new_path="${new_path/%.exe/}" 34322 34323 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34324 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34325 fi 34326 34327 else 34328 # We're on a unix platform. Hooray! :) 34329 # First separate the path from the arguments. This will split at the first 34330 # space. 34331 complete="$MT" 34332 path="${complete%% *}" 34333 tmp="$complete EOL" 34334 arguments="${tmp#* }" 34335 34336 # Cannot rely on the command "which" here since it doesn't always work. 34337 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34338 if test -z "$is_absolute_path"; then 34339 # Path to executable is not absolute. Find it. 34340 IFS_save="$IFS" 34341 IFS=: 34342 for p in $PATH; do 34343 if test -f "$p/$path" && test -x "$p/$path"; then 34344 new_path="$p/$path" 34345 break 34346 fi 34347 done 34348 IFS="$IFS_save" 34349 else 34350 # This is an absolute path, we can use it without further modifications. 34351 new_path="$path" 34352 fi 34353 34354 if test "x$new_path" = x; then 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}: This might be caused by spaces in the path, which is not allowed." >&5 34360 $as_echo "$as_me: This might be caused by spaces in the path, 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 # Now join together the path and the arguments once again 34367 if test "x$arguments" != xEOL; then 34368 new_complete="$new_path ${arguments% *}" 34369 else 34370 new_complete="$new_path" 34371 fi 34372 34373 if test "x$complete" != "x$new_complete"; then 34374 MT="$new_complete" 34375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34376 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34377 fi 34378 fi 34379 34380 # Setup the resource compiler (RC) 34381 # Extract the first word of "rc", so it can be a program name with args. 34382 set dummy rc; ac_word=$2 34383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34384 $as_echo_n "checking for $ac_word... " >&6; } 34385 if ${ac_cv_prog_RC+:} false; then : 34386 $as_echo_n "(cached) " >&6 34387 else 34388 if test -n "$RC"; then 34389 ac_cv_prog_RC="$RC" # Let the user override the test. 34390 else 34391 ac_prog_rejected=no 34392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34393 for as_dir in $PATH 34394 do 34395 IFS=$as_save_IFS 34396 test -z "$as_dir" && as_dir=. 34397 for ac_exec_ext in '' $ac_executable_extensions; do 34398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34399 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34400 ac_prog_rejected=yes 34401 continue 34402 fi 34403 ac_cv_prog_RC="rc" 34404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34405 break 2 34406 fi 34407 done 34408 done 34409 IFS=$as_save_IFS 34410 34411 if test $ac_prog_rejected = yes; then 34412 # We found a bogon in the path, so make sure we never use it. 34413 set dummy $ac_cv_prog_RC 34414 shift 34415 if test $# != 0; then 34416 # We chose a different compiler from the bogus one. 34417 # However, it has the same basename, so the bogon will be chosen 34418 # first if we set RC to just the basename; use the full file name. 34419 shift 34420 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34421 fi 34422 fi 34423 fi 34424 fi 34425 RC=$ac_cv_prog_RC 34426 if test -n "$RC"; then 34427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34428 $as_echo "$RC" >&6; } 34429 else 34430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34431 $as_echo "no" >&6; } 34432 fi 34433 34434 34435 34436 # Only process if variable expands to non-empty 34437 34438 if test "x$RC" != x; then 34439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34440 34441 # First separate the path from the arguments. This will split at the first 34442 # space. 34443 complete="$RC" 34444 path="${complete%% *}" 34445 tmp="$complete EOL" 34446 arguments="${tmp#* }" 34447 34448 # Input might be given as Windows format, start by converting to 34449 # unix format. 34450 new_path=`$CYGPATH -u "$path"` 34451 34452 # Now try to locate executable using which 34453 new_path=`$WHICH "$new_path" 2> /dev/null` 34454 # bat and cmd files are not always considered executable in cygwin causing which 34455 # to not find them 34456 if test "x$new_path" = x \ 34457 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34458 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34459 new_path=`$CYGPATH -u "$path"` 34460 fi 34461 if test "x$new_path" = x; then 34462 # Oops. Which didn't find the executable. 34463 # The splitting of arguments from the executable at a space might have been incorrect, 34464 # since paths with space are more likely in Windows. Give it another try with the whole 34465 # argument. 34466 path="$complete" 34467 arguments="EOL" 34468 new_path=`$CYGPATH -u "$path"` 34469 new_path=`$WHICH "$new_path" 2> /dev/null` 34470 # bat and cmd files are not always considered executable in cygwin causing which 34471 # to not find them 34472 if test "x$new_path" = x \ 34473 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34474 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34475 new_path=`$CYGPATH -u "$path"` 34476 fi 34477 if test "x$new_path" = x; then 34478 # It's still not found. Now this is an unrecoverable error. 34479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34480 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34481 has_space=`$ECHO "$complete" | $GREP " "` 34482 if test "x$has_space" != x; then 34483 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34484 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34485 fi 34486 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34487 fi 34488 fi 34489 34490 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34491 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34492 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34493 # "foo.exe" is OK but "foo" is an error. 34494 # 34495 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34496 # It is also a way to make sure we got the proper file name for the real test later on. 34497 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34498 if test "x$test_shortpath" = x; then 34499 # Short path failed, file does not exist as specified. 34500 # Try adding .exe or .cmd 34501 if test -f "${new_path}.exe"; then 34502 input_to_shortpath="${new_path}.exe" 34503 elif test -f "${new_path}.cmd"; then 34504 input_to_shortpath="${new_path}.cmd" 34505 else 34506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34507 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34508 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34509 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34510 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34511 fi 34512 else 34513 input_to_shortpath="$new_path" 34514 fi 34515 34516 # Call helper function which possibly converts this using DOS-style short mode. 34517 # If so, the updated path is stored in $new_path. 34518 new_path="$input_to_shortpath" 34519 34520 input_path="$input_to_shortpath" 34521 # Check if we need to convert this using DOS-style short mode. If the path 34522 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34523 # take no chances and rewrite it. 34524 # Note: m4 eats our [], so we need to use [ and ] instead. 34525 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34526 if test "x$has_forbidden_chars" != x; then 34527 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34528 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34529 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34530 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34531 # Going to short mode and back again did indeed matter. Since short mode is 34532 # case insensitive, let's make it lowercase to improve readability. 34533 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34534 # Now convert it back to Unix-stile (cygpath) 34535 input_path=`$CYGPATH -u "$shortmode_path"` 34536 new_path="$input_path" 34537 fi 34538 fi 34539 34540 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34541 if test "x$test_cygdrive_prefix" = x; then 34542 # As a simple fix, exclude /usr/bin since it's not a real path. 34543 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34544 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34545 # a path prefixed by /cygdrive for fixpath to work. 34546 new_path="$CYGWIN_ROOT_PATH$input_path" 34547 fi 34548 fi 34549 34550 # remove trailing .exe if any 34551 new_path="${new_path/%.exe/}" 34552 34553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34554 34555 # First separate the path from the arguments. This will split at the first 34556 # space. 34557 complete="$RC" 34558 path="${complete%% *}" 34559 tmp="$complete EOL" 34560 arguments="${tmp#* }" 34561 34562 # Input might be given as Windows format, start by converting to 34563 # unix format. 34564 new_path="$path" 34565 34566 windows_path="$new_path" 34567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34568 unix_path=`$CYGPATH -u "$windows_path"` 34569 new_path="$unix_path" 34570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34571 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34572 new_path="$unix_path" 34573 fi 34574 34575 34576 # Now try to locate executable using which 34577 new_path=`$WHICH "$new_path" 2> /dev/null` 34578 34579 if test "x$new_path" = x; then 34580 # Oops. Which didn't find the executable. 34581 # The splitting of arguments from the executable at a space might have been incorrect, 34582 # since paths with space are more likely in Windows. Give it another try with the whole 34583 # argument. 34584 path="$complete" 34585 arguments="EOL" 34586 new_path="$path" 34587 34588 windows_path="$new_path" 34589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34590 unix_path=`$CYGPATH -u "$windows_path"` 34591 new_path="$unix_path" 34592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34594 new_path="$unix_path" 34595 fi 34596 34597 34598 new_path=`$WHICH "$new_path" 2> /dev/null` 34599 # bat and cmd files are not always considered executable in MSYS causing which 34600 # to not find them 34601 if test "x$new_path" = x \ 34602 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34603 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34604 new_path="$path" 34605 34606 windows_path="$new_path" 34607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34608 unix_path=`$CYGPATH -u "$windows_path"` 34609 new_path="$unix_path" 34610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34611 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34612 new_path="$unix_path" 34613 fi 34614 34615 fi 34616 34617 if test "x$new_path" = x; then 34618 # It's still not found. Now this is an unrecoverable error. 34619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34620 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34621 has_space=`$ECHO "$complete" | $GREP " "` 34622 if test "x$has_space" != x; then 34623 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34624 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34625 fi 34626 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34627 fi 34628 fi 34629 34630 # Now new_path has a complete unix path to the binary 34631 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34632 # Keep paths in /bin as-is, but remove trailing .exe if any 34633 new_path="${new_path/%.exe/}" 34634 # Do not save /bin paths to all_fixpath_prefixes! 34635 else 34636 # Not in mixed or Windows style, start by that. 34637 new_path=`cmd //c echo $new_path` 34638 34639 input_path="$new_path" 34640 # Check if we need to convert this using DOS-style short mode. If the path 34641 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34642 # take no chances and rewrite it. 34643 # Note: m4 eats our [], so we need to use [ and ] instead. 34644 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34645 if test "x$has_forbidden_chars" != x; then 34646 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34647 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34648 fi 34649 34650 # Output is in $new_path 34651 34652 windows_path="$new_path" 34653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34654 unix_path=`$CYGPATH -u "$windows_path"` 34655 new_path="$unix_path" 34656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34658 new_path="$unix_path" 34659 fi 34660 34661 # remove trailing .exe if any 34662 new_path="${new_path/%.exe/}" 34663 34664 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34665 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34666 fi 34667 34668 else 34669 # We're on a unix platform. Hooray! :) 34670 # First separate the path from the arguments. This will split at the first 34671 # space. 34672 complete="$RC" 34673 path="${complete%% *}" 34674 tmp="$complete EOL" 34675 arguments="${tmp#* }" 34676 34677 # Cannot rely on the command "which" here since it doesn't always work. 34678 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34679 if test -z "$is_absolute_path"; then 34680 # Path to executable is not absolute. Find it. 34681 IFS_save="$IFS" 34682 IFS=: 34683 for p in $PATH; do 34684 if test -f "$p/$path" && test -x "$p/$path"; then 34685 new_path="$p/$path" 34686 break 34687 fi 34688 done 34689 IFS="$IFS_save" 34690 else 34691 # This is an absolute path, we can use it without further modifications. 34692 new_path="$path" 34693 fi 34694 34695 if test "x$new_path" = x; then 34696 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34697 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34698 has_space=`$ECHO "$complete" | $GREP " "` 34699 if test "x$has_space" != x; then 34700 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34701 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34702 fi 34703 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34704 fi 34705 fi 34706 34707 # Now join together the path and the arguments once again 34708 if test "x$arguments" != xEOL; then 34709 new_complete="$new_path ${arguments% *}" 34710 else 34711 new_complete="$new_path" 34712 fi 34713 34714 if test "x$complete" != "x$new_complete"; then 34715 RC="$new_complete" 34716 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34717 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34718 fi 34719 fi 34720 34721 # Extract the first word of "dumpbin", so it can be a program name with args. 34722 set dummy dumpbin; ac_word=$2 34723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34724 $as_echo_n "checking for $ac_word... " >&6; } 34725 if ${ac_cv_prog_DUMPBIN+:} false; then : 34726 $as_echo_n "(cached) " >&6 34727 else 34728 if test -n "$DUMPBIN"; then 34729 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34730 else 34731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34732 for as_dir in $PATH 34733 do 34734 IFS=$as_save_IFS 34735 test -z "$as_dir" && as_dir=. 34736 for ac_exec_ext in '' $ac_executable_extensions; do 34737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34738 ac_cv_prog_DUMPBIN="dumpbin" 34739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34740 break 2 34741 fi 34742 done 34743 done 34744 IFS=$as_save_IFS 34745 34746 fi 34747 fi 34748 DUMPBIN=$ac_cv_prog_DUMPBIN 34749 if test -n "$DUMPBIN"; then 34750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34751 $as_echo "$DUMPBIN" >&6; } 34752 else 34753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34754 $as_echo "no" >&6; } 34755 fi 34756 34757 34758 34759 # Only process if variable expands to non-empty 34760 34761 if test "x$DUMPBIN" != x; then 34762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34763 34764 # First separate the path from the arguments. This will split at the first 34765 # space. 34766 complete="$DUMPBIN" 34767 path="${complete%% *}" 34768 tmp="$complete EOL" 34769 arguments="${tmp#* }" 34770 34771 # Input might be given as Windows format, start by converting to 34772 # unix format. 34773 new_path=`$CYGPATH -u "$path"` 34774 34775 # Now try to locate executable using which 34776 new_path=`$WHICH "$new_path" 2> /dev/null` 34777 # bat and cmd files are not always considered executable in cygwin causing which 34778 # to not find them 34779 if test "x$new_path" = x \ 34780 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34781 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34782 new_path=`$CYGPATH -u "$path"` 34783 fi 34784 if test "x$new_path" = x; then 34785 # Oops. Which didn't find the executable. 34786 # The splitting of arguments from the executable at a space might have been incorrect, 34787 # since paths with space are more likely in Windows. Give it another try with the whole 34788 # argument. 34789 path="$complete" 34790 arguments="EOL" 34791 new_path=`$CYGPATH -u "$path"` 34792 new_path=`$WHICH "$new_path" 2> /dev/null` 34793 # bat and cmd files are not always considered executable in cygwin causing which 34794 # to not find them 34795 if test "x$new_path" = x \ 34796 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34797 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34798 new_path=`$CYGPATH -u "$path"` 34799 fi 34800 if test "x$new_path" = x; then 34801 # It's still not found. Now this is an unrecoverable error. 34802 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34803 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34804 has_space=`$ECHO "$complete" | $GREP " "` 34805 if test "x$has_space" != x; then 34806 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34807 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34808 fi 34809 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34810 fi 34811 fi 34812 34813 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34814 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34815 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34816 # "foo.exe" is OK but "foo" is an error. 34817 # 34818 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34819 # It is also a way to make sure we got the proper file name for the real test later on. 34820 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34821 if test "x$test_shortpath" = x; then 34822 # Short path failed, file does not exist as specified. 34823 # Try adding .exe or .cmd 34824 if test -f "${new_path}.exe"; then 34825 input_to_shortpath="${new_path}.exe" 34826 elif test -f "${new_path}.cmd"; then 34827 input_to_shortpath="${new_path}.cmd" 34828 else 34829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34830 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34831 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34832 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34833 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34834 fi 34835 else 34836 input_to_shortpath="$new_path" 34837 fi 34838 34839 # Call helper function which possibly converts this using DOS-style short mode. 34840 # If so, the updated path is stored in $new_path. 34841 new_path="$input_to_shortpath" 34842 34843 input_path="$input_to_shortpath" 34844 # Check if we need to convert this using DOS-style short mode. If the path 34845 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34846 # take no chances and rewrite it. 34847 # Note: m4 eats our [], so we need to use [ and ] instead. 34848 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34849 if test "x$has_forbidden_chars" != x; then 34850 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34851 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34852 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34853 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34854 # Going to short mode and back again did indeed matter. Since short mode is 34855 # case insensitive, let's make it lowercase to improve readability. 34856 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34857 # Now convert it back to Unix-stile (cygpath) 34858 input_path=`$CYGPATH -u "$shortmode_path"` 34859 new_path="$input_path" 34860 fi 34861 fi 34862 34863 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34864 if test "x$test_cygdrive_prefix" = x; then 34865 # As a simple fix, exclude /usr/bin since it's not a real path. 34866 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34867 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34868 # a path prefixed by /cygdrive for fixpath to work. 34869 new_path="$CYGWIN_ROOT_PATH$input_path" 34870 fi 34871 fi 34872 34873 # remove trailing .exe if any 34874 new_path="${new_path/%.exe/}" 34875 34876 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34877 34878 # First separate the path from the arguments. This will split at the first 34879 # space. 34880 complete="$DUMPBIN" 34881 path="${complete%% *}" 34882 tmp="$complete EOL" 34883 arguments="${tmp#* }" 34884 34885 # Input might be given as Windows format, start by converting to 34886 # unix format. 34887 new_path="$path" 34888 34889 windows_path="$new_path" 34890 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34891 unix_path=`$CYGPATH -u "$windows_path"` 34892 new_path="$unix_path" 34893 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34894 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34895 new_path="$unix_path" 34896 fi 34897 34898 34899 # Now try to locate executable using which 34900 new_path=`$WHICH "$new_path" 2> /dev/null` 34901 34902 if test "x$new_path" = x; then 34903 # Oops. Which didn't find the executable. 34904 # The splitting of arguments from the executable at a space might have been incorrect, 34905 # since paths with space are more likely in Windows. Give it another try with the whole 34906 # argument. 34907 path="$complete" 34908 arguments="EOL" 34909 new_path="$path" 34910 34911 windows_path="$new_path" 34912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34913 unix_path=`$CYGPATH -u "$windows_path"` 34914 new_path="$unix_path" 34915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34916 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34917 new_path="$unix_path" 34918 fi 34919 34920 34921 new_path=`$WHICH "$new_path" 2> /dev/null` 34922 # bat and cmd files are not always considered executable in MSYS causing which 34923 # to not find them 34924 if test "x$new_path" = x \ 34925 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34926 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34927 new_path="$path" 34928 34929 windows_path="$new_path" 34930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34931 unix_path=`$CYGPATH -u "$windows_path"` 34932 new_path="$unix_path" 34933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34934 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34935 new_path="$unix_path" 34936 fi 34937 34938 fi 34939 34940 if test "x$new_path" = x; then 34941 # It's still not found. Now this is an unrecoverable error. 34942 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34943 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34944 has_space=`$ECHO "$complete" | $GREP " "` 34945 if test "x$has_space" != x; then 34946 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34947 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34948 fi 34949 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34950 fi 34951 fi 34952 34953 # Now new_path has a complete unix path to the binary 34954 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34955 # Keep paths in /bin as-is, but remove trailing .exe if any 34956 new_path="${new_path/%.exe/}" 34957 # Do not save /bin paths to all_fixpath_prefixes! 34958 else 34959 # Not in mixed or Windows style, start by that. 34960 new_path=`cmd //c echo $new_path` 34961 34962 input_path="$new_path" 34963 # Check if we need to convert this using DOS-style short mode. If the path 34964 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34965 # take no chances and rewrite it. 34966 # Note: m4 eats our [], so we need to use [ and ] instead. 34967 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34968 if test "x$has_forbidden_chars" != x; then 34969 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34970 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34971 fi 34972 34973 # Output is in $new_path 34974 34975 windows_path="$new_path" 34976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34977 unix_path=`$CYGPATH -u "$windows_path"` 34978 new_path="$unix_path" 34979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34980 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34981 new_path="$unix_path" 34982 fi 34983 34984 # remove trailing .exe if any 34985 new_path="${new_path/%.exe/}" 34986 34987 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34988 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34989 fi 34990 34991 else 34992 # We're on a unix platform. Hooray! :) 34993 # First separate the path from the arguments. This will split at the first 34994 # space. 34995 complete="$DUMPBIN" 34996 path="${complete%% *}" 34997 tmp="$complete EOL" 34998 arguments="${tmp#* }" 34999 35000 # Cannot rely on the command "which" here since it doesn't always work. 35001 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35002 if test -z "$is_absolute_path"; then 35003 # Path to executable is not absolute. Find it. 35004 IFS_save="$IFS" 35005 IFS=: 35006 for p in $PATH; do 35007 if test -f "$p/$path" && test -x "$p/$path"; then 35008 new_path="$p/$path" 35009 break 35010 fi 35011 done 35012 IFS="$IFS_save" 35013 else 35014 # This is an absolute path, we can use it without further modifications. 35015 new_path="$path" 35016 fi 35017 35018 if test "x$new_path" = x; then 35019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35020 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35021 has_space=`$ECHO "$complete" | $GREP " "` 35022 if test "x$has_space" != x; then 35023 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35024 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35025 fi 35026 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35027 fi 35028 fi 35029 35030 # Now join together the path and the arguments once again 35031 if test "x$arguments" != xEOL; then 35032 new_complete="$new_path ${arguments% *}" 35033 else 35034 new_complete="$new_path" 35035 fi 35036 35037 if test "x$complete" != "x$new_complete"; then 35038 DUMPBIN="$new_complete" 35039 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 35040 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 35041 fi 35042 fi 35043 35044 # We need to check for 'msbuild.exe' because at the place where we expect to 35045 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 35046 # won't find the 'msbuild.exe' executable in that case (and the 35047 # 'ac_executable_extensions' is unusable due to performance reasons). 35048 # Notice that we intentionally don't fix up the path to MSBUILD because we 35049 # will call it in a DOS shell during freetype detection on Windows (see 35050 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 35051 # Extract the first word of "msbuild.exe", so it can be a program name with args. 35052 set dummy msbuild.exe; ac_word=$2 35053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35054 $as_echo_n "checking for $ac_word... " >&6; } 35055 if ${ac_cv_prog_MSBUILD+:} false; then : 35056 $as_echo_n "(cached) " >&6 35057 else 35058 if test -n "$MSBUILD"; then 35059 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 35060 else 35061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35062 for as_dir in $PATH 35063 do 35064 IFS=$as_save_IFS 35065 test -z "$as_dir" && as_dir=. 35066 for ac_exec_ext in '' $ac_executable_extensions; do 35067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35068 ac_cv_prog_MSBUILD="msbuild.exe" 35069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35070 break 2 35071 fi 35072 done 35073 done 35074 IFS=$as_save_IFS 35075 35076 fi 35077 fi 35078 MSBUILD=$ac_cv_prog_MSBUILD 35079 if test -n "$MSBUILD"; then 35080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 35081 $as_echo "$MSBUILD" >&6; } 35082 else 35083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35084 $as_echo "no" >&6; } 35085 fi 35086 35087 35088 fi 35089 35090 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35091 35092 35093 # Publish this variable in the help. 35094 35095 35096 if test "x$STRIP" = x; then 35097 # The variable is not set by user, try to locate tool using the code snippet 35098 for ac_prog in strip 35099 do 35100 # Extract the first word of "$ac_prog", so it can be a program name with args. 35101 set dummy $ac_prog; ac_word=$2 35102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35103 $as_echo_n "checking for $ac_word... " >&6; } 35104 if ${ac_cv_path_STRIP+:} false; then : 35105 $as_echo_n "(cached) " >&6 35106 else 35107 case $STRIP in 35108 [\\/]* | ?:[\\/]*) 35109 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35110 ;; 35111 *) 35112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35113 for as_dir in $PATH 35114 do 35115 IFS=$as_save_IFS 35116 test -z "$as_dir" && as_dir=. 35117 for ac_exec_ext in '' $ac_executable_extensions; do 35118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35119 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35121 break 2 35122 fi 35123 done 35124 done 35125 IFS=$as_save_IFS 35126 35127 ;; 35128 esac 35129 fi 35130 STRIP=$ac_cv_path_STRIP 35131 if test -n "$STRIP"; then 35132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35133 $as_echo "$STRIP" >&6; } 35134 else 35135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35136 $as_echo "no" >&6; } 35137 fi 35138 35139 35140 test -n "$STRIP" && break 35141 done 35142 35143 else 35144 # The variable is set, but is it from the command line or the environment? 35145 35146 # Try to remove the string !STRIP! from our list. 35147 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 35148 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35149 # If it failed, the variable was not from the command line. Ignore it, 35150 # but warn the user (except for BASH, which is always set by the calling BASH). 35151 if test "xSTRIP" != xBASH; then 35152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 35153 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 35154 fi 35155 # Try to locate tool using the code snippet 35156 for ac_prog in strip 35157 do 35158 # Extract the first word of "$ac_prog", so it can be a program name with args. 35159 set dummy $ac_prog; ac_word=$2 35160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35161 $as_echo_n "checking for $ac_word... " >&6; } 35162 if ${ac_cv_path_STRIP+:} false; then : 35163 $as_echo_n "(cached) " >&6 35164 else 35165 case $STRIP in 35166 [\\/]* | ?:[\\/]*) 35167 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35168 ;; 35169 *) 35170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35171 for as_dir in $PATH 35172 do 35173 IFS=$as_save_IFS 35174 test -z "$as_dir" && as_dir=. 35175 for ac_exec_ext in '' $ac_executable_extensions; do 35176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35177 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35179 break 2 35180 fi 35181 done 35182 done 35183 IFS=$as_save_IFS 35184 35185 ;; 35186 esac 35187 fi 35188 STRIP=$ac_cv_path_STRIP 35189 if test -n "$STRIP"; then 35190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35191 $as_echo "$STRIP" >&6; } 35192 else 35193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35194 $as_echo "no" >&6; } 35195 fi 35196 35197 35198 test -n "$STRIP" && break 35199 done 35200 35201 else 35202 # If it succeeded, then it was overridden by the user. We will use it 35203 # for the tool. 35204 35205 # First remove it from the list of overridden variables, so we can test 35206 # for unknown variables in the end. 35207 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35208 35209 # Check if the provided tool contains a complete path. 35210 tool_specified="$STRIP" 35211 tool_basename="${tool_specified##*/}" 35212 if test "x$tool_basename" = "x$tool_specified"; then 35213 # A command without a complete path is provided, search $PATH. 35214 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 35215 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 35216 # Extract the first word of "$tool_basename", so it can be a program name with args. 35217 set dummy $tool_basename; ac_word=$2 35218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35219 $as_echo_n "checking for $ac_word... " >&6; } 35220 if ${ac_cv_path_STRIP+:} false; then : 35221 $as_echo_n "(cached) " >&6 35222 else 35223 case $STRIP in 35224 [\\/]* | ?:[\\/]*) 35225 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35226 ;; 35227 *) 35228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35229 for as_dir in $PATH 35230 do 35231 IFS=$as_save_IFS 35232 test -z "$as_dir" && as_dir=. 35233 for ac_exec_ext in '' $ac_executable_extensions; do 35234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35235 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35237 break 2 35238 fi 35239 done 35240 done 35241 IFS=$as_save_IFS 35242 35243 ;; 35244 esac 35245 fi 35246 STRIP=$ac_cv_path_STRIP 35247 if test -n "$STRIP"; then 35248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35249 $as_echo "$STRIP" >&6; } 35250 else 35251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35252 $as_echo "no" >&6; } 35253 fi 35254 35255 35256 if test "x$STRIP" = x; then 35257 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35258 fi 35259 else 35260 # Otherwise we believe it is a complete path. Use it as it is. 35261 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 35262 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 35263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 35264 $as_echo_n "checking for STRIP... " >&6; } 35265 if test ! -x "$tool_specified"; then 35266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35267 $as_echo "not found" >&6; } 35268 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 35269 fi 35270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35271 $as_echo "$tool_specified" >&6; } 35272 fi 35273 fi 35274 fi 35275 35276 35277 35278 # Only process if variable expands to non-empty 35279 35280 if test "x$STRIP" != x; then 35281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35282 35283 # First separate the path from the arguments. This will split at the first 35284 # space. 35285 complete="$STRIP" 35286 path="${complete%% *}" 35287 tmp="$complete EOL" 35288 arguments="${tmp#* }" 35289 35290 # Input might be given as Windows format, start by converting to 35291 # unix format. 35292 new_path=`$CYGPATH -u "$path"` 35293 35294 # Now try to locate executable using which 35295 new_path=`$WHICH "$new_path" 2> /dev/null` 35296 # bat and cmd files are not always considered executable in cygwin causing which 35297 # to not find them 35298 if test "x$new_path" = x \ 35299 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35300 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35301 new_path=`$CYGPATH -u "$path"` 35302 fi 35303 if test "x$new_path" = x; then 35304 # Oops. Which didn't find the executable. 35305 # The splitting of arguments from the executable at a space might have been incorrect, 35306 # since paths with space are more likely in Windows. Give it another try with the whole 35307 # argument. 35308 path="$complete" 35309 arguments="EOL" 35310 new_path=`$CYGPATH -u "$path"` 35311 new_path=`$WHICH "$new_path" 2> /dev/null` 35312 # bat and cmd files are not always considered executable in cygwin causing which 35313 # to not find them 35314 if test "x$new_path" = x \ 35315 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35316 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35317 new_path=`$CYGPATH -u "$path"` 35318 fi 35319 if test "x$new_path" = x; then 35320 # It's still not found. Now this is an unrecoverable error. 35321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35322 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35323 has_space=`$ECHO "$complete" | $GREP " "` 35324 if test "x$has_space" != x; then 35325 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35326 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35327 fi 35328 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35329 fi 35330 fi 35331 35332 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35333 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35334 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35335 # "foo.exe" is OK but "foo" is an error. 35336 # 35337 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35338 # It is also a way to make sure we got the proper file name for the real test later on. 35339 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35340 if test "x$test_shortpath" = x; then 35341 # Short path failed, file does not exist as specified. 35342 # Try adding .exe or .cmd 35343 if test -f "${new_path}.exe"; then 35344 input_to_shortpath="${new_path}.exe" 35345 elif test -f "${new_path}.cmd"; then 35346 input_to_shortpath="${new_path}.cmd" 35347 else 35348 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 35349 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 35350 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35351 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35352 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35353 fi 35354 else 35355 input_to_shortpath="$new_path" 35356 fi 35357 35358 # Call helper function which possibly converts this using DOS-style short mode. 35359 # If so, the updated path is stored in $new_path. 35360 new_path="$input_to_shortpath" 35361 35362 input_path="$input_to_shortpath" 35363 # Check if we need to convert this using DOS-style short mode. If the path 35364 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35365 # take no chances and rewrite it. 35366 # Note: m4 eats our [], so we need to use [ and ] instead. 35367 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35368 if test "x$has_forbidden_chars" != x; then 35369 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35370 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35371 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35372 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35373 # Going to short mode and back again did indeed matter. Since short mode is 35374 # case insensitive, let's make it lowercase to improve readability. 35375 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35376 # Now convert it back to Unix-stile (cygpath) 35377 input_path=`$CYGPATH -u "$shortmode_path"` 35378 new_path="$input_path" 35379 fi 35380 fi 35381 35382 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35383 if test "x$test_cygdrive_prefix" = x; then 35384 # As a simple fix, exclude /usr/bin since it's not a real path. 35385 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35386 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35387 # a path prefixed by /cygdrive for fixpath to work. 35388 new_path="$CYGWIN_ROOT_PATH$input_path" 35389 fi 35390 fi 35391 35392 # remove trailing .exe if any 35393 new_path="${new_path/%.exe/}" 35394 35395 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35396 35397 # First separate the path from the arguments. This will split at the first 35398 # space. 35399 complete="$STRIP" 35400 path="${complete%% *}" 35401 tmp="$complete EOL" 35402 arguments="${tmp#* }" 35403 35404 # Input might be given as Windows format, start by converting to 35405 # unix format. 35406 new_path="$path" 35407 35408 windows_path="$new_path" 35409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35410 unix_path=`$CYGPATH -u "$windows_path"` 35411 new_path="$unix_path" 35412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35414 new_path="$unix_path" 35415 fi 35416 35417 35418 # Now try to locate executable using which 35419 new_path=`$WHICH "$new_path" 2> /dev/null` 35420 35421 if test "x$new_path" = x; then 35422 # Oops. Which didn't find the executable. 35423 # The splitting of arguments from the executable at a space might have been incorrect, 35424 # since paths with space are more likely in Windows. Give it another try with the whole 35425 # argument. 35426 path="$complete" 35427 arguments="EOL" 35428 new_path="$path" 35429 35430 windows_path="$new_path" 35431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35432 unix_path=`$CYGPATH -u "$windows_path"` 35433 new_path="$unix_path" 35434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35435 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35436 new_path="$unix_path" 35437 fi 35438 35439 35440 new_path=`$WHICH "$new_path" 2> /dev/null` 35441 # bat and cmd files are not always considered executable in MSYS causing which 35442 # to not find them 35443 if test "x$new_path" = x \ 35444 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35445 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35446 new_path="$path" 35447 35448 windows_path="$new_path" 35449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35450 unix_path=`$CYGPATH -u "$windows_path"` 35451 new_path="$unix_path" 35452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35454 new_path="$unix_path" 35455 fi 35456 35457 fi 35458 35459 if test "x$new_path" = x; then 35460 # It's still not found. Now this is an unrecoverable error. 35461 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35462 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35463 has_space=`$ECHO "$complete" | $GREP " "` 35464 if test "x$has_space" != x; then 35465 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35466 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35467 fi 35468 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35469 fi 35470 fi 35471 35472 # Now new_path has a complete unix path to the binary 35473 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35474 # Keep paths in /bin as-is, but remove trailing .exe if any 35475 new_path="${new_path/%.exe/}" 35476 # Do not save /bin paths to all_fixpath_prefixes! 35477 else 35478 # Not in mixed or Windows style, start by that. 35479 new_path=`cmd //c echo $new_path` 35480 35481 input_path="$new_path" 35482 # Check if we need to convert this using DOS-style short mode. If the path 35483 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35484 # take no chances and rewrite it. 35485 # Note: m4 eats our [], so we need to use [ and ] instead. 35486 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35487 if test "x$has_forbidden_chars" != x; then 35488 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35489 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35490 fi 35491 35492 # Output is in $new_path 35493 35494 windows_path="$new_path" 35495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35496 unix_path=`$CYGPATH -u "$windows_path"` 35497 new_path="$unix_path" 35498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35499 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35500 new_path="$unix_path" 35501 fi 35502 35503 # remove trailing .exe if any 35504 new_path="${new_path/%.exe/}" 35505 35506 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35507 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35508 fi 35509 35510 else 35511 # We're on a unix platform. Hooray! :) 35512 # First separate the path from the arguments. This will split at the first 35513 # space. 35514 complete="$STRIP" 35515 path="${complete%% *}" 35516 tmp="$complete EOL" 35517 arguments="${tmp#* }" 35518 35519 # Cannot rely on the command "which" here since it doesn't always work. 35520 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35521 if test -z "$is_absolute_path"; then 35522 # Path to executable is not absolute. Find it. 35523 IFS_save="$IFS" 35524 IFS=: 35525 for p in $PATH; do 35526 if test -f "$p/$path" && test -x "$p/$path"; then 35527 new_path="$p/$path" 35528 break 35529 fi 35530 done 35531 IFS="$IFS_save" 35532 else 35533 # This is an absolute path, we can use it without further modifications. 35534 new_path="$path" 35535 fi 35536 35537 if test "x$new_path" = x; then 35538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35539 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35540 has_space=`$ECHO "$complete" | $GREP " "` 35541 if test "x$has_space" != x; then 35542 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35543 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35544 fi 35545 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35546 fi 35547 fi 35548 35549 # Now join together the path and the arguments once again 35550 if test "x$arguments" != xEOL; then 35551 new_complete="$new_path ${arguments% *}" 35552 else 35553 new_complete="$new_path" 35554 fi 35555 35556 if test "x$complete" != "x$new_complete"; then 35557 STRIP="$new_complete" 35558 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35559 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35560 fi 35561 fi 35562 35563 35564 35565 # Publish this variable in the help. 35566 35567 35568 if test "x$NM" = x; then 35569 # The variable is not set by user, try to locate tool using the code snippet 35570 for ac_prog in nm 35571 do 35572 # Extract the first word of "$ac_prog", so it can be a program name with args. 35573 set dummy $ac_prog; ac_word=$2 35574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35575 $as_echo_n "checking for $ac_word... " >&6; } 35576 if ${ac_cv_path_NM+:} false; then : 35577 $as_echo_n "(cached) " >&6 35578 else 35579 case $NM in 35580 [\\/]* | ?:[\\/]*) 35581 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35582 ;; 35583 *) 35584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35585 for as_dir in $PATH 35586 do 35587 IFS=$as_save_IFS 35588 test -z "$as_dir" && as_dir=. 35589 for ac_exec_ext in '' $ac_executable_extensions; do 35590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35591 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35593 break 2 35594 fi 35595 done 35596 done 35597 IFS=$as_save_IFS 35598 35599 ;; 35600 esac 35601 fi 35602 NM=$ac_cv_path_NM 35603 if test -n "$NM"; then 35604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35605 $as_echo "$NM" >&6; } 35606 else 35607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35608 $as_echo "no" >&6; } 35609 fi 35610 35611 35612 test -n "$NM" && break 35613 done 35614 35615 else 35616 # The variable is set, but is it from the command line or the environment? 35617 35618 # Try to remove the string !NM! from our list. 35619 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35620 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35621 # If it failed, the variable was not from the command line. Ignore it, 35622 # but warn the user (except for BASH, which is always set by the calling BASH). 35623 if test "xNM" != xBASH; then 35624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35625 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35626 fi 35627 # Try to locate tool using the code snippet 35628 for ac_prog in nm 35629 do 35630 # Extract the first word of "$ac_prog", so it can be a program name with args. 35631 set dummy $ac_prog; ac_word=$2 35632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35633 $as_echo_n "checking for $ac_word... " >&6; } 35634 if ${ac_cv_path_NM+:} false; then : 35635 $as_echo_n "(cached) " >&6 35636 else 35637 case $NM in 35638 [\\/]* | ?:[\\/]*) 35639 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35640 ;; 35641 *) 35642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35643 for as_dir in $PATH 35644 do 35645 IFS=$as_save_IFS 35646 test -z "$as_dir" && as_dir=. 35647 for ac_exec_ext in '' $ac_executable_extensions; do 35648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35649 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35651 break 2 35652 fi 35653 done 35654 done 35655 IFS=$as_save_IFS 35656 35657 ;; 35658 esac 35659 fi 35660 NM=$ac_cv_path_NM 35661 if test -n "$NM"; then 35662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35663 $as_echo "$NM" >&6; } 35664 else 35665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35666 $as_echo "no" >&6; } 35667 fi 35668 35669 35670 test -n "$NM" && break 35671 done 35672 35673 else 35674 # If it succeeded, then it was overridden by the user. We will use it 35675 # for the tool. 35676 35677 # First remove it from the list of overridden variables, so we can test 35678 # for unknown variables in the end. 35679 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35680 35681 # Check if the provided tool contains a complete path. 35682 tool_specified="$NM" 35683 tool_basename="${tool_specified##*/}" 35684 if test "x$tool_basename" = "x$tool_specified"; then 35685 # A command without a complete path is provided, search $PATH. 35686 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35687 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35688 # Extract the first word of "$tool_basename", so it can be a program name with args. 35689 set dummy $tool_basename; ac_word=$2 35690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35691 $as_echo_n "checking for $ac_word... " >&6; } 35692 if ${ac_cv_path_NM+:} false; then : 35693 $as_echo_n "(cached) " >&6 35694 else 35695 case $NM in 35696 [\\/]* | ?:[\\/]*) 35697 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35698 ;; 35699 *) 35700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35701 for as_dir in $PATH 35702 do 35703 IFS=$as_save_IFS 35704 test -z "$as_dir" && as_dir=. 35705 for ac_exec_ext in '' $ac_executable_extensions; do 35706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35707 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35709 break 2 35710 fi 35711 done 35712 done 35713 IFS=$as_save_IFS 35714 35715 ;; 35716 esac 35717 fi 35718 NM=$ac_cv_path_NM 35719 if test -n "$NM"; then 35720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35721 $as_echo "$NM" >&6; } 35722 else 35723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35724 $as_echo "no" >&6; } 35725 fi 35726 35727 35728 if test "x$NM" = x; then 35729 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35730 fi 35731 else 35732 # Otherwise we believe it is a complete path. Use it as it is. 35733 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35734 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35736 $as_echo_n "checking for NM... " >&6; } 35737 if test ! -x "$tool_specified"; then 35738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35739 $as_echo "not found" >&6; } 35740 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35741 fi 35742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35743 $as_echo "$tool_specified" >&6; } 35744 fi 35745 fi 35746 fi 35747 35748 35749 35750 # Only process if variable expands to non-empty 35751 35752 if test "x$NM" != x; then 35753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35754 35755 # First separate the path from the arguments. This will split at the first 35756 # space. 35757 complete="$NM" 35758 path="${complete%% *}" 35759 tmp="$complete EOL" 35760 arguments="${tmp#* }" 35761 35762 # Input might be given as Windows format, start by converting to 35763 # unix format. 35764 new_path=`$CYGPATH -u "$path"` 35765 35766 # Now try to locate executable using which 35767 new_path=`$WHICH "$new_path" 2> /dev/null` 35768 # bat and cmd files are not always considered executable in cygwin causing which 35769 # to not find them 35770 if test "x$new_path" = x \ 35771 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35772 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35773 new_path=`$CYGPATH -u "$path"` 35774 fi 35775 if test "x$new_path" = x; then 35776 # Oops. Which didn't find the executable. 35777 # The splitting of arguments from the executable at a space might have been incorrect, 35778 # since paths with space are more likely in Windows. Give it another try with the whole 35779 # argument. 35780 path="$complete" 35781 arguments="EOL" 35782 new_path=`$CYGPATH -u "$path"` 35783 new_path=`$WHICH "$new_path" 2> /dev/null` 35784 # bat and cmd files are not always considered executable in cygwin causing which 35785 # to not find them 35786 if test "x$new_path" = x \ 35787 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35788 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35789 new_path=`$CYGPATH -u "$path"` 35790 fi 35791 if test "x$new_path" = x; then 35792 # It's still not found. Now this is an unrecoverable error. 35793 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35794 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35795 has_space=`$ECHO "$complete" | $GREP " "` 35796 if test "x$has_space" != x; then 35797 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35798 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35799 fi 35800 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35801 fi 35802 fi 35803 35804 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35805 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35806 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35807 # "foo.exe" is OK but "foo" is an error. 35808 # 35809 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35810 # It is also a way to make sure we got the proper file name for the real test later on. 35811 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35812 if test "x$test_shortpath" = x; then 35813 # Short path failed, file does not exist as specified. 35814 # Try adding .exe or .cmd 35815 if test -f "${new_path}.exe"; then 35816 input_to_shortpath="${new_path}.exe" 35817 elif test -f "${new_path}.cmd"; then 35818 input_to_shortpath="${new_path}.cmd" 35819 else 35820 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35821 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35822 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35823 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35824 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35825 fi 35826 else 35827 input_to_shortpath="$new_path" 35828 fi 35829 35830 # Call helper function which possibly converts this using DOS-style short mode. 35831 # If so, the updated path is stored in $new_path. 35832 new_path="$input_to_shortpath" 35833 35834 input_path="$input_to_shortpath" 35835 # Check if we need to convert this using DOS-style short mode. If the path 35836 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35837 # take no chances and rewrite it. 35838 # Note: m4 eats our [], so we need to use [ and ] instead. 35839 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35840 if test "x$has_forbidden_chars" != x; then 35841 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35842 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35843 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35844 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35845 # Going to short mode and back again did indeed matter. Since short mode is 35846 # case insensitive, let's make it lowercase to improve readability. 35847 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35848 # Now convert it back to Unix-stile (cygpath) 35849 input_path=`$CYGPATH -u "$shortmode_path"` 35850 new_path="$input_path" 35851 fi 35852 fi 35853 35854 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35855 if test "x$test_cygdrive_prefix" = x; then 35856 # As a simple fix, exclude /usr/bin since it's not a real path. 35857 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35858 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35859 # a path prefixed by /cygdrive for fixpath to work. 35860 new_path="$CYGWIN_ROOT_PATH$input_path" 35861 fi 35862 fi 35863 35864 # remove trailing .exe if any 35865 new_path="${new_path/%.exe/}" 35866 35867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35868 35869 # First separate the path from the arguments. This will split at the first 35870 # space. 35871 complete="$NM" 35872 path="${complete%% *}" 35873 tmp="$complete EOL" 35874 arguments="${tmp#* }" 35875 35876 # Input might be given as Windows format, start by converting to 35877 # unix format. 35878 new_path="$path" 35879 35880 windows_path="$new_path" 35881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35882 unix_path=`$CYGPATH -u "$windows_path"` 35883 new_path="$unix_path" 35884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35885 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35886 new_path="$unix_path" 35887 fi 35888 35889 35890 # Now try to locate executable using which 35891 new_path=`$WHICH "$new_path" 2> /dev/null` 35892 35893 if test "x$new_path" = x; then 35894 # Oops. Which didn't find the executable. 35895 # The splitting of arguments from the executable at a space might have been incorrect, 35896 # since paths with space are more likely in Windows. Give it another try with the whole 35897 # argument. 35898 path="$complete" 35899 arguments="EOL" 35900 new_path="$path" 35901 35902 windows_path="$new_path" 35903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35904 unix_path=`$CYGPATH -u "$windows_path"` 35905 new_path="$unix_path" 35906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35907 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35908 new_path="$unix_path" 35909 fi 35910 35911 35912 new_path=`$WHICH "$new_path" 2> /dev/null` 35913 # bat and cmd files are not always considered executable in MSYS causing which 35914 # to not find them 35915 if test "x$new_path" = x \ 35916 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35917 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35918 new_path="$path" 35919 35920 windows_path="$new_path" 35921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35922 unix_path=`$CYGPATH -u "$windows_path"` 35923 new_path="$unix_path" 35924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35925 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35926 new_path="$unix_path" 35927 fi 35928 35929 fi 35930 35931 if test "x$new_path" = x; then 35932 # It's still not found. Now this is an unrecoverable error. 35933 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35934 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35935 has_space=`$ECHO "$complete" | $GREP " "` 35936 if test "x$has_space" != x; then 35937 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35938 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35939 fi 35940 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35941 fi 35942 fi 35943 35944 # Now new_path has a complete unix path to the binary 35945 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35946 # Keep paths in /bin as-is, but remove trailing .exe if any 35947 new_path="${new_path/%.exe/}" 35948 # Do not save /bin paths to all_fixpath_prefixes! 35949 else 35950 # Not in mixed or Windows style, start by that. 35951 new_path=`cmd //c echo $new_path` 35952 35953 input_path="$new_path" 35954 # Check if we need to convert this using DOS-style short mode. If the path 35955 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35956 # take no chances and rewrite it. 35957 # Note: m4 eats our [], so we need to use [ and ] instead. 35958 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35959 if test "x$has_forbidden_chars" != x; then 35960 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35961 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35962 fi 35963 35964 # Output is in $new_path 35965 35966 windows_path="$new_path" 35967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35968 unix_path=`$CYGPATH -u "$windows_path"` 35969 new_path="$unix_path" 35970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35971 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35972 new_path="$unix_path" 35973 fi 35974 35975 # remove trailing .exe if any 35976 new_path="${new_path/%.exe/}" 35977 35978 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35979 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35980 fi 35981 35982 else 35983 # We're on a unix platform. Hooray! :) 35984 # First separate the path from the arguments. This will split at the first 35985 # space. 35986 complete="$NM" 35987 path="${complete%% *}" 35988 tmp="$complete EOL" 35989 arguments="${tmp#* }" 35990 35991 # Cannot rely on the command "which" here since it doesn't always work. 35992 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35993 if test -z "$is_absolute_path"; then 35994 # Path to executable is not absolute. Find it. 35995 IFS_save="$IFS" 35996 IFS=: 35997 for p in $PATH; do 35998 if test -f "$p/$path" && test -x "$p/$path"; then 35999 new_path="$p/$path" 36000 break 36001 fi 36002 done 36003 IFS="$IFS_save" 36004 else 36005 # This is an absolute path, we can use it without further modifications. 36006 new_path="$path" 36007 fi 36008 36009 if test "x$new_path" = x; then 36010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36011 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36012 has_space=`$ECHO "$complete" | $GREP " "` 36013 if test "x$has_space" != x; then 36014 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36015 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36016 fi 36017 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36018 fi 36019 fi 36020 36021 # Now join together the path and the arguments once again 36022 if test "x$arguments" != xEOL; then 36023 new_complete="$new_path ${arguments% *}" 36024 else 36025 new_complete="$new_path" 36026 fi 36027 36028 if test "x$complete" != "x$new_complete"; then 36029 NM="$new_complete" 36030 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 36031 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 36032 fi 36033 fi 36034 36035 36036 36037 # Publish this variable in the help. 36038 36039 36040 if test "x$GNM" = x; then 36041 # The variable is not set by user, try to locate tool using the code snippet 36042 for ac_prog in gnm 36043 do 36044 # Extract the first word of "$ac_prog", so it can be a program name with args. 36045 set dummy $ac_prog; ac_word=$2 36046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36047 $as_echo_n "checking for $ac_word... " >&6; } 36048 if ${ac_cv_path_GNM+:} false; then : 36049 $as_echo_n "(cached) " >&6 36050 else 36051 case $GNM in 36052 [\\/]* | ?:[\\/]*) 36053 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36054 ;; 36055 *) 36056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36057 for as_dir in $PATH 36058 do 36059 IFS=$as_save_IFS 36060 test -z "$as_dir" && as_dir=. 36061 for ac_exec_ext in '' $ac_executable_extensions; do 36062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36063 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36065 break 2 36066 fi 36067 done 36068 done 36069 IFS=$as_save_IFS 36070 36071 ;; 36072 esac 36073 fi 36074 GNM=$ac_cv_path_GNM 36075 if test -n "$GNM"; then 36076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36077 $as_echo "$GNM" >&6; } 36078 else 36079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36080 $as_echo "no" >&6; } 36081 fi 36082 36083 36084 test -n "$GNM" && break 36085 done 36086 36087 else 36088 # The variable is set, but is it from the command line or the environment? 36089 36090 # Try to remove the string !GNM! from our list. 36091 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 36092 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36093 # If it failed, the variable was not from the command line. Ignore it, 36094 # but warn the user (except for BASH, which is always set by the calling BASH). 36095 if test "xGNM" != xBASH; then 36096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 36097 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 36098 fi 36099 # Try to locate tool using the code snippet 36100 for ac_prog in gnm 36101 do 36102 # Extract the first word of "$ac_prog", so it can be a program name with args. 36103 set dummy $ac_prog; ac_word=$2 36104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36105 $as_echo_n "checking for $ac_word... " >&6; } 36106 if ${ac_cv_path_GNM+:} false; then : 36107 $as_echo_n "(cached) " >&6 36108 else 36109 case $GNM in 36110 [\\/]* | ?:[\\/]*) 36111 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36112 ;; 36113 *) 36114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36115 for as_dir in $PATH 36116 do 36117 IFS=$as_save_IFS 36118 test -z "$as_dir" && as_dir=. 36119 for ac_exec_ext in '' $ac_executable_extensions; do 36120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36121 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36123 break 2 36124 fi 36125 done 36126 done 36127 IFS=$as_save_IFS 36128 36129 ;; 36130 esac 36131 fi 36132 GNM=$ac_cv_path_GNM 36133 if test -n "$GNM"; then 36134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36135 $as_echo "$GNM" >&6; } 36136 else 36137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36138 $as_echo "no" >&6; } 36139 fi 36140 36141 36142 test -n "$GNM" && break 36143 done 36144 36145 else 36146 # If it succeeded, then it was overridden by the user. We will use it 36147 # for the tool. 36148 36149 # First remove it from the list of overridden variables, so we can test 36150 # for unknown variables in the end. 36151 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36152 36153 # Check if the provided tool contains a complete path. 36154 tool_specified="$GNM" 36155 tool_basename="${tool_specified##*/}" 36156 if test "x$tool_basename" = "x$tool_specified"; then 36157 # A command without a complete path is provided, search $PATH. 36158 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 36159 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 36160 # Extract the first word of "$tool_basename", so it can be a program name with args. 36161 set dummy $tool_basename; ac_word=$2 36162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36163 $as_echo_n "checking for $ac_word... " >&6; } 36164 if ${ac_cv_path_GNM+:} false; then : 36165 $as_echo_n "(cached) " >&6 36166 else 36167 case $GNM in 36168 [\\/]* | ?:[\\/]*) 36169 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36170 ;; 36171 *) 36172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36173 for as_dir in $PATH 36174 do 36175 IFS=$as_save_IFS 36176 test -z "$as_dir" && as_dir=. 36177 for ac_exec_ext in '' $ac_executable_extensions; do 36178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36179 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36181 break 2 36182 fi 36183 done 36184 done 36185 IFS=$as_save_IFS 36186 36187 ;; 36188 esac 36189 fi 36190 GNM=$ac_cv_path_GNM 36191 if test -n "$GNM"; then 36192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36193 $as_echo "$GNM" >&6; } 36194 else 36195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36196 $as_echo "no" >&6; } 36197 fi 36198 36199 36200 if test "x$GNM" = x; then 36201 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36202 fi 36203 else 36204 # Otherwise we believe it is a complete path. Use it as it is. 36205 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 36206 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 36207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 36208 $as_echo_n "checking for GNM... " >&6; } 36209 if test ! -x "$tool_specified"; then 36210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36211 $as_echo "not found" >&6; } 36212 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 36213 fi 36214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36215 $as_echo "$tool_specified" >&6; } 36216 fi 36217 fi 36218 fi 36219 36220 36221 36222 # Only process if variable expands to non-empty 36223 36224 if test "x$GNM" != x; then 36225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36226 36227 # First separate the path from the arguments. This will split at the first 36228 # space. 36229 complete="$GNM" 36230 path="${complete%% *}" 36231 tmp="$complete EOL" 36232 arguments="${tmp#* }" 36233 36234 # Input might be given as Windows format, start by converting to 36235 # unix format. 36236 new_path=`$CYGPATH -u "$path"` 36237 36238 # Now try to locate executable using which 36239 new_path=`$WHICH "$new_path" 2> /dev/null` 36240 # bat and cmd files are not always considered executable in cygwin causing which 36241 # to not find them 36242 if test "x$new_path" = x \ 36243 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36244 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36245 new_path=`$CYGPATH -u "$path"` 36246 fi 36247 if test "x$new_path" = x; then 36248 # Oops. Which didn't find the executable. 36249 # The splitting of arguments from the executable at a space might have been incorrect, 36250 # since paths with space are more likely in Windows. Give it another try with the whole 36251 # argument. 36252 path="$complete" 36253 arguments="EOL" 36254 new_path=`$CYGPATH -u "$path"` 36255 new_path=`$WHICH "$new_path" 2> /dev/null` 36256 # bat and cmd files are not always considered executable in cygwin causing which 36257 # to not find them 36258 if test "x$new_path" = x \ 36259 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36260 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36261 new_path=`$CYGPATH -u "$path"` 36262 fi 36263 if test "x$new_path" = x; then 36264 # It's still not found. Now this is an unrecoverable error. 36265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36266 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36267 has_space=`$ECHO "$complete" | $GREP " "` 36268 if test "x$has_space" != x; then 36269 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36270 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36271 fi 36272 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36273 fi 36274 fi 36275 36276 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36277 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36278 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36279 # "foo.exe" is OK but "foo" is an error. 36280 # 36281 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36282 # It is also a way to make sure we got the proper file name for the real test later on. 36283 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36284 if test "x$test_shortpath" = x; then 36285 # Short path failed, file does not exist as specified. 36286 # Try adding .exe or .cmd 36287 if test -f "${new_path}.exe"; then 36288 input_to_shortpath="${new_path}.exe" 36289 elif test -f "${new_path}.cmd"; then 36290 input_to_shortpath="${new_path}.cmd" 36291 else 36292 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 36293 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 36294 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36295 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36296 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36297 fi 36298 else 36299 input_to_shortpath="$new_path" 36300 fi 36301 36302 # Call helper function which possibly converts this using DOS-style short mode. 36303 # If so, the updated path is stored in $new_path. 36304 new_path="$input_to_shortpath" 36305 36306 input_path="$input_to_shortpath" 36307 # Check if we need to convert this using DOS-style short mode. If the path 36308 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36309 # take no chances and rewrite it. 36310 # Note: m4 eats our [], so we need to use [ and ] instead. 36311 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36312 if test "x$has_forbidden_chars" != x; then 36313 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36314 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36315 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36316 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36317 # Going to short mode and back again did indeed matter. Since short mode is 36318 # case insensitive, let's make it lowercase to improve readability. 36319 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36320 # Now convert it back to Unix-stile (cygpath) 36321 input_path=`$CYGPATH -u "$shortmode_path"` 36322 new_path="$input_path" 36323 fi 36324 fi 36325 36326 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36327 if test "x$test_cygdrive_prefix" = x; then 36328 # As a simple fix, exclude /usr/bin since it's not a real path. 36329 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36330 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36331 # a path prefixed by /cygdrive for fixpath to work. 36332 new_path="$CYGWIN_ROOT_PATH$input_path" 36333 fi 36334 fi 36335 36336 # remove trailing .exe if any 36337 new_path="${new_path/%.exe/}" 36338 36339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36340 36341 # First separate the path from the arguments. This will split at the first 36342 # space. 36343 complete="$GNM" 36344 path="${complete%% *}" 36345 tmp="$complete EOL" 36346 arguments="${tmp#* }" 36347 36348 # Input might be given as Windows format, start by converting to 36349 # unix format. 36350 new_path="$path" 36351 36352 windows_path="$new_path" 36353 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36354 unix_path=`$CYGPATH -u "$windows_path"` 36355 new_path="$unix_path" 36356 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36357 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36358 new_path="$unix_path" 36359 fi 36360 36361 36362 # Now try to locate executable using which 36363 new_path=`$WHICH "$new_path" 2> /dev/null` 36364 36365 if test "x$new_path" = x; then 36366 # Oops. Which didn't find the executable. 36367 # The splitting of arguments from the executable at a space might have been incorrect, 36368 # since paths with space are more likely in Windows. Give it another try with the whole 36369 # argument. 36370 path="$complete" 36371 arguments="EOL" 36372 new_path="$path" 36373 36374 windows_path="$new_path" 36375 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36376 unix_path=`$CYGPATH -u "$windows_path"` 36377 new_path="$unix_path" 36378 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36379 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36380 new_path="$unix_path" 36381 fi 36382 36383 36384 new_path=`$WHICH "$new_path" 2> /dev/null` 36385 # bat and cmd files are not always considered executable in MSYS causing which 36386 # to not find them 36387 if test "x$new_path" = x \ 36388 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36389 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36390 new_path="$path" 36391 36392 windows_path="$new_path" 36393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36394 unix_path=`$CYGPATH -u "$windows_path"` 36395 new_path="$unix_path" 36396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36397 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36398 new_path="$unix_path" 36399 fi 36400 36401 fi 36402 36403 if test "x$new_path" = x; then 36404 # It's still not found. Now this is an unrecoverable error. 36405 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36406 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36407 has_space=`$ECHO "$complete" | $GREP " "` 36408 if test "x$has_space" != x; then 36409 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36410 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36411 fi 36412 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36413 fi 36414 fi 36415 36416 # Now new_path has a complete unix path to the binary 36417 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36418 # Keep paths in /bin as-is, but remove trailing .exe if any 36419 new_path="${new_path/%.exe/}" 36420 # Do not save /bin paths to all_fixpath_prefixes! 36421 else 36422 # Not in mixed or Windows style, start by that. 36423 new_path=`cmd //c echo $new_path` 36424 36425 input_path="$new_path" 36426 # Check if we need to convert this using DOS-style short mode. If the path 36427 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36428 # take no chances and rewrite it. 36429 # Note: m4 eats our [], so we need to use [ and ] instead. 36430 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36431 if test "x$has_forbidden_chars" != x; then 36432 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36433 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36434 fi 36435 36436 # Output is in $new_path 36437 36438 windows_path="$new_path" 36439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36440 unix_path=`$CYGPATH -u "$windows_path"` 36441 new_path="$unix_path" 36442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36443 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36444 new_path="$unix_path" 36445 fi 36446 36447 # remove trailing .exe if any 36448 new_path="${new_path/%.exe/}" 36449 36450 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36451 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36452 fi 36453 36454 else 36455 # We're on a unix platform. Hooray! :) 36456 # First separate the path from the arguments. This will split at the first 36457 # space. 36458 complete="$GNM" 36459 path="${complete%% *}" 36460 tmp="$complete EOL" 36461 arguments="${tmp#* }" 36462 36463 # Cannot rely on the command "which" here since it doesn't always work. 36464 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36465 if test -z "$is_absolute_path"; then 36466 # Path to executable is not absolute. Find it. 36467 IFS_save="$IFS" 36468 IFS=: 36469 for p in $PATH; do 36470 if test -f "$p/$path" && test -x "$p/$path"; then 36471 new_path="$p/$path" 36472 break 36473 fi 36474 done 36475 IFS="$IFS_save" 36476 else 36477 # This is an absolute path, we can use it without further modifications. 36478 new_path="$path" 36479 fi 36480 36481 if test "x$new_path" = x; then 36482 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36483 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36484 has_space=`$ECHO "$complete" | $GREP " "` 36485 if test "x$has_space" != x; then 36486 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36487 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36488 fi 36489 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36490 fi 36491 fi 36492 36493 # Now join together the path and the arguments once again 36494 if test "x$arguments" != xEOL; then 36495 new_complete="$new_path ${arguments% *}" 36496 else 36497 new_complete="$new_path" 36498 fi 36499 36500 if test "x$complete" != "x$new_complete"; then 36501 GNM="$new_complete" 36502 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36503 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36504 fi 36505 fi 36506 36507 36508 36509 36510 # Publish this variable in the help. 36511 36512 36513 if test "x$MCS" = x; then 36514 # The variable is not set by user, try to locate tool using the code snippet 36515 for ac_prog in mcs 36516 do 36517 # Extract the first word of "$ac_prog", so it can be a program name with args. 36518 set dummy $ac_prog; ac_word=$2 36519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36520 $as_echo_n "checking for $ac_word... " >&6; } 36521 if ${ac_cv_path_MCS+:} false; then : 36522 $as_echo_n "(cached) " >&6 36523 else 36524 case $MCS in 36525 [\\/]* | ?:[\\/]*) 36526 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36527 ;; 36528 *) 36529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36530 for as_dir in $PATH 36531 do 36532 IFS=$as_save_IFS 36533 test -z "$as_dir" && as_dir=. 36534 for ac_exec_ext in '' $ac_executable_extensions; do 36535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36536 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36538 break 2 36539 fi 36540 done 36541 done 36542 IFS=$as_save_IFS 36543 36544 ;; 36545 esac 36546 fi 36547 MCS=$ac_cv_path_MCS 36548 if test -n "$MCS"; then 36549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36550 $as_echo "$MCS" >&6; } 36551 else 36552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36553 $as_echo "no" >&6; } 36554 fi 36555 36556 36557 test -n "$MCS" && break 36558 done 36559 36560 else 36561 # The variable is set, but is it from the command line or the environment? 36562 36563 # Try to remove the string !MCS! from our list. 36564 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 36565 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36566 # If it failed, the variable was not from the command line. Ignore it, 36567 # but warn the user (except for BASH, which is always set by the calling BASH). 36568 if test "xMCS" != xBASH; then 36569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 36570 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 36571 fi 36572 # Try to locate tool using the code snippet 36573 for ac_prog in mcs 36574 do 36575 # Extract the first word of "$ac_prog", so it can be a program name with args. 36576 set dummy $ac_prog; ac_word=$2 36577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36578 $as_echo_n "checking for $ac_word... " >&6; } 36579 if ${ac_cv_path_MCS+:} false; then : 36580 $as_echo_n "(cached) " >&6 36581 else 36582 case $MCS in 36583 [\\/]* | ?:[\\/]*) 36584 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36585 ;; 36586 *) 36587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36588 for as_dir in $PATH 36589 do 36590 IFS=$as_save_IFS 36591 test -z "$as_dir" && as_dir=. 36592 for ac_exec_ext in '' $ac_executable_extensions; do 36593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36594 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36596 break 2 36597 fi 36598 done 36599 done 36600 IFS=$as_save_IFS 36601 36602 ;; 36603 esac 36604 fi 36605 MCS=$ac_cv_path_MCS 36606 if test -n "$MCS"; then 36607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36608 $as_echo "$MCS" >&6; } 36609 else 36610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36611 $as_echo "no" >&6; } 36612 fi 36613 36614 36615 test -n "$MCS" && break 36616 done 36617 36618 else 36619 # If it succeeded, then it was overridden by the user. We will use it 36620 # for the tool. 36621 36622 # First remove it from the list of overridden variables, so we can test 36623 # for unknown variables in the end. 36624 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36625 36626 # Check if the provided tool contains a complete path. 36627 tool_specified="$MCS" 36628 tool_basename="${tool_specified##*/}" 36629 if test "x$tool_basename" = "x$tool_specified"; then 36630 # A command without a complete path is provided, search $PATH. 36631 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 36632 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 36633 # Extract the first word of "$tool_basename", so it can be a program name with args. 36634 set dummy $tool_basename; ac_word=$2 36635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36636 $as_echo_n "checking for $ac_word... " >&6; } 36637 if ${ac_cv_path_MCS+:} false; then : 36638 $as_echo_n "(cached) " >&6 36639 else 36640 case $MCS in 36641 [\\/]* | ?:[\\/]*) 36642 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36643 ;; 36644 *) 36645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36646 for as_dir in $PATH 36647 do 36648 IFS=$as_save_IFS 36649 test -z "$as_dir" && as_dir=. 36650 for ac_exec_ext in '' $ac_executable_extensions; do 36651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36652 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36654 break 2 36655 fi 36656 done 36657 done 36658 IFS=$as_save_IFS 36659 36660 ;; 36661 esac 36662 fi 36663 MCS=$ac_cv_path_MCS 36664 if test -n "$MCS"; then 36665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36666 $as_echo "$MCS" >&6; } 36667 else 36668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36669 $as_echo "no" >&6; } 36670 fi 36671 36672 36673 if test "x$MCS" = x; then 36674 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36675 fi 36676 else 36677 # Otherwise we believe it is a complete path. Use it as it is. 36678 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36679 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36681 $as_echo_n "checking for MCS... " >&6; } 36682 if test ! -x "$tool_specified"; then 36683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36684 $as_echo "not found" >&6; } 36685 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36686 fi 36687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36688 $as_echo "$tool_specified" >&6; } 36689 fi 36690 fi 36691 fi 36692 36693 36694 36695 # Only process if variable expands to non-empty 36696 36697 if test "x$MCS" != x; then 36698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36699 36700 # First separate the path from the arguments. This will split at the first 36701 # space. 36702 complete="$MCS" 36703 path="${complete%% *}" 36704 tmp="$complete EOL" 36705 arguments="${tmp#* }" 36706 36707 # Input might be given as Windows format, start by converting to 36708 # unix format. 36709 new_path=`$CYGPATH -u "$path"` 36710 36711 # Now try to locate executable using which 36712 new_path=`$WHICH "$new_path" 2> /dev/null` 36713 # bat and cmd files are not always considered executable in cygwin causing which 36714 # to not find them 36715 if test "x$new_path" = x \ 36716 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36717 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36718 new_path=`$CYGPATH -u "$path"` 36719 fi 36720 if test "x$new_path" = x; then 36721 # Oops. Which didn't find the executable. 36722 # The splitting of arguments from the executable at a space might have been incorrect, 36723 # since paths with space are more likely in Windows. Give it another try with the whole 36724 # argument. 36725 path="$complete" 36726 arguments="EOL" 36727 new_path=`$CYGPATH -u "$path"` 36728 new_path=`$WHICH "$new_path" 2> /dev/null` 36729 # bat and cmd files are not always considered executable in cygwin causing which 36730 # to not find them 36731 if test "x$new_path" = x \ 36732 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36733 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36734 new_path=`$CYGPATH -u "$path"` 36735 fi 36736 if test "x$new_path" = x; then 36737 # It's still not found. Now this is an unrecoverable error. 36738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36739 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36740 has_space=`$ECHO "$complete" | $GREP " "` 36741 if test "x$has_space" != x; then 36742 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36743 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36744 fi 36745 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36746 fi 36747 fi 36748 36749 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36750 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36751 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36752 # "foo.exe" is OK but "foo" is an error. 36753 # 36754 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36755 # It is also a way to make sure we got the proper file name for the real test later on. 36756 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36757 if test "x$test_shortpath" = x; then 36758 # Short path failed, file does not exist as specified. 36759 # Try adding .exe or .cmd 36760 if test -f "${new_path}.exe"; then 36761 input_to_shortpath="${new_path}.exe" 36762 elif test -f "${new_path}.cmd"; then 36763 input_to_shortpath="${new_path}.cmd" 36764 else 36765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36766 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36767 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36768 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36769 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36770 fi 36771 else 36772 input_to_shortpath="$new_path" 36773 fi 36774 36775 # Call helper function which possibly converts this using DOS-style short mode. 36776 # If so, the updated path is stored in $new_path. 36777 new_path="$input_to_shortpath" 36778 36779 input_path="$input_to_shortpath" 36780 # Check if we need to convert this using DOS-style short mode. If the path 36781 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36782 # take no chances and rewrite it. 36783 # Note: m4 eats our [], so we need to use [ and ] instead. 36784 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36785 if test "x$has_forbidden_chars" != x; then 36786 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36787 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36788 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36789 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36790 # Going to short mode and back again did indeed matter. Since short mode is 36791 # case insensitive, let's make it lowercase to improve readability. 36792 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36793 # Now convert it back to Unix-stile (cygpath) 36794 input_path=`$CYGPATH -u "$shortmode_path"` 36795 new_path="$input_path" 36796 fi 36797 fi 36798 36799 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36800 if test "x$test_cygdrive_prefix" = x; then 36801 # As a simple fix, exclude /usr/bin since it's not a real path. 36802 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36803 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36804 # a path prefixed by /cygdrive for fixpath to work. 36805 new_path="$CYGWIN_ROOT_PATH$input_path" 36806 fi 36807 fi 36808 36809 # remove trailing .exe if any 36810 new_path="${new_path/%.exe/}" 36811 36812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36813 36814 # First separate the path from the arguments. This will split at the first 36815 # space. 36816 complete="$MCS" 36817 path="${complete%% *}" 36818 tmp="$complete EOL" 36819 arguments="${tmp#* }" 36820 36821 # Input might be given as Windows format, start by converting to 36822 # unix format. 36823 new_path="$path" 36824 36825 windows_path="$new_path" 36826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36827 unix_path=`$CYGPATH -u "$windows_path"` 36828 new_path="$unix_path" 36829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36830 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36831 new_path="$unix_path" 36832 fi 36833 36834 36835 # Now try to locate executable using which 36836 new_path=`$WHICH "$new_path" 2> /dev/null` 36837 36838 if test "x$new_path" = x; then 36839 # Oops. Which didn't find the executable. 36840 # The splitting of arguments from the executable at a space might have been incorrect, 36841 # since paths with space are more likely in Windows. Give it another try with the whole 36842 # argument. 36843 path="$complete" 36844 arguments="EOL" 36845 new_path="$path" 36846 36847 windows_path="$new_path" 36848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36849 unix_path=`$CYGPATH -u "$windows_path"` 36850 new_path="$unix_path" 36851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36853 new_path="$unix_path" 36854 fi 36855 36856 36857 new_path=`$WHICH "$new_path" 2> /dev/null` 36858 # bat and cmd files are not always considered executable in MSYS causing which 36859 # to not find them 36860 if test "x$new_path" = x \ 36861 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36862 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36863 new_path="$path" 36864 36865 windows_path="$new_path" 36866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36867 unix_path=`$CYGPATH -u "$windows_path"` 36868 new_path="$unix_path" 36869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36870 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36871 new_path="$unix_path" 36872 fi 36873 36874 fi 36875 36876 if test "x$new_path" = x; then 36877 # It's still not found. Now this is an unrecoverable error. 36878 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36879 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36880 has_space=`$ECHO "$complete" | $GREP " "` 36881 if test "x$has_space" != x; then 36882 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36883 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36884 fi 36885 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36886 fi 36887 fi 36888 36889 # Now new_path has a complete unix path to the binary 36890 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36891 # Keep paths in /bin as-is, but remove trailing .exe if any 36892 new_path="${new_path/%.exe/}" 36893 # Do not save /bin paths to all_fixpath_prefixes! 36894 else 36895 # Not in mixed or Windows style, start by that. 36896 new_path=`cmd //c echo $new_path` 36897 36898 input_path="$new_path" 36899 # Check if we need to convert this using DOS-style short mode. If the path 36900 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36901 # take no chances and rewrite it. 36902 # Note: m4 eats our [], so we need to use [ and ] instead. 36903 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36904 if test "x$has_forbidden_chars" != x; then 36905 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36906 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36907 fi 36908 36909 # Output is in $new_path 36910 36911 windows_path="$new_path" 36912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36913 unix_path=`$CYGPATH -u "$windows_path"` 36914 new_path="$unix_path" 36915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36916 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36917 new_path="$unix_path" 36918 fi 36919 36920 # remove trailing .exe if any 36921 new_path="${new_path/%.exe/}" 36922 36923 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36924 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36925 fi 36926 36927 else 36928 # We're on a unix platform. Hooray! :) 36929 # First separate the path from the arguments. This will split at the first 36930 # space. 36931 complete="$MCS" 36932 path="${complete%% *}" 36933 tmp="$complete EOL" 36934 arguments="${tmp#* }" 36935 36936 # Cannot rely on the command "which" here since it doesn't always work. 36937 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36938 if test -z "$is_absolute_path"; then 36939 # Path to executable is not absolute. Find it. 36940 IFS_save="$IFS" 36941 IFS=: 36942 for p in $PATH; do 36943 if test -f "$p/$path" && test -x "$p/$path"; then 36944 new_path="$p/$path" 36945 break 36946 fi 36947 done 36948 IFS="$IFS_save" 36949 else 36950 # This is an absolute path, we can use it without further modifications. 36951 new_path="$path" 36952 fi 36953 36954 if test "x$new_path" = x; then 36955 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36956 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36957 has_space=`$ECHO "$complete" | $GREP " "` 36958 if test "x$has_space" != x; then 36959 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36960 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36961 fi 36962 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36963 fi 36964 fi 36965 36966 # Now join together the path and the arguments once again 36967 if test "x$arguments" != xEOL; then 36968 new_complete="$new_path ${arguments% *}" 36969 else 36970 new_complete="$new_path" 36971 fi 36972 36973 if test "x$complete" != "x$new_complete"; then 36974 MCS="$new_complete" 36975 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 36976 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 36977 fi 36978 fi 36979 36980 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 36981 # FIXME: we should unify this with the solaris case above. 36982 36983 36984 # Publish this variable in the help. 36985 36986 36987 if test "x$STRIP" = x; then 36988 # The variable is not set by user, try to locate tool using the code snippet 36989 if test -n "$ac_tool_prefix"; then 36990 for ac_prog in strip 36991 do 36992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36995 $as_echo_n "checking for $ac_word... " >&6; } 36996 if ${ac_cv_prog_STRIP+:} false; then : 36997 $as_echo_n "(cached) " >&6 36998 else 36999 if test -n "$STRIP"; then 37000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37001 else 37002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37003 for as_dir in $PATH 37004 do 37005 IFS=$as_save_IFS 37006 test -z "$as_dir" && as_dir=. 37007 for ac_exec_ext in '' $ac_executable_extensions; do 37008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37009 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37011 break 2 37012 fi 37013 done 37014 done 37015 IFS=$as_save_IFS 37016 37017 fi 37018 fi 37019 STRIP=$ac_cv_prog_STRIP 37020 if test -n "$STRIP"; then 37021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37022 $as_echo "$STRIP" >&6; } 37023 else 37024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37025 $as_echo "no" >&6; } 37026 fi 37027 37028 37029 test -n "$STRIP" && break 37030 done 37031 fi 37032 if test -z "$STRIP"; then 37033 ac_ct_STRIP=$STRIP 37034 for ac_prog in strip 37035 do 37036 # Extract the first word of "$ac_prog", so it can be a program name with args. 37037 set dummy $ac_prog; ac_word=$2 37038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37039 $as_echo_n "checking for $ac_word... " >&6; } 37040 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37041 $as_echo_n "(cached) " >&6 37042 else 37043 if test -n "$ac_ct_STRIP"; then 37044 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37045 else 37046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37047 for as_dir in $PATH 37048 do 37049 IFS=$as_save_IFS 37050 test -z "$as_dir" && as_dir=. 37051 for ac_exec_ext in '' $ac_executable_extensions; do 37052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37053 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37055 break 2 37056 fi 37057 done 37058 done 37059 IFS=$as_save_IFS 37060 37061 fi 37062 fi 37063 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37064 if test -n "$ac_ct_STRIP"; then 37065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37066 $as_echo "$ac_ct_STRIP" >&6; } 37067 else 37068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37069 $as_echo "no" >&6; } 37070 fi 37071 37072 37073 test -n "$ac_ct_STRIP" && break 37074 done 37075 37076 if test "x$ac_ct_STRIP" = x; then 37077 STRIP="" 37078 else 37079 case $cross_compiling:$ac_tool_warned in 37080 yes:) 37081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37083 ac_tool_warned=yes ;; 37084 esac 37085 STRIP=$ac_ct_STRIP 37086 fi 37087 fi 37088 37089 else 37090 # The variable is set, but is it from the command line or the environment? 37091 37092 # Try to remove the string !STRIP! from our list. 37093 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 37094 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37095 # If it failed, the variable was not from the command line. Ignore it, 37096 # but warn the user (except for BASH, which is always set by the calling BASH). 37097 if test "xSTRIP" != xBASH; then 37098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 37099 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 37100 fi 37101 # Try to locate tool using the code snippet 37102 if test -n "$ac_tool_prefix"; then 37103 for ac_prog in strip 37104 do 37105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37108 $as_echo_n "checking for $ac_word... " >&6; } 37109 if ${ac_cv_prog_STRIP+:} false; then : 37110 $as_echo_n "(cached) " >&6 37111 else 37112 if test -n "$STRIP"; then 37113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37114 else 37115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37116 for as_dir in $PATH 37117 do 37118 IFS=$as_save_IFS 37119 test -z "$as_dir" && as_dir=. 37120 for ac_exec_ext in '' $ac_executable_extensions; do 37121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37122 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37124 break 2 37125 fi 37126 done 37127 done 37128 IFS=$as_save_IFS 37129 37130 fi 37131 fi 37132 STRIP=$ac_cv_prog_STRIP 37133 if test -n "$STRIP"; then 37134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37135 $as_echo "$STRIP" >&6; } 37136 else 37137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37138 $as_echo "no" >&6; } 37139 fi 37140 37141 37142 test -n "$STRIP" && break 37143 done 37144 fi 37145 if test -z "$STRIP"; then 37146 ac_ct_STRIP=$STRIP 37147 for ac_prog in strip 37148 do 37149 # Extract the first word of "$ac_prog", so it can be a program name with args. 37150 set dummy $ac_prog; ac_word=$2 37151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37152 $as_echo_n "checking for $ac_word... " >&6; } 37153 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37154 $as_echo_n "(cached) " >&6 37155 else 37156 if test -n "$ac_ct_STRIP"; then 37157 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37158 else 37159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37160 for as_dir in $PATH 37161 do 37162 IFS=$as_save_IFS 37163 test -z "$as_dir" && as_dir=. 37164 for ac_exec_ext in '' $ac_executable_extensions; do 37165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37166 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37168 break 2 37169 fi 37170 done 37171 done 37172 IFS=$as_save_IFS 37173 37174 fi 37175 fi 37176 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37177 if test -n "$ac_ct_STRIP"; then 37178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37179 $as_echo "$ac_ct_STRIP" >&6; } 37180 else 37181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37182 $as_echo "no" >&6; } 37183 fi 37184 37185 37186 test -n "$ac_ct_STRIP" && break 37187 done 37188 37189 if test "x$ac_ct_STRIP" = x; then 37190 STRIP="" 37191 else 37192 case $cross_compiling:$ac_tool_warned in 37193 yes:) 37194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37196 ac_tool_warned=yes ;; 37197 esac 37198 STRIP=$ac_ct_STRIP 37199 fi 37200 fi 37201 37202 else 37203 # If it succeeded, then it was overridden by the user. We will use it 37204 # for the tool. 37205 37206 # First remove it from the list of overridden variables, so we can test 37207 # for unknown variables in the end. 37208 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37209 37210 # Check if the provided tool contains a complete path. 37211 tool_specified="$STRIP" 37212 tool_basename="${tool_specified##*/}" 37213 if test "x$tool_basename" = "x$tool_specified"; then 37214 # A command without a complete path is provided, search $PATH. 37215 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 37216 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 37217 # Extract the first word of "$tool_basename", so it can be a program name with args. 37218 set dummy $tool_basename; ac_word=$2 37219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37220 $as_echo_n "checking for $ac_word... " >&6; } 37221 if ${ac_cv_path_STRIP+:} false; then : 37222 $as_echo_n "(cached) " >&6 37223 else 37224 case $STRIP in 37225 [\\/]* | ?:[\\/]*) 37226 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37227 ;; 37228 *) 37229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37230 for as_dir in $PATH 37231 do 37232 IFS=$as_save_IFS 37233 test -z "$as_dir" && as_dir=. 37234 for ac_exec_ext in '' $ac_executable_extensions; do 37235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37236 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37238 break 2 37239 fi 37240 done 37241 done 37242 IFS=$as_save_IFS 37243 37244 ;; 37245 esac 37246 fi 37247 STRIP=$ac_cv_path_STRIP 37248 if test -n "$STRIP"; then 37249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37250 $as_echo "$STRIP" >&6; } 37251 else 37252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37253 $as_echo "no" >&6; } 37254 fi 37255 37256 37257 if test "x$STRIP" = x; then 37258 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37259 fi 37260 else 37261 # Otherwise we believe it is a complete path. Use it as it is. 37262 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 37263 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 37264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 37265 $as_echo_n "checking for STRIP... " >&6; } 37266 if test ! -x "$tool_specified"; then 37267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37268 $as_echo "not found" >&6; } 37269 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 37270 fi 37271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37272 $as_echo "$tool_specified" >&6; } 37273 fi 37274 fi 37275 fi 37276 37277 37278 37279 # Only process if variable expands to non-empty 37280 37281 if test "x$STRIP" != x; then 37282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37283 37284 # First separate the path from the arguments. This will split at the first 37285 # space. 37286 complete="$STRIP" 37287 path="${complete%% *}" 37288 tmp="$complete EOL" 37289 arguments="${tmp#* }" 37290 37291 # Input might be given as Windows format, start by converting to 37292 # unix format. 37293 new_path=`$CYGPATH -u "$path"` 37294 37295 # Now try to locate executable using which 37296 new_path=`$WHICH "$new_path" 2> /dev/null` 37297 # bat and cmd files are not always considered executable in cygwin causing which 37298 # to not find them 37299 if test "x$new_path" = x \ 37300 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37301 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37302 new_path=`$CYGPATH -u "$path"` 37303 fi 37304 if test "x$new_path" = x; then 37305 # Oops. Which didn't find the executable. 37306 # The splitting of arguments from the executable at a space might have been incorrect, 37307 # since paths with space are more likely in Windows. Give it another try with the whole 37308 # argument. 37309 path="$complete" 37310 arguments="EOL" 37311 new_path=`$CYGPATH -u "$path"` 37312 new_path=`$WHICH "$new_path" 2> /dev/null` 37313 # bat and cmd files are not always considered executable in cygwin causing which 37314 # to not find them 37315 if test "x$new_path" = x \ 37316 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37317 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37318 new_path=`$CYGPATH -u "$path"` 37319 fi 37320 if test "x$new_path" = x; then 37321 # It's still not found. Now this is an unrecoverable error. 37322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37323 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37324 has_space=`$ECHO "$complete" | $GREP " "` 37325 if test "x$has_space" != x; then 37326 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37327 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37328 fi 37329 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37330 fi 37331 fi 37332 37333 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37334 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37335 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37336 # "foo.exe" is OK but "foo" is an error. 37337 # 37338 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37339 # It is also a way to make sure we got the proper file name for the real test later on. 37340 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37341 if test "x$test_shortpath" = x; then 37342 # Short path failed, file does not exist as specified. 37343 # Try adding .exe or .cmd 37344 if test -f "${new_path}.exe"; then 37345 input_to_shortpath="${new_path}.exe" 37346 elif test -f "${new_path}.cmd"; then 37347 input_to_shortpath="${new_path}.cmd" 37348 else 37349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 37350 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 37351 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37352 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37353 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37354 fi 37355 else 37356 input_to_shortpath="$new_path" 37357 fi 37358 37359 # Call helper function which possibly converts this using DOS-style short mode. 37360 # If so, the updated path is stored in $new_path. 37361 new_path="$input_to_shortpath" 37362 37363 input_path="$input_to_shortpath" 37364 # Check if we need to convert this using DOS-style short mode. If the path 37365 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37366 # take no chances and rewrite it. 37367 # Note: m4 eats our [], so we need to use [ and ] instead. 37368 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37369 if test "x$has_forbidden_chars" != x; then 37370 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37371 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37372 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37373 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37374 # Going to short mode and back again did indeed matter. Since short mode is 37375 # case insensitive, let's make it lowercase to improve readability. 37376 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37377 # Now convert it back to Unix-stile (cygpath) 37378 input_path=`$CYGPATH -u "$shortmode_path"` 37379 new_path="$input_path" 37380 fi 37381 fi 37382 37383 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37384 if test "x$test_cygdrive_prefix" = x; then 37385 # As a simple fix, exclude /usr/bin since it's not a real path. 37386 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37387 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37388 # a path prefixed by /cygdrive for fixpath to work. 37389 new_path="$CYGWIN_ROOT_PATH$input_path" 37390 fi 37391 fi 37392 37393 # remove trailing .exe if any 37394 new_path="${new_path/%.exe/}" 37395 37396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37397 37398 # First separate the path from the arguments. This will split at the first 37399 # space. 37400 complete="$STRIP" 37401 path="${complete%% *}" 37402 tmp="$complete EOL" 37403 arguments="${tmp#* }" 37404 37405 # Input might be given as Windows format, start by converting to 37406 # unix format. 37407 new_path="$path" 37408 37409 windows_path="$new_path" 37410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37411 unix_path=`$CYGPATH -u "$windows_path"` 37412 new_path="$unix_path" 37413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37414 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37415 new_path="$unix_path" 37416 fi 37417 37418 37419 # Now try to locate executable using which 37420 new_path=`$WHICH "$new_path" 2> /dev/null` 37421 37422 if test "x$new_path" = x; then 37423 # Oops. Which didn't find the executable. 37424 # The splitting of arguments from the executable at a space might have been incorrect, 37425 # since paths with space are more likely in Windows. Give it another try with the whole 37426 # argument. 37427 path="$complete" 37428 arguments="EOL" 37429 new_path="$path" 37430 37431 windows_path="$new_path" 37432 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37433 unix_path=`$CYGPATH -u "$windows_path"` 37434 new_path="$unix_path" 37435 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37436 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37437 new_path="$unix_path" 37438 fi 37439 37440 37441 new_path=`$WHICH "$new_path" 2> /dev/null` 37442 # bat and cmd files are not always considered executable in MSYS 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="$path" 37448 37449 windows_path="$new_path" 37450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37451 unix_path=`$CYGPATH -u "$windows_path"` 37452 new_path="$unix_path" 37453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37454 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37455 new_path="$unix_path" 37456 fi 37457 37458 fi 37459 37460 if test "x$new_path" = x; then 37461 # It's still not found. Now this is an unrecoverable error. 37462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37463 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37464 has_space=`$ECHO "$complete" | $GREP " "` 37465 if test "x$has_space" != x; then 37466 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37467 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37468 fi 37469 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37470 fi 37471 fi 37472 37473 # Now new_path has a complete unix path to the binary 37474 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37475 # Keep paths in /bin as-is, but remove trailing .exe if any 37476 new_path="${new_path/%.exe/}" 37477 # Do not save /bin paths to all_fixpath_prefixes! 37478 else 37479 # Not in mixed or Windows style, start by that. 37480 new_path=`cmd //c echo $new_path` 37481 37482 input_path="$new_path" 37483 # Check if we need to convert this using DOS-style short mode. If the path 37484 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37485 # take no chances and rewrite it. 37486 # Note: m4 eats our [], so we need to use [ and ] instead. 37487 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37488 if test "x$has_forbidden_chars" != x; then 37489 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37490 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37491 fi 37492 37493 # Output is in $new_path 37494 37495 windows_path="$new_path" 37496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37497 unix_path=`$CYGPATH -u "$windows_path"` 37498 new_path="$unix_path" 37499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37500 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37501 new_path="$unix_path" 37502 fi 37503 37504 # remove trailing .exe if any 37505 new_path="${new_path/%.exe/}" 37506 37507 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37508 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37509 fi 37510 37511 else 37512 # We're on a unix platform. Hooray! :) 37513 # First separate the path from the arguments. This will split at the first 37514 # space. 37515 complete="$STRIP" 37516 path="${complete%% *}" 37517 tmp="$complete EOL" 37518 arguments="${tmp#* }" 37519 37520 # Cannot rely on the command "which" here since it doesn't always work. 37521 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37522 if test -z "$is_absolute_path"; then 37523 # Path to executable is not absolute. Find it. 37524 IFS_save="$IFS" 37525 IFS=: 37526 for p in $PATH; do 37527 if test -f "$p/$path" && test -x "$p/$path"; then 37528 new_path="$p/$path" 37529 break 37530 fi 37531 done 37532 IFS="$IFS_save" 37533 else 37534 # This is an absolute path, we can use it without further modifications. 37535 new_path="$path" 37536 fi 37537 37538 if test "x$new_path" = x; then 37539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37540 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37541 has_space=`$ECHO "$complete" | $GREP " "` 37542 if test "x$has_space" != x; then 37543 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37544 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37545 fi 37546 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37547 fi 37548 fi 37549 37550 # Now join together the path and the arguments once again 37551 if test "x$arguments" != xEOL; then 37552 new_complete="$new_path ${arguments% *}" 37553 else 37554 new_complete="$new_path" 37555 fi 37556 37557 if test "x$complete" != "x$new_complete"; then 37558 STRIP="$new_complete" 37559 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37560 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37561 fi 37562 fi 37563 37564 37565 37566 # Publish this variable in the help. 37567 37568 37569 if test "x$NM" = x; then 37570 # The variable is not set by user, try to locate tool using the code snippet 37571 if test -n "$ac_tool_prefix"; then 37572 for ac_prog in nm 37573 do 37574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37577 $as_echo_n "checking for $ac_word... " >&6; } 37578 if ${ac_cv_prog_NM+:} false; then : 37579 $as_echo_n "(cached) " >&6 37580 else 37581 if test -n "$NM"; then 37582 ac_cv_prog_NM="$NM" # Let the user override the test. 37583 else 37584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37585 for as_dir in $PATH 37586 do 37587 IFS=$as_save_IFS 37588 test -z "$as_dir" && as_dir=. 37589 for ac_exec_ext in '' $ac_executable_extensions; do 37590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37591 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37593 break 2 37594 fi 37595 done 37596 done 37597 IFS=$as_save_IFS 37598 37599 fi 37600 fi 37601 NM=$ac_cv_prog_NM 37602 if test -n "$NM"; then 37603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37604 $as_echo "$NM" >&6; } 37605 else 37606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37607 $as_echo "no" >&6; } 37608 fi 37609 37610 37611 test -n "$NM" && break 37612 done 37613 fi 37614 if test -z "$NM"; then 37615 ac_ct_NM=$NM 37616 for ac_prog in nm 37617 do 37618 # Extract the first word of "$ac_prog", so it can be a program name with args. 37619 set dummy $ac_prog; ac_word=$2 37620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37621 $as_echo_n "checking for $ac_word... " >&6; } 37622 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37623 $as_echo_n "(cached) " >&6 37624 else 37625 if test -n "$ac_ct_NM"; then 37626 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37627 else 37628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37629 for as_dir in $PATH 37630 do 37631 IFS=$as_save_IFS 37632 test -z "$as_dir" && as_dir=. 37633 for ac_exec_ext in '' $ac_executable_extensions; do 37634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37635 ac_cv_prog_ac_ct_NM="$ac_prog" 37636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37637 break 2 37638 fi 37639 done 37640 done 37641 IFS=$as_save_IFS 37642 37643 fi 37644 fi 37645 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37646 if test -n "$ac_ct_NM"; then 37647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37648 $as_echo "$ac_ct_NM" >&6; } 37649 else 37650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37651 $as_echo "no" >&6; } 37652 fi 37653 37654 37655 test -n "$ac_ct_NM" && break 37656 done 37657 37658 if test "x$ac_ct_NM" = x; then 37659 NM="" 37660 else 37661 case $cross_compiling:$ac_tool_warned in 37662 yes:) 37663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37665 ac_tool_warned=yes ;; 37666 esac 37667 NM=$ac_ct_NM 37668 fi 37669 fi 37670 37671 else 37672 # The variable is set, but is it from the command line or the environment? 37673 37674 # Try to remove the string !NM! from our list. 37675 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37676 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37677 # If it failed, the variable was not from the command line. Ignore it, 37678 # but warn the user (except for BASH, which is always set by the calling BASH). 37679 if test "xNM" != xBASH; then 37680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37681 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37682 fi 37683 # Try to locate tool using the code snippet 37684 if test -n "$ac_tool_prefix"; then 37685 for ac_prog in nm 37686 do 37687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37690 $as_echo_n "checking for $ac_word... " >&6; } 37691 if ${ac_cv_prog_NM+:} false; then : 37692 $as_echo_n "(cached) " >&6 37693 else 37694 if test -n "$NM"; then 37695 ac_cv_prog_NM="$NM" # Let the user override the test. 37696 else 37697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37698 for as_dir in $PATH 37699 do 37700 IFS=$as_save_IFS 37701 test -z "$as_dir" && as_dir=. 37702 for ac_exec_ext in '' $ac_executable_extensions; do 37703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37704 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37706 break 2 37707 fi 37708 done 37709 done 37710 IFS=$as_save_IFS 37711 37712 fi 37713 fi 37714 NM=$ac_cv_prog_NM 37715 if test -n "$NM"; then 37716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37717 $as_echo "$NM" >&6; } 37718 else 37719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37720 $as_echo "no" >&6; } 37721 fi 37722 37723 37724 test -n "$NM" && break 37725 done 37726 fi 37727 if test -z "$NM"; then 37728 ac_ct_NM=$NM 37729 for ac_prog in nm 37730 do 37731 # Extract the first word of "$ac_prog", so it can be a program name with args. 37732 set dummy $ac_prog; ac_word=$2 37733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37734 $as_echo_n "checking for $ac_word... " >&6; } 37735 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37736 $as_echo_n "(cached) " >&6 37737 else 37738 if test -n "$ac_ct_NM"; then 37739 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37740 else 37741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37742 for as_dir in $PATH 37743 do 37744 IFS=$as_save_IFS 37745 test -z "$as_dir" && as_dir=. 37746 for ac_exec_ext in '' $ac_executable_extensions; do 37747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37748 ac_cv_prog_ac_ct_NM="$ac_prog" 37749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37750 break 2 37751 fi 37752 done 37753 done 37754 IFS=$as_save_IFS 37755 37756 fi 37757 fi 37758 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37759 if test -n "$ac_ct_NM"; then 37760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37761 $as_echo "$ac_ct_NM" >&6; } 37762 else 37763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37764 $as_echo "no" >&6; } 37765 fi 37766 37767 37768 test -n "$ac_ct_NM" && break 37769 done 37770 37771 if test "x$ac_ct_NM" = x; then 37772 NM="" 37773 else 37774 case $cross_compiling:$ac_tool_warned in 37775 yes:) 37776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37778 ac_tool_warned=yes ;; 37779 esac 37780 NM=$ac_ct_NM 37781 fi 37782 fi 37783 37784 else 37785 # If it succeeded, then it was overridden by the user. We will use it 37786 # for the tool. 37787 37788 # First remove it from the list of overridden variables, so we can test 37789 # for unknown variables in the end. 37790 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37791 37792 # Check if the provided tool contains a complete path. 37793 tool_specified="$NM" 37794 tool_basename="${tool_specified##*/}" 37795 if test "x$tool_basename" = "x$tool_specified"; then 37796 # A command without a complete path is provided, search $PATH. 37797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37798 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37799 # Extract the first word of "$tool_basename", so it can be a program name with args. 37800 set dummy $tool_basename; ac_word=$2 37801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37802 $as_echo_n "checking for $ac_word... " >&6; } 37803 if ${ac_cv_path_NM+:} false; then : 37804 $as_echo_n "(cached) " >&6 37805 else 37806 case $NM in 37807 [\\/]* | ?:[\\/]*) 37808 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37809 ;; 37810 *) 37811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37812 for as_dir in $PATH 37813 do 37814 IFS=$as_save_IFS 37815 test -z "$as_dir" && as_dir=. 37816 for ac_exec_ext in '' $ac_executable_extensions; do 37817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37818 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37820 break 2 37821 fi 37822 done 37823 done 37824 IFS=$as_save_IFS 37825 37826 ;; 37827 esac 37828 fi 37829 NM=$ac_cv_path_NM 37830 if test -n "$NM"; then 37831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37832 $as_echo "$NM" >&6; } 37833 else 37834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37835 $as_echo "no" >&6; } 37836 fi 37837 37838 37839 if test "x$NM" = x; then 37840 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37841 fi 37842 else 37843 # Otherwise we believe it is a complete path. Use it as it is. 37844 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37845 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37847 $as_echo_n "checking for NM... " >&6; } 37848 if test ! -x "$tool_specified"; then 37849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37850 $as_echo "not found" >&6; } 37851 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37852 fi 37853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37854 $as_echo "$tool_specified" >&6; } 37855 fi 37856 fi 37857 fi 37858 37859 37860 37861 # Only process if variable expands to non-empty 37862 37863 if test "x$NM" != x; then 37864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37865 37866 # First separate the path from the arguments. This will split at the first 37867 # space. 37868 complete="$NM" 37869 path="${complete%% *}" 37870 tmp="$complete EOL" 37871 arguments="${tmp#* }" 37872 37873 # Input might be given as Windows format, start by converting to 37874 # unix format. 37875 new_path=`$CYGPATH -u "$path"` 37876 37877 # Now try to locate executable using which 37878 new_path=`$WHICH "$new_path" 2> /dev/null` 37879 # bat and cmd files are not always considered executable in cygwin causing which 37880 # to not find them 37881 if test "x$new_path" = x \ 37882 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37883 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37884 new_path=`$CYGPATH -u "$path"` 37885 fi 37886 if test "x$new_path" = x; then 37887 # Oops. Which didn't find the executable. 37888 # The splitting of arguments from the executable at a space might have been incorrect, 37889 # since paths with space are more likely in Windows. Give it another try with the whole 37890 # argument. 37891 path="$complete" 37892 arguments="EOL" 37893 new_path=`$CYGPATH -u "$path"` 37894 new_path=`$WHICH "$new_path" 2> /dev/null` 37895 # bat and cmd files are not always considered executable in cygwin causing which 37896 # to not find them 37897 if test "x$new_path" = x \ 37898 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37899 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37900 new_path=`$CYGPATH -u "$path"` 37901 fi 37902 if test "x$new_path" = x; then 37903 # It's still not found. Now this is an unrecoverable error. 37904 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37905 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37906 has_space=`$ECHO "$complete" | $GREP " "` 37907 if test "x$has_space" != x; then 37908 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37909 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37910 fi 37911 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37912 fi 37913 fi 37914 37915 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37916 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37917 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37918 # "foo.exe" is OK but "foo" is an error. 37919 # 37920 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37921 # It is also a way to make sure we got the proper file name for the real test later on. 37922 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37923 if test "x$test_shortpath" = x; then 37924 # Short path failed, file does not exist as specified. 37925 # Try adding .exe or .cmd 37926 if test -f "${new_path}.exe"; then 37927 input_to_shortpath="${new_path}.exe" 37928 elif test -f "${new_path}.cmd"; then 37929 input_to_shortpath="${new_path}.cmd" 37930 else 37931 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 37932 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 37933 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37934 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37935 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37936 fi 37937 else 37938 input_to_shortpath="$new_path" 37939 fi 37940 37941 # Call helper function which possibly converts this using DOS-style short mode. 37942 # If so, the updated path is stored in $new_path. 37943 new_path="$input_to_shortpath" 37944 37945 input_path="$input_to_shortpath" 37946 # Check if we need to convert this using DOS-style short mode. If the path 37947 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37948 # take no chances and rewrite it. 37949 # Note: m4 eats our [], so we need to use [ and ] instead. 37950 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37951 if test "x$has_forbidden_chars" != x; then 37952 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37953 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37954 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37955 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37956 # Going to short mode and back again did indeed matter. Since short mode is 37957 # case insensitive, let's make it lowercase to improve readability. 37958 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37959 # Now convert it back to Unix-stile (cygpath) 37960 input_path=`$CYGPATH -u "$shortmode_path"` 37961 new_path="$input_path" 37962 fi 37963 fi 37964 37965 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37966 if test "x$test_cygdrive_prefix" = x; then 37967 # As a simple fix, exclude /usr/bin since it's not a real path. 37968 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37969 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37970 # a path prefixed by /cygdrive for fixpath to work. 37971 new_path="$CYGWIN_ROOT_PATH$input_path" 37972 fi 37973 fi 37974 37975 # remove trailing .exe if any 37976 new_path="${new_path/%.exe/}" 37977 37978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37979 37980 # First separate the path from the arguments. This will split at the first 37981 # space. 37982 complete="$NM" 37983 path="${complete%% *}" 37984 tmp="$complete EOL" 37985 arguments="${tmp#* }" 37986 37987 # Input might be given as Windows format, start by converting to 37988 # unix format. 37989 new_path="$path" 37990 37991 windows_path="$new_path" 37992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37993 unix_path=`$CYGPATH -u "$windows_path"` 37994 new_path="$unix_path" 37995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37997 new_path="$unix_path" 37998 fi 37999 38000 38001 # Now try to locate executable using which 38002 new_path=`$WHICH "$new_path" 2> /dev/null` 38003 38004 if test "x$new_path" = x; then 38005 # Oops. Which didn't find the executable. 38006 # The splitting of arguments from the executable at a space might have been incorrect, 38007 # since paths with space are more likely in Windows. Give it another try with the whole 38008 # argument. 38009 path="$complete" 38010 arguments="EOL" 38011 new_path="$path" 38012 38013 windows_path="$new_path" 38014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38015 unix_path=`$CYGPATH -u "$windows_path"` 38016 new_path="$unix_path" 38017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38018 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38019 new_path="$unix_path" 38020 fi 38021 38022 38023 new_path=`$WHICH "$new_path" 2> /dev/null` 38024 # bat and cmd files are not always considered executable in MSYS causing which 38025 # to not find them 38026 if test "x$new_path" = x \ 38027 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38028 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38029 new_path="$path" 38030 38031 windows_path="$new_path" 38032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38033 unix_path=`$CYGPATH -u "$windows_path"` 38034 new_path="$unix_path" 38035 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38036 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38037 new_path="$unix_path" 38038 fi 38039 38040 fi 38041 38042 if test "x$new_path" = x; then 38043 # It's still not found. Now this is an unrecoverable error. 38044 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38045 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38046 has_space=`$ECHO "$complete" | $GREP " "` 38047 if test "x$has_space" != x; then 38048 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38049 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38050 fi 38051 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38052 fi 38053 fi 38054 38055 # Now new_path has a complete unix path to the binary 38056 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38057 # Keep paths in /bin as-is, but remove trailing .exe if any 38058 new_path="${new_path/%.exe/}" 38059 # Do not save /bin paths to all_fixpath_prefixes! 38060 else 38061 # Not in mixed or Windows style, start by that. 38062 new_path=`cmd //c echo $new_path` 38063 38064 input_path="$new_path" 38065 # Check if we need to convert this using DOS-style short mode. If the path 38066 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38067 # take no chances and rewrite it. 38068 # Note: m4 eats our [], so we need to use [ and ] instead. 38069 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38070 if test "x$has_forbidden_chars" != x; then 38071 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38072 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38073 fi 38074 38075 # Output is in $new_path 38076 38077 windows_path="$new_path" 38078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38079 unix_path=`$CYGPATH -u "$windows_path"` 38080 new_path="$unix_path" 38081 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38082 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38083 new_path="$unix_path" 38084 fi 38085 38086 # remove trailing .exe if any 38087 new_path="${new_path/%.exe/}" 38088 38089 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38090 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38091 fi 38092 38093 else 38094 # We're on a unix platform. Hooray! :) 38095 # First separate the path from the arguments. This will split at the first 38096 # space. 38097 complete="$NM" 38098 path="${complete%% *}" 38099 tmp="$complete EOL" 38100 arguments="${tmp#* }" 38101 38102 # Cannot rely on the command "which" here since it doesn't always work. 38103 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38104 if test -z "$is_absolute_path"; then 38105 # Path to executable is not absolute. Find it. 38106 IFS_save="$IFS" 38107 IFS=: 38108 for p in $PATH; do 38109 if test -f "$p/$path" && test -x "$p/$path"; then 38110 new_path="$p/$path" 38111 break 38112 fi 38113 done 38114 IFS="$IFS_save" 38115 else 38116 # This is an absolute path, we can use it without further modifications. 38117 new_path="$path" 38118 fi 38119 38120 if test "x$new_path" = x; then 38121 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38122 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38123 has_space=`$ECHO "$complete" | $GREP " "` 38124 if test "x$has_space" != x; then 38125 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38126 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38127 fi 38128 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38129 fi 38130 fi 38131 38132 # Now join together the path and the arguments once again 38133 if test "x$arguments" != xEOL; then 38134 new_complete="$new_path ${arguments% *}" 38135 else 38136 new_complete="$new_path" 38137 fi 38138 38139 if test "x$complete" != "x$new_complete"; then 38140 NM="$new_complete" 38141 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 38142 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 38143 fi 38144 fi 38145 38146 GNM="$NM" 38147 38148 fi 38149 38150 # objcopy is used for moving debug symbols to separate files when 38151 # full debug symbols are enabled. 38152 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 38153 38154 38155 # Publish this variable in the help. 38156 38157 38158 if test "x$OBJCOPY" = x; then 38159 # The variable is not set by user, try to locate tool using the code snippet 38160 if test -n "$ac_tool_prefix"; then 38161 for ac_prog in gobjcopy objcopy 38162 do 38163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38166 $as_echo_n "checking for $ac_word... " >&6; } 38167 if ${ac_cv_prog_OBJCOPY+:} false; then : 38168 $as_echo_n "(cached) " >&6 38169 else 38170 if test -n "$OBJCOPY"; then 38171 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38172 else 38173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38174 for as_dir in $PATH 38175 do 38176 IFS=$as_save_IFS 38177 test -z "$as_dir" && as_dir=. 38178 for ac_exec_ext in '' $ac_executable_extensions; do 38179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38180 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38182 break 2 38183 fi 38184 done 38185 done 38186 IFS=$as_save_IFS 38187 38188 fi 38189 fi 38190 OBJCOPY=$ac_cv_prog_OBJCOPY 38191 if test -n "$OBJCOPY"; then 38192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38193 $as_echo "$OBJCOPY" >&6; } 38194 else 38195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38196 $as_echo "no" >&6; } 38197 fi 38198 38199 38200 test -n "$OBJCOPY" && break 38201 done 38202 fi 38203 if test -z "$OBJCOPY"; then 38204 ac_ct_OBJCOPY=$OBJCOPY 38205 for ac_prog in gobjcopy objcopy 38206 do 38207 # Extract the first word of "$ac_prog", so it can be a program name with args. 38208 set dummy $ac_prog; ac_word=$2 38209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38210 $as_echo_n "checking for $ac_word... " >&6; } 38211 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38212 $as_echo_n "(cached) " >&6 38213 else 38214 if test -n "$ac_ct_OBJCOPY"; then 38215 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38216 else 38217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38218 for as_dir in $PATH 38219 do 38220 IFS=$as_save_IFS 38221 test -z "$as_dir" && as_dir=. 38222 for ac_exec_ext in '' $ac_executable_extensions; do 38223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38224 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38226 break 2 38227 fi 38228 done 38229 done 38230 IFS=$as_save_IFS 38231 38232 fi 38233 fi 38234 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38235 if test -n "$ac_ct_OBJCOPY"; then 38236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38237 $as_echo "$ac_ct_OBJCOPY" >&6; } 38238 else 38239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38240 $as_echo "no" >&6; } 38241 fi 38242 38243 38244 test -n "$ac_ct_OBJCOPY" && break 38245 done 38246 38247 if test "x$ac_ct_OBJCOPY" = x; then 38248 OBJCOPY="" 38249 else 38250 case $cross_compiling:$ac_tool_warned in 38251 yes:) 38252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38254 ac_tool_warned=yes ;; 38255 esac 38256 OBJCOPY=$ac_ct_OBJCOPY 38257 fi 38258 fi 38259 38260 else 38261 # The variable is set, but is it from the command line or the environment? 38262 38263 # Try to remove the string !OBJCOPY! from our list. 38264 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 38265 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38266 # If it failed, the variable was not from the command line. Ignore it, 38267 # but warn the user (except for BASH, which is always set by the calling BASH). 38268 if test "xOBJCOPY" != xBASH; then 38269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 38270 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 38271 fi 38272 # Try to locate tool using the code snippet 38273 if test -n "$ac_tool_prefix"; then 38274 for ac_prog in gobjcopy objcopy 38275 do 38276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38279 $as_echo_n "checking for $ac_word... " >&6; } 38280 if ${ac_cv_prog_OBJCOPY+:} false; then : 38281 $as_echo_n "(cached) " >&6 38282 else 38283 if test -n "$OBJCOPY"; then 38284 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38285 else 38286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38287 for as_dir in $PATH 38288 do 38289 IFS=$as_save_IFS 38290 test -z "$as_dir" && as_dir=. 38291 for ac_exec_ext in '' $ac_executable_extensions; do 38292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38293 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38295 break 2 38296 fi 38297 done 38298 done 38299 IFS=$as_save_IFS 38300 38301 fi 38302 fi 38303 OBJCOPY=$ac_cv_prog_OBJCOPY 38304 if test -n "$OBJCOPY"; then 38305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38306 $as_echo "$OBJCOPY" >&6; } 38307 else 38308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38309 $as_echo "no" >&6; } 38310 fi 38311 38312 38313 test -n "$OBJCOPY" && break 38314 done 38315 fi 38316 if test -z "$OBJCOPY"; then 38317 ac_ct_OBJCOPY=$OBJCOPY 38318 for ac_prog in gobjcopy objcopy 38319 do 38320 # Extract the first word of "$ac_prog", so it can be a program name with args. 38321 set dummy $ac_prog; ac_word=$2 38322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38323 $as_echo_n "checking for $ac_word... " >&6; } 38324 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38325 $as_echo_n "(cached) " >&6 38326 else 38327 if test -n "$ac_ct_OBJCOPY"; then 38328 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38329 else 38330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38331 for as_dir in $PATH 38332 do 38333 IFS=$as_save_IFS 38334 test -z "$as_dir" && as_dir=. 38335 for ac_exec_ext in '' $ac_executable_extensions; do 38336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38337 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38339 break 2 38340 fi 38341 done 38342 done 38343 IFS=$as_save_IFS 38344 38345 fi 38346 fi 38347 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38348 if test -n "$ac_ct_OBJCOPY"; then 38349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38350 $as_echo "$ac_ct_OBJCOPY" >&6; } 38351 else 38352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38353 $as_echo "no" >&6; } 38354 fi 38355 38356 38357 test -n "$ac_ct_OBJCOPY" && break 38358 done 38359 38360 if test "x$ac_ct_OBJCOPY" = x; then 38361 OBJCOPY="" 38362 else 38363 case $cross_compiling:$ac_tool_warned in 38364 yes:) 38365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38367 ac_tool_warned=yes ;; 38368 esac 38369 OBJCOPY=$ac_ct_OBJCOPY 38370 fi 38371 fi 38372 38373 else 38374 # If it succeeded, then it was overridden by the user. We will use it 38375 # for the tool. 38376 38377 # First remove it from the list of overridden variables, so we can test 38378 # for unknown variables in the end. 38379 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38380 38381 # Check if the provided tool contains a complete path. 38382 tool_specified="$OBJCOPY" 38383 tool_basename="${tool_specified##*/}" 38384 if test "x$tool_basename" = "x$tool_specified"; then 38385 # A command without a complete path is provided, search $PATH. 38386 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 38387 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 38388 # Extract the first word of "$tool_basename", so it can be a program name with args. 38389 set dummy $tool_basename; ac_word=$2 38390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38391 $as_echo_n "checking for $ac_word... " >&6; } 38392 if ${ac_cv_path_OBJCOPY+:} false; then : 38393 $as_echo_n "(cached) " >&6 38394 else 38395 case $OBJCOPY in 38396 [\\/]* | ?:[\\/]*) 38397 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 38398 ;; 38399 *) 38400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38401 for as_dir in $PATH 38402 do 38403 IFS=$as_save_IFS 38404 test -z "$as_dir" && as_dir=. 38405 for ac_exec_ext in '' $ac_executable_extensions; do 38406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38407 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 38408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38409 break 2 38410 fi 38411 done 38412 done 38413 IFS=$as_save_IFS 38414 38415 ;; 38416 esac 38417 fi 38418 OBJCOPY=$ac_cv_path_OBJCOPY 38419 if test -n "$OBJCOPY"; then 38420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38421 $as_echo "$OBJCOPY" >&6; } 38422 else 38423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38424 $as_echo "no" >&6; } 38425 fi 38426 38427 38428 if test "x$OBJCOPY" = x; then 38429 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38430 fi 38431 else 38432 # Otherwise we believe it is a complete path. Use it as it is. 38433 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 38434 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 38435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 38436 $as_echo_n "checking for OBJCOPY... " >&6; } 38437 if test ! -x "$tool_specified"; then 38438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38439 $as_echo "not found" >&6; } 38440 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 38441 fi 38442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38443 $as_echo "$tool_specified" >&6; } 38444 fi 38445 fi 38446 fi 38447 38448 38449 # Only call fixup if objcopy was found. 38450 if test -n "$OBJCOPY"; then 38451 38452 # Only process if variable expands to non-empty 38453 38454 if test "x$OBJCOPY" != x; then 38455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38456 38457 # First separate the path from the arguments. This will split at the first 38458 # space. 38459 complete="$OBJCOPY" 38460 path="${complete%% *}" 38461 tmp="$complete EOL" 38462 arguments="${tmp#* }" 38463 38464 # Input might be given as Windows format, start by converting to 38465 # unix format. 38466 new_path=`$CYGPATH -u "$path"` 38467 38468 # Now try to locate executable using which 38469 new_path=`$WHICH "$new_path" 2> /dev/null` 38470 # bat and cmd files are not always considered executable in cygwin causing which 38471 # to not find them 38472 if test "x$new_path" = x \ 38473 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38474 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38475 new_path=`$CYGPATH -u "$path"` 38476 fi 38477 if test "x$new_path" = x; then 38478 # Oops. Which didn't find the executable. 38479 # The splitting of arguments from the executable at a space might have been incorrect, 38480 # since paths with space are more likely in Windows. Give it another try with the whole 38481 # argument. 38482 path="$complete" 38483 arguments="EOL" 38484 new_path=`$CYGPATH -u "$path"` 38485 new_path=`$WHICH "$new_path" 2> /dev/null` 38486 # bat and cmd files are not always considered executable in cygwin causing which 38487 # to not find them 38488 if test "x$new_path" = x \ 38489 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38490 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38491 new_path=`$CYGPATH -u "$path"` 38492 fi 38493 if test "x$new_path" = x; then 38494 # It's still not found. Now this is an unrecoverable error. 38495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38496 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38497 has_space=`$ECHO "$complete" | $GREP " "` 38498 if test "x$has_space" != x; then 38499 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38500 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38501 fi 38502 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38503 fi 38504 fi 38505 38506 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38507 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38508 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38509 # "foo.exe" is OK but "foo" is an error. 38510 # 38511 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38512 # It is also a way to make sure we got the proper file name for the real test later on. 38513 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38514 if test "x$test_shortpath" = x; then 38515 # Short path failed, file does not exist as specified. 38516 # Try adding .exe or .cmd 38517 if test -f "${new_path}.exe"; then 38518 input_to_shortpath="${new_path}.exe" 38519 elif test -f "${new_path}.cmd"; then 38520 input_to_shortpath="${new_path}.cmd" 38521 else 38522 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 38523 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 38524 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38525 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38526 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38527 fi 38528 else 38529 input_to_shortpath="$new_path" 38530 fi 38531 38532 # Call helper function which possibly converts this using DOS-style short mode. 38533 # If so, the updated path is stored in $new_path. 38534 new_path="$input_to_shortpath" 38535 38536 input_path="$input_to_shortpath" 38537 # Check if we need to convert this using DOS-style short mode. If the path 38538 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38539 # take no chances and rewrite it. 38540 # Note: m4 eats our [], so we need to use [ and ] instead. 38541 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38542 if test "x$has_forbidden_chars" != x; then 38543 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38544 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38545 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38546 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38547 # Going to short mode and back again did indeed matter. Since short mode is 38548 # case insensitive, let's make it lowercase to improve readability. 38549 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38550 # Now convert it back to Unix-stile (cygpath) 38551 input_path=`$CYGPATH -u "$shortmode_path"` 38552 new_path="$input_path" 38553 fi 38554 fi 38555 38556 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38557 if test "x$test_cygdrive_prefix" = x; then 38558 # As a simple fix, exclude /usr/bin since it's not a real path. 38559 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38560 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38561 # a path prefixed by /cygdrive for fixpath to work. 38562 new_path="$CYGWIN_ROOT_PATH$input_path" 38563 fi 38564 fi 38565 38566 # remove trailing .exe if any 38567 new_path="${new_path/%.exe/}" 38568 38569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38570 38571 # First separate the path from the arguments. This will split at the first 38572 # space. 38573 complete="$OBJCOPY" 38574 path="${complete%% *}" 38575 tmp="$complete EOL" 38576 arguments="${tmp#* }" 38577 38578 # Input might be given as Windows format, start by converting to 38579 # unix format. 38580 new_path="$path" 38581 38582 windows_path="$new_path" 38583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38584 unix_path=`$CYGPATH -u "$windows_path"` 38585 new_path="$unix_path" 38586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38587 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38588 new_path="$unix_path" 38589 fi 38590 38591 38592 # Now try to locate executable using which 38593 new_path=`$WHICH "$new_path" 2> /dev/null` 38594 38595 if test "x$new_path" = x; then 38596 # Oops. Which didn't find the executable. 38597 # The splitting of arguments from the executable at a space might have been incorrect, 38598 # since paths with space are more likely in Windows. Give it another try with the whole 38599 # argument. 38600 path="$complete" 38601 arguments="EOL" 38602 new_path="$path" 38603 38604 windows_path="$new_path" 38605 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38606 unix_path=`$CYGPATH -u "$windows_path"` 38607 new_path="$unix_path" 38608 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38609 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38610 new_path="$unix_path" 38611 fi 38612 38613 38614 new_path=`$WHICH "$new_path" 2> /dev/null` 38615 # bat and cmd files are not always considered executable in MSYS causing which 38616 # to not find them 38617 if test "x$new_path" = x \ 38618 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38619 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38620 new_path="$path" 38621 38622 windows_path="$new_path" 38623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38624 unix_path=`$CYGPATH -u "$windows_path"` 38625 new_path="$unix_path" 38626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38627 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38628 new_path="$unix_path" 38629 fi 38630 38631 fi 38632 38633 if test "x$new_path" = x; then 38634 # It's still not found. Now this is an unrecoverable error. 38635 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38636 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38637 has_space=`$ECHO "$complete" | $GREP " "` 38638 if test "x$has_space" != x; then 38639 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38640 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38641 fi 38642 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38643 fi 38644 fi 38645 38646 # Now new_path has a complete unix path to the binary 38647 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38648 # Keep paths in /bin as-is, but remove trailing .exe if any 38649 new_path="${new_path/%.exe/}" 38650 # Do not save /bin paths to all_fixpath_prefixes! 38651 else 38652 # Not in mixed or Windows style, start by that. 38653 new_path=`cmd //c echo $new_path` 38654 38655 input_path="$new_path" 38656 # Check if we need to convert this using DOS-style short mode. If the path 38657 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38658 # take no chances and rewrite it. 38659 # Note: m4 eats our [], so we need to use [ and ] instead. 38660 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38661 if test "x$has_forbidden_chars" != x; then 38662 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38663 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38664 fi 38665 38666 # Output is in $new_path 38667 38668 windows_path="$new_path" 38669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38670 unix_path=`$CYGPATH -u "$windows_path"` 38671 new_path="$unix_path" 38672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38673 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38674 new_path="$unix_path" 38675 fi 38676 38677 # remove trailing .exe if any 38678 new_path="${new_path/%.exe/}" 38679 38680 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38681 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38682 fi 38683 38684 else 38685 # We're on a unix platform. Hooray! :) 38686 # First separate the path from the arguments. This will split at the first 38687 # space. 38688 complete="$OBJCOPY" 38689 path="${complete%% *}" 38690 tmp="$complete EOL" 38691 arguments="${tmp#* }" 38692 38693 # Cannot rely on the command "which" here since it doesn't always work. 38694 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38695 if test -z "$is_absolute_path"; then 38696 # Path to executable is not absolute. Find it. 38697 IFS_save="$IFS" 38698 IFS=: 38699 for p in $PATH; do 38700 if test -f "$p/$path" && test -x "$p/$path"; then 38701 new_path="$p/$path" 38702 break 38703 fi 38704 done 38705 IFS="$IFS_save" 38706 else 38707 # This is an absolute path, we can use it without further modifications. 38708 new_path="$path" 38709 fi 38710 38711 if test "x$new_path" = x; then 38712 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38713 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38714 has_space=`$ECHO "$complete" | $GREP " "` 38715 if test "x$has_space" != x; then 38716 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38717 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38718 fi 38719 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38720 fi 38721 fi 38722 38723 # Now join together the path and the arguments once again 38724 if test "x$arguments" != xEOL; then 38725 new_complete="$new_path ${arguments% *}" 38726 else 38727 new_complete="$new_path" 38728 fi 38729 38730 if test "x$complete" != "x$new_complete"; then 38731 OBJCOPY="$new_complete" 38732 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38733 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38734 fi 38735 fi 38736 38737 fi 38738 fi 38739 38740 38741 38742 # Publish this variable in the help. 38743 38744 38745 if test "x$OBJDUMP" = x; then 38746 # The variable is not set by user, try to locate tool using the code snippet 38747 if test -n "$ac_tool_prefix"; then 38748 for ac_prog in gobjdump objdump 38749 do 38750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38753 $as_echo_n "checking for $ac_word... " >&6; } 38754 if ${ac_cv_prog_OBJDUMP+:} false; then : 38755 $as_echo_n "(cached) " >&6 38756 else 38757 if test -n "$OBJDUMP"; then 38758 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38759 else 38760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38761 for as_dir in $PATH 38762 do 38763 IFS=$as_save_IFS 38764 test -z "$as_dir" && as_dir=. 38765 for ac_exec_ext in '' $ac_executable_extensions; do 38766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38767 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38769 break 2 38770 fi 38771 done 38772 done 38773 IFS=$as_save_IFS 38774 38775 fi 38776 fi 38777 OBJDUMP=$ac_cv_prog_OBJDUMP 38778 if test -n "$OBJDUMP"; then 38779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38780 $as_echo "$OBJDUMP" >&6; } 38781 else 38782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38783 $as_echo "no" >&6; } 38784 fi 38785 38786 38787 test -n "$OBJDUMP" && break 38788 done 38789 fi 38790 if test -z "$OBJDUMP"; then 38791 ac_ct_OBJDUMP=$OBJDUMP 38792 for ac_prog in gobjdump objdump 38793 do 38794 # Extract the first word of "$ac_prog", so it can be a program name with args. 38795 set dummy $ac_prog; ac_word=$2 38796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38797 $as_echo_n "checking for $ac_word... " >&6; } 38798 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38799 $as_echo_n "(cached) " >&6 38800 else 38801 if test -n "$ac_ct_OBJDUMP"; then 38802 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38803 else 38804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38805 for as_dir in $PATH 38806 do 38807 IFS=$as_save_IFS 38808 test -z "$as_dir" && as_dir=. 38809 for ac_exec_ext in '' $ac_executable_extensions; do 38810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38811 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38813 break 2 38814 fi 38815 done 38816 done 38817 IFS=$as_save_IFS 38818 38819 fi 38820 fi 38821 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38822 if test -n "$ac_ct_OBJDUMP"; then 38823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38824 $as_echo "$ac_ct_OBJDUMP" >&6; } 38825 else 38826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38827 $as_echo "no" >&6; } 38828 fi 38829 38830 38831 test -n "$ac_ct_OBJDUMP" && break 38832 done 38833 38834 if test "x$ac_ct_OBJDUMP" = x; then 38835 OBJDUMP="" 38836 else 38837 case $cross_compiling:$ac_tool_warned in 38838 yes:) 38839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38841 ac_tool_warned=yes ;; 38842 esac 38843 OBJDUMP=$ac_ct_OBJDUMP 38844 fi 38845 fi 38846 38847 else 38848 # The variable is set, but is it from the command line or the environment? 38849 38850 # Try to remove the string !OBJDUMP! from our list. 38851 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38852 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38853 # If it failed, the variable was not from the command line. Ignore it, 38854 # but warn the user (except for BASH, which is always set by the calling BASH). 38855 if test "xOBJDUMP" != xBASH; then 38856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38857 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38858 fi 38859 # Try to locate tool using the code snippet 38860 if test -n "$ac_tool_prefix"; then 38861 for ac_prog in gobjdump objdump 38862 do 38863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38866 $as_echo_n "checking for $ac_word... " >&6; } 38867 if ${ac_cv_prog_OBJDUMP+:} false; then : 38868 $as_echo_n "(cached) " >&6 38869 else 38870 if test -n "$OBJDUMP"; then 38871 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38872 else 38873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38874 for as_dir in $PATH 38875 do 38876 IFS=$as_save_IFS 38877 test -z "$as_dir" && as_dir=. 38878 for ac_exec_ext in '' $ac_executable_extensions; do 38879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38880 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38882 break 2 38883 fi 38884 done 38885 done 38886 IFS=$as_save_IFS 38887 38888 fi 38889 fi 38890 OBJDUMP=$ac_cv_prog_OBJDUMP 38891 if test -n "$OBJDUMP"; then 38892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38893 $as_echo "$OBJDUMP" >&6; } 38894 else 38895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38896 $as_echo "no" >&6; } 38897 fi 38898 38899 38900 test -n "$OBJDUMP" && break 38901 done 38902 fi 38903 if test -z "$OBJDUMP"; then 38904 ac_ct_OBJDUMP=$OBJDUMP 38905 for ac_prog in gobjdump objdump 38906 do 38907 # Extract the first word of "$ac_prog", so it can be a program name with args. 38908 set dummy $ac_prog; ac_word=$2 38909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38910 $as_echo_n "checking for $ac_word... " >&6; } 38911 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38912 $as_echo_n "(cached) " >&6 38913 else 38914 if test -n "$ac_ct_OBJDUMP"; then 38915 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38916 else 38917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38918 for as_dir in $PATH 38919 do 38920 IFS=$as_save_IFS 38921 test -z "$as_dir" && as_dir=. 38922 for ac_exec_ext in '' $ac_executable_extensions; do 38923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38924 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38926 break 2 38927 fi 38928 done 38929 done 38930 IFS=$as_save_IFS 38931 38932 fi 38933 fi 38934 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38935 if test -n "$ac_ct_OBJDUMP"; then 38936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38937 $as_echo "$ac_ct_OBJDUMP" >&6; } 38938 else 38939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38940 $as_echo "no" >&6; } 38941 fi 38942 38943 38944 test -n "$ac_ct_OBJDUMP" && break 38945 done 38946 38947 if test "x$ac_ct_OBJDUMP" = x; then 38948 OBJDUMP="" 38949 else 38950 case $cross_compiling:$ac_tool_warned in 38951 yes:) 38952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38954 ac_tool_warned=yes ;; 38955 esac 38956 OBJDUMP=$ac_ct_OBJDUMP 38957 fi 38958 fi 38959 38960 else 38961 # If it succeeded, then it was overridden by the user. We will use it 38962 # for the tool. 38963 38964 # First remove it from the list of overridden variables, so we can test 38965 # for unknown variables in the end. 38966 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38967 38968 # Check if the provided tool contains a complete path. 38969 tool_specified="$OBJDUMP" 38970 tool_basename="${tool_specified##*/}" 38971 if test "x$tool_basename" = "x$tool_specified"; then 38972 # A command without a complete path is provided, search $PATH. 38973 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 38974 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 38975 # Extract the first word of "$tool_basename", so it can be a program name with args. 38976 set dummy $tool_basename; ac_word=$2 38977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38978 $as_echo_n "checking for $ac_word... " >&6; } 38979 if ${ac_cv_path_OBJDUMP+:} false; then : 38980 $as_echo_n "(cached) " >&6 38981 else 38982 case $OBJDUMP in 38983 [\\/]* | ?:[\\/]*) 38984 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 38985 ;; 38986 *) 38987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38988 for as_dir in $PATH 38989 do 38990 IFS=$as_save_IFS 38991 test -z "$as_dir" && as_dir=. 38992 for ac_exec_ext in '' $ac_executable_extensions; do 38993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38994 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 38995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38996 break 2 38997 fi 38998 done 38999 done 39000 IFS=$as_save_IFS 39001 39002 ;; 39003 esac 39004 fi 39005 OBJDUMP=$ac_cv_path_OBJDUMP 39006 if test -n "$OBJDUMP"; then 39007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39008 $as_echo "$OBJDUMP" >&6; } 39009 else 39010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39011 $as_echo "no" >&6; } 39012 fi 39013 39014 39015 if test "x$OBJDUMP" = x; then 39016 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39017 fi 39018 else 39019 # Otherwise we believe it is a complete path. Use it as it is. 39020 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 39021 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 39022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 39023 $as_echo_n "checking for OBJDUMP... " >&6; } 39024 if test ! -x "$tool_specified"; then 39025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39026 $as_echo "not found" >&6; } 39027 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 39028 fi 39029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39030 $as_echo "$tool_specified" >&6; } 39031 fi 39032 fi 39033 fi 39034 39035 39036 if test "x$OBJDUMP" != x; then 39037 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 39038 # bails if argument is missing. 39039 39040 # Only process if variable expands to non-empty 39041 39042 if test "x$OBJDUMP" != x; then 39043 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39044 39045 # First separate the path from the arguments. This will split at the first 39046 # space. 39047 complete="$OBJDUMP" 39048 path="${complete%% *}" 39049 tmp="$complete EOL" 39050 arguments="${tmp#* }" 39051 39052 # Input might be given as Windows format, start by converting to 39053 # unix format. 39054 new_path=`$CYGPATH -u "$path"` 39055 39056 # Now try to locate executable using which 39057 new_path=`$WHICH "$new_path" 2> /dev/null` 39058 # bat and cmd files are not always considered executable in cygwin causing which 39059 # to not find them 39060 if test "x$new_path" = x \ 39061 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39062 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39063 new_path=`$CYGPATH -u "$path"` 39064 fi 39065 if test "x$new_path" = x; then 39066 # Oops. Which didn't find the executable. 39067 # The splitting of arguments from the executable at a space might have been incorrect, 39068 # since paths with space are more likely in Windows. Give it another try with the whole 39069 # argument. 39070 path="$complete" 39071 arguments="EOL" 39072 new_path=`$CYGPATH -u "$path"` 39073 new_path=`$WHICH "$new_path" 2> /dev/null` 39074 # bat and cmd files are not always considered executable in cygwin causing which 39075 # to not find them 39076 if test "x$new_path" = x \ 39077 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39078 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39079 new_path=`$CYGPATH -u "$path"` 39080 fi 39081 if test "x$new_path" = x; then 39082 # It's still not found. Now this is an unrecoverable error. 39083 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39084 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39085 has_space=`$ECHO "$complete" | $GREP " "` 39086 if test "x$has_space" != x; then 39087 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39088 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39089 fi 39090 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39091 fi 39092 fi 39093 39094 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39095 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39096 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39097 # "foo.exe" is OK but "foo" is an error. 39098 # 39099 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39100 # It is also a way to make sure we got the proper file name for the real test later on. 39101 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39102 if test "x$test_shortpath" = x; then 39103 # Short path failed, file does not exist as specified. 39104 # Try adding .exe or .cmd 39105 if test -f "${new_path}.exe"; then 39106 input_to_shortpath="${new_path}.exe" 39107 elif test -f "${new_path}.cmd"; then 39108 input_to_shortpath="${new_path}.cmd" 39109 else 39110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 39111 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 39112 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39113 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39114 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39115 fi 39116 else 39117 input_to_shortpath="$new_path" 39118 fi 39119 39120 # Call helper function which possibly converts this using DOS-style short mode. 39121 # If so, the updated path is stored in $new_path. 39122 new_path="$input_to_shortpath" 39123 39124 input_path="$input_to_shortpath" 39125 # Check if we need to convert this using DOS-style short mode. If the path 39126 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39127 # take no chances and rewrite it. 39128 # Note: m4 eats our [], so we need to use [ and ] instead. 39129 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39130 if test "x$has_forbidden_chars" != x; then 39131 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39132 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39133 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39134 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39135 # Going to short mode and back again did indeed matter. Since short mode is 39136 # case insensitive, let's make it lowercase to improve readability. 39137 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39138 # Now convert it back to Unix-stile (cygpath) 39139 input_path=`$CYGPATH -u "$shortmode_path"` 39140 new_path="$input_path" 39141 fi 39142 fi 39143 39144 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39145 if test "x$test_cygdrive_prefix" = x; then 39146 # As a simple fix, exclude /usr/bin since it's not a real path. 39147 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39148 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39149 # a path prefixed by /cygdrive for fixpath to work. 39150 new_path="$CYGWIN_ROOT_PATH$input_path" 39151 fi 39152 fi 39153 39154 # remove trailing .exe if any 39155 new_path="${new_path/%.exe/}" 39156 39157 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39158 39159 # First separate the path from the arguments. This will split at the first 39160 # space. 39161 complete="$OBJDUMP" 39162 path="${complete%% *}" 39163 tmp="$complete EOL" 39164 arguments="${tmp#* }" 39165 39166 # Input might be given as Windows format, start by converting to 39167 # unix format. 39168 new_path="$path" 39169 39170 windows_path="$new_path" 39171 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39172 unix_path=`$CYGPATH -u "$windows_path"` 39173 new_path="$unix_path" 39174 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39175 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39176 new_path="$unix_path" 39177 fi 39178 39179 39180 # Now try to locate executable using which 39181 new_path=`$WHICH "$new_path" 2> /dev/null` 39182 39183 if test "x$new_path" = x; then 39184 # Oops. Which didn't find the executable. 39185 # The splitting of arguments from the executable at a space might have been incorrect, 39186 # since paths with space are more likely in Windows. Give it another try with the whole 39187 # argument. 39188 path="$complete" 39189 arguments="EOL" 39190 new_path="$path" 39191 39192 windows_path="$new_path" 39193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39194 unix_path=`$CYGPATH -u "$windows_path"` 39195 new_path="$unix_path" 39196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39197 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39198 new_path="$unix_path" 39199 fi 39200 39201 39202 new_path=`$WHICH "$new_path" 2> /dev/null` 39203 # bat and cmd files are not always considered executable in MSYS causing which 39204 # to not find them 39205 if test "x$new_path" = x \ 39206 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39207 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39208 new_path="$path" 39209 39210 windows_path="$new_path" 39211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39212 unix_path=`$CYGPATH -u "$windows_path"` 39213 new_path="$unix_path" 39214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39215 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39216 new_path="$unix_path" 39217 fi 39218 39219 fi 39220 39221 if test "x$new_path" = x; then 39222 # It's still not found. Now this is an unrecoverable error. 39223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39224 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39225 has_space=`$ECHO "$complete" | $GREP " "` 39226 if test "x$has_space" != x; then 39227 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39228 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39229 fi 39230 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39231 fi 39232 fi 39233 39234 # Now new_path has a complete unix path to the binary 39235 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39236 # Keep paths in /bin as-is, but remove trailing .exe if any 39237 new_path="${new_path/%.exe/}" 39238 # Do not save /bin paths to all_fixpath_prefixes! 39239 else 39240 # Not in mixed or Windows style, start by that. 39241 new_path=`cmd //c echo $new_path` 39242 39243 input_path="$new_path" 39244 # Check if we need to convert this using DOS-style short mode. If the path 39245 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39246 # take no chances and rewrite it. 39247 # Note: m4 eats our [], so we need to use [ and ] instead. 39248 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39249 if test "x$has_forbidden_chars" != x; then 39250 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39251 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39252 fi 39253 39254 # Output is in $new_path 39255 39256 windows_path="$new_path" 39257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39258 unix_path=`$CYGPATH -u "$windows_path"` 39259 new_path="$unix_path" 39260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39261 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39262 new_path="$unix_path" 39263 fi 39264 39265 # remove trailing .exe if any 39266 new_path="${new_path/%.exe/}" 39267 39268 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39269 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39270 fi 39271 39272 else 39273 # We're on a unix platform. Hooray! :) 39274 # First separate the path from the arguments. This will split at the first 39275 # space. 39276 complete="$OBJDUMP" 39277 path="${complete%% *}" 39278 tmp="$complete EOL" 39279 arguments="${tmp#* }" 39280 39281 # Cannot rely on the command "which" here since it doesn't always work. 39282 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39283 if test -z "$is_absolute_path"; then 39284 # Path to executable is not absolute. Find it. 39285 IFS_save="$IFS" 39286 IFS=: 39287 for p in $PATH; do 39288 if test -f "$p/$path" && test -x "$p/$path"; then 39289 new_path="$p/$path" 39290 break 39291 fi 39292 done 39293 IFS="$IFS_save" 39294 else 39295 # This is an absolute path, we can use it without further modifications. 39296 new_path="$path" 39297 fi 39298 39299 if test "x$new_path" = x; then 39300 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39301 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39302 has_space=`$ECHO "$complete" | $GREP " "` 39303 if test "x$has_space" != x; then 39304 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39305 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39306 fi 39307 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39308 fi 39309 fi 39310 39311 # Now join together the path and the arguments once again 39312 if test "x$arguments" != xEOL; then 39313 new_complete="$new_path ${arguments% *}" 39314 else 39315 new_complete="$new_path" 39316 fi 39317 39318 if test "x$complete" != "x$new_complete"; then 39319 OBJDUMP="$new_complete" 39320 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 39321 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 39322 fi 39323 fi 39324 39325 fi 39326 39327 39328 # Restore old path. 39329 PATH="$OLD_PATH" 39330 39331 # Restore the flags to the user specified values. 39332 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 39333 CFLAGS="$ORG_CFLAGS" 39334 CXXFLAGS="$ORG_CXXFLAGS" 39335 39336 39337 # Finally do some processing after the detection phase 39338 39339 if test "x$COMPILE_TYPE" = "xcross"; then 39340 # Now we need to find a C/C++ compiler that can build executables for the 39341 # build platform. We can't use the AC_PROG_CC macro, since it can only be 39342 # used once. Also, we need to do this without adding a tools dir to the 39343 # path, otherwise we might pick up cross-compilers which don't use standard 39344 # naming. 39345 39346 # FIXME: we should list the discovered compilers as an exclude pattern! 39347 # If we do that, we can do this detection before POST_DETECTION, and still 39348 # find the build compilers in the tools dir, if needed. 39349 39350 39351 # Publish this variable in the help. 39352 39353 39354 if test "x$BUILD_CC" = x; then 39355 # The variable is not set by user, try to locate tool using the code snippet 39356 for ac_prog in cl cc gcc 39357 do 39358 # Extract the first word of "$ac_prog", so it can be a program name with args. 39359 set dummy $ac_prog; ac_word=$2 39360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39361 $as_echo_n "checking for $ac_word... " >&6; } 39362 if ${ac_cv_path_BUILD_CC+:} false; then : 39363 $as_echo_n "(cached) " >&6 39364 else 39365 case $BUILD_CC in 39366 [\\/]* | ?:[\\/]*) 39367 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39368 ;; 39369 *) 39370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39371 for as_dir in $PATH 39372 do 39373 IFS=$as_save_IFS 39374 test -z "$as_dir" && as_dir=. 39375 for ac_exec_ext in '' $ac_executable_extensions; do 39376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39377 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39379 break 2 39380 fi 39381 done 39382 done 39383 IFS=$as_save_IFS 39384 39385 ;; 39386 esac 39387 fi 39388 BUILD_CC=$ac_cv_path_BUILD_CC 39389 if test -n "$BUILD_CC"; then 39390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39391 $as_echo "$BUILD_CC" >&6; } 39392 else 39393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39394 $as_echo "no" >&6; } 39395 fi 39396 39397 39398 test -n "$BUILD_CC" && break 39399 done 39400 39401 else 39402 # The variable is set, but is it from the command line or the environment? 39403 39404 # Try to remove the string !BUILD_CC! from our list. 39405 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 39406 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39407 # If it failed, the variable was not from the command line. Ignore it, 39408 # but warn the user (except for BASH, which is always set by the calling BASH). 39409 if test "xBUILD_CC" != xBASH; then 39410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 39411 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 39412 fi 39413 # Try to locate tool using the code snippet 39414 for ac_prog in cl cc gcc 39415 do 39416 # Extract the first word of "$ac_prog", so it can be a program name with args. 39417 set dummy $ac_prog; ac_word=$2 39418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39419 $as_echo_n "checking for $ac_word... " >&6; } 39420 if ${ac_cv_path_BUILD_CC+:} false; then : 39421 $as_echo_n "(cached) " >&6 39422 else 39423 case $BUILD_CC in 39424 [\\/]* | ?:[\\/]*) 39425 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39426 ;; 39427 *) 39428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39429 for as_dir in $PATH 39430 do 39431 IFS=$as_save_IFS 39432 test -z "$as_dir" && as_dir=. 39433 for ac_exec_ext in '' $ac_executable_extensions; do 39434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39435 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39437 break 2 39438 fi 39439 done 39440 done 39441 IFS=$as_save_IFS 39442 39443 ;; 39444 esac 39445 fi 39446 BUILD_CC=$ac_cv_path_BUILD_CC 39447 if test -n "$BUILD_CC"; then 39448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39449 $as_echo "$BUILD_CC" >&6; } 39450 else 39451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39452 $as_echo "no" >&6; } 39453 fi 39454 39455 39456 test -n "$BUILD_CC" && break 39457 done 39458 39459 else 39460 # If it succeeded, then it was overridden by the user. We will use it 39461 # for the tool. 39462 39463 # First remove it from the list of overridden variables, so we can test 39464 # for unknown variables in the end. 39465 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39466 39467 # Check if the provided tool contains a complete path. 39468 tool_specified="$BUILD_CC" 39469 tool_basename="${tool_specified##*/}" 39470 if test "x$tool_basename" = "x$tool_specified"; then 39471 # A command without a complete path is provided, search $PATH. 39472 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 39473 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 39474 # Extract the first word of "$tool_basename", so it can be a program name with args. 39475 set dummy $tool_basename; ac_word=$2 39476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39477 $as_echo_n "checking for $ac_word... " >&6; } 39478 if ${ac_cv_path_BUILD_CC+:} false; then : 39479 $as_echo_n "(cached) " >&6 39480 else 39481 case $BUILD_CC in 39482 [\\/]* | ?:[\\/]*) 39483 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39484 ;; 39485 *) 39486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39487 for as_dir in $PATH 39488 do 39489 IFS=$as_save_IFS 39490 test -z "$as_dir" && as_dir=. 39491 for ac_exec_ext in '' $ac_executable_extensions; do 39492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39493 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39495 break 2 39496 fi 39497 done 39498 done 39499 IFS=$as_save_IFS 39500 39501 ;; 39502 esac 39503 fi 39504 BUILD_CC=$ac_cv_path_BUILD_CC 39505 if test -n "$BUILD_CC"; then 39506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39507 $as_echo "$BUILD_CC" >&6; } 39508 else 39509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39510 $as_echo "no" >&6; } 39511 fi 39512 39513 39514 if test "x$BUILD_CC" = x; then 39515 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39516 fi 39517 else 39518 # Otherwise we believe it is a complete path. Use it as it is. 39519 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 39520 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 39521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 39522 $as_echo_n "checking for BUILD_CC... " >&6; } 39523 if test ! -x "$tool_specified"; then 39524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39525 $as_echo "not found" >&6; } 39526 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 39527 fi 39528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39529 $as_echo "$tool_specified" >&6; } 39530 fi 39531 fi 39532 fi 39533 39534 39535 39536 # Only process if variable expands to non-empty 39537 39538 if test "x$BUILD_CC" != x; then 39539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39540 39541 # First separate the path from the arguments. This will split at the first 39542 # space. 39543 complete="$BUILD_CC" 39544 path="${complete%% *}" 39545 tmp="$complete EOL" 39546 arguments="${tmp#* }" 39547 39548 # Input might be given as Windows format, start by converting to 39549 # unix format. 39550 new_path=`$CYGPATH -u "$path"` 39551 39552 # Now try to locate executable using which 39553 new_path=`$WHICH "$new_path" 2> /dev/null` 39554 # bat and cmd files are not always considered executable in cygwin causing which 39555 # to not find them 39556 if test "x$new_path" = x \ 39557 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39558 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39559 new_path=`$CYGPATH -u "$path"` 39560 fi 39561 if test "x$new_path" = x; then 39562 # Oops. Which didn't find the executable. 39563 # The splitting of arguments from the executable at a space might have been incorrect, 39564 # since paths with space are more likely in Windows. Give it another try with the whole 39565 # argument. 39566 path="$complete" 39567 arguments="EOL" 39568 new_path=`$CYGPATH -u "$path"` 39569 new_path=`$WHICH "$new_path" 2> /dev/null` 39570 # bat and cmd files are not always considered executable in cygwin causing which 39571 # to not find them 39572 if test "x$new_path" = x \ 39573 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39574 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39575 new_path=`$CYGPATH -u "$path"` 39576 fi 39577 if test "x$new_path" = x; then 39578 # It's still not found. Now this is an unrecoverable error. 39579 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39580 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39581 has_space=`$ECHO "$complete" | $GREP " "` 39582 if test "x$has_space" != x; then 39583 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39584 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39585 fi 39586 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39587 fi 39588 fi 39589 39590 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39591 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39592 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39593 # "foo.exe" is OK but "foo" is an error. 39594 # 39595 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39596 # It is also a way to make sure we got the proper file name for the real test later on. 39597 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39598 if test "x$test_shortpath" = x; then 39599 # Short path failed, file does not exist as specified. 39600 # Try adding .exe or .cmd 39601 if test -f "${new_path}.exe"; then 39602 input_to_shortpath="${new_path}.exe" 39603 elif test -f "${new_path}.cmd"; then 39604 input_to_shortpath="${new_path}.cmd" 39605 else 39606 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39607 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39608 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39609 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39610 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39611 fi 39612 else 39613 input_to_shortpath="$new_path" 39614 fi 39615 39616 # Call helper function which possibly converts this using DOS-style short mode. 39617 # If so, the updated path is stored in $new_path. 39618 new_path="$input_to_shortpath" 39619 39620 input_path="$input_to_shortpath" 39621 # Check if we need to convert this using DOS-style short mode. If the path 39622 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39623 # take no chances and rewrite it. 39624 # Note: m4 eats our [], so we need to use [ and ] instead. 39625 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39626 if test "x$has_forbidden_chars" != x; then 39627 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39628 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39629 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39630 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39631 # Going to short mode and back again did indeed matter. Since short mode is 39632 # case insensitive, let's make it lowercase to improve readability. 39633 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39634 # Now convert it back to Unix-stile (cygpath) 39635 input_path=`$CYGPATH -u "$shortmode_path"` 39636 new_path="$input_path" 39637 fi 39638 fi 39639 39640 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39641 if test "x$test_cygdrive_prefix" = x; then 39642 # As a simple fix, exclude /usr/bin since it's not a real path. 39643 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39644 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39645 # a path prefixed by /cygdrive for fixpath to work. 39646 new_path="$CYGWIN_ROOT_PATH$input_path" 39647 fi 39648 fi 39649 39650 # remove trailing .exe if any 39651 new_path="${new_path/%.exe/}" 39652 39653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39654 39655 # First separate the path from the arguments. This will split at the first 39656 # space. 39657 complete="$BUILD_CC" 39658 path="${complete%% *}" 39659 tmp="$complete EOL" 39660 arguments="${tmp#* }" 39661 39662 # Input might be given as Windows format, start by converting to 39663 # unix format. 39664 new_path="$path" 39665 39666 windows_path="$new_path" 39667 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39668 unix_path=`$CYGPATH -u "$windows_path"` 39669 new_path="$unix_path" 39670 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39671 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39672 new_path="$unix_path" 39673 fi 39674 39675 39676 # Now try to locate executable using which 39677 new_path=`$WHICH "$new_path" 2> /dev/null` 39678 39679 if test "x$new_path" = x; then 39680 # Oops. Which didn't find the executable. 39681 # The splitting of arguments from the executable at a space might have been incorrect, 39682 # since paths with space are more likely in Windows. Give it another try with the whole 39683 # argument. 39684 path="$complete" 39685 arguments="EOL" 39686 new_path="$path" 39687 39688 windows_path="$new_path" 39689 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39690 unix_path=`$CYGPATH -u "$windows_path"` 39691 new_path="$unix_path" 39692 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39693 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39694 new_path="$unix_path" 39695 fi 39696 39697 39698 new_path=`$WHICH "$new_path" 2> /dev/null` 39699 # bat and cmd files are not always considered executable in MSYS causing which 39700 # to not find them 39701 if test "x$new_path" = x \ 39702 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39703 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39704 new_path="$path" 39705 39706 windows_path="$new_path" 39707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39708 unix_path=`$CYGPATH -u "$windows_path"` 39709 new_path="$unix_path" 39710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39711 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39712 new_path="$unix_path" 39713 fi 39714 39715 fi 39716 39717 if test "x$new_path" = x; then 39718 # It's still not found. Now this is an unrecoverable error. 39719 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39720 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39721 has_space=`$ECHO "$complete" | $GREP " "` 39722 if test "x$has_space" != x; then 39723 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39724 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39725 fi 39726 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39727 fi 39728 fi 39729 39730 # Now new_path has a complete unix path to the binary 39731 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39732 # Keep paths in /bin as-is, but remove trailing .exe if any 39733 new_path="${new_path/%.exe/}" 39734 # Do not save /bin paths to all_fixpath_prefixes! 39735 else 39736 # Not in mixed or Windows style, start by that. 39737 new_path=`cmd //c echo $new_path` 39738 39739 input_path="$new_path" 39740 # Check if we need to convert this using DOS-style short mode. If the path 39741 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39742 # take no chances and rewrite it. 39743 # Note: m4 eats our [], so we need to use [ and ] instead. 39744 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39745 if test "x$has_forbidden_chars" != x; then 39746 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39747 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39748 fi 39749 39750 # Output is in $new_path 39751 39752 windows_path="$new_path" 39753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39754 unix_path=`$CYGPATH -u "$windows_path"` 39755 new_path="$unix_path" 39756 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39757 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39758 new_path="$unix_path" 39759 fi 39760 39761 # remove trailing .exe if any 39762 new_path="${new_path/%.exe/}" 39763 39764 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39765 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39766 fi 39767 39768 else 39769 # We're on a unix platform. Hooray! :) 39770 # First separate the path from the arguments. This will split at the first 39771 # space. 39772 complete="$BUILD_CC" 39773 path="${complete%% *}" 39774 tmp="$complete EOL" 39775 arguments="${tmp#* }" 39776 39777 # Cannot rely on the command "which" here since it doesn't always work. 39778 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39779 if test -z "$is_absolute_path"; then 39780 # Path to executable is not absolute. Find it. 39781 IFS_save="$IFS" 39782 IFS=: 39783 for p in $PATH; do 39784 if test -f "$p/$path" && test -x "$p/$path"; then 39785 new_path="$p/$path" 39786 break 39787 fi 39788 done 39789 IFS="$IFS_save" 39790 else 39791 # This is an absolute path, we can use it without further modifications. 39792 new_path="$path" 39793 fi 39794 39795 if test "x$new_path" = x; then 39796 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39797 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39798 has_space=`$ECHO "$complete" | $GREP " "` 39799 if test "x$has_space" != x; then 39800 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39801 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39802 fi 39803 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39804 fi 39805 fi 39806 39807 # Now join together the path and the arguments once again 39808 if test "x$arguments" != xEOL; then 39809 new_complete="$new_path ${arguments% *}" 39810 else 39811 new_complete="$new_path" 39812 fi 39813 39814 if test "x$complete" != "x$new_complete"; then 39815 BUILD_CC="$new_complete" 39816 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39817 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39818 fi 39819 fi 39820 39821 39822 39823 # Publish this variable in the help. 39824 39825 39826 if test "x$BUILD_CXX" = x; then 39827 # The variable is not set by user, try to locate tool using the code snippet 39828 for ac_prog in cl CC g++ 39829 do 39830 # Extract the first word of "$ac_prog", so it can be a program name with args. 39831 set dummy $ac_prog; ac_word=$2 39832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39833 $as_echo_n "checking for $ac_word... " >&6; } 39834 if ${ac_cv_path_BUILD_CXX+:} false; then : 39835 $as_echo_n "(cached) " >&6 39836 else 39837 case $BUILD_CXX in 39838 [\\/]* | ?:[\\/]*) 39839 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39840 ;; 39841 *) 39842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39843 for as_dir in $PATH 39844 do 39845 IFS=$as_save_IFS 39846 test -z "$as_dir" && as_dir=. 39847 for ac_exec_ext in '' $ac_executable_extensions; do 39848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39849 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39851 break 2 39852 fi 39853 done 39854 done 39855 IFS=$as_save_IFS 39856 39857 ;; 39858 esac 39859 fi 39860 BUILD_CXX=$ac_cv_path_BUILD_CXX 39861 if test -n "$BUILD_CXX"; then 39862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39863 $as_echo "$BUILD_CXX" >&6; } 39864 else 39865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39866 $as_echo "no" >&6; } 39867 fi 39868 39869 39870 test -n "$BUILD_CXX" && break 39871 done 39872 39873 else 39874 # The variable is set, but is it from the command line or the environment? 39875 39876 # Try to remove the string !BUILD_CXX! from our list. 39877 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39878 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39879 # If it failed, the variable was not from the command line. Ignore it, 39880 # but warn the user (except for BASH, which is always set by the calling BASH). 39881 if test "xBUILD_CXX" != xBASH; then 39882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39883 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39884 fi 39885 # Try to locate tool using the code snippet 39886 for ac_prog in cl CC g++ 39887 do 39888 # Extract the first word of "$ac_prog", so it can be a program name with args. 39889 set dummy $ac_prog; ac_word=$2 39890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39891 $as_echo_n "checking for $ac_word... " >&6; } 39892 if ${ac_cv_path_BUILD_CXX+:} false; then : 39893 $as_echo_n "(cached) " >&6 39894 else 39895 case $BUILD_CXX in 39896 [\\/]* | ?:[\\/]*) 39897 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39898 ;; 39899 *) 39900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39901 for as_dir in $PATH 39902 do 39903 IFS=$as_save_IFS 39904 test -z "$as_dir" && as_dir=. 39905 for ac_exec_ext in '' $ac_executable_extensions; do 39906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39907 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39909 break 2 39910 fi 39911 done 39912 done 39913 IFS=$as_save_IFS 39914 39915 ;; 39916 esac 39917 fi 39918 BUILD_CXX=$ac_cv_path_BUILD_CXX 39919 if test -n "$BUILD_CXX"; then 39920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39921 $as_echo "$BUILD_CXX" >&6; } 39922 else 39923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39924 $as_echo "no" >&6; } 39925 fi 39926 39927 39928 test -n "$BUILD_CXX" && break 39929 done 39930 39931 else 39932 # If it succeeded, then it was overridden by the user. We will use it 39933 # for the tool. 39934 39935 # First remove it from the list of overridden variables, so we can test 39936 # for unknown variables in the end. 39937 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39938 39939 # Check if the provided tool contains a complete path. 39940 tool_specified="$BUILD_CXX" 39941 tool_basename="${tool_specified##*/}" 39942 if test "x$tool_basename" = "x$tool_specified"; then 39943 # A command without a complete path is provided, search $PATH. 39944 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 39945 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 39946 # Extract the first word of "$tool_basename", so it can be a program name with args. 39947 set dummy $tool_basename; ac_word=$2 39948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39949 $as_echo_n "checking for $ac_word... " >&6; } 39950 if ${ac_cv_path_BUILD_CXX+:} false; then : 39951 $as_echo_n "(cached) " >&6 39952 else 39953 case $BUILD_CXX in 39954 [\\/]* | ?:[\\/]*) 39955 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39956 ;; 39957 *) 39958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39959 for as_dir in $PATH 39960 do 39961 IFS=$as_save_IFS 39962 test -z "$as_dir" && as_dir=. 39963 for ac_exec_ext in '' $ac_executable_extensions; do 39964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39965 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39967 break 2 39968 fi 39969 done 39970 done 39971 IFS=$as_save_IFS 39972 39973 ;; 39974 esac 39975 fi 39976 BUILD_CXX=$ac_cv_path_BUILD_CXX 39977 if test -n "$BUILD_CXX"; then 39978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39979 $as_echo "$BUILD_CXX" >&6; } 39980 else 39981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39982 $as_echo "no" >&6; } 39983 fi 39984 39985 39986 if test "x$BUILD_CXX" = x; then 39987 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39988 fi 39989 else 39990 # Otherwise we believe it is a complete path. Use it as it is. 39991 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 39992 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 39993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 39994 $as_echo_n "checking for BUILD_CXX... " >&6; } 39995 if test ! -x "$tool_specified"; then 39996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39997 $as_echo "not found" >&6; } 39998 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 39999 fi 40000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40001 $as_echo "$tool_specified" >&6; } 40002 fi 40003 fi 40004 fi 40005 40006 40007 40008 # Only process if variable expands to non-empty 40009 40010 if test "x$BUILD_CXX" != x; then 40011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40012 40013 # First separate the path from the arguments. This will split at the first 40014 # space. 40015 complete="$BUILD_CXX" 40016 path="${complete%% *}" 40017 tmp="$complete EOL" 40018 arguments="${tmp#* }" 40019 40020 # Input might be given as Windows format, start by converting to 40021 # unix format. 40022 new_path=`$CYGPATH -u "$path"` 40023 40024 # Now try to locate executable using which 40025 new_path=`$WHICH "$new_path" 2> /dev/null` 40026 # bat and cmd files are not always considered executable in cygwin causing which 40027 # to not find them 40028 if test "x$new_path" = x \ 40029 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40030 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40031 new_path=`$CYGPATH -u "$path"` 40032 fi 40033 if test "x$new_path" = x; then 40034 # Oops. Which didn't find the executable. 40035 # The splitting of arguments from the executable at a space might have been incorrect, 40036 # since paths with space are more likely in Windows. Give it another try with the whole 40037 # argument. 40038 path="$complete" 40039 arguments="EOL" 40040 new_path=`$CYGPATH -u "$path"` 40041 new_path=`$WHICH "$new_path" 2> /dev/null` 40042 # bat and cmd files are not always considered executable in cygwin causing which 40043 # to not find them 40044 if test "x$new_path" = x \ 40045 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40046 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40047 new_path=`$CYGPATH -u "$path"` 40048 fi 40049 if test "x$new_path" = x; then 40050 # It's still not found. Now this is an unrecoverable error. 40051 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40052 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40053 has_space=`$ECHO "$complete" | $GREP " "` 40054 if test "x$has_space" != x; then 40055 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40056 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40057 fi 40058 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40059 fi 40060 fi 40061 40062 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40063 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40064 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40065 # "foo.exe" is OK but "foo" is an error. 40066 # 40067 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40068 # It is also a way to make sure we got the proper file name for the real test later on. 40069 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40070 if test "x$test_shortpath" = x; then 40071 # Short path failed, file does not exist as specified. 40072 # Try adding .exe or .cmd 40073 if test -f "${new_path}.exe"; then 40074 input_to_shortpath="${new_path}.exe" 40075 elif test -f "${new_path}.cmd"; then 40076 input_to_shortpath="${new_path}.cmd" 40077 else 40078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 40079 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 40080 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40081 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40082 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40083 fi 40084 else 40085 input_to_shortpath="$new_path" 40086 fi 40087 40088 # Call helper function which possibly converts this using DOS-style short mode. 40089 # If so, the updated path is stored in $new_path. 40090 new_path="$input_to_shortpath" 40091 40092 input_path="$input_to_shortpath" 40093 # Check if we need to convert this using DOS-style short mode. If the path 40094 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40095 # take no chances and rewrite it. 40096 # Note: m4 eats our [], so we need to use [ and ] instead. 40097 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40098 if test "x$has_forbidden_chars" != x; then 40099 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40100 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40101 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40102 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40103 # Going to short mode and back again did indeed matter. Since short mode is 40104 # case insensitive, let's make it lowercase to improve readability. 40105 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40106 # Now convert it back to Unix-stile (cygpath) 40107 input_path=`$CYGPATH -u "$shortmode_path"` 40108 new_path="$input_path" 40109 fi 40110 fi 40111 40112 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40113 if test "x$test_cygdrive_prefix" = x; then 40114 # As a simple fix, exclude /usr/bin since it's not a real path. 40115 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40116 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40117 # a path prefixed by /cygdrive for fixpath to work. 40118 new_path="$CYGWIN_ROOT_PATH$input_path" 40119 fi 40120 fi 40121 40122 # remove trailing .exe if any 40123 new_path="${new_path/%.exe/}" 40124 40125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40126 40127 # First separate the path from the arguments. This will split at the first 40128 # space. 40129 complete="$BUILD_CXX" 40130 path="${complete%% *}" 40131 tmp="$complete EOL" 40132 arguments="${tmp#* }" 40133 40134 # Input might be given as Windows format, start by converting to 40135 # unix format. 40136 new_path="$path" 40137 40138 windows_path="$new_path" 40139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40140 unix_path=`$CYGPATH -u "$windows_path"` 40141 new_path="$unix_path" 40142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40143 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40144 new_path="$unix_path" 40145 fi 40146 40147 40148 # Now try to locate executable using which 40149 new_path=`$WHICH "$new_path" 2> /dev/null` 40150 40151 if test "x$new_path" = x; then 40152 # Oops. Which didn't find the executable. 40153 # The splitting of arguments from the executable at a space might have been incorrect, 40154 # since paths with space are more likely in Windows. Give it another try with the whole 40155 # argument. 40156 path="$complete" 40157 arguments="EOL" 40158 new_path="$path" 40159 40160 windows_path="$new_path" 40161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40162 unix_path=`$CYGPATH -u "$windows_path"` 40163 new_path="$unix_path" 40164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40166 new_path="$unix_path" 40167 fi 40168 40169 40170 new_path=`$WHICH "$new_path" 2> /dev/null` 40171 # bat and cmd files are not always considered executable in MSYS causing which 40172 # to not find them 40173 if test "x$new_path" = x \ 40174 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40175 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40176 new_path="$path" 40177 40178 windows_path="$new_path" 40179 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40180 unix_path=`$CYGPATH -u "$windows_path"` 40181 new_path="$unix_path" 40182 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40183 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40184 new_path="$unix_path" 40185 fi 40186 40187 fi 40188 40189 if test "x$new_path" = x; then 40190 # It's still not found. Now this is an unrecoverable error. 40191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40192 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40193 has_space=`$ECHO "$complete" | $GREP " "` 40194 if test "x$has_space" != x; then 40195 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40196 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40197 fi 40198 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40199 fi 40200 fi 40201 40202 # Now new_path has a complete unix path to the binary 40203 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40204 # Keep paths in /bin as-is, but remove trailing .exe if any 40205 new_path="${new_path/%.exe/}" 40206 # Do not save /bin paths to all_fixpath_prefixes! 40207 else 40208 # Not in mixed or Windows style, start by that. 40209 new_path=`cmd //c echo $new_path` 40210 40211 input_path="$new_path" 40212 # Check if we need to convert this using DOS-style short mode. If the path 40213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40214 # take no chances and rewrite it. 40215 # Note: m4 eats our [], so we need to use [ and ] instead. 40216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40217 if test "x$has_forbidden_chars" != x; then 40218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40219 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40220 fi 40221 40222 # Output is in $new_path 40223 40224 windows_path="$new_path" 40225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40226 unix_path=`$CYGPATH -u "$windows_path"` 40227 new_path="$unix_path" 40228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40229 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40230 new_path="$unix_path" 40231 fi 40232 40233 # remove trailing .exe if any 40234 new_path="${new_path/%.exe/}" 40235 40236 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40237 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40238 fi 40239 40240 else 40241 # We're on a unix platform. Hooray! :) 40242 # First separate the path from the arguments. This will split at the first 40243 # space. 40244 complete="$BUILD_CXX" 40245 path="${complete%% *}" 40246 tmp="$complete EOL" 40247 arguments="${tmp#* }" 40248 40249 # Cannot rely on the command "which" here since it doesn't always work. 40250 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40251 if test -z "$is_absolute_path"; then 40252 # Path to executable is not absolute. Find it. 40253 IFS_save="$IFS" 40254 IFS=: 40255 for p in $PATH; do 40256 if test -f "$p/$path" && test -x "$p/$path"; then 40257 new_path="$p/$path" 40258 break 40259 fi 40260 done 40261 IFS="$IFS_save" 40262 else 40263 # This is an absolute path, we can use it without further modifications. 40264 new_path="$path" 40265 fi 40266 40267 if test "x$new_path" = x; then 40268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40269 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40270 has_space=`$ECHO "$complete" | $GREP " "` 40271 if test "x$has_space" != x; then 40272 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40273 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40274 fi 40275 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40276 fi 40277 fi 40278 40279 # Now join together the path and the arguments once again 40280 if test "x$arguments" != xEOL; then 40281 new_complete="$new_path ${arguments% *}" 40282 else 40283 new_complete="$new_path" 40284 fi 40285 40286 if test "x$complete" != "x$new_complete"; then 40287 BUILD_CXX="$new_complete" 40288 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 40289 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 40290 fi 40291 fi 40292 40293 40294 40295 # Publish this variable in the help. 40296 40297 40298 if test "x$BUILD_LD" = x; then 40299 # The variable is not set by user, try to locate tool using the code snippet 40300 for ac_prog in ld 40301 do 40302 # Extract the first word of "$ac_prog", so it can be a program name with args. 40303 set dummy $ac_prog; ac_word=$2 40304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40305 $as_echo_n "checking for $ac_word... " >&6; } 40306 if ${ac_cv_path_BUILD_LD+:} false; then : 40307 $as_echo_n "(cached) " >&6 40308 else 40309 case $BUILD_LD in 40310 [\\/]* | ?:[\\/]*) 40311 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40312 ;; 40313 *) 40314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40315 for as_dir in $PATH 40316 do 40317 IFS=$as_save_IFS 40318 test -z "$as_dir" && as_dir=. 40319 for ac_exec_ext in '' $ac_executable_extensions; do 40320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40321 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40323 break 2 40324 fi 40325 done 40326 done 40327 IFS=$as_save_IFS 40328 40329 ;; 40330 esac 40331 fi 40332 BUILD_LD=$ac_cv_path_BUILD_LD 40333 if test -n "$BUILD_LD"; then 40334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40335 $as_echo "$BUILD_LD" >&6; } 40336 else 40337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40338 $as_echo "no" >&6; } 40339 fi 40340 40341 40342 test -n "$BUILD_LD" && break 40343 done 40344 40345 else 40346 # The variable is set, but is it from the command line or the environment? 40347 40348 # Try to remove the string !BUILD_LD! from our list. 40349 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 40350 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40351 # If it failed, the variable was not from the command line. Ignore it, 40352 # but warn the user (except for BASH, which is always set by the calling BASH). 40353 if test "xBUILD_LD" != xBASH; then 40354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 40355 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 40356 fi 40357 # Try to locate tool using the code snippet 40358 for ac_prog in ld 40359 do 40360 # Extract the first word of "$ac_prog", so it can be a program name with args. 40361 set dummy $ac_prog; ac_word=$2 40362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40363 $as_echo_n "checking for $ac_word... " >&6; } 40364 if ${ac_cv_path_BUILD_LD+:} false; then : 40365 $as_echo_n "(cached) " >&6 40366 else 40367 case $BUILD_LD in 40368 [\\/]* | ?:[\\/]*) 40369 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40370 ;; 40371 *) 40372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40373 for as_dir in $PATH 40374 do 40375 IFS=$as_save_IFS 40376 test -z "$as_dir" && as_dir=. 40377 for ac_exec_ext in '' $ac_executable_extensions; do 40378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40379 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40381 break 2 40382 fi 40383 done 40384 done 40385 IFS=$as_save_IFS 40386 40387 ;; 40388 esac 40389 fi 40390 BUILD_LD=$ac_cv_path_BUILD_LD 40391 if test -n "$BUILD_LD"; then 40392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40393 $as_echo "$BUILD_LD" >&6; } 40394 else 40395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40396 $as_echo "no" >&6; } 40397 fi 40398 40399 40400 test -n "$BUILD_LD" && break 40401 done 40402 40403 else 40404 # If it succeeded, then it was overridden by the user. We will use it 40405 # for the tool. 40406 40407 # First remove it from the list of overridden variables, so we can test 40408 # for unknown variables in the end. 40409 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40410 40411 # Check if the provided tool contains a complete path. 40412 tool_specified="$BUILD_LD" 40413 tool_basename="${tool_specified##*/}" 40414 if test "x$tool_basename" = "x$tool_specified"; then 40415 # A command without a complete path is provided, search $PATH. 40416 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 40417 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 40418 # Extract the first word of "$tool_basename", so it can be a program name with args. 40419 set dummy $tool_basename; ac_word=$2 40420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40421 $as_echo_n "checking for $ac_word... " >&6; } 40422 if ${ac_cv_path_BUILD_LD+:} false; then : 40423 $as_echo_n "(cached) " >&6 40424 else 40425 case $BUILD_LD in 40426 [\\/]* | ?:[\\/]*) 40427 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40428 ;; 40429 *) 40430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40431 for as_dir in $PATH 40432 do 40433 IFS=$as_save_IFS 40434 test -z "$as_dir" && as_dir=. 40435 for ac_exec_ext in '' $ac_executable_extensions; do 40436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40437 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40439 break 2 40440 fi 40441 done 40442 done 40443 IFS=$as_save_IFS 40444 40445 ;; 40446 esac 40447 fi 40448 BUILD_LD=$ac_cv_path_BUILD_LD 40449 if test -n "$BUILD_LD"; then 40450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40451 $as_echo "$BUILD_LD" >&6; } 40452 else 40453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40454 $as_echo "no" >&6; } 40455 fi 40456 40457 40458 if test "x$BUILD_LD" = x; then 40459 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40460 fi 40461 else 40462 # Otherwise we believe it is a complete path. Use it as it is. 40463 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 40464 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 40465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 40466 $as_echo_n "checking for BUILD_LD... " >&6; } 40467 if test ! -x "$tool_specified"; then 40468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40469 $as_echo "not found" >&6; } 40470 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 40471 fi 40472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40473 $as_echo "$tool_specified" >&6; } 40474 fi 40475 fi 40476 fi 40477 40478 40479 40480 # Only process if variable expands to non-empty 40481 40482 if test "x$BUILD_LD" != x; then 40483 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40484 40485 # First separate the path from the arguments. This will split at the first 40486 # space. 40487 complete="$BUILD_LD" 40488 path="${complete%% *}" 40489 tmp="$complete EOL" 40490 arguments="${tmp#* }" 40491 40492 # Input might be given as Windows format, start by converting to 40493 # unix format. 40494 new_path=`$CYGPATH -u "$path"` 40495 40496 # Now try to locate executable using which 40497 new_path=`$WHICH "$new_path" 2> /dev/null` 40498 # bat and cmd files are not always considered executable in cygwin causing which 40499 # to not find them 40500 if test "x$new_path" = x \ 40501 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40502 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40503 new_path=`$CYGPATH -u "$path"` 40504 fi 40505 if test "x$new_path" = x; then 40506 # Oops. Which didn't find the executable. 40507 # The splitting of arguments from the executable at a space might have been incorrect, 40508 # since paths with space are more likely in Windows. Give it another try with the whole 40509 # argument. 40510 path="$complete" 40511 arguments="EOL" 40512 new_path=`$CYGPATH -u "$path"` 40513 new_path=`$WHICH "$new_path" 2> /dev/null` 40514 # bat and cmd files are not always considered executable in cygwin causing which 40515 # to not find them 40516 if test "x$new_path" = x \ 40517 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40518 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40519 new_path=`$CYGPATH -u "$path"` 40520 fi 40521 if test "x$new_path" = x; then 40522 # It's still not found. Now this is an unrecoverable error. 40523 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40524 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40525 has_space=`$ECHO "$complete" | $GREP " "` 40526 if test "x$has_space" != x; then 40527 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40528 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40529 fi 40530 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40531 fi 40532 fi 40533 40534 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40535 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40536 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40537 # "foo.exe" is OK but "foo" is an error. 40538 # 40539 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40540 # It is also a way to make sure we got the proper file name for the real test later on. 40541 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40542 if test "x$test_shortpath" = x; then 40543 # Short path failed, file does not exist as specified. 40544 # Try adding .exe or .cmd 40545 if test -f "${new_path}.exe"; then 40546 input_to_shortpath="${new_path}.exe" 40547 elif test -f "${new_path}.cmd"; then 40548 input_to_shortpath="${new_path}.cmd" 40549 else 40550 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 40551 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 40552 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40553 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40554 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40555 fi 40556 else 40557 input_to_shortpath="$new_path" 40558 fi 40559 40560 # Call helper function which possibly converts this using DOS-style short mode. 40561 # If so, the updated path is stored in $new_path. 40562 new_path="$input_to_shortpath" 40563 40564 input_path="$input_to_shortpath" 40565 # Check if we need to convert this using DOS-style short mode. If the path 40566 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40567 # take no chances and rewrite it. 40568 # Note: m4 eats our [], so we need to use [ and ] instead. 40569 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40570 if test "x$has_forbidden_chars" != x; then 40571 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40572 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40573 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40574 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40575 # Going to short mode and back again did indeed matter. Since short mode is 40576 # case insensitive, let's make it lowercase to improve readability. 40577 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40578 # Now convert it back to Unix-stile (cygpath) 40579 input_path=`$CYGPATH -u "$shortmode_path"` 40580 new_path="$input_path" 40581 fi 40582 fi 40583 40584 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40585 if test "x$test_cygdrive_prefix" = x; then 40586 # As a simple fix, exclude /usr/bin since it's not a real path. 40587 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40588 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40589 # a path prefixed by /cygdrive for fixpath to work. 40590 new_path="$CYGWIN_ROOT_PATH$input_path" 40591 fi 40592 fi 40593 40594 # remove trailing .exe if any 40595 new_path="${new_path/%.exe/}" 40596 40597 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40598 40599 # First separate the path from the arguments. This will split at the first 40600 # space. 40601 complete="$BUILD_LD" 40602 path="${complete%% *}" 40603 tmp="$complete EOL" 40604 arguments="${tmp#* }" 40605 40606 # Input might be given as Windows format, start by converting to 40607 # unix format. 40608 new_path="$path" 40609 40610 windows_path="$new_path" 40611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40612 unix_path=`$CYGPATH -u "$windows_path"` 40613 new_path="$unix_path" 40614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40616 new_path="$unix_path" 40617 fi 40618 40619 40620 # Now try to locate executable using which 40621 new_path=`$WHICH "$new_path" 2> /dev/null` 40622 40623 if test "x$new_path" = x; then 40624 # Oops. Which didn't find the executable. 40625 # The splitting of arguments from the executable at a space might have been incorrect, 40626 # since paths with space are more likely in Windows. Give it another try with the whole 40627 # argument. 40628 path="$complete" 40629 arguments="EOL" 40630 new_path="$path" 40631 40632 windows_path="$new_path" 40633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40634 unix_path=`$CYGPATH -u "$windows_path"` 40635 new_path="$unix_path" 40636 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40637 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40638 new_path="$unix_path" 40639 fi 40640 40641 40642 new_path=`$WHICH "$new_path" 2> /dev/null` 40643 # bat and cmd files are not always considered executable in MSYS causing which 40644 # to not find them 40645 if test "x$new_path" = x \ 40646 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40647 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40648 new_path="$path" 40649 40650 windows_path="$new_path" 40651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40652 unix_path=`$CYGPATH -u "$windows_path"` 40653 new_path="$unix_path" 40654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40655 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40656 new_path="$unix_path" 40657 fi 40658 40659 fi 40660 40661 if test "x$new_path" = x; then 40662 # It's still not found. Now this is an unrecoverable error. 40663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40664 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40665 has_space=`$ECHO "$complete" | $GREP " "` 40666 if test "x$has_space" != x; then 40667 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40668 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40669 fi 40670 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40671 fi 40672 fi 40673 40674 # Now new_path has a complete unix path to the binary 40675 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40676 # Keep paths in /bin as-is, but remove trailing .exe if any 40677 new_path="${new_path/%.exe/}" 40678 # Do not save /bin paths to all_fixpath_prefixes! 40679 else 40680 # Not in mixed or Windows style, start by that. 40681 new_path=`cmd //c echo $new_path` 40682 40683 input_path="$new_path" 40684 # Check if we need to convert this using DOS-style short mode. If the path 40685 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40686 # take no chances and rewrite it. 40687 # Note: m4 eats our [], so we need to use [ and ] instead. 40688 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40689 if test "x$has_forbidden_chars" != x; then 40690 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40691 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40692 fi 40693 40694 # Output is in $new_path 40695 40696 windows_path="$new_path" 40697 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40698 unix_path=`$CYGPATH -u "$windows_path"` 40699 new_path="$unix_path" 40700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40701 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40702 new_path="$unix_path" 40703 fi 40704 40705 # remove trailing .exe if any 40706 new_path="${new_path/%.exe/}" 40707 40708 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40709 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40710 fi 40711 40712 else 40713 # We're on a unix platform. Hooray! :) 40714 # First separate the path from the arguments. This will split at the first 40715 # space. 40716 complete="$BUILD_LD" 40717 path="${complete%% *}" 40718 tmp="$complete EOL" 40719 arguments="${tmp#* }" 40720 40721 # Cannot rely on the command "which" here since it doesn't always work. 40722 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40723 if test -z "$is_absolute_path"; then 40724 # Path to executable is not absolute. Find it. 40725 IFS_save="$IFS" 40726 IFS=: 40727 for p in $PATH; do 40728 if test -f "$p/$path" && test -x "$p/$path"; then 40729 new_path="$p/$path" 40730 break 40731 fi 40732 done 40733 IFS="$IFS_save" 40734 else 40735 # This is an absolute path, we can use it without further modifications. 40736 new_path="$path" 40737 fi 40738 40739 if test "x$new_path" = x; then 40740 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40741 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40742 has_space=`$ECHO "$complete" | $GREP " "` 40743 if test "x$has_space" != x; then 40744 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40745 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40746 fi 40747 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40748 fi 40749 fi 40750 40751 # Now join together the path and the arguments once again 40752 if test "x$arguments" != xEOL; then 40753 new_complete="$new_path ${arguments% *}" 40754 else 40755 new_complete="$new_path" 40756 fi 40757 40758 if test "x$complete" != "x$new_complete"; then 40759 BUILD_LD="$new_complete" 40760 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40761 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40762 fi 40763 fi 40764 40765 else 40766 # If we are not cross compiling, use the normal target compilers for 40767 # building the build platform executables. 40768 BUILD_CC="$CC" 40769 BUILD_CXX="$CXX" 40770 BUILD_LD="$LD" 40771 fi 40772 40773 40774 40775 40776 40777 40778 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40779 # For hotspot, we need these in Windows mixed path, 40780 # so rewrite them all. Need added .exe suffix. 40781 HOTSPOT_CXX="$CXX.exe" 40782 HOTSPOT_LD="$LD.exe" 40783 HOTSPOT_MT="$MT.exe" 40784 HOTSPOT_RC="$RC.exe" 40785 40786 unix_path="$HOTSPOT_CXX" 40787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40788 windows_path=`$CYGPATH -m "$unix_path"` 40789 HOTSPOT_CXX="$windows_path" 40790 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40791 windows_path=`cmd //c echo $unix_path` 40792 HOTSPOT_CXX="$windows_path" 40793 fi 40794 40795 40796 unix_path="$HOTSPOT_LD" 40797 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40798 windows_path=`$CYGPATH -m "$unix_path"` 40799 HOTSPOT_LD="$windows_path" 40800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40801 windows_path=`cmd //c echo $unix_path` 40802 HOTSPOT_LD="$windows_path" 40803 fi 40804 40805 40806 unix_path="$HOTSPOT_MT" 40807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40808 windows_path=`$CYGPATH -m "$unix_path"` 40809 HOTSPOT_MT="$windows_path" 40810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40811 windows_path=`cmd //c echo $unix_path` 40812 HOTSPOT_MT="$windows_path" 40813 fi 40814 40815 40816 unix_path="$HOTSPOT_RC" 40817 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40818 windows_path=`$CYGPATH -m "$unix_path"` 40819 HOTSPOT_RC="$windows_path" 40820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40821 windows_path=`cmd //c echo $unix_path` 40822 HOTSPOT_RC="$windows_path" 40823 fi 40824 40825 40826 40827 else 40828 HOTSPOT_CXX="$CXX" 40829 HOTSPOT_LD="$LD" 40830 fi 40831 40832 40833 40834 if test "x$TOOLCHAIN_TYPE" = xclang; then 40835 USE_CLANG=true 40836 fi 40837 40838 40839 # LDEXE is the linker to use, when creating executables. Not really used. 40840 # FIXME: These should just be removed! 40841 LDEXE="$LD" 40842 LDEXECXX="$LDCXX" 40843 40844 40845 40846 40847 40848 40849 # The package path is used only on macosx? 40850 # FIXME: clean this up, and/or move it elsewhere. 40851 PACKAGE_PATH=/opt/local 40852 40853 40854 # Check for extra potential brokenness. 40855 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40856 # On Windows, double-check that we got the right compiler. 40857 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40858 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40859 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40860 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 40861 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\" or \"x86\"." "$LINENO" 5 40862 fi 40863 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40864 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40865 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40866 fi 40867 fi 40868 fi 40869 40870 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40871 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40872 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40873 # This is later checked when setting flags. 40874 40875 # "-Og" suppported for GCC 4.8 and later 40876 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 40877 40878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 40879 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 40880 supports=yes 40881 40882 saved_cflags="$CFLAGS" 40883 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 40884 ac_ext=c 40885 ac_cpp='$CPP $CPPFLAGS' 40886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40888 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40889 40890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40891 /* end confdefs.h. */ 40892 int i; 40893 _ACEOF 40894 if ac_fn_c_try_compile "$LINENO"; then : 40895 40896 else 40897 supports=no 40898 fi 40899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40900 ac_ext=cpp 40901 ac_cpp='$CXXCPP $CPPFLAGS' 40902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40905 40906 CFLAGS="$saved_cflags" 40907 40908 saved_cxxflags="$CXXFLAGS" 40909 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 40910 ac_ext=cpp 40911 ac_cpp='$CXXCPP $CPPFLAGS' 40912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40915 40916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40917 /* end confdefs.h. */ 40918 int i; 40919 _ACEOF 40920 if ac_fn_cxx_try_compile "$LINENO"; then : 40921 40922 else 40923 supports=no 40924 fi 40925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40926 ac_ext=cpp 40927 ac_cpp='$CXXCPP $CPPFLAGS' 40928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40931 40932 CXXFLAGS="$saved_cxxflags" 40933 40934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40935 $as_echo "$supports" >&6; } 40936 if test "x$supports" = "xyes" ; then 40937 HAS_CFLAG_OPTIMIZE_DEBUG=true 40938 else 40939 HAS_CFLAG_OPTIMIZE_DEBUG=false 40940 fi 40941 40942 40943 # "-z relro" supported in GNU binutils 2.17 and later 40944 LINKER_RELRO_FLAG="-Xlinker -z -Xlinker relro" 40945 40946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 40947 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 40948 supports=yes 40949 40950 saved_ldflags="$LDFLAGS" 40951 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 40952 ac_ext=c 40953 ac_cpp='$CPP $CPPFLAGS' 40954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40956 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40957 40958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40959 /* end confdefs.h. */ 40960 40961 int 40962 main () 40963 { 40964 40965 ; 40966 return 0; 40967 } 40968 _ACEOF 40969 if ac_fn_c_try_link "$LINENO"; then : 40970 40971 else 40972 supports=no 40973 fi 40974 rm -f core conftest.err conftest.$ac_objext \ 40975 conftest$ac_exeext conftest.$ac_ext 40976 ac_ext=cpp 40977 ac_cpp='$CXXCPP $CPPFLAGS' 40978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40981 40982 LDFLAGS="$saved_ldflags" 40983 40984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40985 $as_echo "$supports" >&6; } 40986 if test "x$supports" = "xyes" ; then 40987 HAS_LINKER_RELRO=true 40988 else 40989 HAS_LINKER_RELRO=false 40990 fi 40991 40992 40993 # "-z now" supported in GNU binutils 2.11 and later 40994 LINKER_NOW_FLAG="-Xlinker -z -Xlinker now" 40995 40996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 40997 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 40998 supports=yes 40999 41000 saved_ldflags="$LDFLAGS" 41001 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 41002 ac_ext=c 41003 ac_cpp='$CPP $CPPFLAGS' 41004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41006 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41007 41008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41009 /* end confdefs.h. */ 41010 41011 int 41012 main () 41013 { 41014 41015 ; 41016 return 0; 41017 } 41018 _ACEOF 41019 if ac_fn_c_try_link "$LINENO"; then : 41020 41021 else 41022 supports=no 41023 fi 41024 rm -f core conftest.err conftest.$ac_objext \ 41025 conftest$ac_exeext conftest.$ac_ext 41026 ac_ext=cpp 41027 ac_cpp='$CXXCPP $CPPFLAGS' 41028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41031 41032 LDFLAGS="$saved_ldflags" 41033 41034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41035 $as_echo "$supports" >&6; } 41036 if test "x$supports" = "xyes" ; then 41037 HAS_LINKER_NOW=true 41038 else 41039 HAS_LINKER_NOW=false 41040 fi 41041 41042 fi 41043 41044 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 41045 # in executable.' 41046 USING_BROKEN_SUSE_LD=no 41047 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 41048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 41049 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 41050 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 41051 $ECHO "int main() { }" > main.c 41052 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 41053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41054 $as_echo "no" >&6; } 41055 USING_BROKEN_SUSE_LD=no 41056 else 41057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41058 $as_echo "yes" >&6; } 41059 USING_BROKEN_SUSE_LD=yes 41060 fi 41061 rm -rf version-script.map main.c a.out 41062 fi 41063 41064 41065 41066 # Setup the JTReg Regression Test Harness. 41067 41068 41069 # Check whether --with-jtreg was given. 41070 if test "${with_jtreg+set}" = set; then : 41071 withval=$with_jtreg; 41072 else 41073 with_jtreg=no 41074 fi 41075 41076 41077 if test "x$with_jtreg" = xno; then 41078 # jtreg disabled 41079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41080 $as_echo_n "checking for jtreg... " >&6; } 41081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41082 $as_echo "no" >&6; } 41083 else 41084 if test "x$with_jtreg" != xyes; then 41085 # with path specified. 41086 JT_HOME="$with_jtreg" 41087 fi 41088 41089 if test "x$JT_HOME" != x; then 41090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41091 $as_echo_n "checking for jtreg... " >&6; } 41092 41093 # use JT_HOME enviroment var. 41094 41095 # Only process if variable expands to non-empty 41096 41097 if test "x$JT_HOME" != x; then 41098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41099 41100 # Input might be given as Windows format, start by converting to 41101 # unix format. 41102 path="$JT_HOME" 41103 new_path=`$CYGPATH -u "$path"` 41104 41105 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41106 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41107 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41108 # "foo.exe" is OK but "foo" is an error. 41109 # 41110 # This test is therefore slightly more accurate than "test -f" to check for file precense. 41111 # It is also a way to make sure we got the proper file name for the real test later on. 41112 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41113 if test "x$test_shortpath" = x; then 41114 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41115 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41116 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 41117 fi 41118 41119 # Call helper function which possibly converts this using DOS-style short mode. 41120 # If so, the updated path is stored in $new_path. 41121 41122 input_path="$new_path" 41123 # Check if we need to convert this using DOS-style short mode. If the path 41124 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41125 # take no chances and rewrite it. 41126 # Note: m4 eats our [], so we need to use [ and ] instead. 41127 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41128 if test "x$has_forbidden_chars" != x; then 41129 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41130 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41131 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41132 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41133 # Going to short mode and back again did indeed matter. Since short mode is 41134 # case insensitive, let's make it lowercase to improve readability. 41135 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41136 # Now convert it back to Unix-stile (cygpath) 41137 input_path=`$CYGPATH -u "$shortmode_path"` 41138 new_path="$input_path" 41139 fi 41140 fi 41141 41142 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41143 if test "x$test_cygdrive_prefix" = x; then 41144 # As a simple fix, exclude /usr/bin since it's not a real path. 41145 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 41146 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41147 # a path prefixed by /cygdrive for fixpath to work. 41148 new_path="$CYGWIN_ROOT_PATH$input_path" 41149 fi 41150 fi 41151 41152 41153 if test "x$path" != "x$new_path"; then 41154 JT_HOME="$new_path" 41155 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41156 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41157 fi 41158 41159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41160 41161 path="$JT_HOME" 41162 has_colon=`$ECHO $path | $GREP ^.:` 41163 new_path="$path" 41164 if test "x$has_colon" = x; then 41165 # Not in mixed or Windows style, start by that. 41166 new_path=`cmd //c echo $path` 41167 fi 41168 41169 41170 input_path="$new_path" 41171 # Check if we need to convert this using DOS-style short mode. If the path 41172 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41173 # take no chances and rewrite it. 41174 # Note: m4 eats our [], so we need to use [ and ] instead. 41175 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41176 if test "x$has_forbidden_chars" != x; then 41177 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41178 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41179 fi 41180 41181 41182 windows_path="$new_path" 41183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41184 unix_path=`$CYGPATH -u "$windows_path"` 41185 new_path="$unix_path" 41186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41187 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41188 new_path="$unix_path" 41189 fi 41190 41191 if test "x$path" != "x$new_path"; then 41192 JT_HOME="$new_path" 41193 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41194 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41195 fi 41196 41197 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41198 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41199 41200 else 41201 # We're on a unix platform. Hooray! :) 41202 path="$JT_HOME" 41203 has_space=`$ECHO "$path" | $GREP " "` 41204 if test "x$has_space" != x; then 41205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41206 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41207 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 41208 fi 41209 41210 # Use eval to expand a potential ~ 41211 eval path="$path" 41212 if test ! -f "$path" && test ! -d "$path"; then 41213 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 41214 fi 41215 41216 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 41217 fi 41218 fi 41219 41220 41221 # jtreg win32 script works for everybody 41222 JTREGEXE="$JT_HOME/bin/jtreg" 41223 41224 if test ! -f "$JTREGEXE"; then 41225 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 41226 fi 41227 41228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41229 $as_echo "$JTREGEXE" >&6; } 41230 else 41231 # try to find jtreg on path 41232 41233 41234 41235 # Publish this variable in the help. 41236 41237 41238 if test "x$JTREGEXE" = x; then 41239 # The variable is not set by user, try to locate tool using the code snippet 41240 for ac_prog in jtreg 41241 do 41242 # Extract the first word of "$ac_prog", so it can be a program name with args. 41243 set dummy $ac_prog; ac_word=$2 41244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41245 $as_echo_n "checking for $ac_word... " >&6; } 41246 if ${ac_cv_path_JTREGEXE+:} false; then : 41247 $as_echo_n "(cached) " >&6 41248 else 41249 case $JTREGEXE in 41250 [\\/]* | ?:[\\/]*) 41251 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41252 ;; 41253 *) 41254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41255 for as_dir in $PATH 41256 do 41257 IFS=$as_save_IFS 41258 test -z "$as_dir" && as_dir=. 41259 for ac_exec_ext in '' $ac_executable_extensions; do 41260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41261 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41263 break 2 41264 fi 41265 done 41266 done 41267 IFS=$as_save_IFS 41268 41269 ;; 41270 esac 41271 fi 41272 JTREGEXE=$ac_cv_path_JTREGEXE 41273 if test -n "$JTREGEXE"; then 41274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41275 $as_echo "$JTREGEXE" >&6; } 41276 else 41277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41278 $as_echo "no" >&6; } 41279 fi 41280 41281 41282 test -n "$JTREGEXE" && break 41283 done 41284 41285 else 41286 # The variable is set, but is it from the command line or the environment? 41287 41288 # Try to remove the string !JTREGEXE! from our list. 41289 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 41290 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41291 # If it failed, the variable was not from the command line. Ignore it, 41292 # but warn the user (except for BASH, which is always set by the calling BASH). 41293 if test "xJTREGEXE" != xBASH; then 41294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 41295 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 41296 fi 41297 # Try to locate tool using the code snippet 41298 for ac_prog in jtreg 41299 do 41300 # Extract the first word of "$ac_prog", so it can be a program name with args. 41301 set dummy $ac_prog; ac_word=$2 41302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41303 $as_echo_n "checking for $ac_word... " >&6; } 41304 if ${ac_cv_path_JTREGEXE+:} false; then : 41305 $as_echo_n "(cached) " >&6 41306 else 41307 case $JTREGEXE in 41308 [\\/]* | ?:[\\/]*) 41309 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41310 ;; 41311 *) 41312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41313 for as_dir in $PATH 41314 do 41315 IFS=$as_save_IFS 41316 test -z "$as_dir" && as_dir=. 41317 for ac_exec_ext in '' $ac_executable_extensions; do 41318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41319 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41321 break 2 41322 fi 41323 done 41324 done 41325 IFS=$as_save_IFS 41326 41327 ;; 41328 esac 41329 fi 41330 JTREGEXE=$ac_cv_path_JTREGEXE 41331 if test -n "$JTREGEXE"; then 41332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41333 $as_echo "$JTREGEXE" >&6; } 41334 else 41335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41336 $as_echo "no" >&6; } 41337 fi 41338 41339 41340 test -n "$JTREGEXE" && break 41341 done 41342 41343 else 41344 # If it succeeded, then it was overridden by the user. We will use it 41345 # for the tool. 41346 41347 # First remove it from the list of overridden variables, so we can test 41348 # for unknown variables in the end. 41349 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41350 41351 # Check if the provided tool contains a complete path. 41352 tool_specified="$JTREGEXE" 41353 tool_basename="${tool_specified##*/}" 41354 if test "x$tool_basename" = "x$tool_specified"; then 41355 # A command without a complete path is provided, search $PATH. 41356 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 41357 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 41358 # Extract the first word of "$tool_basename", so it can be a program name with args. 41359 set dummy $tool_basename; ac_word=$2 41360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41361 $as_echo_n "checking for $ac_word... " >&6; } 41362 if ${ac_cv_path_JTREGEXE+:} false; then : 41363 $as_echo_n "(cached) " >&6 41364 else 41365 case $JTREGEXE in 41366 [\\/]* | ?:[\\/]*) 41367 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41368 ;; 41369 *) 41370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41371 for as_dir in $PATH 41372 do 41373 IFS=$as_save_IFS 41374 test -z "$as_dir" && as_dir=. 41375 for ac_exec_ext in '' $ac_executable_extensions; do 41376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41377 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41379 break 2 41380 fi 41381 done 41382 done 41383 IFS=$as_save_IFS 41384 41385 ;; 41386 esac 41387 fi 41388 JTREGEXE=$ac_cv_path_JTREGEXE 41389 if test -n "$JTREGEXE"; then 41390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41391 $as_echo "$JTREGEXE" >&6; } 41392 else 41393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41394 $as_echo "no" >&6; } 41395 fi 41396 41397 41398 if test "x$JTREGEXE" = x; then 41399 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41400 fi 41401 else 41402 # Otherwise we believe it is a complete path. Use it as it is. 41403 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 41404 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 41405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 41406 $as_echo_n "checking for JTREGEXE... " >&6; } 41407 if test ! -x "$tool_specified"; then 41408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41409 $as_echo "not found" >&6; } 41410 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 41411 fi 41412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41413 $as_echo "$tool_specified" >&6; } 41414 fi 41415 fi 41416 fi 41417 41418 41419 41420 if test "x$JTREGEXE" = x; then 41421 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 41422 fi 41423 41424 41425 JT_HOME="`$DIRNAME $JTREGEXE`" 41426 fi 41427 fi 41428 41429 41430 41431 41432 41433 41434 # Option used to tell the compiler whether to create 32- or 64-bit executables 41435 if test "x$TOOLCHAIN_TYPE" = xxlc; then 41436 COMPILER_TARGET_BITS_FLAG="-q" 41437 else 41438 COMPILER_TARGET_BITS_FLAG="-m" 41439 fi 41440 41441 41442 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 41443 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41444 ARFLAGS="-r" 41445 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41446 ARFLAGS="-X64" 41447 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 41448 # lib.exe is used as AR to create static libraries. 41449 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 41450 else 41451 ARFLAGS="" 41452 fi 41453 41454 41455 ## Setup strip. 41456 # FIXME: should this really be per platform, or should it be per toolchain type? 41457 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 41458 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 41459 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41460 STRIPFLAGS="-g" 41461 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 41462 STRIPFLAGS="-x" 41463 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41464 STRIPFLAGS="-S" 41465 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41466 STRIPFLAGS="-X32_64" 41467 fi 41468 41469 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41470 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 41471 fi 41472 41473 41474 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41475 # FIXME: break out into MCSFLAGS 41476 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 41477 fi 41478 41479 41480 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41481 CC_OUT_OPTION=-Fo 41482 EXE_OUT_OPTION=-out: 41483 LD_OUT_OPTION=-out: 41484 AR_OUT_OPTION=-out: 41485 else 41486 # The option used to specify the target .o,.a or .so file. 41487 # When compiling, how to specify the to be created object file. 41488 CC_OUT_OPTION='-o$(SPACE)' 41489 # When linking, how to specify the to be created executable. 41490 EXE_OUT_OPTION='-o$(SPACE)' 41491 # When linking, how to specify the to be created dynamically linkable library. 41492 LD_OUT_OPTION='-o$(SPACE)' 41493 # When archiving, how to specify the to be create static archive for object files. 41494 AR_OUT_OPTION='rcs$(SPACE)' 41495 fi 41496 41497 41498 41499 41500 41501 # On Windows, we need to set RC flags. 41502 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41503 RC_FLAGS="-nologo -l0x409" 41504 if test "x$VARIANT" = xOPT; then 41505 RC_FLAGS="$RC_FLAGS -DNDEBUG" 41506 fi 41507 41508 # The version variables used to create RC_FLAGS may be overridden 41509 # in a custom configure script, or possibly the command line. 41510 # Let those variables be expanded at make time in spec.gmk. 41511 # The \$ are escaped to the shell, and the $(...) variables 41512 # are evaluated by make. 41513 RC_FLAGS="$RC_FLAGS \ 41514 -D\"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 41515 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 41516 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 41517 -D\"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 41518 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 41519 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 41520 -D\"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 41521 fi 41522 41523 41524 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41525 # silence copyright notice and other headers. 41526 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 41527 fi 41528 41529 if test "x$SYSROOT" != "x"; then 41530 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41531 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41532 # Solaris Studio does not have a concept of sysroot. Instead we must 41533 # make sure the default include and lib dirs are appended to each 41534 # compile and link command line. 41535 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 41536 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 41537 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 41538 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 41539 fi 41540 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41541 # Apple only wants -isysroot <path>, but we also need -iframework<path>/System/Library/Frameworks 41542 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\" -iframework\"$SYSROOT/System/Library/Frameworks\"" 41543 SYSROOT_LDFLAGS=$SYSROOT_CFLAGS 41544 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41545 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 41546 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 41547 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41548 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 41549 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 41550 fi 41551 # Propagate the sysroot args to hotspot 41552 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 41553 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 41554 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 41555 fi 41556 41557 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 41558 # set this here so it doesn't have to be peppered throughout the forest 41559 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41560 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41561 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41562 fi 41563 41564 41565 41566 41567 41568 # FIXME: Currently we must test this after toolchain but before flags. Fix! 41569 41570 # Now we can test some aspects on the target using configure macros. 41571 41572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41573 $as_echo_n "checking for ANSI C header files... " >&6; } 41574 if ${ac_cv_header_stdc+:} false; then : 41575 $as_echo_n "(cached) " >&6 41576 else 41577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41578 /* end confdefs.h. */ 41579 #include <stdlib.h> 41580 #include <stdarg.h> 41581 #include <string.h> 41582 #include <float.h> 41583 41584 int 41585 main () 41586 { 41587 41588 ; 41589 return 0; 41590 } 41591 _ACEOF 41592 if ac_fn_cxx_try_compile "$LINENO"; then : 41593 ac_cv_header_stdc=yes 41594 else 41595 ac_cv_header_stdc=no 41596 fi 41597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41598 41599 if test $ac_cv_header_stdc = yes; then 41600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41602 /* end confdefs.h. */ 41603 #include <string.h> 41604 41605 _ACEOF 41606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41607 $EGREP "memchr" >/dev/null 2>&1; then : 41608 41609 else 41610 ac_cv_header_stdc=no 41611 fi 41612 rm -f conftest* 41613 41614 fi 41615 41616 if test $ac_cv_header_stdc = yes; then 41617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41619 /* end confdefs.h. */ 41620 #include <stdlib.h> 41621 41622 _ACEOF 41623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41624 $EGREP "free" >/dev/null 2>&1; then : 41625 41626 else 41627 ac_cv_header_stdc=no 41628 fi 41629 rm -f conftest* 41630 41631 fi 41632 41633 if test $ac_cv_header_stdc = yes; then 41634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41635 if test "$cross_compiling" = yes; then : 41636 : 41637 else 41638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41639 /* end confdefs.h. */ 41640 #include <ctype.h> 41641 #include <stdlib.h> 41642 #if ((' ' & 0x0FF) == 0x020) 41643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41645 #else 41646 # define ISLOWER(c) \ 41647 (('a' <= (c) && (c) <= 'i') \ 41648 || ('j' <= (c) && (c) <= 'r') \ 41649 || ('s' <= (c) && (c) <= 'z')) 41650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41651 #endif 41652 41653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41654 int 41655 main () 41656 { 41657 int i; 41658 for (i = 0; i < 256; i++) 41659 if (XOR (islower (i), ISLOWER (i)) 41660 || toupper (i) != TOUPPER (i)) 41661 return 2; 41662 return 0; 41663 } 41664 _ACEOF 41665 if ac_fn_cxx_try_run "$LINENO"; then : 41666 41667 else 41668 ac_cv_header_stdc=no 41669 fi 41670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41671 conftest.$ac_objext conftest.beam conftest.$ac_ext 41672 fi 41673 41674 fi 41675 fi 41676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 41677 $as_echo "$ac_cv_header_stdc" >&6; } 41678 if test $ac_cv_header_stdc = yes; then 41679 41680 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 41681 41682 fi 41683 41684 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 41685 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41686 inttypes.h stdint.h unistd.h 41687 do : 41688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41689 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 41690 " 41691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41692 cat >>confdefs.h <<_ACEOF 41693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41694 _ACEOF 41695 41696 fi 41697 41698 done 41699 41700 41701 41702 ############################################################################### 41703 # 41704 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 41705 # (The JVM can use 32 or 64 bit Java pointers but that decision 41706 # is made at runtime.) 41707 # 41708 41709 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 41710 # Always specify -m flag on Solaris 41711 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 41712 41713 # When we add flags to the "official" CFLAGS etc, we need to 41714 # keep track of these additions in ADDED_CFLAGS etc. These 41715 # will later be checked to make sure only controlled additions 41716 # have been made to CFLAGS etc. 41717 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41718 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41719 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41720 41721 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41722 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41723 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41724 41725 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41726 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41727 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41728 41729 elif test "x$COMPILE_TYPE" = xreduced; then 41730 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 41731 # Specify -m if running reduced on unix platforms 41732 41733 # When we add flags to the "official" CFLAGS etc, we need to 41734 # keep track of these additions in ADDED_CFLAGS etc. These 41735 # will later be checked to make sure only controlled additions 41736 # have been made to CFLAGS etc. 41737 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41738 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41739 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41740 41741 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41742 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41743 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41744 41745 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41746 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41747 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41748 41749 fi 41750 fi 41751 41752 # Make compilation sanity check 41753 for ac_header in stdio.h 41754 do : 41755 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 41756 if test "x$ac_cv_header_stdio_h" = xyes; then : 41757 cat >>confdefs.h <<_ACEOF 41758 #define HAVE_STDIO_H 1 41759 _ACEOF 41760 41761 else 41762 41763 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 41764 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 41765 if test "x$COMPILE_TYPE" = xreduced; then 41766 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 41767 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 41768 elif test "x$COMPILE_TYPE" = xcross; then 41769 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 41770 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 41771 fi 41772 as_fn_error $? "Cannot continue." "$LINENO" 5 41773 41774 fi 41775 41776 done 41777 41778 41779 # The cast to long int works around a bug in the HP C Compiler 41780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41782 # This bug is HP SR number 8606223364. 41783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41784 $as_echo_n "checking size of int *... " >&6; } 41785 if ${ac_cv_sizeof_int_p+:} false; then : 41786 $as_echo_n "(cached) " >&6 41787 else 41788 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41789 41790 else 41791 if test "$ac_cv_type_int_p" = yes; then 41792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41794 as_fn_error 77 "cannot compute sizeof (int *) 41795 See \`config.log' for more details" "$LINENO" 5; } 41796 else 41797 ac_cv_sizeof_int_p=0 41798 fi 41799 fi 41800 41801 fi 41802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41803 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41804 41805 41806 41807 cat >>confdefs.h <<_ACEOF 41808 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41809 _ACEOF 41810 41811 41812 41813 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 41814 if test "x$ac_cv_sizeof_int_p" = x; then 41815 # The test failed, lets stick to the assumed value. 41816 { $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 41817 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 41818 else 41819 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41820 41821 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41822 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41823 # Let's try to implicitely set the compilers target architecture and retry the test 41824 { $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 41825 $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;} 41826 { $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 41827 $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;} 41828 41829 # When we add flags to the "official" CFLAGS etc, we need to 41830 # keep track of these additions in ADDED_CFLAGS etc. These 41831 # will later be checked to make sure only controlled additions 41832 # have been made to CFLAGS etc. 41833 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41834 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41835 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41836 41837 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41838 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41839 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41840 41841 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41842 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41843 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41844 41845 41846 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41847 unset ac_cv_sizeof_int_p 41848 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41849 cat >>confdefs.h <<_ACEOF 41850 #undef SIZEOF_INT_P 41851 _ACEOF 41852 41853 # The cast to long int works around a bug in the HP C Compiler 41854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41856 # This bug is HP SR number 8606223364. 41857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41858 $as_echo_n "checking size of int *... " >&6; } 41859 if ${ac_cv_sizeof_int_p+:} false; then : 41860 $as_echo_n "(cached) " >&6 41861 else 41862 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41863 41864 else 41865 if test "$ac_cv_type_int_p" = yes; then 41866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41868 as_fn_error 77 "cannot compute sizeof (int *) 41869 See \`config.log' for more details" "$LINENO" 5; } 41870 else 41871 ac_cv_sizeof_int_p=0 41872 fi 41873 fi 41874 41875 fi 41876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41877 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41878 41879 41880 41881 cat >>confdefs.h <<_ACEOF 41882 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41883 _ACEOF 41884 41885 41886 41887 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41888 41889 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41890 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 41891 fi 41892 fi 41893 fi 41894 41895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 41896 $as_echo_n "checking for target address size... " >&6; } 41897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 41898 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 41899 41900 41901 ############################################################################### 41902 # 41903 # Is the target little of big endian? 41904 # 41905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 41906 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 41907 if ${ac_cv_c_bigendian+:} false; then : 41908 $as_echo_n "(cached) " >&6 41909 else 41910 ac_cv_c_bigendian=unknown 41911 # See if we're dealing with a universal compiler. 41912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41913 /* end confdefs.h. */ 41914 #ifndef __APPLE_CC__ 41915 not a universal capable compiler 41916 #endif 41917 typedef int dummy; 41918 41919 _ACEOF 41920 if ac_fn_cxx_try_compile "$LINENO"; then : 41921 41922 # Check for potential -arch flags. It is not universal unless 41923 # there are at least two -arch flags with different values. 41924 ac_arch= 41925 ac_prev= 41926 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 41927 if test -n "$ac_prev"; then 41928 case $ac_word in 41929 i?86 | x86_64 | ppc | ppc64) 41930 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 41931 ac_arch=$ac_word 41932 else 41933 ac_cv_c_bigendian=universal 41934 break 41935 fi 41936 ;; 41937 esac 41938 ac_prev= 41939 elif test "x$ac_word" = "x-arch"; then 41940 ac_prev=arch 41941 fi 41942 done 41943 fi 41944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41945 if test $ac_cv_c_bigendian = unknown; then 41946 # See if sys/param.h defines the BYTE_ORDER macro. 41947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41948 /* end confdefs.h. */ 41949 #include <sys/types.h> 41950 #include <sys/param.h> 41951 41952 int 41953 main () 41954 { 41955 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 41956 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 41957 && LITTLE_ENDIAN) 41958 bogus endian macros 41959 #endif 41960 41961 ; 41962 return 0; 41963 } 41964 _ACEOF 41965 if ac_fn_cxx_try_compile "$LINENO"; then : 41966 # It does; now see whether it defined to BIG_ENDIAN or not. 41967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41968 /* end confdefs.h. */ 41969 #include <sys/types.h> 41970 #include <sys/param.h> 41971 41972 int 41973 main () 41974 { 41975 #if BYTE_ORDER != BIG_ENDIAN 41976 not big endian 41977 #endif 41978 41979 ; 41980 return 0; 41981 } 41982 _ACEOF 41983 if ac_fn_cxx_try_compile "$LINENO"; then : 41984 ac_cv_c_bigendian=yes 41985 else 41986 ac_cv_c_bigendian=no 41987 fi 41988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41989 fi 41990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41991 fi 41992 if test $ac_cv_c_bigendian = unknown; then 41993 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 41994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41995 /* end confdefs.h. */ 41996 #include <limits.h> 41997 41998 int 41999 main () 42000 { 42001 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 42002 bogus endian macros 42003 #endif 42004 42005 ; 42006 return 0; 42007 } 42008 _ACEOF 42009 if ac_fn_cxx_try_compile "$LINENO"; then : 42010 # It does; now see whether it defined to _BIG_ENDIAN or not. 42011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42012 /* end confdefs.h. */ 42013 #include <limits.h> 42014 42015 int 42016 main () 42017 { 42018 #ifndef _BIG_ENDIAN 42019 not big endian 42020 #endif 42021 42022 ; 42023 return 0; 42024 } 42025 _ACEOF 42026 if ac_fn_cxx_try_compile "$LINENO"; then : 42027 ac_cv_c_bigendian=yes 42028 else 42029 ac_cv_c_bigendian=no 42030 fi 42031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42032 fi 42033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42034 fi 42035 if test $ac_cv_c_bigendian = unknown; then 42036 # Compile a test program. 42037 if test "$cross_compiling" = yes; then : 42038 # Try to guess by grepping values from an object file. 42039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42040 /* end confdefs.h. */ 42041 short int ascii_mm[] = 42042 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 42043 short int ascii_ii[] = 42044 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 42045 int use_ascii (int i) { 42046 return ascii_mm[i] + ascii_ii[i]; 42047 } 42048 short int ebcdic_ii[] = 42049 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 42050 short int ebcdic_mm[] = 42051 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 42052 int use_ebcdic (int i) { 42053 return ebcdic_mm[i] + ebcdic_ii[i]; 42054 } 42055 extern int foo; 42056 42057 int 42058 main () 42059 { 42060 return use_ascii (foo) == use_ebcdic (foo); 42061 ; 42062 return 0; 42063 } 42064 _ACEOF 42065 if ac_fn_cxx_try_compile "$LINENO"; then : 42066 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 42067 ac_cv_c_bigendian=yes 42068 fi 42069 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 42070 if test "$ac_cv_c_bigendian" = unknown; then 42071 ac_cv_c_bigendian=no 42072 else 42073 # finding both strings is unlikely to happen, but who knows? 42074 ac_cv_c_bigendian=unknown 42075 fi 42076 fi 42077 fi 42078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42079 else 42080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42081 /* end confdefs.h. */ 42082 $ac_includes_default 42083 int 42084 main () 42085 { 42086 42087 /* Are we little or big endian? From Harbison&Steele. */ 42088 union 42089 { 42090 long int l; 42091 char c[sizeof (long int)]; 42092 } u; 42093 u.l = 1; 42094 return u.c[sizeof (long int) - 1] == 1; 42095 42096 ; 42097 return 0; 42098 } 42099 _ACEOF 42100 if ac_fn_cxx_try_run "$LINENO"; then : 42101 ac_cv_c_bigendian=no 42102 else 42103 ac_cv_c_bigendian=yes 42104 fi 42105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42106 conftest.$ac_objext conftest.beam conftest.$ac_ext 42107 fi 42108 42109 fi 42110 fi 42111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 42112 $as_echo "$ac_cv_c_bigendian" >&6; } 42113 case $ac_cv_c_bigendian in #( 42114 yes) 42115 ENDIAN="big";; #( 42116 no) 42117 ENDIAN="little" ;; #( 42118 universal) 42119 ENDIAN="universal_endianness" 42120 ;; #( 42121 *) 42122 ENDIAN="unknown" ;; 42123 esac 42124 42125 42126 if test "x$ENDIAN" = xuniversal_endianness; then 42127 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 42128 fi 42129 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 42130 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 42131 fi 42132 42133 42134 # Configure flags for the tools 42135 42136 ############################################################################### 42137 # 42138 # How to compile shared libraries. 42139 # 42140 42141 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42142 PICFLAG="-fPIC" 42143 C_FLAG_REORDER='' 42144 CXX_FLAG_REORDER='' 42145 42146 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42147 # Linking is different on MacOSX 42148 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42149 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42150 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42151 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42152 SET_SHARED_LIBRARY_MAPFILE='' 42153 else 42154 # Default works for linux, might work on other platforms as well. 42155 SHARED_LIBRARY_FLAGS='-shared' 42156 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42157 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42158 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42159 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42160 fi 42161 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42162 PICFLAG='' 42163 C_FLAG_REORDER='' 42164 CXX_FLAG_REORDER='' 42165 42166 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42167 # Linking is different on MacOSX 42168 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42169 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42170 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42171 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42172 SET_SHARED_LIBRARY_MAPFILE='' 42173 else 42174 # Default works for linux, might work on other platforms as well. 42175 SHARED_LIBRARY_FLAGS='-shared' 42176 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42177 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42178 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42179 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42180 fi 42181 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42182 PICFLAG="-KPIC" 42183 C_FLAG_REORDER='-xF' 42184 CXX_FLAG_REORDER='-xF' 42185 SHARED_LIBRARY_FLAGS="-G" 42186 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 42187 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42188 SET_SHARED_LIBRARY_NAME='' 42189 SET_SHARED_LIBRARY_MAPFILE='-M$1' 42190 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42191 PICFLAG="-qpic=large" 42192 C_FLAG_REORDER='' 42193 CXX_FLAG_REORDER='' 42194 SHARED_LIBRARY_FLAGS="-qmkshrobj" 42195 SET_EXECUTABLE_ORIGIN="" 42196 SET_SHARED_LIBRARY_ORIGIN='' 42197 SET_SHARED_LIBRARY_NAME='' 42198 SET_SHARED_LIBRARY_MAPFILE='' 42199 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42200 PICFLAG="" 42201 C_FLAG_REORDER='' 42202 CXX_FLAG_REORDER='' 42203 SHARED_LIBRARY_FLAGS="-LD" 42204 SET_EXECUTABLE_ORIGIN='' 42205 SET_SHARED_LIBRARY_ORIGIN='' 42206 SET_SHARED_LIBRARY_NAME='' 42207 SET_SHARED_LIBRARY_MAPFILE='' 42208 fi 42209 42210 42211 42212 42213 42214 42215 42216 42217 42218 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42219 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 42220 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 42221 CFLAGS_JDKLIB_EXTRA='-xstrconst' 42222 fi 42223 # The (cross) compiler is now configured, we can now test capabilities 42224 # of the target platform. 42225 42226 42227 42228 ############################################################################### 42229 # 42230 # Setup the opt flags for different compilers 42231 # and different operating systems. 42232 # 42233 42234 # FIXME: this was indirectly the old default, but just inherited. 42235 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42236 # C_FLAG_DEPS="-MMD -MF" 42237 # fi 42238 42239 # Generate make dependency files 42240 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42241 C_FLAG_DEPS="-MMD -MF" 42242 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42243 C_FLAG_DEPS="-MMD -MF" 42244 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42245 C_FLAG_DEPS="-xMMD -xMF" 42246 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42247 C_FLAG_DEPS="-qmakedep=gcc -MF" 42248 fi 42249 CXX_FLAG_DEPS="$C_FLAG_DEPS" 42250 42251 42252 42253 # Debug symbols 42254 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42255 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 42256 # reduce from default "-g2" option to save space 42257 CFLAGS_DEBUG_SYMBOLS="-g1" 42258 CXXFLAGS_DEBUG_SYMBOLS="-g1" 42259 else 42260 CFLAGS_DEBUG_SYMBOLS="-g" 42261 CXXFLAGS_DEBUG_SYMBOLS="-g" 42262 fi 42263 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42264 CFLAGS_DEBUG_SYMBOLS="-g" 42265 CXXFLAGS_DEBUG_SYMBOLS="-g" 42266 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42267 CFLAGS_DEBUG_SYMBOLS="-g -xs" 42268 # FIXME: likely a bug, this disables debug symbols rather than enables them 42269 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 42270 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42271 CFLAGS_DEBUG_SYMBOLS="-g" 42272 CXXFLAGS_DEBUG_SYMBOLS="-g" 42273 fi 42274 42275 42276 42277 # bounds, memory and behavior checking options 42278 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42279 case $DEBUG_LEVEL in 42280 release ) 42281 # no adjustment 42282 ;; 42283 fastdebug ) 42284 # no adjustment 42285 ;; 42286 slowdebug ) 42287 # Add runtime stack smashing and undefined behavior checks 42288 CFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42289 CXXFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42290 ;; 42291 esac 42292 fi 42293 42294 42295 42296 # Optimization levels 42297 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42298 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 42299 42300 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 42301 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 42302 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 42303 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 42304 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 42305 C_O_FLAG_DEBUG="-xregs=no%frameptr" 42306 C_O_FLAG_NONE="-xregs=no%frameptr" 42307 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 42308 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 42309 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 42310 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 42311 CXX_O_FLAG_NONE="-xregs=no%frameptr" 42312 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42313 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 42314 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 42315 fi 42316 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42317 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 42318 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42319 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42320 C_O_FLAG_DEBUG="" 42321 C_O_FLAG_NONE="" 42322 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 42323 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42324 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42325 C_O_FLAG_DEBUG="" 42326 CXX_O_FLAG_NONE="" 42327 fi 42328 else 42329 # The remaining toolchains share opt flags between CC and CXX; 42330 # setup for C and duplicate afterwards. 42331 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42332 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42333 # On MacOSX we optimize for size, something 42334 # we should do for all platforms? 42335 C_O_FLAG_HIGHEST="-Os" 42336 C_O_FLAG_HI="-Os" 42337 C_O_FLAG_NORM="-Os" 42338 else 42339 C_O_FLAG_HIGHEST="-O3" 42340 C_O_FLAG_HI="-O3" 42341 C_O_FLAG_NORM="-O2" 42342 fi 42343 C_O_FLAG_DEBUG="-O0" 42344 C_O_FLAG_NONE="-O0" 42345 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42346 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42347 # On MacOSX we optimize for size, something 42348 # we should do for all platforms? 42349 C_O_FLAG_HIGHEST="-Os" 42350 C_O_FLAG_HI="-Os" 42351 C_O_FLAG_NORM="-Os" 42352 else 42353 C_O_FLAG_HIGHEST="-O3" 42354 C_O_FLAG_HI="-O3" 42355 C_O_FLAG_NORM="-O2" 42356 fi 42357 C_O_FLAG_DEBUG="-O0" 42358 C_O_FLAG_NONE="-O0" 42359 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42360 C_O_FLAG_HIGHEST="-O3" 42361 C_O_FLAG_HI="-O3 -qstrict" 42362 C_O_FLAG_NORM="-O2" 42363 C_O_FLAG_DEBUG="-qnoopt" 42364 C_O_FLAG_NONE="-qnoop" 42365 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42366 C_O_FLAG_HIGHEST="-O2" 42367 C_O_FLAG_HI="-O1" 42368 C_O_FLAG_NORM="-O1" 42369 C_O_FLAG_DEBUG="-Od" 42370 C_O_FLAG_NONE="-Od" 42371 fi 42372 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 42373 CXX_O_FLAG_HI="$C_O_FLAG_HI" 42374 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 42375 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 42376 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 42377 fi 42378 42379 # Adjust optimization flags according to debug level. 42380 case $DEBUG_LEVEL in 42381 release ) 42382 # no adjustment 42383 ;; 42384 fastdebug ) 42385 # Not quite so much optimization 42386 C_O_FLAG_HI="$C_O_FLAG_NORM" 42387 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42388 ;; 42389 slowdebug ) 42390 # Disable optimization 42391 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 42392 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 42393 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 42394 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 42395 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 42396 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 42397 ;; 42398 esac 42399 42400 42401 42402 42403 42404 42405 42406 42407 42408 42409 42410 42411 42412 # Special extras... 42413 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42414 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42415 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42416 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42417 fi 42418 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 42419 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 42420 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42421 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 42422 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 42423 fi 42424 42425 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 42426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 42427 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 42428 fi 42429 42430 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 42431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 42432 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 42433 fi 42434 42435 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 42436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 42437 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 42438 fi 42439 42440 42441 # Check whether --with-extra-cflags was given. 42442 if test "${with_extra_cflags+set}" = set; then : 42443 withval=$with_extra_cflags; 42444 fi 42445 42446 42447 42448 # Check whether --with-extra-cxxflags was given. 42449 if test "${with_extra_cxxflags+set}" = set; then : 42450 withval=$with_extra_cxxflags; 42451 fi 42452 42453 42454 42455 # Check whether --with-extra-ldflags was given. 42456 if test "${with_extra_ldflags+set}" = set; then : 42457 withval=$with_extra_ldflags; 42458 fi 42459 42460 42461 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 42462 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 42463 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 42464 42465 # Hotspot needs these set in their legacy form 42466 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 42467 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 42468 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 42469 42470 42471 42472 42473 42474 ############################################################################### 42475 # 42476 # Now setup the CFLAGS and LDFLAGS for the JDK build. 42477 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 42478 # 42479 42480 # Setup compiler/platform specific flags into 42481 # CFLAGS_JDK - C Compiler flags 42482 # CXXFLAGS_JDK - C++ Compiler flags 42483 # COMMON_CCXXFLAGS_JDK - common to C and C++ 42484 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42485 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 42486 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 42487 case $OPENJDK_TARGET_CPU_ARCH in 42488 arm ) 42489 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42490 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42491 ;; 42492 ppc ) 42493 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42494 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42495 ;; 42496 * ) 42497 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 42498 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42499 ;; 42500 esac 42501 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42502 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 42503 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 42504 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 42505 fi 42506 42507 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42508 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42509 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42510 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42511 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42512 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42513 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 42514 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42515 -DWIN32_LEAN_AND_MEAN \ 42516 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42517 -DWIN32 -DIAL" 42518 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42519 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42520 else 42521 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 42522 fi 42523 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 42524 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 42525 # studio. 42526 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 42527 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42528 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 42529 fi 42530 fi 42531 42532 ############################################################################### 42533 42534 # Adjust flags according to debug level. 42535 case $DEBUG_LEVEL in 42536 fastdebug | slowdebug ) 42537 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 42538 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 42539 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42540 ;; 42541 release ) 42542 ;; 42543 * ) 42544 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42545 ;; 42546 esac 42547 42548 # Setup LP64 42549 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 42550 42551 # Set some common defines. These works for all compilers, but assume 42552 # -D is universally accepted. 42553 42554 # Setup endianness 42555 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42556 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42557 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42558 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42559 # Note: -Dmacro is the same as #define macro 1 42560 # -Dmacro= is the same as #define macro 42561 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42562 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42563 else 42564 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42565 fi 42566 else 42567 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42568 # are defined in the system? 42569 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42570 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42571 else 42572 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 42573 fi 42574 fi 42575 42576 # Setup target OS define. Use OS target name but in upper case. 42577 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42578 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42579 42580 # Setup target CPU 42581 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42582 42583 # Setup debug/release defines 42584 if test "x$DEBUG_LEVEL" = xrelease; then 42585 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 42586 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42587 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 42588 fi 42589 else 42590 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 42591 fi 42592 42593 # Setup release name 42594 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42595 42596 42597 # Set some additional per-OS defines. 42598 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42599 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42600 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42601 # FIXME: PPC64 should not be here. 42602 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64" 42603 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42604 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42605 fi 42606 42607 # Additional macosx handling 42608 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42609 # Setting these parameters makes it an error to link to macosx APIs that are 42610 # newer than the given OS version and makes the linked binaries compatible 42611 # even if built on a newer version of the OS. 42612 # The expected format is X.Y.Z 42613 MACOSX_VERSION_MIN=10.7.0 42614 42615 42616 # The macro takes the version with no dots, ex: 1070 42617 # Let the flags variables get resolved in make for easier override on make 42618 # command line. 42619 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42620 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42621 fi 42622 42623 # Setup some hard coded includes 42624 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42625 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 42626 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 42627 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include" 42628 42629 # The shared libraries are compiled using the picflag. 42630 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42631 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 42632 42633 # Executable flags 42634 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42635 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42636 42637 42638 42639 42640 42641 42642 # Flags for compiling test libraries 42643 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42644 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 42645 42646 # Flags for compiling test executables 42647 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42648 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42649 42650 42651 42652 42653 42654 42655 # Setup LDFLAGS et al. 42656 # 42657 42658 # Now this is odd. The JDK native libraries have to link against libjvm.so 42659 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42660 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42661 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42662 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42663 # libraries will link to whatever is in memory. Yuck. 42664 # 42665 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42666 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42667 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42668 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42669 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42670 fi 42671 # TODO: make -debug optional "--disable-full-debug-symbols" 42672 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42673 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 42674 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42675 # We have previously set HAS_GNU_HASH if this is the case 42676 if test -n "$HAS_GNU_HASH"; then 42677 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both" 42678 fi 42679 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42680 # And since we now know that the linker is gnu, then add -z defs, to forbid 42681 # undefined symbols in object files. 42682 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 42683 case $DEBUG_LEVEL in 42684 release ) 42685 # tell linker to optimize libraries. 42686 # Should this be supplied to the OSS linker as well? 42687 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42688 ;; 42689 slowdebug ) 42690 if test "x$HAS_LINKER_NOW" = "xtrue"; then 42691 # do relocations at load 42692 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 42693 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 42694 fi 42695 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42696 # mark relocations read only 42697 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42698 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42699 fi 42700 ;; 42701 fastdebug ) 42702 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42703 # mark relocations read only 42704 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42705 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42706 fi 42707 ;; 42708 * ) 42709 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42710 ;; 42711 esac 42712 fi 42713 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42714 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42715 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42716 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42717 LDFLAGS_JDK="${LDFLAGS_JDK} -brtl -bnolibpath -liconv -bexpall -bernotok" 42718 fi 42719 42720 # Customize LDFLAGS for executables 42721 42722 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42723 42724 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42725 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42726 LDFLAGS_STACK_SIZE=1048576 42727 else 42728 LDFLAGS_STACK_SIZE=327680 42729 fi 42730 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 42731 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 42732 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42733 fi 42734 42735 # Customize LDFLAGS for libs 42736 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 42737 42738 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42739 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -dll -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 42740 LDFLAGS_JDKLIB_SUFFIX="" 42741 else 42742 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS} \ 42743 -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}" 42744 42745 # On some platforms (mac) the linker warns about non existing -L dirs. 42746 # Add server first if available. Linking aginst client does not always produce the same results. 42747 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42748 # Default to server for other variants. 42749 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42750 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42751 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42752 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/client" 42753 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42754 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42755 else 42756 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42757 fi 42758 42759 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42760 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42761 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42762 fi 42763 fi 42764 42765 42766 42767 42768 42769 42770 42771 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 42772 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE" 42773 LDFLAGS_TESTLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX" 42774 LDFLAGS_TESTEXE_SUFFIX="$LDFLAGS_JDKEXE_SUFFIX" 42775 42776 42777 42778 42779 42780 42781 42782 # Some Zero and Shark settings. 42783 # ZERO_ARCHFLAG tells the compiler which mode to build for 42784 case "${OPENJDK_TARGET_CPU}" in 42785 s390) 42786 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42787 ;; 42788 *) 42789 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42790 esac 42791 42792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 42793 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42794 supports=yes 42795 42796 saved_cflags="$CFLAGS" 42797 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42798 ac_ext=c 42799 ac_cpp='$CPP $CPPFLAGS' 42800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42802 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42803 42804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42805 /* end confdefs.h. */ 42806 int i; 42807 _ACEOF 42808 if ac_fn_c_try_compile "$LINENO"; then : 42809 42810 else 42811 supports=no 42812 fi 42813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42814 ac_ext=cpp 42815 ac_cpp='$CXXCPP $CPPFLAGS' 42816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42819 42820 CFLAGS="$saved_cflags" 42821 42822 saved_cxxflags="$CXXFLAGS" 42823 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42824 ac_ext=cpp 42825 ac_cpp='$CXXCPP $CPPFLAGS' 42826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42829 42830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42831 /* end confdefs.h. */ 42832 int i; 42833 _ACEOF 42834 if ac_fn_cxx_try_compile "$LINENO"; then : 42835 42836 else 42837 supports=no 42838 fi 42839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42840 ac_ext=cpp 42841 ac_cpp='$CXXCPP $CPPFLAGS' 42842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42845 42846 CXXFLAGS="$saved_cxxflags" 42847 42848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42849 $as_echo "$supports" >&6; } 42850 if test "x$supports" = "xyes" ; then 42851 : 42852 else 42853 ZERO_ARCHFLAG="" 42854 fi 42855 42856 42857 42858 # Check that the compiler supports -mX (or -qX on AIX) flags 42859 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42860 42861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42862 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42863 supports=yes 42864 42865 saved_cflags="$CFLAGS" 42866 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42867 ac_ext=c 42868 ac_cpp='$CPP $CPPFLAGS' 42869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42871 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42872 42873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42874 /* end confdefs.h. */ 42875 int i; 42876 _ACEOF 42877 if ac_fn_c_try_compile "$LINENO"; then : 42878 42879 else 42880 supports=no 42881 fi 42882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42883 ac_ext=cpp 42884 ac_cpp='$CXXCPP $CPPFLAGS' 42885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42888 42889 CFLAGS="$saved_cflags" 42890 42891 saved_cxxflags="$CXXFLAGS" 42892 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42893 ac_ext=cpp 42894 ac_cpp='$CXXCPP $CPPFLAGS' 42895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42898 42899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42900 /* end confdefs.h. */ 42901 int i; 42902 _ACEOF 42903 if ac_fn_cxx_try_compile "$LINENO"; then : 42904 42905 else 42906 supports=no 42907 fi 42908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42909 ac_ext=cpp 42910 ac_cpp='$CXXCPP $CPPFLAGS' 42911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42914 42915 CXXFLAGS="$saved_cxxflags" 42916 42917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42918 $as_echo "$supports" >&6; } 42919 if test "x$supports" = "xyes" ; then 42920 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 42921 else 42922 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 42923 fi 42924 42925 42926 42927 case "${TOOLCHAIN_TYPE}" in 42928 microsoft) 42929 DISABLE_WARNING_PREFIX="-wd" 42930 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 42931 ;; 42932 solstudio) 42933 DISABLE_WARNING_PREFIX="-erroff=" 42934 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 42935 ;; 42936 gcc) 42937 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 42938 42939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 42940 $as_echo_n "checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 42941 supports=yes 42942 42943 saved_cflags="$CFLAGS" 42944 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 42945 ac_ext=c 42946 ac_cpp='$CPP $CPPFLAGS' 42947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42949 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42950 42951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42952 /* end confdefs.h. */ 42953 int i; 42954 _ACEOF 42955 if ac_fn_c_try_compile "$LINENO"; then : 42956 42957 else 42958 supports=no 42959 fi 42960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42961 ac_ext=cpp 42962 ac_cpp='$CXXCPP $CPPFLAGS' 42963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42966 42967 CFLAGS="$saved_cflags" 42968 42969 saved_cxxflags="$CXXFLAGS" 42970 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 42971 ac_ext=cpp 42972 ac_cpp='$CXXCPP $CPPFLAGS' 42973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42976 42977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42978 /* end confdefs.h. */ 42979 int i; 42980 _ACEOF 42981 if ac_fn_cxx_try_compile "$LINENO"; then : 42982 42983 else 42984 supports=no 42985 fi 42986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42987 ac_ext=cpp 42988 ac_cpp='$CXXCPP $CPPFLAGS' 42989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42992 42993 CXXFLAGS="$saved_cxxflags" 42994 42995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42996 $as_echo "$supports" >&6; } 42997 if test "x$supports" = "xyes" ; then 42998 GCC_CAN_DISABLE_WARNINGS=true 42999 else 43000 GCC_CAN_DISABLE_WARNINGS=false 43001 43002 fi 43003 43004 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 43005 DISABLE_WARNING_PREFIX="-Wno-" 43006 else 43007 DISABLE_WARNING_PREFIX= 43008 fi 43009 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43010 ;; 43011 clang) 43012 DISABLE_WARNING_PREFIX="-Wno-" 43013 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43014 ;; 43015 esac 43016 43017 43018 43019 43020 # Setup debug symbols (need objcopy from the toolchain for that) 43021 43022 # 43023 # ENABLE_DEBUG_SYMBOLS 43024 # This must be done after the toolchain is setup, since we're looking at objcopy. 43025 # 43026 # Check whether --enable-debug-symbols was given. 43027 if test "${enable_debug_symbols+set}" = set; then : 43028 enableval=$enable_debug_symbols; 43029 fi 43030 43031 43032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 43033 $as_echo_n "checking if we should generate debug symbols... " >&6; } 43034 43035 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 43036 # explicit enabling of enable-debug-symbols and can't find objcopy 43037 # this is an error 43038 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 43039 fi 43040 43041 if test "x$enable_debug_symbols" = "xyes"; then 43042 ENABLE_DEBUG_SYMBOLS=true 43043 elif test "x$enable_debug_symbols" = "xno"; then 43044 ENABLE_DEBUG_SYMBOLS=false 43045 else 43046 # Default is on if objcopy is found 43047 if test "x$OBJCOPY" != x; then 43048 ENABLE_DEBUG_SYMBOLS=true 43049 # MacOS X and Windows don't use objcopy but default is on for those OSes 43050 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 43051 ENABLE_DEBUG_SYMBOLS=true 43052 else 43053 ENABLE_DEBUG_SYMBOLS=false 43054 fi 43055 fi 43056 43057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 43058 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 43059 43060 # 43061 # ZIP_DEBUGINFO_FILES 43062 # 43063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 43064 $as_echo_n "checking if we should zip debug-info files... " >&6; } 43065 # Check whether --enable-zip-debug-info was given. 43066 if test "${enable_zip_debug_info+set}" = set; then : 43067 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 43068 else 43069 enable_zip_debug_info="yes" 43070 fi 43071 43072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 43073 $as_echo "${enable_zip_debug_info}" >&6; } 43074 43075 if test "x${enable_zip_debug_info}" = "xno"; then 43076 ZIP_DEBUGINFO_FILES=false 43077 else 43078 ZIP_DEBUGINFO_FILES=true 43079 fi 43080 43081 43082 43083 43084 43085 # Check whether --enable-native-coverage was given. 43086 if test "${enable_native_coverage+set}" = set; then : 43087 enableval=$enable_native_coverage; 43088 fi 43089 43090 GCOV_ENABLED="false" 43091 if test "x$enable_native_coverage" = "xyes"; then 43092 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 43093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 43094 $as_echo_n "checking if native coverage is enabled... " >&6; } 43095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43096 $as_echo "yes" >&6; } 43097 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 43098 GCOV_LDFLAGS="-fprofile-arcs" 43099 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 43100 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 43101 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 43102 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 43103 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 43104 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 43105 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 43106 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 43107 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 43108 GCOV_ENABLED="true" 43109 else 43110 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 43111 fi 43112 elif test "x$enable_native_coverage" = "xno"; then 43113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 43114 $as_echo_n "checking if native coverage is enabled... " >&6; } 43115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43116 $as_echo "no" >&6; } 43117 elif test "x$enable_native_coverage" != "x"; then 43118 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 43119 fi 43120 43121 43122 43123 43124 ############################################################################### 43125 # 43126 # Check dependencies for external and internal libraries. 43127 # 43128 ############################################################################### 43129 43130 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 43131 43132 # When using cygwin or msys, we need a wrapper binary that renames 43133 # /cygdrive/c/ arguments into c:/ arguments and peeks into 43134 # @files and rewrites these too! This wrapper binary is 43135 # called fixpath. 43136 FIXPATH= 43137 if test "x$OPENJDK_BUILD_OS" = xwindows; then 43138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 43139 $as_echo_n "checking if fixpath can be created... " >&6; } 43140 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 43141 FIXPATH_BIN="$CONFIGURE_SUPPORT/bin/fixpath.exe" 43142 FIXPATH_DIR="$CONFIGURE_SUPPORT/fixpath" 43143 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 43144 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 43145 FIXPATH="$FIXPATH_BIN -c" 43146 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 43147 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 43148 # @ was chosen as separator to minimize risk of other tools messing around with it 43149 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 43150 | tr ' ' '\n' | grep '^/./' | sort | uniq` 43151 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 43152 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 43153 fi 43154 FIXPATH_SRC_W="$FIXPATH_SRC" 43155 FIXPATH_BIN_W="$FIXPATH_BIN" 43156 43157 unix_path="$FIXPATH_SRC_W" 43158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43159 windows_path=`$CYGPATH -m "$unix_path"` 43160 FIXPATH_SRC_W="$windows_path" 43161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43162 windows_path=`cmd //c echo $unix_path` 43163 FIXPATH_SRC_W="$windows_path" 43164 fi 43165 43166 43167 unix_path="$FIXPATH_BIN_W" 43168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43169 windows_path=`$CYGPATH -m "$unix_path"` 43170 FIXPATH_BIN_W="$windows_path" 43171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43172 windows_path=`cmd //c echo $unix_path` 43173 FIXPATH_BIN_W="$windows_path" 43174 fi 43175 43176 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 43177 $MKDIR -p $FIXPATH_DIR $CONFIGURE_SUPPORT/bin 43178 cd $FIXPATH_DIR 43179 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 43180 cd $CURDIR 43181 43182 if test ! -x $FIXPATH_BIN; then 43183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43184 $as_echo "no" >&6; } 43185 cat $FIXPATH_DIR/fixpath1.log 43186 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 43187 fi 43188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43189 $as_echo "yes" >&6; } 43190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 43191 $as_echo_n "checking if fixpath.exe works... " >&6; } 43192 cd $FIXPATH_DIR 43193 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 43194 > $FIXPATH_DIR/fixpath2.log 2>&1 43195 cd $CURDIR 43196 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 43197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43198 $as_echo "no" >&6; } 43199 cat $FIXPATH_DIR/fixpath2.log 43200 as_fn_error $? "fixpath did not work!" "$LINENO" 5 43201 fi 43202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43203 $as_echo "yes" >&6; } 43204 fi 43205 43206 43207 43208 43209 43210 43211 ############################################################################### 43212 # 43213 # OS specific settings that we never will need to probe. 43214 # 43215 if test "x$OPENJDK_TARGET_OS" = xlinux; then 43216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 43217 $as_echo_n "checking what is not needed on Linux?... " >&6; } 43218 PULSE_NOT_NEEDED=yes 43219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 43220 $as_echo "pulse" >&6; } 43221 fi 43222 43223 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 43225 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 43226 ALSA_NOT_NEEDED=yes 43227 PULSE_NOT_NEEDED=yes 43228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43229 $as_echo "alsa pulse" >&6; } 43230 fi 43231 43232 if test "x$OPENJDK_TARGET_OS" = xaix; then 43233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 43234 $as_echo_n "checking what is not needed on AIX?... " >&6; } 43235 ALSA_NOT_NEEDED=yes 43236 PULSE_NOT_NEEDED=yes 43237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43238 $as_echo "alsa pulse" >&6; } 43239 fi 43240 43241 43242 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 43244 $as_echo_n "checking what is not needed on Windows?... " >&6; } 43245 CUPS_NOT_NEEDED=yes 43246 ALSA_NOT_NEEDED=yes 43247 PULSE_NOT_NEEDED=yes 43248 X11_NOT_NEEDED=yes 43249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 43250 $as_echo "alsa cups pulse x11" >&6; } 43251 fi 43252 43253 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 43255 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 43256 ALSA_NOT_NEEDED=yes 43257 PULSE_NOT_NEEDED=yes 43258 X11_NOT_NEEDED=yes 43259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 43260 $as_echo "alsa pulse x11" >&6; } 43261 fi 43262 43263 if test "x$OPENJDK_TARGET_OS" = xbsd; then 43264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 43265 $as_echo_n "checking what is not needed on bsd?... " >&6; } 43266 ALSA_NOT_NEEDED=yes 43267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 43268 $as_echo "alsa" >&6; } 43269 fi 43270 43271 if test "x$OPENJDK" = "xfalse"; then 43272 FREETYPE_NOT_NEEDED=yes 43273 fi 43274 43275 if test "x$SUPPORT_HEADFUL" = xno; then 43276 X11_NOT_NEEDED=yes 43277 fi 43278 43279 43280 43281 ############################################################################### 43282 # 43283 # Check for X Windows 43284 # 43285 43286 if test "x$X11_NOT_NEEDED" = xyes; then 43287 if test "x${with_x}" != x; then 43288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 43289 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 43290 fi 43291 X_CFLAGS= 43292 X_LIBS= 43293 else 43294 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 43295 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 43296 # --x-libraries for the sysroot, if that seems to be correct. 43297 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 43298 if test "x$SYSROOT" != "x"; then 43299 if test "x$x_includes" = xNONE; then 43300 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 43301 x_includes="$SYSROOT/usr/X11R6/include" 43302 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 43303 x_includes="$SYSROOT/usr/include" 43304 fi 43305 fi 43306 if test "x$x_libraries" = xNONE; then 43307 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 43308 x_libraries="$SYSROOT/usr/X11R6/lib" 43309 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43310 x_libraries="$SYSROOT/usr/lib64" 43311 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 43312 x_libraries="$SYSROOT/usr/lib" 43313 fi 43314 fi 43315 fi 43316 fi 43317 43318 # Now let autoconf do it's magic 43319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 43320 $as_echo_n "checking for X... " >&6; } 43321 43322 43323 # Check whether --with-x was given. 43324 if test "${with_x+set}" = set; then : 43325 withval=$with_x; 43326 fi 43327 43328 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 43329 if test "x$with_x" = xno; then 43330 # The user explicitly disabled X. 43331 have_x=disabled 43332 else 43333 case $x_includes,$x_libraries in #( 43334 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 43335 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 43336 $as_echo_n "(cached) " >&6 43337 else 43338 # One or both of the vars are not set, and there is no cached value. 43339 ac_x_includes=no ac_x_libraries=no 43340 rm -f -r conftest.dir 43341 if mkdir conftest.dir; then 43342 cd conftest.dir 43343 cat >Imakefile <<'_ACEOF' 43344 incroot: 43345 @echo incroot='${INCROOT}' 43346 usrlibdir: 43347 @echo usrlibdir='${USRLIBDIR}' 43348 libdir: 43349 @echo libdir='${LIBDIR}' 43350 _ACEOF 43351 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 43352 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 43353 for ac_var in incroot usrlibdir libdir; do 43354 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 43355 done 43356 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 43357 for ac_extension in a so sl dylib la dll; do 43358 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 43359 test -f "$ac_im_libdir/libX11.$ac_extension"; then 43360 ac_im_usrlibdir=$ac_im_libdir; break 43361 fi 43362 done 43363 # Screen out bogus values from the imake configuration. They are 43364 # bogus both because they are the default anyway, and because 43365 # using them would break gcc on systems where it needs fixed includes. 43366 case $ac_im_incroot in 43367 /usr/include) ac_x_includes= ;; 43368 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 43369 esac 43370 case $ac_im_usrlibdir in 43371 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 43372 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 43373 esac 43374 fi 43375 cd .. 43376 rm -f -r conftest.dir 43377 fi 43378 43379 # Standard set of common directories for X headers. 43380 # Check X11 before X11Rn because it is often a symlink to the current release. 43381 ac_x_header_dirs=' 43382 /usr/X11/include 43383 /usr/X11R7/include 43384 /usr/X11R6/include 43385 /usr/X11R5/include 43386 /usr/X11R4/include 43387 43388 /usr/include/X11 43389 /usr/include/X11R7 43390 /usr/include/X11R6 43391 /usr/include/X11R5 43392 /usr/include/X11R4 43393 43394 /usr/local/X11/include 43395 /usr/local/X11R7/include 43396 /usr/local/X11R6/include 43397 /usr/local/X11R5/include 43398 /usr/local/X11R4/include 43399 43400 /usr/local/include/X11 43401 /usr/local/include/X11R7 43402 /usr/local/include/X11R6 43403 /usr/local/include/X11R5 43404 /usr/local/include/X11R4 43405 43406 /usr/X386/include 43407 /usr/x386/include 43408 /usr/XFree86/include/X11 43409 43410 /usr/include 43411 /usr/local/include 43412 /usr/unsupported/include 43413 /usr/athena/include 43414 /usr/local/x11r5/include 43415 /usr/lpp/Xamples/include 43416 43417 /usr/openwin/include 43418 /usr/openwin/share/include' 43419 43420 if test "$ac_x_includes" = no; then 43421 # Guess where to find include files, by looking for Xlib.h. 43422 # First, try using that file with no special directory specified. 43423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43424 /* end confdefs.h. */ 43425 #include <X11/Xlib.h> 43426 _ACEOF 43427 if ac_fn_cxx_try_cpp "$LINENO"; then : 43428 # We can compile using X headers with no special include directory. 43429 ac_x_includes= 43430 else 43431 for ac_dir in $ac_x_header_dirs; do 43432 if test -r "$ac_dir/X11/Xlib.h"; then 43433 ac_x_includes=$ac_dir 43434 break 43435 fi 43436 done 43437 fi 43438 rm -f conftest.err conftest.i conftest.$ac_ext 43439 fi # $ac_x_includes = no 43440 43441 if test "$ac_x_libraries" = no; then 43442 # Check for the libraries. 43443 # See if we find them without any special options. 43444 # Don't add to $LIBS permanently. 43445 ac_save_LIBS=$LIBS 43446 LIBS="-lX11 $LIBS" 43447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43448 /* end confdefs.h. */ 43449 #include <X11/Xlib.h> 43450 int 43451 main () 43452 { 43453 XrmInitialize () 43454 ; 43455 return 0; 43456 } 43457 _ACEOF 43458 if ac_fn_cxx_try_link "$LINENO"; then : 43459 LIBS=$ac_save_LIBS 43460 # We can link X programs with no special library path. 43461 ac_x_libraries= 43462 else 43463 LIBS=$ac_save_LIBS 43464 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 43465 do 43466 # Don't even attempt the hair of trying to link an X program! 43467 for ac_extension in a so sl dylib la dll; do 43468 if test -r "$ac_dir/libX11.$ac_extension"; then 43469 ac_x_libraries=$ac_dir 43470 break 2 43471 fi 43472 done 43473 done 43474 fi 43475 rm -f core conftest.err conftest.$ac_objext \ 43476 conftest$ac_exeext conftest.$ac_ext 43477 fi # $ac_x_libraries = no 43478 43479 case $ac_x_includes,$ac_x_libraries in #( 43480 no,* | *,no | *\'*) 43481 # Didn't find X, or a directory has "'" in its name. 43482 ac_cv_have_x="have_x=no";; #( 43483 *) 43484 # Record where we found X for the cache. 43485 ac_cv_have_x="have_x=yes\ 43486 ac_x_includes='$ac_x_includes'\ 43487 ac_x_libraries='$ac_x_libraries'" 43488 esac 43489 fi 43490 ;; #( 43491 *) have_x=yes;; 43492 esac 43493 eval "$ac_cv_have_x" 43494 fi # $with_x != no 43495 43496 if test "$have_x" != yes; then 43497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 43498 $as_echo "$have_x" >&6; } 43499 no_x=yes 43500 else 43501 # If each of the values was on the command line, it overrides each guess. 43502 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 43503 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 43504 # Update the cache value to reflect the command line values. 43505 ac_cv_have_x="have_x=yes\ 43506 ac_x_includes='$x_includes'\ 43507 ac_x_libraries='$x_libraries'" 43508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 43509 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 43510 fi 43511 43512 if test "$no_x" = yes; then 43513 # Not all programs may use this symbol, but it does not hurt to define it. 43514 43515 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 43516 43517 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 43518 else 43519 if test -n "$x_includes"; then 43520 X_CFLAGS="$X_CFLAGS -I$x_includes" 43521 fi 43522 43523 # It would also be nice to do this for all -L options, not just this one. 43524 if test -n "$x_libraries"; then 43525 X_LIBS="$X_LIBS -L$x_libraries" 43526 # For Solaris; some versions of Sun CC require a space after -R and 43527 # others require no space. Words are not sufficient . . . . 43528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 43529 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 43530 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 43531 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 43532 ac_cxx_werror_flag=yes 43533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43534 /* end confdefs.h. */ 43535 43536 int 43537 main () 43538 { 43539 43540 ; 43541 return 0; 43542 } 43543 _ACEOF 43544 if ac_fn_cxx_try_link "$LINENO"; then : 43545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43546 $as_echo "no" >&6; } 43547 X_LIBS="$X_LIBS -R$x_libraries" 43548 else 43549 LIBS="$ac_xsave_LIBS -R $x_libraries" 43550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43551 /* end confdefs.h. */ 43552 43553 int 43554 main () 43555 { 43556 43557 ; 43558 return 0; 43559 } 43560 _ACEOF 43561 if ac_fn_cxx_try_link "$LINENO"; then : 43562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43563 $as_echo "yes" >&6; } 43564 X_LIBS="$X_LIBS -R $x_libraries" 43565 else 43566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43567 $as_echo "neither works" >&6; } 43568 fi 43569 rm -f core conftest.err conftest.$ac_objext \ 43570 conftest$ac_exeext conftest.$ac_ext 43571 fi 43572 rm -f core conftest.err conftest.$ac_objext \ 43573 conftest$ac_exeext conftest.$ac_ext 43574 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43575 LIBS=$ac_xsave_LIBS 43576 fi 43577 43578 # Check for system-dependent libraries X programs must link with. 43579 # Do this before checking for the system-independent R6 libraries 43580 # (-lICE), since we may need -lsocket or whatever for X linking. 43581 43582 if test "$ISC" = yes; then 43583 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43584 else 43585 # Martyn Johnson says this is needed for Ultrix, if the X 43586 # libraries were built with DECnet support. And Karl Berry says 43587 # the Alpha needs dnet_stub (dnet does not exist). 43588 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43590 /* end confdefs.h. */ 43591 43592 /* Override any GCC internal prototype to avoid an error. 43593 Use char because int might match the return type of a GCC 43594 builtin and then its argument prototype would still apply. */ 43595 #ifdef __cplusplus 43596 extern "C" 43597 #endif 43598 char XOpenDisplay (); 43599 int 43600 main () 43601 { 43602 return XOpenDisplay (); 43603 ; 43604 return 0; 43605 } 43606 _ACEOF 43607 if ac_fn_cxx_try_link "$LINENO"; then : 43608 43609 else 43610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43611 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43612 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43613 $as_echo_n "(cached) " >&6 43614 else 43615 ac_check_lib_save_LIBS=$LIBS 43616 LIBS="-ldnet $LIBS" 43617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43618 /* end confdefs.h. */ 43619 43620 /* Override any GCC internal prototype to avoid an error. 43621 Use char because int might match the return type of a GCC 43622 builtin and then its argument prototype would still apply. */ 43623 #ifdef __cplusplus 43624 extern "C" 43625 #endif 43626 char dnet_ntoa (); 43627 int 43628 main () 43629 { 43630 return dnet_ntoa (); 43631 ; 43632 return 0; 43633 } 43634 _ACEOF 43635 if ac_fn_cxx_try_link "$LINENO"; then : 43636 ac_cv_lib_dnet_dnet_ntoa=yes 43637 else 43638 ac_cv_lib_dnet_dnet_ntoa=no 43639 fi 43640 rm -f core conftest.err conftest.$ac_objext \ 43641 conftest$ac_exeext conftest.$ac_ext 43642 LIBS=$ac_check_lib_save_LIBS 43643 fi 43644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43645 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43646 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43647 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43648 fi 43649 43650 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43652 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43653 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43654 $as_echo_n "(cached) " >&6 43655 else 43656 ac_check_lib_save_LIBS=$LIBS 43657 LIBS="-ldnet_stub $LIBS" 43658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43659 /* end confdefs.h. */ 43660 43661 /* Override any GCC internal prototype to avoid an error. 43662 Use char because int might match the return type of a GCC 43663 builtin and then its argument prototype would still apply. */ 43664 #ifdef __cplusplus 43665 extern "C" 43666 #endif 43667 char dnet_ntoa (); 43668 int 43669 main () 43670 { 43671 return dnet_ntoa (); 43672 ; 43673 return 0; 43674 } 43675 _ACEOF 43676 if ac_fn_cxx_try_link "$LINENO"; then : 43677 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43678 else 43679 ac_cv_lib_dnet_stub_dnet_ntoa=no 43680 fi 43681 rm -f core conftest.err conftest.$ac_objext \ 43682 conftest$ac_exeext conftest.$ac_ext 43683 LIBS=$ac_check_lib_save_LIBS 43684 fi 43685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43686 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43687 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43688 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43689 fi 43690 43691 fi 43692 fi 43693 rm -f core conftest.err conftest.$ac_objext \ 43694 conftest$ac_exeext conftest.$ac_ext 43695 LIBS="$ac_xsave_LIBS" 43696 43697 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43698 # to get the SysV transport functions. 43699 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43700 # needs -lnsl. 43701 # The nsl library prevents programs from opening the X display 43702 # on Irix 5.2, according to T.E. Dickey. 43703 # The functions gethostbyname, getservbyname, and inet_addr are 43704 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43705 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43706 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43707 43708 fi 43709 43710 if test $ac_cv_func_gethostbyname = no; then 43711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43712 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43713 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43714 $as_echo_n "(cached) " >&6 43715 else 43716 ac_check_lib_save_LIBS=$LIBS 43717 LIBS="-lnsl $LIBS" 43718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43719 /* end confdefs.h. */ 43720 43721 /* Override any GCC internal prototype to avoid an error. 43722 Use char because int might match the return type of a GCC 43723 builtin and then its argument prototype would still apply. */ 43724 #ifdef __cplusplus 43725 extern "C" 43726 #endif 43727 char gethostbyname (); 43728 int 43729 main () 43730 { 43731 return gethostbyname (); 43732 ; 43733 return 0; 43734 } 43735 _ACEOF 43736 if ac_fn_cxx_try_link "$LINENO"; then : 43737 ac_cv_lib_nsl_gethostbyname=yes 43738 else 43739 ac_cv_lib_nsl_gethostbyname=no 43740 fi 43741 rm -f core conftest.err conftest.$ac_objext \ 43742 conftest$ac_exeext conftest.$ac_ext 43743 LIBS=$ac_check_lib_save_LIBS 43744 fi 43745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43746 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43747 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43748 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43749 fi 43750 43751 if test $ac_cv_lib_nsl_gethostbyname = no; then 43752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43753 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43754 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43755 $as_echo_n "(cached) " >&6 43756 else 43757 ac_check_lib_save_LIBS=$LIBS 43758 LIBS="-lbsd $LIBS" 43759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43760 /* end confdefs.h. */ 43761 43762 /* Override any GCC internal prototype to avoid an error. 43763 Use char because int might match the return type of a GCC 43764 builtin and then its argument prototype would still apply. */ 43765 #ifdef __cplusplus 43766 extern "C" 43767 #endif 43768 char gethostbyname (); 43769 int 43770 main () 43771 { 43772 return gethostbyname (); 43773 ; 43774 return 0; 43775 } 43776 _ACEOF 43777 if ac_fn_cxx_try_link "$LINENO"; then : 43778 ac_cv_lib_bsd_gethostbyname=yes 43779 else 43780 ac_cv_lib_bsd_gethostbyname=no 43781 fi 43782 rm -f core conftest.err conftest.$ac_objext \ 43783 conftest$ac_exeext conftest.$ac_ext 43784 LIBS=$ac_check_lib_save_LIBS 43785 fi 43786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43787 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43788 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43789 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43790 fi 43791 43792 fi 43793 fi 43794 43795 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43796 # socket/setsockopt and other routines are undefined under SCO ODT 43797 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43798 # on later versions), says Simon Leinen: it contains gethostby* 43799 # variants that don't use the name server (or something). -lsocket 43800 # must be given before -lnsl if both are needed. We assume that 43801 # if connect needs -lnsl, so does gethostbyname. 43802 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43803 if test "x$ac_cv_func_connect" = xyes; then : 43804 43805 fi 43806 43807 if test $ac_cv_func_connect = no; then 43808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43809 $as_echo_n "checking for connect in -lsocket... " >&6; } 43810 if ${ac_cv_lib_socket_connect+:} false; then : 43811 $as_echo_n "(cached) " >&6 43812 else 43813 ac_check_lib_save_LIBS=$LIBS 43814 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43816 /* end confdefs.h. */ 43817 43818 /* Override any GCC internal prototype to avoid an error. 43819 Use char because int might match the return type of a GCC 43820 builtin and then its argument prototype would still apply. */ 43821 #ifdef __cplusplus 43822 extern "C" 43823 #endif 43824 char connect (); 43825 int 43826 main () 43827 { 43828 return connect (); 43829 ; 43830 return 0; 43831 } 43832 _ACEOF 43833 if ac_fn_cxx_try_link "$LINENO"; then : 43834 ac_cv_lib_socket_connect=yes 43835 else 43836 ac_cv_lib_socket_connect=no 43837 fi 43838 rm -f core conftest.err conftest.$ac_objext \ 43839 conftest$ac_exeext conftest.$ac_ext 43840 LIBS=$ac_check_lib_save_LIBS 43841 fi 43842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43843 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43844 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43845 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43846 fi 43847 43848 fi 43849 43850 # Guillermo Gomez says -lposix is necessary on A/UX. 43851 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43852 if test "x$ac_cv_func_remove" = xyes; then : 43853 43854 fi 43855 43856 if test $ac_cv_func_remove = no; then 43857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43858 $as_echo_n "checking for remove in -lposix... " >&6; } 43859 if ${ac_cv_lib_posix_remove+:} false; then : 43860 $as_echo_n "(cached) " >&6 43861 else 43862 ac_check_lib_save_LIBS=$LIBS 43863 LIBS="-lposix $LIBS" 43864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43865 /* end confdefs.h. */ 43866 43867 /* Override any GCC internal prototype to avoid an error. 43868 Use char because int might match the return type of a GCC 43869 builtin and then its argument prototype would still apply. */ 43870 #ifdef __cplusplus 43871 extern "C" 43872 #endif 43873 char remove (); 43874 int 43875 main () 43876 { 43877 return remove (); 43878 ; 43879 return 0; 43880 } 43881 _ACEOF 43882 if ac_fn_cxx_try_link "$LINENO"; then : 43883 ac_cv_lib_posix_remove=yes 43884 else 43885 ac_cv_lib_posix_remove=no 43886 fi 43887 rm -f core conftest.err conftest.$ac_objext \ 43888 conftest$ac_exeext conftest.$ac_ext 43889 LIBS=$ac_check_lib_save_LIBS 43890 fi 43891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43892 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43893 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43894 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43895 fi 43896 43897 fi 43898 43899 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43900 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43901 if test "x$ac_cv_func_shmat" = xyes; then : 43902 43903 fi 43904 43905 if test $ac_cv_func_shmat = no; then 43906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43907 $as_echo_n "checking for shmat in -lipc... " >&6; } 43908 if ${ac_cv_lib_ipc_shmat+:} false; then : 43909 $as_echo_n "(cached) " >&6 43910 else 43911 ac_check_lib_save_LIBS=$LIBS 43912 LIBS="-lipc $LIBS" 43913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43914 /* end confdefs.h. */ 43915 43916 /* Override any GCC internal prototype to avoid an error. 43917 Use char because int might match the return type of a GCC 43918 builtin and then its argument prototype would still apply. */ 43919 #ifdef __cplusplus 43920 extern "C" 43921 #endif 43922 char shmat (); 43923 int 43924 main () 43925 { 43926 return shmat (); 43927 ; 43928 return 0; 43929 } 43930 _ACEOF 43931 if ac_fn_cxx_try_link "$LINENO"; then : 43932 ac_cv_lib_ipc_shmat=yes 43933 else 43934 ac_cv_lib_ipc_shmat=no 43935 fi 43936 rm -f core conftest.err conftest.$ac_objext \ 43937 conftest$ac_exeext conftest.$ac_ext 43938 LIBS=$ac_check_lib_save_LIBS 43939 fi 43940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43941 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43942 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43943 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43944 fi 43945 43946 fi 43947 fi 43948 43949 # Check for libraries that X11R6 Xt/Xaw programs need. 43950 ac_save_LDFLAGS=$LDFLAGS 43951 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43952 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43953 # check for ICE first), but we must link in the order -lSM -lICE or 43954 # we get undefined symbols. So assume we have SM if we have ICE. 43955 # These have to be linked with before -lX11, unlike the other 43956 # libraries we check for below, so use a different variable. 43957 # John Interrante, Karl Berry 43958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43959 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43960 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43961 $as_echo_n "(cached) " >&6 43962 else 43963 ac_check_lib_save_LIBS=$LIBS 43964 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43966 /* end confdefs.h. */ 43967 43968 /* Override any GCC internal prototype to avoid an error. 43969 Use char because int might match the return type of a GCC 43970 builtin and then its argument prototype would still apply. */ 43971 #ifdef __cplusplus 43972 extern "C" 43973 #endif 43974 char IceConnectionNumber (); 43975 int 43976 main () 43977 { 43978 return IceConnectionNumber (); 43979 ; 43980 return 0; 43981 } 43982 _ACEOF 43983 if ac_fn_cxx_try_link "$LINENO"; then : 43984 ac_cv_lib_ICE_IceConnectionNumber=yes 43985 else 43986 ac_cv_lib_ICE_IceConnectionNumber=no 43987 fi 43988 rm -f core conftest.err conftest.$ac_objext \ 43989 conftest$ac_exeext conftest.$ac_ext 43990 LIBS=$ac_check_lib_save_LIBS 43991 fi 43992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 43993 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 43994 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 43995 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 43996 fi 43997 43998 LDFLAGS=$ac_save_LDFLAGS 43999 44000 fi 44001 44002 44003 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 44004 # this doesn't make sense so we remove it. 44005 if test "x$COMPILE_TYPE" = xcross; then 44006 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 44007 fi 44008 44009 if test "x$no_x" = xyes; then 44010 44011 # Print a helpful message on how to acquire the necessary build dependency. 44012 # x11 is the help tag: freetype, cups, pulse, alsa etc 44013 MISSING_DEPENDENCY=x11 44014 44015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44016 cygwin_help $MISSING_DEPENDENCY 44017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44018 msys_help $MISSING_DEPENDENCY 44019 else 44020 PKGHANDLER_COMMAND= 44021 44022 case $PKGHANDLER in 44023 apt-get) 44024 apt_help $MISSING_DEPENDENCY ;; 44025 yum) 44026 yum_help $MISSING_DEPENDENCY ;; 44027 port) 44028 port_help $MISSING_DEPENDENCY ;; 44029 pkgutil) 44030 pkgutil_help $MISSING_DEPENDENCY ;; 44031 pkgadd) 44032 pkgadd_help $MISSING_DEPENDENCY ;; 44033 esac 44034 44035 if test "x$PKGHANDLER_COMMAND" != x; then 44036 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44037 fi 44038 fi 44039 44040 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 44041 fi 44042 44043 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44044 OPENWIN_HOME="/usr/openwin" 44045 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 44046 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44047 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 44048 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44049 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 44050 fi 44051 44052 ac_ext=c 44053 ac_cpp='$CPP $CPPFLAGS' 44054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44056 ac_compiler_gnu=$ac_cv_c_compiler_gnu 44057 44058 OLD_CFLAGS="$CFLAGS" 44059 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 44060 44061 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 44062 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 44063 do : 44064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44065 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 44066 # include <X11/Xlib.h> 44067 # include <X11/Xutil.h> 44068 44069 44070 " 44071 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44072 cat >>confdefs.h <<_ACEOF 44073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44074 _ACEOF 44075 X11_HEADERS_OK=yes 44076 else 44077 X11_HEADERS_OK=no; break 44078 fi 44079 44080 done 44081 44082 44083 if test "x$X11_HEADERS_OK" = xno; then 44084 44085 # Print a helpful message on how to acquire the necessary build dependency. 44086 # x11 is the help tag: freetype, cups, pulse, alsa etc 44087 MISSING_DEPENDENCY=x11 44088 44089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44090 cygwin_help $MISSING_DEPENDENCY 44091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44092 msys_help $MISSING_DEPENDENCY 44093 else 44094 PKGHANDLER_COMMAND= 44095 44096 case $PKGHANDLER in 44097 apt-get) 44098 apt_help $MISSING_DEPENDENCY ;; 44099 yum) 44100 yum_help $MISSING_DEPENDENCY ;; 44101 port) 44102 port_help $MISSING_DEPENDENCY ;; 44103 pkgutil) 44104 pkgutil_help $MISSING_DEPENDENCY ;; 44105 pkgadd) 44106 pkgadd_help $MISSING_DEPENDENCY ;; 44107 esac 44108 44109 if test "x$PKGHANDLER_COMMAND" != x; then 44110 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44111 fi 44112 fi 44113 44114 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 44115 fi 44116 44117 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 44118 # defined in libawt_xawt. 44119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 44120 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 44121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44122 /* end confdefs.h. */ 44123 #include <X11/extensions/Xrender.h> 44124 int 44125 main () 44126 { 44127 XLinearGradient x; 44128 ; 44129 return 0; 44130 } 44131 _ACEOF 44132 if ac_fn_c_try_compile "$LINENO"; then : 44133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44134 $as_echo "yes" >&6; } 44135 else 44136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44137 $as_echo "no" >&6; } 44138 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 44139 fi 44140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 44141 44142 CFLAGS="$OLD_CFLAGS" 44143 ac_ext=cpp 44144 ac_cpp='$CXXCPP $CPPFLAGS' 44145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44148 44149 fi # X11_NOT_NEEDED 44150 44151 44152 44153 44154 44155 44156 ############################################################################### 44157 # 44158 # The common unix printing system cups is used to print from java. 44159 # 44160 44161 # Check whether --with-cups was given. 44162 if test "${with_cups+set}" = set; then : 44163 withval=$with_cups; 44164 fi 44165 44166 44167 # Check whether --with-cups-include was given. 44168 if test "${with_cups_include+set}" = set; then : 44169 withval=$with_cups_include; 44170 fi 44171 44172 44173 if test "x$CUPS_NOT_NEEDED" = xyes; then 44174 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 44175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 44176 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 44177 fi 44178 CUPS_CFLAGS= 44179 else 44180 CUPS_FOUND=no 44181 44182 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 44183 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 44184 fi 44185 44186 if test "x${with_cups}" != x; then 44187 CUPS_CFLAGS="-I${with_cups}/include" 44188 CUPS_FOUND=yes 44189 fi 44190 if test "x${with_cups_include}" != x; then 44191 CUPS_CFLAGS="-I${with_cups_include}" 44192 CUPS_FOUND=yes 44193 fi 44194 if test "x$CUPS_FOUND" = xno; then 44195 44196 44197 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44198 # Source the builddeps file again, to make sure it uses the latest variables! 44199 . $builddepsfile 44200 # Look for a target and build machine specific resource! 44201 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44202 if test "x$resource" = x; then 44203 # Ok, lets instead look for a target specific resource 44204 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 44205 fi 44206 if test "x$resource" = x; then 44207 # Ok, lets instead look for a build specific resource 44208 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 44209 fi 44210 if test "x$resource" = x; then 44211 # Ok, lets instead look for a generic resource 44212 # (The cups comes from M4 and not the shell, thus no need for eval here.) 44213 resource=${builddep_cups} 44214 fi 44215 if test "x$resource" != x; then 44216 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 44217 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 44218 # If the resource in the builddeps.conf file is an existing directory, 44219 # for example /java/linux/cups 44220 if test -d ${resource}; then 44221 depdir=${resource} 44222 else 44223 44224 # cups is for example mymodule 44225 # $resource is for example libs/general/libmymod_1_2_3.zip 44226 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44227 # $with_builddeps_dir is for example /localhome/builddeps 44228 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44229 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44230 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44231 filename=`basename $resource` 44232 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44233 filebase=${filename%%.*} 44234 extension=${filename#*.} 44235 installdir=$with_builddeps_dir/$filebase 44236 if test ! -f $installdir/$filename.unpacked; then 44237 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 44238 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44239 if test ! -d $installdir; then 44240 mkdir -p $installdir 44241 fi 44242 if test ! -d $installdir; then 44243 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44244 fi 44245 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 44246 touch $tmpfile 44247 if test ! -f $tmpfile; then 44248 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44249 fi 44250 44251 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44252 # $tmpfile is the local file name for the downloaded file. 44253 VALID_TOOL=no 44254 if test "x$BDEPS_FTP" = xwget; then 44255 VALID_TOOL=yes 44256 wget -O $tmpfile $with_builddeps_server/$resource 44257 fi 44258 if test "x$BDEPS_FTP" = xlftp; then 44259 VALID_TOOL=yes 44260 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44261 fi 44262 if test "x$BDEPS_FTP" = xftp; then 44263 VALID_TOOL=yes 44264 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44265 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44266 FTPUSERPWD=${FTPSERVER%%@*} 44267 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44268 FTPUSER=${userpwd%%:*} 44269 FTPPWD=${userpwd#*@} 44270 FTPSERVER=${FTPSERVER#*@} 44271 else 44272 FTPUSER=ftp 44273 FTPPWD=ftp 44274 fi 44275 # the "pass" command does not work on some 44276 # ftp clients (read ftp.exe) but if it works, 44277 # passive mode is better! 44278 ( \ 44279 echo "user $FTPUSER $FTPPWD" ; \ 44280 echo "pass" ; \ 44281 echo "bin" ; \ 44282 echo "get $FTPPATH $tmpfile" ; \ 44283 ) | ftp -in $FTPSERVER 44284 fi 44285 if test "x$VALID_TOOL" != xyes; then 44286 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44287 fi 44288 44289 mv $tmpfile $installdir/$filename 44290 if test ! -s $installdir/$filename; then 44291 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44292 fi 44293 case "$extension" in 44294 zip) echo "Unzipping $installdir/$filename..." 44295 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44296 ;; 44297 tar.gz) echo "Untaring $installdir/$filename..." 44298 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44299 ;; 44300 tgz) echo "Untaring $installdir/$filename..." 44301 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44302 ;; 44303 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44304 ;; 44305 esac 44306 fi 44307 if test -f $installdir/$filename.unpacked; then 44308 depdir=$installdir 44309 fi 44310 44311 fi 44312 # Source the builddeps file again, because in the previous command, the depdir 44313 # was updated to point at the current build dependency install directory. 44314 . $builddepsfile 44315 # Now extract variables from the builddeps.conf files. 44316 theroot=${builddep_cups_ROOT} 44317 thecflags=${builddep_cups_CFLAGS} 44318 thelibs=${builddep_cups_LIBS} 44319 if test "x$depdir" = x; then 44320 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 44321 fi 44322 CUPS=$depdir 44323 if test "x$theroot" != x; then 44324 CUPS="$theroot" 44325 fi 44326 if test "x$thecflags" != x; then 44327 CUPS_CFLAGS="$thecflags" 44328 fi 44329 if test "x$thelibs" != x; then 44330 CUPS_LIBS="$thelibs" 44331 fi 44332 CUPS_FOUND=yes 44333 44334 fi 44335 44336 fi 44337 44338 fi 44339 if test "x$CUPS_FOUND" = xno; then 44340 # Are the cups headers installed in the default /usr/include location? 44341 for ac_header in cups/cups.h cups/ppd.h 44342 do : 44343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44344 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 44345 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44346 cat >>confdefs.h <<_ACEOF 44347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44348 _ACEOF 44349 44350 CUPS_FOUND=yes 44351 CUPS_CFLAGS= 44352 DEFAULT_CUPS=yes 44353 44354 44355 fi 44356 44357 done 44358 44359 fi 44360 if test "x$CUPS_FOUND" = xno; then 44361 # Getting nervous now? Lets poke around for standard Solaris third-party 44362 # package installation locations. 44363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 44364 $as_echo_n "checking for cups headers... " >&6; } 44365 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 44366 # An SFW package seems to be installed! 44367 CUPS_FOUND=yes 44368 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 44369 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 44370 # A CSW package seems to be installed! 44371 CUPS_FOUND=yes 44372 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 44373 fi 44374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 44375 $as_echo "$CUPS_FOUND" >&6; } 44376 fi 44377 if test "x$CUPS_FOUND" = xno; then 44378 44379 # Print a helpful message on how to acquire the necessary build dependency. 44380 # cups is the help tag: freetype, cups, pulse, alsa etc 44381 MISSING_DEPENDENCY=cups 44382 44383 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44384 cygwin_help $MISSING_DEPENDENCY 44385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44386 msys_help $MISSING_DEPENDENCY 44387 else 44388 PKGHANDLER_COMMAND= 44389 44390 case $PKGHANDLER in 44391 apt-get) 44392 apt_help $MISSING_DEPENDENCY ;; 44393 yum) 44394 yum_help $MISSING_DEPENDENCY ;; 44395 port) 44396 port_help $MISSING_DEPENDENCY ;; 44397 pkgutil) 44398 pkgutil_help $MISSING_DEPENDENCY ;; 44399 pkgadd) 44400 pkgadd_help $MISSING_DEPENDENCY ;; 44401 esac 44402 44403 if test "x$PKGHANDLER_COMMAND" != x; then 44404 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44405 fi 44406 fi 44407 44408 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 44409 fi 44410 fi 44411 44412 44413 44414 44415 44416 44417 ############################################################################### 44418 # 44419 # The ubiquitous freetype library is used to render fonts. 44420 # 44421 44422 # Check whether --with-freetype was given. 44423 if test "${with_freetype+set}" = set; then : 44424 withval=$with_freetype; 44425 fi 44426 44427 44428 # Check whether --with-freetype-include was given. 44429 if test "${with_freetype_include+set}" = set; then : 44430 withval=$with_freetype_include; 44431 fi 44432 44433 44434 # Check whether --with-freetype-lib was given. 44435 if test "${with_freetype_lib+set}" = set; then : 44436 withval=$with_freetype_lib; 44437 fi 44438 44439 44440 # Check whether --with-freetype-src was given. 44441 if test "${with_freetype_src+set}" = set; then : 44442 withval=$with_freetype_src; 44443 fi 44444 44445 # Check whether --enable-freetype-bundling was given. 44446 if test "${enable_freetype_bundling+set}" = set; then : 44447 enableval=$enable_freetype_bundling; 44448 fi 44449 44450 44451 # Need to specify explicitly since it needs to be overridden on some versions of macosx 44452 FREETYPE_BASE_NAME=freetype 44453 FREETYPE_CFLAGS= 44454 FREETYPE_LIBS= 44455 FREETYPE_BUNDLE_LIB_PATH= 44456 44457 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 44458 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x || test "x$with_freetype_src" != x; then 44459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 44460 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 44461 fi 44462 if test "x$enable_freetype_bundling" != x; then 44463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 44464 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 44465 fi 44466 else 44467 # freetype is needed to build; go get it! 44468 44469 BUNDLE_FREETYPE="$enable_freetype_bundling" 44470 44471 if test "x$with_freetype_src" != x; then 44472 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44473 # Try to build freetype if --with-freetype-src was given on Windows 44474 44475 FREETYPE_SRC_PATH="$with_freetype_src" 44476 BUILD_FREETYPE=yes 44477 44478 # Check if the freetype sources are acessible.. 44479 if ! test -d $FREETYPE_SRC_PATH; then 44480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&5 44481 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 44482 BUILD_FREETYPE=no 44483 fi 44484 # ..and contain a vc2010 project file 44485 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 44486 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 44487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&5 44488 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 44489 BUILD_FREETYPE=no 44490 fi 44491 # Now check if configure found a version of 'msbuild.exe' 44492 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 44493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&5 44494 $as_echo "$as_me: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&2;} 44495 BUILD_FREETYPE=no 44496 fi 44497 44498 # Ready to go.. 44499 if test "x$BUILD_FREETYPE" = xyes; then 44500 44501 # msbuild requires trailing slashes for output directories 44502 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 44503 freetype_lib_path_unix="$freetype_lib_path" 44504 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 44505 44506 unix_path="$vcxproj_path" 44507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44508 windows_path=`$CYGPATH -m "$unix_path"` 44509 vcxproj_path="$windows_path" 44510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44511 windows_path=`cmd //c echo $unix_path` 44512 vcxproj_path="$windows_path" 44513 fi 44514 44515 44516 unix_path="$freetype_lib_path" 44517 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44518 windows_path=`$CYGPATH -m "$unix_path"` 44519 freetype_lib_path="$windows_path" 44520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44521 windows_path=`cmd //c echo $unix_path` 44522 freetype_lib_path="$windows_path" 44523 fi 44524 44525 44526 unix_path="$freetype_obj_path" 44527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44528 windows_path=`$CYGPATH -m "$unix_path"` 44529 freetype_obj_path="$windows_path" 44530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44531 windows_path=`cmd //c echo $unix_path` 44532 freetype_obj_path="$windows_path" 44533 fi 44534 44535 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44536 freetype_platform=x64 44537 else 44538 freetype_platform=win32 44539 fi 44540 44541 # The original freetype project file is for VS 2010 (i.e. 'v100'), 44542 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 44543 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 44544 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 44545 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 44546 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 44547 44548 # First we try to build the freetype.dll 44549 $ECHO -e "@echo off\n"\ 44550 "$MSBUILD $vcxproj_path "\ 44551 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44552 "/p:Configuration=\"Release Multithreaded\" "\ 44553 "/p:Platform=$freetype_platform "\ 44554 "/p:ConfigurationType=DynamicLibrary "\ 44555 "/p:TargetName=freetype "\ 44556 "/p:OutDir=\"$freetype_lib_path\" "\ 44557 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 44558 cmd /c freetype.bat 44559 44560 if test -s "$freetype_lib_path_unix/freetype.dll"; then 44561 # If that succeeds we also build freetype.lib 44562 $ECHO -e "@echo off\n"\ 44563 "$MSBUILD $vcxproj_path "\ 44564 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44565 "/p:Configuration=\"Release Multithreaded\" "\ 44566 "/p:Platform=$freetype_platform "\ 44567 "/p:ConfigurationType=StaticLibrary "\ 44568 "/p:TargetName=freetype "\ 44569 "/p:OutDir=\"$freetype_lib_path\" "\ 44570 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 44571 cmd /c freetype.bat 44572 44573 if test -s "$freetype_lib_path_unix/freetype.lib"; then 44574 # Once we build both, lib and dll, set freetype lib and include path appropriately 44575 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 44576 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 44577 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 44578 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 44579 else 44580 BUILD_FREETYPE=no 44581 fi 44582 else 44583 BUILD_FREETYPE=no 44584 fi 44585 fi 44586 44587 if test "x$BUILD_FREETYPE" = xyes; then 44588 # Okay, we built it. Check that it works. 44589 44590 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44591 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44592 METHOD="--with-freetype-src" 44593 44594 # Let's start with an optimistic view of the world :-) 44595 FOUND_FREETYPE=yes 44596 44597 # First look for the canonical freetype main include file ft2build.h. 44598 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44599 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44600 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44601 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44602 # Fail. 44603 FOUND_FREETYPE=no 44604 fi 44605 fi 44606 44607 if test "x$FOUND_FREETYPE" = xyes; then 44608 # Include file found, let's continue the sanity check. 44609 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44610 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44611 44612 # Reset to default value 44613 FREETYPE_BASE_NAME=freetype 44614 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44615 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44616 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44617 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44618 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44619 # for the .6 version explicitly. 44620 FREETYPE_BASE_NAME=freetype.6 44621 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44622 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44623 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44624 else 44625 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44626 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44627 FOUND_FREETYPE=no 44628 fi 44629 else 44630 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44631 # On Windows, we will need both .lib and .dll file. 44632 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44633 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44634 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44635 FOUND_FREETYPE=no 44636 fi 44637 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44638 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44639 # Found lib in isa dir, use that instead. 44640 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44641 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 44642 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 44643 fi 44644 fi 44645 fi 44646 44647 if test "x$FOUND_FREETYPE" = xyes; then 44648 44649 # Only process if variable expands to non-empty 44650 44651 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 44652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44653 44654 # Input might be given as Windows format, start by converting to 44655 # unix format. 44656 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44657 new_path=`$CYGPATH -u "$path"` 44658 44659 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44660 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44661 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44662 # "foo.exe" is OK but "foo" is an error. 44663 # 44664 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44665 # It is also a way to make sure we got the proper file name for the real test later on. 44666 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44667 if test "x$test_shortpath" = x; then 44668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44669 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44670 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44671 fi 44672 44673 # Call helper function which possibly converts this using DOS-style short mode. 44674 # If so, the updated path is stored in $new_path. 44675 44676 input_path="$new_path" 44677 # Check if we need to convert this using DOS-style short mode. If the path 44678 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44679 # take no chances and rewrite it. 44680 # Note: m4 eats our [], so we need to use [ and ] instead. 44681 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44682 if test "x$has_forbidden_chars" != x; then 44683 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44684 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44685 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44686 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44687 # Going to short mode and back again did indeed matter. Since short mode is 44688 # case insensitive, let's make it lowercase to improve readability. 44689 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44690 # Now convert it back to Unix-stile (cygpath) 44691 input_path=`$CYGPATH -u "$shortmode_path"` 44692 new_path="$input_path" 44693 fi 44694 fi 44695 44696 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44697 if test "x$test_cygdrive_prefix" = x; then 44698 # As a simple fix, exclude /usr/bin since it's not a real path. 44699 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44700 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44701 # a path prefixed by /cygdrive for fixpath to work. 44702 new_path="$CYGWIN_ROOT_PATH$input_path" 44703 fi 44704 fi 44705 44706 44707 if test "x$path" != "x$new_path"; then 44708 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44709 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44710 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44711 fi 44712 44713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44714 44715 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44716 has_colon=`$ECHO $path | $GREP ^.:` 44717 new_path="$path" 44718 if test "x$has_colon" = x; then 44719 # Not in mixed or Windows style, start by that. 44720 new_path=`cmd //c echo $path` 44721 fi 44722 44723 44724 input_path="$new_path" 44725 # Check if we need to convert this using DOS-style short mode. If the path 44726 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44727 # take no chances and rewrite it. 44728 # Note: m4 eats our [], so we need to use [ and ] instead. 44729 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44730 if test "x$has_forbidden_chars" != x; then 44731 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44732 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44733 fi 44734 44735 44736 windows_path="$new_path" 44737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44738 unix_path=`$CYGPATH -u "$windows_path"` 44739 new_path="$unix_path" 44740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44742 new_path="$unix_path" 44743 fi 44744 44745 if test "x$path" != "x$new_path"; then 44746 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44747 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44748 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44749 fi 44750 44751 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44752 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44753 44754 else 44755 # We're on a unix platform. Hooray! :) 44756 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44757 has_space=`$ECHO "$path" | $GREP " "` 44758 if test "x$has_space" != x; then 44759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44760 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44761 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44762 fi 44763 44764 # Use eval to expand a potential ~ 44765 eval path="$path" 44766 if test ! -f "$path" && test ! -d "$path"; then 44767 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44768 fi 44769 44770 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44771 fi 44772 fi 44773 44774 44775 # Only process if variable expands to non-empty 44776 44777 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44779 44780 # Input might be given as Windows format, start by converting to 44781 # unix format. 44782 path="$POTENTIAL_FREETYPE_LIB_PATH" 44783 new_path=`$CYGPATH -u "$path"` 44784 44785 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44786 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44787 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44788 # "foo.exe" is OK but "foo" is an error. 44789 # 44790 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44791 # It is also a way to make sure we got the proper file name for the real test later on. 44792 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44793 if test "x$test_shortpath" = x; then 44794 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44795 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44796 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44797 fi 44798 44799 # Call helper function which possibly converts this using DOS-style short mode. 44800 # If so, the updated path is stored in $new_path. 44801 44802 input_path="$new_path" 44803 # Check if we need to convert this using DOS-style short mode. If the path 44804 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44805 # take no chances and rewrite it. 44806 # Note: m4 eats our [], so we need to use [ and ] instead. 44807 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44808 if test "x$has_forbidden_chars" != x; then 44809 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44810 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44811 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44812 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44813 # Going to short mode and back again did indeed matter. Since short mode is 44814 # case insensitive, let's make it lowercase to improve readability. 44815 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44816 # Now convert it back to Unix-stile (cygpath) 44817 input_path=`$CYGPATH -u "$shortmode_path"` 44818 new_path="$input_path" 44819 fi 44820 fi 44821 44822 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44823 if test "x$test_cygdrive_prefix" = x; then 44824 # As a simple fix, exclude /usr/bin since it's not a real path. 44825 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44826 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44827 # a path prefixed by /cygdrive for fixpath to work. 44828 new_path="$CYGWIN_ROOT_PATH$input_path" 44829 fi 44830 fi 44831 44832 44833 if test "x$path" != "x$new_path"; then 44834 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44835 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44836 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44837 fi 44838 44839 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44840 44841 path="$POTENTIAL_FREETYPE_LIB_PATH" 44842 has_colon=`$ECHO $path | $GREP ^.:` 44843 new_path="$path" 44844 if test "x$has_colon" = x; then 44845 # Not in mixed or Windows style, start by that. 44846 new_path=`cmd //c echo $path` 44847 fi 44848 44849 44850 input_path="$new_path" 44851 # Check if we need to convert this using DOS-style short mode. If the path 44852 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44853 # take no chances and rewrite it. 44854 # Note: m4 eats our [], so we need to use [ and ] instead. 44855 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44856 if test "x$has_forbidden_chars" != x; then 44857 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44858 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44859 fi 44860 44861 44862 windows_path="$new_path" 44863 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44864 unix_path=`$CYGPATH -u "$windows_path"` 44865 new_path="$unix_path" 44866 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44867 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44868 new_path="$unix_path" 44869 fi 44870 44871 if test "x$path" != "x$new_path"; then 44872 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44873 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44874 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44875 fi 44876 44877 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44878 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44879 44880 else 44881 # We're on a unix platform. Hooray! :) 44882 path="$POTENTIAL_FREETYPE_LIB_PATH" 44883 has_space=`$ECHO "$path" | $GREP " "` 44884 if test "x$has_space" != x; then 44885 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44886 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44887 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44888 fi 44889 44890 # Use eval to expand a potential ~ 44891 eval path="$path" 44892 if test ! -f "$path" && test ! -d "$path"; then 44893 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44894 fi 44895 44896 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44897 fi 44898 fi 44899 44900 44901 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44903 $as_echo_n "checking for freetype includes... " >&6; } 44904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44905 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44906 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44908 $as_echo_n "checking for freetype libraries... " >&6; } 44909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44910 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44911 fi 44912 44913 if test "x$FOUND_FREETYPE" != xyes; then 44914 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44915 fi 44916 else 44917 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44918 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44919 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 44920 fi 44921 else 44922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 44923 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 44924 fi 44925 fi 44926 44927 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44928 # User has specified settings 44929 44930 if test "x$BUNDLE_FREETYPE" = x; then 44931 # If not specified, default is to bundle freetype 44932 BUNDLE_FREETYPE=yes 44933 fi 44934 44935 if test "x$with_freetype" != x; then 44936 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44937 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44938 fi 44939 44940 # Allow --with-freetype-lib and --with-freetype-include to override 44941 if test "x$with_freetype_include" != x; then 44942 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44943 fi 44944 if test "x$with_freetype_lib" != x; then 44945 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44946 fi 44947 44948 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44949 # Okay, we got it. Check that it works. 44950 44951 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44952 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44953 METHOD="--with-freetype" 44954 44955 # Let's start with an optimistic view of the world :-) 44956 FOUND_FREETYPE=yes 44957 44958 # First look for the canonical freetype main include file ft2build.h. 44959 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44960 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44961 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44962 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44963 # Fail. 44964 FOUND_FREETYPE=no 44965 fi 44966 fi 44967 44968 if test "x$FOUND_FREETYPE" = xyes; then 44969 # Include file found, let's continue the sanity check. 44970 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44971 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44972 44973 # Reset to default value 44974 FREETYPE_BASE_NAME=freetype 44975 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44976 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44977 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44978 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44979 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44980 # for the .6 version explicitly. 44981 FREETYPE_BASE_NAME=freetype.6 44982 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44983 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44984 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44985 else 44986 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44987 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44988 FOUND_FREETYPE=no 44989 fi 44990 else 44991 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44992 # On Windows, we will need both .lib and .dll file. 44993 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44994 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44995 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44996 FOUND_FREETYPE=no 44997 fi 44998 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44999 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45000 # Found lib in isa dir, use that instead. 45001 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45002 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45003 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45004 fi 45005 fi 45006 fi 45007 45008 if test "x$FOUND_FREETYPE" = xyes; then 45009 45010 # Only process if variable expands to non-empty 45011 45012 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 45013 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45014 45015 # Input might be given as Windows format, start by converting to 45016 # unix format. 45017 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45018 new_path=`$CYGPATH -u "$path"` 45019 45020 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45021 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45022 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45023 # "foo.exe" is OK but "foo" is an error. 45024 # 45025 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45026 # It is also a way to make sure we got the proper file name for the real test later on. 45027 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45028 if test "x$test_shortpath" = x; then 45029 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45030 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45031 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45032 fi 45033 45034 # Call helper function which possibly converts this using DOS-style short mode. 45035 # If so, the updated path is stored in $new_path. 45036 45037 input_path="$new_path" 45038 # Check if we need to convert this using DOS-style short mode. If the path 45039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45040 # take no chances and rewrite it. 45041 # Note: m4 eats our [], so we need to use [ and ] instead. 45042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45043 if test "x$has_forbidden_chars" != x; then 45044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45045 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45046 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45047 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45048 # Going to short mode and back again did indeed matter. Since short mode is 45049 # case insensitive, let's make it lowercase to improve readability. 45050 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45051 # Now convert it back to Unix-stile (cygpath) 45052 input_path=`$CYGPATH -u "$shortmode_path"` 45053 new_path="$input_path" 45054 fi 45055 fi 45056 45057 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45058 if test "x$test_cygdrive_prefix" = x; then 45059 # As a simple fix, exclude /usr/bin since it's not a real path. 45060 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45061 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45062 # a path prefixed by /cygdrive for fixpath to work. 45063 new_path="$CYGWIN_ROOT_PATH$input_path" 45064 fi 45065 fi 45066 45067 45068 if test "x$path" != "x$new_path"; then 45069 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45070 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45071 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45072 fi 45073 45074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45075 45076 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45077 has_colon=`$ECHO $path | $GREP ^.:` 45078 new_path="$path" 45079 if test "x$has_colon" = x; then 45080 # Not in mixed or Windows style, start by that. 45081 new_path=`cmd //c echo $path` 45082 fi 45083 45084 45085 input_path="$new_path" 45086 # Check if we need to convert this using DOS-style short mode. If the path 45087 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45088 # take no chances and rewrite it. 45089 # Note: m4 eats our [], so we need to use [ and ] instead. 45090 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45091 if test "x$has_forbidden_chars" != x; then 45092 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45093 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45094 fi 45095 45096 45097 windows_path="$new_path" 45098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45099 unix_path=`$CYGPATH -u "$windows_path"` 45100 new_path="$unix_path" 45101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45102 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45103 new_path="$unix_path" 45104 fi 45105 45106 if test "x$path" != "x$new_path"; then 45107 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45108 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45109 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45110 fi 45111 45112 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45113 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45114 45115 else 45116 # We're on a unix platform. Hooray! :) 45117 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45118 has_space=`$ECHO "$path" | $GREP " "` 45119 if test "x$has_space" != x; then 45120 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45121 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45122 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45123 fi 45124 45125 # Use eval to expand a potential ~ 45126 eval path="$path" 45127 if test ! -f "$path" && test ! -d "$path"; then 45128 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45129 fi 45130 45131 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45132 fi 45133 fi 45134 45135 45136 # Only process if variable expands to non-empty 45137 45138 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 45139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45140 45141 # Input might be given as Windows format, start by converting to 45142 # unix format. 45143 path="$POTENTIAL_FREETYPE_LIB_PATH" 45144 new_path=`$CYGPATH -u "$path"` 45145 45146 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45147 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45148 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45149 # "foo.exe" is OK but "foo" is an error. 45150 # 45151 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45152 # It is also a way to make sure we got the proper file name for the real test later on. 45153 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45154 if test "x$test_shortpath" = x; then 45155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45156 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45157 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45158 fi 45159 45160 # Call helper function which possibly converts this using DOS-style short mode. 45161 # If so, the updated path is stored in $new_path. 45162 45163 input_path="$new_path" 45164 # Check if we need to convert this using DOS-style short mode. If the path 45165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45166 # take no chances and rewrite it. 45167 # Note: m4 eats our [], so we need to use [ and ] instead. 45168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45169 if test "x$has_forbidden_chars" != x; then 45170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45171 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45172 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45173 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45174 # Going to short mode and back again did indeed matter. Since short mode is 45175 # case insensitive, let's make it lowercase to improve readability. 45176 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45177 # Now convert it back to Unix-stile (cygpath) 45178 input_path=`$CYGPATH -u "$shortmode_path"` 45179 new_path="$input_path" 45180 fi 45181 fi 45182 45183 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45184 if test "x$test_cygdrive_prefix" = x; then 45185 # As a simple fix, exclude /usr/bin since it's not a real path. 45186 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45187 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45188 # a path prefixed by /cygdrive for fixpath to work. 45189 new_path="$CYGWIN_ROOT_PATH$input_path" 45190 fi 45191 fi 45192 45193 45194 if test "x$path" != "x$new_path"; then 45195 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45196 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45197 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45198 fi 45199 45200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45201 45202 path="$POTENTIAL_FREETYPE_LIB_PATH" 45203 has_colon=`$ECHO $path | $GREP ^.:` 45204 new_path="$path" 45205 if test "x$has_colon" = x; then 45206 # Not in mixed or Windows style, start by that. 45207 new_path=`cmd //c echo $path` 45208 fi 45209 45210 45211 input_path="$new_path" 45212 # Check if we need to convert this using DOS-style short mode. If the path 45213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45214 # take no chances and rewrite it. 45215 # Note: m4 eats our [], so we need to use [ and ] instead. 45216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45217 if test "x$has_forbidden_chars" != x; then 45218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45219 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45220 fi 45221 45222 45223 windows_path="$new_path" 45224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45225 unix_path=`$CYGPATH -u "$windows_path"` 45226 new_path="$unix_path" 45227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45229 new_path="$unix_path" 45230 fi 45231 45232 if test "x$path" != "x$new_path"; then 45233 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45234 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45235 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45236 fi 45237 45238 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45239 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45240 45241 else 45242 # We're on a unix platform. Hooray! :) 45243 path="$POTENTIAL_FREETYPE_LIB_PATH" 45244 has_space=`$ECHO "$path" | $GREP " "` 45245 if test "x$has_space" != x; then 45246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45247 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45248 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45249 fi 45250 45251 # Use eval to expand a potential ~ 45252 eval path="$path" 45253 if test ! -f "$path" && test ! -d "$path"; then 45254 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45255 fi 45256 45257 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45258 fi 45259 fi 45260 45261 45262 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45264 $as_echo_n "checking for freetype includes... " >&6; } 45265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45266 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45267 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45269 $as_echo_n "checking for freetype libraries... " >&6; } 45270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45271 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45272 fi 45273 45274 if test "x$FOUND_FREETYPE" != xyes; then 45275 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 45276 fi 45277 else 45278 # User specified only one of lib or include. This is an error. 45279 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 45280 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 45281 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 45282 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45283 else 45284 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 45285 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 45286 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45287 fi 45288 fi 45289 else 45290 # User did not specify settings, but we need freetype. Try to locate it. 45291 45292 if test "x$BUNDLE_FREETYPE" = x; then 45293 # If not specified, default is to bundle freetype only on windows 45294 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45295 BUNDLE_FREETYPE=yes 45296 else 45297 BUNDLE_FREETYPE=no 45298 fi 45299 fi 45300 45301 if test "x$FOUND_FREETYPE" != xyes; then 45302 # Check builddeps 45303 45304 45305 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 45306 # Source the builddeps file again, to make sure it uses the latest variables! 45307 . $builddepsfile 45308 # Look for a target and build machine specific resource! 45309 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 45310 if test "x$resource" = x; then 45311 # Ok, lets instead look for a target specific resource 45312 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 45313 fi 45314 if test "x$resource" = x; then 45315 # Ok, lets instead look for a build specific resource 45316 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 45317 fi 45318 if test "x$resource" = x; then 45319 # Ok, lets instead look for a generic resource 45320 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 45321 resource=${builddep_freetype2} 45322 fi 45323 if test "x$resource" != x; then 45324 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 45325 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 45326 # If the resource in the builddeps.conf file is an existing directory, 45327 # for example /java/linux/cups 45328 if test -d ${resource}; then 45329 depdir=${resource} 45330 else 45331 45332 # freetype2 is for example mymodule 45333 # $resource is for example libs/general/libmymod_1_2_3.zip 45334 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 45335 # $with_builddeps_dir is for example /localhome/builddeps 45336 # depdir is the name of the variable into which we store the depdir, eg MYMOD 45337 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 45338 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 45339 filename=`basename $resource` 45340 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 45341 filebase=${filename%%.*} 45342 extension=${filename#*.} 45343 installdir=$with_builddeps_dir/$filebase 45344 if test ! -f $installdir/$filename.unpacked; then 45345 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 45346 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 45347 if test ! -d $installdir; then 45348 mkdir -p $installdir 45349 fi 45350 if test ! -d $installdir; then 45351 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 45352 fi 45353 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 45354 touch $tmpfile 45355 if test ! -f $tmpfile; then 45356 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 45357 fi 45358 45359 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 45360 # $tmpfile is the local file name for the downloaded file. 45361 VALID_TOOL=no 45362 if test "x$BDEPS_FTP" = xwget; then 45363 VALID_TOOL=yes 45364 wget -O $tmpfile $with_builddeps_server/$resource 45365 fi 45366 if test "x$BDEPS_FTP" = xlftp; then 45367 VALID_TOOL=yes 45368 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 45369 fi 45370 if test "x$BDEPS_FTP" = xftp; then 45371 VALID_TOOL=yes 45372 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 45373 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 45374 FTPUSERPWD=${FTPSERVER%%@*} 45375 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 45376 FTPUSER=${userpwd%%:*} 45377 FTPPWD=${userpwd#*@} 45378 FTPSERVER=${FTPSERVER#*@} 45379 else 45380 FTPUSER=ftp 45381 FTPPWD=ftp 45382 fi 45383 # the "pass" command does not work on some 45384 # ftp clients (read ftp.exe) but if it works, 45385 # passive mode is better! 45386 ( \ 45387 echo "user $FTPUSER $FTPPWD" ; \ 45388 echo "pass" ; \ 45389 echo "bin" ; \ 45390 echo "get $FTPPATH $tmpfile" ; \ 45391 ) | ftp -in $FTPSERVER 45392 fi 45393 if test "x$VALID_TOOL" != xyes; then 45394 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 45395 fi 45396 45397 mv $tmpfile $installdir/$filename 45398 if test ! -s $installdir/$filename; then 45399 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 45400 fi 45401 case "$extension" in 45402 zip) echo "Unzipping $installdir/$filename..." 45403 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 45404 ;; 45405 tar.gz) echo "Untaring $installdir/$filename..." 45406 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45407 ;; 45408 tgz) echo "Untaring $installdir/$filename..." 45409 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45410 ;; 45411 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 45412 ;; 45413 esac 45414 fi 45415 if test -f $installdir/$filename.unpacked; then 45416 depdir=$installdir 45417 fi 45418 45419 fi 45420 # Source the builddeps file again, because in the previous command, the depdir 45421 # was updated to point at the current build dependency install directory. 45422 . $builddepsfile 45423 # Now extract variables from the builddeps.conf files. 45424 theroot=${builddep_freetype2_ROOT} 45425 thecflags=${builddep_freetype2_CFLAGS} 45426 thelibs=${builddep_freetype2_LIBS} 45427 if test "x$depdir" = x; then 45428 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 45429 fi 45430 FREETYPE=$depdir 45431 if test "x$theroot" != x; then 45432 FREETYPE="$theroot" 45433 fi 45434 if test "x$thecflags" != x; then 45435 FREETYPE_CFLAGS="$thecflags" 45436 fi 45437 if test "x$thelibs" != x; then 45438 FREETYPE_LIBS="$thelibs" 45439 fi 45440 FOUND_FREETYPE=yes 45441 else FOUND_FREETYPE=no 45442 45443 fi 45444 else FOUND_FREETYPE=no 45445 45446 fi 45447 45448 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45449 if test "x$FOUND_FREETYPE" = xyes; then 45450 if test "x$BUNDLE_FREETYPE" = xyes; then 45451 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 45452 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 45453 FOUND_FREETYPE=no 45454 else 45455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45456 $as_echo_n "checking for freetype... " >&6; } 45457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 45458 $as_echo "yes (using builddeps)" >&6; } 45459 fi 45460 fi 45461 fi 45462 45463 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 45464 if test "x$SYSROOT" = x; then 45465 if test "x$FOUND_FREETYPE" != xyes; then 45466 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 45467 if test "x$PKG_CONFIG" != x; then 45468 45469 pkg_failed=no 45470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 45471 $as_echo_n "checking for FREETYPE... " >&6; } 45472 45473 if test -n "$FREETYPE_CFLAGS"; then 45474 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 45475 elif test -n "$PKG_CONFIG"; then 45476 if test -n "$PKG_CONFIG" && \ 45477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45478 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45479 ac_status=$? 45480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45481 test $ac_status = 0; }; then 45482 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 45483 else 45484 pkg_failed=yes 45485 fi 45486 else 45487 pkg_failed=untried 45488 fi 45489 if test -n "$FREETYPE_LIBS"; then 45490 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 45491 elif test -n "$PKG_CONFIG"; then 45492 if test -n "$PKG_CONFIG" && \ 45493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45494 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45495 ac_status=$? 45496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45497 test $ac_status = 0; }; then 45498 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 45499 else 45500 pkg_failed=yes 45501 fi 45502 else 45503 pkg_failed=untried 45504 fi 45505 45506 45507 45508 if test $pkg_failed = yes; then 45509 45510 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45511 _pkg_short_errors_supported=yes 45512 else 45513 _pkg_short_errors_supported=no 45514 fi 45515 if test $_pkg_short_errors_supported = yes; then 45516 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 45517 else 45518 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 45519 fi 45520 # Put the nasty error message in config.log where it belongs 45521 echo "$FREETYPE_PKG_ERRORS" >&5 45522 45523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45524 $as_echo "no" >&6; } 45525 FOUND_FREETYPE=no 45526 elif test $pkg_failed = untried; then 45527 FOUND_FREETYPE=no 45528 else 45529 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 45530 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 45531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45532 $as_echo "yes" >&6; } 45533 FOUND_FREETYPE=yes 45534 fi 45535 if test "x$FOUND_FREETYPE" = xyes; then 45536 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 45537 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 45538 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 45539 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 45540 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 45541 fi 45542 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45543 if test "x$BUNDLE_FREETYPE" = xyes; then 45544 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 45545 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 45546 FOUND_FREETYPE=no 45547 else 45548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45549 $as_echo_n "checking for freetype... " >&6; } 45550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 45551 $as_echo "yes (using pkg-config)" >&6; } 45552 fi 45553 fi 45554 fi 45555 fi 45556 fi 45557 45558 if test "x$FOUND_FREETYPE" != xyes; then 45559 # Check in well-known locations 45560 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45561 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 45562 45563 windows_path="$FREETYPE_BASE_DIR" 45564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45565 unix_path=`$CYGPATH -u "$windows_path"` 45566 FREETYPE_BASE_DIR="$unix_path" 45567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45568 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45569 FREETYPE_BASE_DIR="$unix_path" 45570 fi 45571 45572 45573 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45574 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45575 METHOD="well-known location" 45576 45577 # Let's start with an optimistic view of the world :-) 45578 FOUND_FREETYPE=yes 45579 45580 # First look for the canonical freetype main include file ft2build.h. 45581 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45582 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45583 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45584 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45585 # Fail. 45586 FOUND_FREETYPE=no 45587 fi 45588 fi 45589 45590 if test "x$FOUND_FREETYPE" = xyes; then 45591 # Include file found, let's continue the sanity check. 45592 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45593 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45594 45595 # Reset to default value 45596 FREETYPE_BASE_NAME=freetype 45597 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45598 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45599 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45600 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45601 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45602 # for the .6 version explicitly. 45603 FREETYPE_BASE_NAME=freetype.6 45604 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45605 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45606 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45607 else 45608 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45609 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45610 FOUND_FREETYPE=no 45611 fi 45612 else 45613 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45614 # On Windows, we will need both .lib and .dll file. 45615 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45616 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45617 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45618 FOUND_FREETYPE=no 45619 fi 45620 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45621 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45622 # Found lib in isa dir, use that instead. 45623 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45624 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45625 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45626 fi 45627 fi 45628 fi 45629 45630 if test "x$FOUND_FREETYPE" = xyes; then 45631 45632 # Only process if variable expands to non-empty 45633 45634 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 45635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45636 45637 # Input might be given as Windows format, start by converting to 45638 # unix format. 45639 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45640 new_path=`$CYGPATH -u "$path"` 45641 45642 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45643 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45644 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45645 # "foo.exe" is OK but "foo" is an error. 45646 # 45647 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45648 # It is also a way to make sure we got the proper file name for the real test later on. 45649 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45650 if test "x$test_shortpath" = x; then 45651 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45652 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45653 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45654 fi 45655 45656 # Call helper function which possibly converts this using DOS-style short mode. 45657 # If so, the updated path is stored in $new_path. 45658 45659 input_path="$new_path" 45660 # Check if we need to convert this using DOS-style short mode. If the path 45661 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45662 # take no chances and rewrite it. 45663 # Note: m4 eats our [], so we need to use [ and ] instead. 45664 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45665 if test "x$has_forbidden_chars" != x; then 45666 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45667 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45668 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45669 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45670 # Going to short mode and back again did indeed matter. Since short mode is 45671 # case insensitive, let's make it lowercase to improve readability. 45672 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45673 # Now convert it back to Unix-stile (cygpath) 45674 input_path=`$CYGPATH -u "$shortmode_path"` 45675 new_path="$input_path" 45676 fi 45677 fi 45678 45679 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45680 if test "x$test_cygdrive_prefix" = x; then 45681 # As a simple fix, exclude /usr/bin since it's not a real path. 45682 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45683 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45684 # a path prefixed by /cygdrive for fixpath to work. 45685 new_path="$CYGWIN_ROOT_PATH$input_path" 45686 fi 45687 fi 45688 45689 45690 if test "x$path" != "x$new_path"; then 45691 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45692 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45693 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45694 fi 45695 45696 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45697 45698 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45699 has_colon=`$ECHO $path | $GREP ^.:` 45700 new_path="$path" 45701 if test "x$has_colon" = x; then 45702 # Not in mixed or Windows style, start by that. 45703 new_path=`cmd //c echo $path` 45704 fi 45705 45706 45707 input_path="$new_path" 45708 # Check if we need to convert this using DOS-style short mode. If the path 45709 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45710 # take no chances and rewrite it. 45711 # Note: m4 eats our [], so we need to use [ and ] instead. 45712 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45713 if test "x$has_forbidden_chars" != x; then 45714 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45715 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45716 fi 45717 45718 45719 windows_path="$new_path" 45720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45721 unix_path=`$CYGPATH -u "$windows_path"` 45722 new_path="$unix_path" 45723 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45724 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45725 new_path="$unix_path" 45726 fi 45727 45728 if test "x$path" != "x$new_path"; then 45729 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45730 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45731 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45732 fi 45733 45734 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45735 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45736 45737 else 45738 # We're on a unix platform. Hooray! :) 45739 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45740 has_space=`$ECHO "$path" | $GREP " "` 45741 if test "x$has_space" != x; then 45742 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45743 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45744 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45745 fi 45746 45747 # Use eval to expand a potential ~ 45748 eval path="$path" 45749 if test ! -f "$path" && test ! -d "$path"; then 45750 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45751 fi 45752 45753 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45754 fi 45755 fi 45756 45757 45758 # Only process if variable expands to non-empty 45759 45760 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 45761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45762 45763 # Input might be given as Windows format, start by converting to 45764 # unix format. 45765 path="$POTENTIAL_FREETYPE_LIB_PATH" 45766 new_path=`$CYGPATH -u "$path"` 45767 45768 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45769 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45770 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45771 # "foo.exe" is OK but "foo" is an error. 45772 # 45773 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45774 # It is also a way to make sure we got the proper file name for the real test later on. 45775 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45776 if test "x$test_shortpath" = x; then 45777 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45778 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45779 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45780 fi 45781 45782 # Call helper function which possibly converts this using DOS-style short mode. 45783 # If so, the updated path is stored in $new_path. 45784 45785 input_path="$new_path" 45786 # Check if we need to convert this using DOS-style short mode. If the path 45787 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45788 # take no chances and rewrite it. 45789 # Note: m4 eats our [], so we need to use [ and ] instead. 45790 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45791 if test "x$has_forbidden_chars" != x; then 45792 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45793 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45794 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45795 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45796 # Going to short mode and back again did indeed matter. Since short mode is 45797 # case insensitive, let's make it lowercase to improve readability. 45798 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45799 # Now convert it back to Unix-stile (cygpath) 45800 input_path=`$CYGPATH -u "$shortmode_path"` 45801 new_path="$input_path" 45802 fi 45803 fi 45804 45805 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45806 if test "x$test_cygdrive_prefix" = x; then 45807 # As a simple fix, exclude /usr/bin since it's not a real path. 45808 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45809 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45810 # a path prefixed by /cygdrive for fixpath to work. 45811 new_path="$CYGWIN_ROOT_PATH$input_path" 45812 fi 45813 fi 45814 45815 45816 if test "x$path" != "x$new_path"; then 45817 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45818 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45819 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45820 fi 45821 45822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45823 45824 path="$POTENTIAL_FREETYPE_LIB_PATH" 45825 has_colon=`$ECHO $path | $GREP ^.:` 45826 new_path="$path" 45827 if test "x$has_colon" = x; then 45828 # Not in mixed or Windows style, start by that. 45829 new_path=`cmd //c echo $path` 45830 fi 45831 45832 45833 input_path="$new_path" 45834 # Check if we need to convert this using DOS-style short mode. If the path 45835 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45836 # take no chances and rewrite it. 45837 # Note: m4 eats our [], so we need to use [ and ] instead. 45838 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45839 if test "x$has_forbidden_chars" != x; then 45840 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45841 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45842 fi 45843 45844 45845 windows_path="$new_path" 45846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45847 unix_path=`$CYGPATH -u "$windows_path"` 45848 new_path="$unix_path" 45849 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45850 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45851 new_path="$unix_path" 45852 fi 45853 45854 if test "x$path" != "x$new_path"; then 45855 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45856 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45857 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45858 fi 45859 45860 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45861 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45862 45863 else 45864 # We're on a unix platform. Hooray! :) 45865 path="$POTENTIAL_FREETYPE_LIB_PATH" 45866 has_space=`$ECHO "$path" | $GREP " "` 45867 if test "x$has_space" != x; then 45868 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45869 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45870 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45871 fi 45872 45873 # Use eval to expand a potential ~ 45874 eval path="$path" 45875 if test ! -f "$path" && test ! -d "$path"; then 45876 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45877 fi 45878 45879 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45880 fi 45881 fi 45882 45883 45884 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45886 $as_echo_n "checking for freetype includes... " >&6; } 45887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45888 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45889 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45891 $as_echo_n "checking for freetype libraries... " >&6; } 45892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45893 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45894 fi 45895 45896 if test "x$FOUND_FREETYPE" != xyes; then 45897 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45898 45899 windows_path="$FREETYPE_BASE_DIR" 45900 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45901 unix_path=`$CYGPATH -u "$windows_path"` 45902 FREETYPE_BASE_DIR="$unix_path" 45903 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45904 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45905 FREETYPE_BASE_DIR="$unix_path" 45906 fi 45907 45908 45909 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45910 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45911 METHOD="well-known location" 45912 45913 # Let's start with an optimistic view of the world :-) 45914 FOUND_FREETYPE=yes 45915 45916 # First look for the canonical freetype main include file ft2build.h. 45917 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45918 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45919 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45920 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45921 # Fail. 45922 FOUND_FREETYPE=no 45923 fi 45924 fi 45925 45926 if test "x$FOUND_FREETYPE" = xyes; then 45927 # Include file found, let's continue the sanity check. 45928 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45929 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45930 45931 # Reset to default value 45932 FREETYPE_BASE_NAME=freetype 45933 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45934 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45935 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45936 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45937 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45938 # for the .6 version explicitly. 45939 FREETYPE_BASE_NAME=freetype.6 45940 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45941 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45942 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45943 else 45944 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45945 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45946 FOUND_FREETYPE=no 45947 fi 45948 else 45949 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45950 # On Windows, we will need both .lib and .dll file. 45951 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45952 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45953 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45954 FOUND_FREETYPE=no 45955 fi 45956 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45957 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45958 # Found lib in isa dir, use that instead. 45959 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45960 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45961 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45962 fi 45963 fi 45964 fi 45965 45966 if test "x$FOUND_FREETYPE" = xyes; then 45967 45968 # Only process if variable expands to non-empty 45969 45970 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 45971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45972 45973 # Input might be given as Windows format, start by converting to 45974 # unix format. 45975 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45976 new_path=`$CYGPATH -u "$path"` 45977 45978 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45979 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45980 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45981 # "foo.exe" is OK but "foo" is an error. 45982 # 45983 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45984 # It is also a way to make sure we got the proper file name for the real test later on. 45985 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45986 if test "x$test_shortpath" = x; then 45987 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45988 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45989 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45990 fi 45991 45992 # Call helper function which possibly converts this using DOS-style short mode. 45993 # If so, the updated path is stored in $new_path. 45994 45995 input_path="$new_path" 45996 # Check if we need to convert this using DOS-style short mode. If the path 45997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45998 # take no chances and rewrite it. 45999 # Note: m4 eats our [], so we need to use [ and ] instead. 46000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46001 if test "x$has_forbidden_chars" != x; then 46002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46003 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46004 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46005 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46006 # Going to short mode and back again did indeed matter. Since short mode is 46007 # case insensitive, let's make it lowercase to improve readability. 46008 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46009 # Now convert it back to Unix-stile (cygpath) 46010 input_path=`$CYGPATH -u "$shortmode_path"` 46011 new_path="$input_path" 46012 fi 46013 fi 46014 46015 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46016 if test "x$test_cygdrive_prefix" = x; then 46017 # As a simple fix, exclude /usr/bin since it's not a real path. 46018 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46019 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46020 # a path prefixed by /cygdrive for fixpath to work. 46021 new_path="$CYGWIN_ROOT_PATH$input_path" 46022 fi 46023 fi 46024 46025 46026 if test "x$path" != "x$new_path"; then 46027 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46028 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46029 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46030 fi 46031 46032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46033 46034 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46035 has_colon=`$ECHO $path | $GREP ^.:` 46036 new_path="$path" 46037 if test "x$has_colon" = x; then 46038 # Not in mixed or Windows style, start by that. 46039 new_path=`cmd //c echo $path` 46040 fi 46041 46042 46043 input_path="$new_path" 46044 # Check if we need to convert this using DOS-style short mode. If the path 46045 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46046 # take no chances and rewrite it. 46047 # Note: m4 eats our [], so we need to use [ and ] instead. 46048 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46049 if test "x$has_forbidden_chars" != x; then 46050 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46051 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46052 fi 46053 46054 46055 windows_path="$new_path" 46056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46057 unix_path=`$CYGPATH -u "$windows_path"` 46058 new_path="$unix_path" 46059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46060 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46061 new_path="$unix_path" 46062 fi 46063 46064 if test "x$path" != "x$new_path"; then 46065 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46066 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46067 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46068 fi 46069 46070 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46071 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46072 46073 else 46074 # We're on a unix platform. Hooray! :) 46075 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46076 has_space=`$ECHO "$path" | $GREP " "` 46077 if test "x$has_space" != x; then 46078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46079 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46080 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46081 fi 46082 46083 # Use eval to expand a potential ~ 46084 eval path="$path" 46085 if test ! -f "$path" && test ! -d "$path"; then 46086 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46087 fi 46088 46089 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46090 fi 46091 fi 46092 46093 46094 # Only process if variable expands to non-empty 46095 46096 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46098 46099 # Input might be given as Windows format, start by converting to 46100 # unix format. 46101 path="$POTENTIAL_FREETYPE_LIB_PATH" 46102 new_path=`$CYGPATH -u "$path"` 46103 46104 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46105 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46106 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46107 # "foo.exe" is OK but "foo" is an error. 46108 # 46109 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46110 # It is also a way to make sure we got the proper file name for the real test later on. 46111 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46112 if test "x$test_shortpath" = x; then 46113 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46114 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46115 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46116 fi 46117 46118 # Call helper function which possibly converts this using DOS-style short mode. 46119 # If so, the updated path is stored in $new_path. 46120 46121 input_path="$new_path" 46122 # Check if we need to convert this using DOS-style short mode. If the path 46123 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46124 # take no chances and rewrite it. 46125 # Note: m4 eats our [], so we need to use [ and ] instead. 46126 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46127 if test "x$has_forbidden_chars" != x; then 46128 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46129 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46130 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46131 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46132 # Going to short mode and back again did indeed matter. Since short mode is 46133 # case insensitive, let's make it lowercase to improve readability. 46134 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46135 # Now convert it back to Unix-stile (cygpath) 46136 input_path=`$CYGPATH -u "$shortmode_path"` 46137 new_path="$input_path" 46138 fi 46139 fi 46140 46141 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46142 if test "x$test_cygdrive_prefix" = x; then 46143 # As a simple fix, exclude /usr/bin since it's not a real path. 46144 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46145 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46146 # a path prefixed by /cygdrive for fixpath to work. 46147 new_path="$CYGWIN_ROOT_PATH$input_path" 46148 fi 46149 fi 46150 46151 46152 if test "x$path" != "x$new_path"; then 46153 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46154 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46155 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46156 fi 46157 46158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46159 46160 path="$POTENTIAL_FREETYPE_LIB_PATH" 46161 has_colon=`$ECHO $path | $GREP ^.:` 46162 new_path="$path" 46163 if test "x$has_colon" = x; then 46164 # Not in mixed or Windows style, start by that. 46165 new_path=`cmd //c echo $path` 46166 fi 46167 46168 46169 input_path="$new_path" 46170 # Check if we need to convert this using DOS-style short mode. If the path 46171 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46172 # take no chances and rewrite it. 46173 # Note: m4 eats our [], so we need to use [ and ] instead. 46174 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46175 if test "x$has_forbidden_chars" != x; then 46176 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46177 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46178 fi 46179 46180 46181 windows_path="$new_path" 46182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46183 unix_path=`$CYGPATH -u "$windows_path"` 46184 new_path="$unix_path" 46185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46186 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46187 new_path="$unix_path" 46188 fi 46189 46190 if test "x$path" != "x$new_path"; then 46191 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46192 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46193 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46194 fi 46195 46196 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46197 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46198 46199 else 46200 # We're on a unix platform. Hooray! :) 46201 path="$POTENTIAL_FREETYPE_LIB_PATH" 46202 has_space=`$ECHO "$path" | $GREP " "` 46203 if test "x$has_space" != x; then 46204 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46205 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46206 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46207 fi 46208 46209 # Use eval to expand a potential ~ 46210 eval path="$path" 46211 if test ! -f "$path" && test ! -d "$path"; then 46212 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46213 fi 46214 46215 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46216 fi 46217 fi 46218 46219 46220 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46222 $as_echo_n "checking for freetype includes... " >&6; } 46223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46224 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46225 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46227 $as_echo_n "checking for freetype libraries... " >&6; } 46228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46229 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46230 fi 46231 46232 fi 46233 else 46234 FREETYPE_BASE_DIR="$SYSROOT/usr" 46235 46236 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46237 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46238 METHOD="well-known location" 46239 46240 # Let's start with an optimistic view of the world :-) 46241 FOUND_FREETYPE=yes 46242 46243 # First look for the canonical freetype main include file ft2build.h. 46244 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46245 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46246 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46247 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46248 # Fail. 46249 FOUND_FREETYPE=no 46250 fi 46251 fi 46252 46253 if test "x$FOUND_FREETYPE" = xyes; then 46254 # Include file found, let's continue the sanity check. 46255 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46256 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46257 46258 # Reset to default value 46259 FREETYPE_BASE_NAME=freetype 46260 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46261 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46262 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46263 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46264 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46265 # for the .6 version explicitly. 46266 FREETYPE_BASE_NAME=freetype.6 46267 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46268 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46269 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46270 else 46271 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46272 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46273 FOUND_FREETYPE=no 46274 fi 46275 else 46276 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46277 # On Windows, we will need both .lib and .dll file. 46278 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46279 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46280 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46281 FOUND_FREETYPE=no 46282 fi 46283 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46284 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46285 # Found lib in isa dir, use that instead. 46286 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46287 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46288 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46289 fi 46290 fi 46291 fi 46292 46293 if test "x$FOUND_FREETYPE" = xyes; then 46294 46295 # Only process if variable expands to non-empty 46296 46297 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46299 46300 # Input might be given as Windows format, start by converting to 46301 # unix format. 46302 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46303 new_path=`$CYGPATH -u "$path"` 46304 46305 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46306 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46307 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46308 # "foo.exe" is OK but "foo" is an error. 46309 # 46310 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46311 # It is also a way to make sure we got the proper file name for the real test later on. 46312 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46313 if test "x$test_shortpath" = x; then 46314 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46315 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46316 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46317 fi 46318 46319 # Call helper function which possibly converts this using DOS-style short mode. 46320 # If so, the updated path is stored in $new_path. 46321 46322 input_path="$new_path" 46323 # Check if we need to convert this using DOS-style short mode. If the path 46324 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46325 # take no chances and rewrite it. 46326 # Note: m4 eats our [], so we need to use [ and ] instead. 46327 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46328 if test "x$has_forbidden_chars" != x; then 46329 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46330 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46331 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46332 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46333 # Going to short mode and back again did indeed matter. Since short mode is 46334 # case insensitive, let's make it lowercase to improve readability. 46335 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46336 # Now convert it back to Unix-stile (cygpath) 46337 input_path=`$CYGPATH -u "$shortmode_path"` 46338 new_path="$input_path" 46339 fi 46340 fi 46341 46342 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46343 if test "x$test_cygdrive_prefix" = x; then 46344 # As a simple fix, exclude /usr/bin since it's not a real path. 46345 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46346 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46347 # a path prefixed by /cygdrive for fixpath to work. 46348 new_path="$CYGWIN_ROOT_PATH$input_path" 46349 fi 46350 fi 46351 46352 46353 if test "x$path" != "x$new_path"; then 46354 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46355 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46356 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46357 fi 46358 46359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46360 46361 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46362 has_colon=`$ECHO $path | $GREP ^.:` 46363 new_path="$path" 46364 if test "x$has_colon" = x; then 46365 # Not in mixed or Windows style, start by that. 46366 new_path=`cmd //c echo $path` 46367 fi 46368 46369 46370 input_path="$new_path" 46371 # Check if we need to convert this using DOS-style short mode. If the path 46372 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46373 # take no chances and rewrite it. 46374 # Note: m4 eats our [], so we need to use [ and ] instead. 46375 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46376 if test "x$has_forbidden_chars" != x; then 46377 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46378 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46379 fi 46380 46381 46382 windows_path="$new_path" 46383 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46384 unix_path=`$CYGPATH -u "$windows_path"` 46385 new_path="$unix_path" 46386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46387 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46388 new_path="$unix_path" 46389 fi 46390 46391 if test "x$path" != "x$new_path"; then 46392 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46393 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46394 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46395 fi 46396 46397 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46398 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46399 46400 else 46401 # We're on a unix platform. Hooray! :) 46402 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46403 has_space=`$ECHO "$path" | $GREP " "` 46404 if test "x$has_space" != x; then 46405 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46406 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46407 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46408 fi 46409 46410 # Use eval to expand a potential ~ 46411 eval path="$path" 46412 if test ! -f "$path" && test ! -d "$path"; then 46413 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46414 fi 46415 46416 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46417 fi 46418 fi 46419 46420 46421 # Only process if variable expands to non-empty 46422 46423 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46424 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46425 46426 # Input might be given as Windows format, start by converting to 46427 # unix format. 46428 path="$POTENTIAL_FREETYPE_LIB_PATH" 46429 new_path=`$CYGPATH -u "$path"` 46430 46431 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46432 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46433 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46434 # "foo.exe" is OK but "foo" is an error. 46435 # 46436 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46437 # It is also a way to make sure we got the proper file name for the real test later on. 46438 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46439 if test "x$test_shortpath" = x; then 46440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46441 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46442 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46443 fi 46444 46445 # Call helper function which possibly converts this using DOS-style short mode. 46446 # If so, the updated path is stored in $new_path. 46447 46448 input_path="$new_path" 46449 # Check if we need to convert this using DOS-style short mode. If the path 46450 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46451 # take no chances and rewrite it. 46452 # Note: m4 eats our [], so we need to use [ and ] instead. 46453 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46454 if test "x$has_forbidden_chars" != x; then 46455 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46456 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46457 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46458 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46459 # Going to short mode and back again did indeed matter. Since short mode is 46460 # case insensitive, let's make it lowercase to improve readability. 46461 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46462 # Now convert it back to Unix-stile (cygpath) 46463 input_path=`$CYGPATH -u "$shortmode_path"` 46464 new_path="$input_path" 46465 fi 46466 fi 46467 46468 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46469 if test "x$test_cygdrive_prefix" = x; then 46470 # As a simple fix, exclude /usr/bin since it's not a real path. 46471 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46472 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46473 # a path prefixed by /cygdrive for fixpath to work. 46474 new_path="$CYGWIN_ROOT_PATH$input_path" 46475 fi 46476 fi 46477 46478 46479 if test "x$path" != "x$new_path"; then 46480 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46481 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46482 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46483 fi 46484 46485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46486 46487 path="$POTENTIAL_FREETYPE_LIB_PATH" 46488 has_colon=`$ECHO $path | $GREP ^.:` 46489 new_path="$path" 46490 if test "x$has_colon" = x; then 46491 # Not in mixed or Windows style, start by that. 46492 new_path=`cmd //c echo $path` 46493 fi 46494 46495 46496 input_path="$new_path" 46497 # Check if we need to convert this using DOS-style short mode. If the path 46498 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46499 # take no chances and rewrite it. 46500 # Note: m4 eats our [], so we need to use [ and ] instead. 46501 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46502 if test "x$has_forbidden_chars" != x; then 46503 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46504 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46505 fi 46506 46507 46508 windows_path="$new_path" 46509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46510 unix_path=`$CYGPATH -u "$windows_path"` 46511 new_path="$unix_path" 46512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46513 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46514 new_path="$unix_path" 46515 fi 46516 46517 if test "x$path" != "x$new_path"; then 46518 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46519 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46520 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46521 fi 46522 46523 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46524 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46525 46526 else 46527 # We're on a unix platform. Hooray! :) 46528 path="$POTENTIAL_FREETYPE_LIB_PATH" 46529 has_space=`$ECHO "$path" | $GREP " "` 46530 if test "x$has_space" != x; then 46531 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46532 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46533 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46534 fi 46535 46536 # Use eval to expand a potential ~ 46537 eval path="$path" 46538 if test ! -f "$path" && test ! -d "$path"; then 46539 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46540 fi 46541 46542 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46543 fi 46544 fi 46545 46546 46547 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46549 $as_echo_n "checking for freetype includes... " >&6; } 46550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46551 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46552 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46554 $as_echo_n "checking for freetype libraries... " >&6; } 46555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46556 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46557 fi 46558 46559 46560 if test "x$FOUND_FREETYPE" != xyes; then 46561 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 46562 46563 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46564 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46565 METHOD="well-known location" 46566 46567 # Let's start with an optimistic view of the world :-) 46568 FOUND_FREETYPE=yes 46569 46570 # First look for the canonical freetype main include file ft2build.h. 46571 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46572 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46573 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46574 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46575 # Fail. 46576 FOUND_FREETYPE=no 46577 fi 46578 fi 46579 46580 if test "x$FOUND_FREETYPE" = xyes; then 46581 # Include file found, let's continue the sanity check. 46582 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46583 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46584 46585 # Reset to default value 46586 FREETYPE_BASE_NAME=freetype 46587 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46588 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46589 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46590 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46591 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46592 # for the .6 version explicitly. 46593 FREETYPE_BASE_NAME=freetype.6 46594 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46595 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46596 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46597 else 46598 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46599 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46600 FOUND_FREETYPE=no 46601 fi 46602 else 46603 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46604 # On Windows, we will need both .lib and .dll file. 46605 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46606 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46607 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46608 FOUND_FREETYPE=no 46609 fi 46610 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46611 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46612 # Found lib in isa dir, use that instead. 46613 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46615 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46616 fi 46617 fi 46618 fi 46619 46620 if test "x$FOUND_FREETYPE" = xyes; then 46621 46622 # Only process if variable expands to non-empty 46623 46624 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46626 46627 # Input might be given as Windows format, start by converting to 46628 # unix format. 46629 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46630 new_path=`$CYGPATH -u "$path"` 46631 46632 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46633 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46634 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46635 # "foo.exe" is OK but "foo" is an error. 46636 # 46637 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46638 # It is also a way to make sure we got the proper file name for the real test later on. 46639 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46640 if test "x$test_shortpath" = x; then 46641 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46642 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46643 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46644 fi 46645 46646 # Call helper function which possibly converts this using DOS-style short mode. 46647 # If so, the updated path is stored in $new_path. 46648 46649 input_path="$new_path" 46650 # Check if we need to convert this using DOS-style short mode. If the path 46651 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46652 # take no chances and rewrite it. 46653 # Note: m4 eats our [], so we need to use [ and ] instead. 46654 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46655 if test "x$has_forbidden_chars" != x; then 46656 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46657 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46658 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46659 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46660 # Going to short mode and back again did indeed matter. Since short mode is 46661 # case insensitive, let's make it lowercase to improve readability. 46662 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46663 # Now convert it back to Unix-stile (cygpath) 46664 input_path=`$CYGPATH -u "$shortmode_path"` 46665 new_path="$input_path" 46666 fi 46667 fi 46668 46669 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46670 if test "x$test_cygdrive_prefix" = x; then 46671 # As a simple fix, exclude /usr/bin since it's not a real path. 46672 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46673 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46674 # a path prefixed by /cygdrive for fixpath to work. 46675 new_path="$CYGWIN_ROOT_PATH$input_path" 46676 fi 46677 fi 46678 46679 46680 if test "x$path" != "x$new_path"; then 46681 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46682 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46683 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46684 fi 46685 46686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46687 46688 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46689 has_colon=`$ECHO $path | $GREP ^.:` 46690 new_path="$path" 46691 if test "x$has_colon" = x; then 46692 # Not in mixed or Windows style, start by that. 46693 new_path=`cmd //c echo $path` 46694 fi 46695 46696 46697 input_path="$new_path" 46698 # Check if we need to convert this using DOS-style short mode. If the path 46699 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46700 # take no chances and rewrite it. 46701 # Note: m4 eats our [], so we need to use [ and ] instead. 46702 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46703 if test "x$has_forbidden_chars" != x; then 46704 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46705 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46706 fi 46707 46708 46709 windows_path="$new_path" 46710 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46711 unix_path=`$CYGPATH -u "$windows_path"` 46712 new_path="$unix_path" 46713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46714 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46715 new_path="$unix_path" 46716 fi 46717 46718 if test "x$path" != "x$new_path"; then 46719 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46720 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46721 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46722 fi 46723 46724 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46725 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46726 46727 else 46728 # We're on a unix platform. Hooray! :) 46729 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46730 has_space=`$ECHO "$path" | $GREP " "` 46731 if test "x$has_space" != x; then 46732 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46733 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46734 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46735 fi 46736 46737 # Use eval to expand a potential ~ 46738 eval path="$path" 46739 if test ! -f "$path" && test ! -d "$path"; then 46740 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46741 fi 46742 46743 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46744 fi 46745 fi 46746 46747 46748 # Only process if variable expands to non-empty 46749 46750 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46752 46753 # Input might be given as Windows format, start by converting to 46754 # unix format. 46755 path="$POTENTIAL_FREETYPE_LIB_PATH" 46756 new_path=`$CYGPATH -u "$path"` 46757 46758 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46759 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46760 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46761 # "foo.exe" is OK but "foo" is an error. 46762 # 46763 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46764 # It is also a way to make sure we got the proper file name for the real test later on. 46765 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46766 if test "x$test_shortpath" = x; then 46767 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46768 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46769 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46770 fi 46771 46772 # Call helper function which possibly converts this using DOS-style short mode. 46773 # If so, the updated path is stored in $new_path. 46774 46775 input_path="$new_path" 46776 # Check if we need to convert this using DOS-style short mode. If the path 46777 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46778 # take no chances and rewrite it. 46779 # Note: m4 eats our [], so we need to use [ and ] instead. 46780 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46781 if test "x$has_forbidden_chars" != x; then 46782 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46783 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46784 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46785 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46786 # Going to short mode and back again did indeed matter. Since short mode is 46787 # case insensitive, let's make it lowercase to improve readability. 46788 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46789 # Now convert it back to Unix-stile (cygpath) 46790 input_path=`$CYGPATH -u "$shortmode_path"` 46791 new_path="$input_path" 46792 fi 46793 fi 46794 46795 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46796 if test "x$test_cygdrive_prefix" = x; then 46797 # As a simple fix, exclude /usr/bin since it's not a real path. 46798 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46799 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46800 # a path prefixed by /cygdrive for fixpath to work. 46801 new_path="$CYGWIN_ROOT_PATH$input_path" 46802 fi 46803 fi 46804 46805 46806 if test "x$path" != "x$new_path"; then 46807 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46808 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46809 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46810 fi 46811 46812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46813 46814 path="$POTENTIAL_FREETYPE_LIB_PATH" 46815 has_colon=`$ECHO $path | $GREP ^.:` 46816 new_path="$path" 46817 if test "x$has_colon" = x; then 46818 # Not in mixed or Windows style, start by that. 46819 new_path=`cmd //c echo $path` 46820 fi 46821 46822 46823 input_path="$new_path" 46824 # Check if we need to convert this using DOS-style short mode. If the path 46825 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46826 # take no chances and rewrite it. 46827 # Note: m4 eats our [], so we need to use [ and ] instead. 46828 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46829 if test "x$has_forbidden_chars" != x; then 46830 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46831 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46832 fi 46833 46834 46835 windows_path="$new_path" 46836 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46837 unix_path=`$CYGPATH -u "$windows_path"` 46838 new_path="$unix_path" 46839 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46840 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46841 new_path="$unix_path" 46842 fi 46843 46844 if test "x$path" != "x$new_path"; then 46845 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46846 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46847 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46848 fi 46849 46850 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46851 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46852 46853 else 46854 # We're on a unix platform. Hooray! :) 46855 path="$POTENTIAL_FREETYPE_LIB_PATH" 46856 has_space=`$ECHO "$path" | $GREP " "` 46857 if test "x$has_space" != x; then 46858 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46859 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46860 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46861 fi 46862 46863 # Use eval to expand a potential ~ 46864 eval path="$path" 46865 if test ! -f "$path" && test ! -d "$path"; then 46866 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46867 fi 46868 46869 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46870 fi 46871 fi 46872 46873 46874 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46876 $as_echo_n "checking for freetype includes... " >&6; } 46877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46878 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46879 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46881 $as_echo_n "checking for freetype libraries... " >&6; } 46882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46883 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46884 fi 46885 46886 fi 46887 46888 if test "x$FOUND_FREETYPE" != xyes; then 46889 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46890 46891 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46892 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46893 METHOD="well-known location" 46894 46895 # Let's start with an optimistic view of the world :-) 46896 FOUND_FREETYPE=yes 46897 46898 # First look for the canonical freetype main include file ft2build.h. 46899 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46900 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46901 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46902 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46903 # Fail. 46904 FOUND_FREETYPE=no 46905 fi 46906 fi 46907 46908 if test "x$FOUND_FREETYPE" = xyes; then 46909 # Include file found, let's continue the sanity check. 46910 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46911 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46912 46913 # Reset to default value 46914 FREETYPE_BASE_NAME=freetype 46915 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46916 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46917 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46918 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46919 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46920 # for the .6 version explicitly. 46921 FREETYPE_BASE_NAME=freetype.6 46922 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46923 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46924 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46925 else 46926 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46927 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46928 FOUND_FREETYPE=no 46929 fi 46930 else 46931 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46932 # On Windows, we will need both .lib and .dll file. 46933 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46934 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46935 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46936 FOUND_FREETYPE=no 46937 fi 46938 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46939 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46940 # Found lib in isa dir, use that instead. 46941 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46942 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46943 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46944 fi 46945 fi 46946 fi 46947 46948 if test "x$FOUND_FREETYPE" = xyes; then 46949 46950 # Only process if variable expands to non-empty 46951 46952 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46954 46955 # Input might be given as Windows format, start by converting to 46956 # unix format. 46957 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46958 new_path=`$CYGPATH -u "$path"` 46959 46960 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46961 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46962 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46963 # "foo.exe" is OK but "foo" is an error. 46964 # 46965 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46966 # It is also a way to make sure we got the proper file name for the real test later on. 46967 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46968 if test "x$test_shortpath" = x; then 46969 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46970 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46971 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46972 fi 46973 46974 # Call helper function which possibly converts this using DOS-style short mode. 46975 # If so, the updated path is stored in $new_path. 46976 46977 input_path="$new_path" 46978 # Check if we need to convert this using DOS-style short mode. If the path 46979 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46980 # take no chances and rewrite it. 46981 # Note: m4 eats our [], so we need to use [ and ] instead. 46982 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46983 if test "x$has_forbidden_chars" != x; then 46984 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46985 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46986 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46987 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46988 # Going to short mode and back again did indeed matter. Since short mode is 46989 # case insensitive, let's make it lowercase to improve readability. 46990 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46991 # Now convert it back to Unix-stile (cygpath) 46992 input_path=`$CYGPATH -u "$shortmode_path"` 46993 new_path="$input_path" 46994 fi 46995 fi 46996 46997 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46998 if test "x$test_cygdrive_prefix" = x; then 46999 # As a simple fix, exclude /usr/bin since it's not a real path. 47000 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47001 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47002 # a path prefixed by /cygdrive for fixpath to work. 47003 new_path="$CYGWIN_ROOT_PATH$input_path" 47004 fi 47005 fi 47006 47007 47008 if test "x$path" != "x$new_path"; then 47009 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47010 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47011 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47012 fi 47013 47014 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47015 47016 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47017 has_colon=`$ECHO $path | $GREP ^.:` 47018 new_path="$path" 47019 if test "x$has_colon" = x; then 47020 # Not in mixed or Windows style, start by that. 47021 new_path=`cmd //c echo $path` 47022 fi 47023 47024 47025 input_path="$new_path" 47026 # Check if we need to convert this using DOS-style short mode. If the path 47027 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47028 # take no chances and rewrite it. 47029 # Note: m4 eats our [], so we need to use [ and ] instead. 47030 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47031 if test "x$has_forbidden_chars" != x; then 47032 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47033 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47034 fi 47035 47036 47037 windows_path="$new_path" 47038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47039 unix_path=`$CYGPATH -u "$windows_path"` 47040 new_path="$unix_path" 47041 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47042 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47043 new_path="$unix_path" 47044 fi 47045 47046 if test "x$path" != "x$new_path"; then 47047 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47048 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47049 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47050 fi 47051 47052 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47053 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47054 47055 else 47056 # We're on a unix platform. Hooray! :) 47057 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47058 has_space=`$ECHO "$path" | $GREP " "` 47059 if test "x$has_space" != x; then 47060 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47061 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47062 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47063 fi 47064 47065 # Use eval to expand a potential ~ 47066 eval path="$path" 47067 if test ! -f "$path" && test ! -d "$path"; then 47068 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47069 fi 47070 47071 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47072 fi 47073 fi 47074 47075 47076 # Only process if variable expands to non-empty 47077 47078 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47080 47081 # Input might be given as Windows format, start by converting to 47082 # unix format. 47083 path="$POTENTIAL_FREETYPE_LIB_PATH" 47084 new_path=`$CYGPATH -u "$path"` 47085 47086 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47087 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47088 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47089 # "foo.exe" is OK but "foo" is an error. 47090 # 47091 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47092 # It is also a way to make sure we got the proper file name for the real test later on. 47093 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47094 if test "x$test_shortpath" = x; then 47095 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47096 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47097 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47098 fi 47099 47100 # Call helper function which possibly converts this using DOS-style short mode. 47101 # If so, the updated path is stored in $new_path. 47102 47103 input_path="$new_path" 47104 # Check if we need to convert this using DOS-style short mode. If the path 47105 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47106 # take no chances and rewrite it. 47107 # Note: m4 eats our [], so we need to use [ and ] instead. 47108 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47109 if test "x$has_forbidden_chars" != x; then 47110 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47111 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47112 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47113 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47114 # Going to short mode and back again did indeed matter. Since short mode is 47115 # case insensitive, let's make it lowercase to improve readability. 47116 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47117 # Now convert it back to Unix-stile (cygpath) 47118 input_path=`$CYGPATH -u "$shortmode_path"` 47119 new_path="$input_path" 47120 fi 47121 fi 47122 47123 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47124 if test "x$test_cygdrive_prefix" = x; then 47125 # As a simple fix, exclude /usr/bin since it's not a real path. 47126 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47127 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47128 # a path prefixed by /cygdrive for fixpath to work. 47129 new_path="$CYGWIN_ROOT_PATH$input_path" 47130 fi 47131 fi 47132 47133 47134 if test "x$path" != "x$new_path"; then 47135 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47136 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47137 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47138 fi 47139 47140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47141 47142 path="$POTENTIAL_FREETYPE_LIB_PATH" 47143 has_colon=`$ECHO $path | $GREP ^.:` 47144 new_path="$path" 47145 if test "x$has_colon" = x; then 47146 # Not in mixed or Windows style, start by that. 47147 new_path=`cmd //c echo $path` 47148 fi 47149 47150 47151 input_path="$new_path" 47152 # Check if we need to convert this using DOS-style short mode. If the path 47153 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47154 # take no chances and rewrite it. 47155 # Note: m4 eats our [], so we need to use [ and ] instead. 47156 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47157 if test "x$has_forbidden_chars" != x; then 47158 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47159 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47160 fi 47161 47162 47163 windows_path="$new_path" 47164 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47165 unix_path=`$CYGPATH -u "$windows_path"` 47166 new_path="$unix_path" 47167 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47168 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47169 new_path="$unix_path" 47170 fi 47171 47172 if test "x$path" != "x$new_path"; then 47173 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47174 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47175 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47176 fi 47177 47178 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47179 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47180 47181 else 47182 # We're on a unix platform. Hooray! :) 47183 path="$POTENTIAL_FREETYPE_LIB_PATH" 47184 has_space=`$ECHO "$path" | $GREP " "` 47185 if test "x$has_space" != x; then 47186 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47187 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47188 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47189 fi 47190 47191 # Use eval to expand a potential ~ 47192 eval path="$path" 47193 if test ! -f "$path" && test ! -d "$path"; then 47194 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47195 fi 47196 47197 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47198 fi 47199 fi 47200 47201 47202 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47204 $as_echo_n "checking for freetype includes... " >&6; } 47205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47206 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47207 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47209 $as_echo_n "checking for freetype libraries... " >&6; } 47210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47211 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47212 fi 47213 47214 fi 47215 47216 if test "x$FOUND_FREETYPE" != xyes; then 47217 FREETYPE_BASE_DIR="$SYSROOT/usr" 47218 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 47219 47220 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47221 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 47222 METHOD="well-known location" 47223 47224 # Let's start with an optimistic view of the world :-) 47225 FOUND_FREETYPE=yes 47226 47227 # First look for the canonical freetype main include file ft2build.h. 47228 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47229 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47230 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47231 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47232 # Fail. 47233 FOUND_FREETYPE=no 47234 fi 47235 fi 47236 47237 if test "x$FOUND_FREETYPE" = xyes; then 47238 # Include file found, let's continue the sanity check. 47239 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47240 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47241 47242 # Reset to default value 47243 FREETYPE_BASE_NAME=freetype 47244 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47245 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47246 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47247 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47248 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47249 # for the .6 version explicitly. 47250 FREETYPE_BASE_NAME=freetype.6 47251 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47252 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47253 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47254 else 47255 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47256 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47257 FOUND_FREETYPE=no 47258 fi 47259 else 47260 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47261 # On Windows, we will need both .lib and .dll file. 47262 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47263 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47264 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47265 FOUND_FREETYPE=no 47266 fi 47267 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47268 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47269 # Found lib in isa dir, use that instead. 47270 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47271 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47272 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47273 fi 47274 fi 47275 fi 47276 47277 if test "x$FOUND_FREETYPE" = xyes; then 47278 47279 # Only process if variable expands to non-empty 47280 47281 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47283 47284 # Input might be given as Windows format, start by converting to 47285 # unix format. 47286 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47287 new_path=`$CYGPATH -u "$path"` 47288 47289 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47290 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47291 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47292 # "foo.exe" is OK but "foo" is an error. 47293 # 47294 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47295 # It is also a way to make sure we got the proper file name for the real test later on. 47296 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47297 if test "x$test_shortpath" = x; then 47298 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47299 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47300 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47301 fi 47302 47303 # Call helper function which possibly converts this using DOS-style short mode. 47304 # If so, the updated path is stored in $new_path. 47305 47306 input_path="$new_path" 47307 # Check if we need to convert this using DOS-style short mode. If the path 47308 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47309 # take no chances and rewrite it. 47310 # Note: m4 eats our [], so we need to use [ and ] instead. 47311 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47312 if test "x$has_forbidden_chars" != x; then 47313 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47314 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47315 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47316 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47317 # Going to short mode and back again did indeed matter. Since short mode is 47318 # case insensitive, let's make it lowercase to improve readability. 47319 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47320 # Now convert it back to Unix-stile (cygpath) 47321 input_path=`$CYGPATH -u "$shortmode_path"` 47322 new_path="$input_path" 47323 fi 47324 fi 47325 47326 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47327 if test "x$test_cygdrive_prefix" = x; then 47328 # As a simple fix, exclude /usr/bin since it's not a real path. 47329 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47330 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47331 # a path prefixed by /cygdrive for fixpath to work. 47332 new_path="$CYGWIN_ROOT_PATH$input_path" 47333 fi 47334 fi 47335 47336 47337 if test "x$path" != "x$new_path"; then 47338 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47339 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47340 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47341 fi 47342 47343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47344 47345 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47346 has_colon=`$ECHO $path | $GREP ^.:` 47347 new_path="$path" 47348 if test "x$has_colon" = x; then 47349 # Not in mixed or Windows style, start by that. 47350 new_path=`cmd //c echo $path` 47351 fi 47352 47353 47354 input_path="$new_path" 47355 # Check if we need to convert this using DOS-style short mode. If the path 47356 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47357 # take no chances and rewrite it. 47358 # Note: m4 eats our [], so we need to use [ and ] instead. 47359 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47360 if test "x$has_forbidden_chars" != x; then 47361 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47362 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47363 fi 47364 47365 47366 windows_path="$new_path" 47367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47368 unix_path=`$CYGPATH -u "$windows_path"` 47369 new_path="$unix_path" 47370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47371 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47372 new_path="$unix_path" 47373 fi 47374 47375 if test "x$path" != "x$new_path"; then 47376 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47378 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47379 fi 47380 47381 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47382 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47383 47384 else 47385 # We're on a unix platform. Hooray! :) 47386 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47387 has_space=`$ECHO "$path" | $GREP " "` 47388 if test "x$has_space" != x; then 47389 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47390 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47391 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47392 fi 47393 47394 # Use eval to expand a potential ~ 47395 eval path="$path" 47396 if test ! -f "$path" && test ! -d "$path"; then 47397 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47398 fi 47399 47400 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47401 fi 47402 fi 47403 47404 47405 # Only process if variable expands to non-empty 47406 47407 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47409 47410 # Input might be given as Windows format, start by converting to 47411 # unix format. 47412 path="$POTENTIAL_FREETYPE_LIB_PATH" 47413 new_path=`$CYGPATH -u "$path"` 47414 47415 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47416 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47417 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47418 # "foo.exe" is OK but "foo" is an error. 47419 # 47420 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47421 # It is also a way to make sure we got the proper file name for the real test later on. 47422 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47423 if test "x$test_shortpath" = x; then 47424 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47425 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47426 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47427 fi 47428 47429 # Call helper function which possibly converts this using DOS-style short mode. 47430 # If so, the updated path is stored in $new_path. 47431 47432 input_path="$new_path" 47433 # Check if we need to convert this using DOS-style short mode. If the path 47434 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47435 # take no chances and rewrite it. 47436 # Note: m4 eats our [], so we need to use [ and ] instead. 47437 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47438 if test "x$has_forbidden_chars" != x; then 47439 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47440 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47441 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47442 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47443 # Going to short mode and back again did indeed matter. Since short mode is 47444 # case insensitive, let's make it lowercase to improve readability. 47445 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47446 # Now convert it back to Unix-stile (cygpath) 47447 input_path=`$CYGPATH -u "$shortmode_path"` 47448 new_path="$input_path" 47449 fi 47450 fi 47451 47452 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47453 if test "x$test_cygdrive_prefix" = x; then 47454 # As a simple fix, exclude /usr/bin since it's not a real path. 47455 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47456 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47457 # a path prefixed by /cygdrive for fixpath to work. 47458 new_path="$CYGWIN_ROOT_PATH$input_path" 47459 fi 47460 fi 47461 47462 47463 if test "x$path" != "x$new_path"; then 47464 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47465 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47466 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47467 fi 47468 47469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47470 47471 path="$POTENTIAL_FREETYPE_LIB_PATH" 47472 has_colon=`$ECHO $path | $GREP ^.:` 47473 new_path="$path" 47474 if test "x$has_colon" = x; then 47475 # Not in mixed or Windows style, start by that. 47476 new_path=`cmd //c echo $path` 47477 fi 47478 47479 47480 input_path="$new_path" 47481 # Check if we need to convert this using DOS-style short mode. If the path 47482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47483 # take no chances and rewrite it. 47484 # Note: m4 eats our [], so we need to use [ and ] instead. 47485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47486 if test "x$has_forbidden_chars" != x; then 47487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47488 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47489 fi 47490 47491 47492 windows_path="$new_path" 47493 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47494 unix_path=`$CYGPATH -u "$windows_path"` 47495 new_path="$unix_path" 47496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47497 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47498 new_path="$unix_path" 47499 fi 47500 47501 if test "x$path" != "x$new_path"; then 47502 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47503 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47504 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47505 fi 47506 47507 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47508 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47509 47510 else 47511 # We're on a unix platform. Hooray! :) 47512 path="$POTENTIAL_FREETYPE_LIB_PATH" 47513 has_space=`$ECHO "$path" | $GREP " "` 47514 if test "x$has_space" != x; then 47515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47516 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47517 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47518 fi 47519 47520 # Use eval to expand a potential ~ 47521 eval path="$path" 47522 if test ! -f "$path" && test ! -d "$path"; then 47523 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47524 fi 47525 47526 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47527 fi 47528 fi 47529 47530 47531 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47533 $as_echo_n "checking for freetype includes... " >&6; } 47534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47535 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47536 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47538 $as_echo_n "checking for freetype libraries... " >&6; } 47539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47540 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47541 fi 47542 47543 else 47544 47545 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47546 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 47547 METHOD="well-known location" 47548 47549 # Let's start with an optimistic view of the world :-) 47550 FOUND_FREETYPE=yes 47551 47552 # First look for the canonical freetype main include file ft2build.h. 47553 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47554 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47555 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47556 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47557 # Fail. 47558 FOUND_FREETYPE=no 47559 fi 47560 fi 47561 47562 if test "x$FOUND_FREETYPE" = xyes; then 47563 # Include file found, let's continue the sanity check. 47564 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47565 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47566 47567 # Reset to default value 47568 FREETYPE_BASE_NAME=freetype 47569 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47570 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47571 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47572 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47573 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47574 # for the .6 version explicitly. 47575 FREETYPE_BASE_NAME=freetype.6 47576 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47577 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47578 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47579 else 47580 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47581 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47582 FOUND_FREETYPE=no 47583 fi 47584 else 47585 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47586 # On Windows, we will need both .lib and .dll file. 47587 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47588 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47589 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47590 FOUND_FREETYPE=no 47591 fi 47592 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47593 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47594 # Found lib in isa dir, use that instead. 47595 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47596 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47597 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47598 fi 47599 fi 47600 fi 47601 47602 if test "x$FOUND_FREETYPE" = xyes; then 47603 47604 # Only process if variable expands to non-empty 47605 47606 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47608 47609 # Input might be given as Windows format, start by converting to 47610 # unix format. 47611 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47612 new_path=`$CYGPATH -u "$path"` 47613 47614 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47615 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47616 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47617 # "foo.exe" is OK but "foo" is an error. 47618 # 47619 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47620 # It is also a way to make sure we got the proper file name for the real test later on. 47621 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47622 if test "x$test_shortpath" = x; then 47623 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47624 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47625 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47626 fi 47627 47628 # Call helper function which possibly converts this using DOS-style short mode. 47629 # If so, the updated path is stored in $new_path. 47630 47631 input_path="$new_path" 47632 # Check if we need to convert this using DOS-style short mode. If the path 47633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47634 # take no chances and rewrite it. 47635 # Note: m4 eats our [], so we need to use [ and ] instead. 47636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47637 if test "x$has_forbidden_chars" != x; then 47638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47639 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47640 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47641 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47642 # Going to short mode and back again did indeed matter. Since short mode is 47643 # case insensitive, let's make it lowercase to improve readability. 47644 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47645 # Now convert it back to Unix-stile (cygpath) 47646 input_path=`$CYGPATH -u "$shortmode_path"` 47647 new_path="$input_path" 47648 fi 47649 fi 47650 47651 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47652 if test "x$test_cygdrive_prefix" = x; then 47653 # As a simple fix, exclude /usr/bin since it's not a real path. 47654 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47655 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47656 # a path prefixed by /cygdrive for fixpath to work. 47657 new_path="$CYGWIN_ROOT_PATH$input_path" 47658 fi 47659 fi 47660 47661 47662 if test "x$path" != "x$new_path"; then 47663 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47664 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47665 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47666 fi 47667 47668 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47669 47670 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47671 has_colon=`$ECHO $path | $GREP ^.:` 47672 new_path="$path" 47673 if test "x$has_colon" = x; then 47674 # Not in mixed or Windows style, start by that. 47675 new_path=`cmd //c echo $path` 47676 fi 47677 47678 47679 input_path="$new_path" 47680 # Check if we need to convert this using DOS-style short mode. If the path 47681 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47682 # take no chances and rewrite it. 47683 # Note: m4 eats our [], so we need to use [ and ] instead. 47684 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47685 if test "x$has_forbidden_chars" != x; then 47686 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47687 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47688 fi 47689 47690 47691 windows_path="$new_path" 47692 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47693 unix_path=`$CYGPATH -u "$windows_path"` 47694 new_path="$unix_path" 47695 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47696 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47697 new_path="$unix_path" 47698 fi 47699 47700 if test "x$path" != "x$new_path"; then 47701 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47702 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47703 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47704 fi 47705 47706 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47707 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47708 47709 else 47710 # We're on a unix platform. Hooray! :) 47711 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47712 has_space=`$ECHO "$path" | $GREP " "` 47713 if test "x$has_space" != x; then 47714 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47715 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47716 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47717 fi 47718 47719 # Use eval to expand a potential ~ 47720 eval path="$path" 47721 if test ! -f "$path" && test ! -d "$path"; then 47722 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47723 fi 47724 47725 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47726 fi 47727 fi 47728 47729 47730 # Only process if variable expands to non-empty 47731 47732 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47733 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47734 47735 # Input might be given as Windows format, start by converting to 47736 # unix format. 47737 path="$POTENTIAL_FREETYPE_LIB_PATH" 47738 new_path=`$CYGPATH -u "$path"` 47739 47740 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47741 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47742 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47743 # "foo.exe" is OK but "foo" is an error. 47744 # 47745 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47746 # It is also a way to make sure we got the proper file name for the real test later on. 47747 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47748 if test "x$test_shortpath" = x; then 47749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47750 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47751 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47752 fi 47753 47754 # Call helper function which possibly converts this using DOS-style short mode. 47755 # If so, the updated path is stored in $new_path. 47756 47757 input_path="$new_path" 47758 # Check if we need to convert this using DOS-style short mode. If the path 47759 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47760 # take no chances and rewrite it. 47761 # Note: m4 eats our [], so we need to use [ and ] instead. 47762 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47763 if test "x$has_forbidden_chars" != x; then 47764 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47765 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47766 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47767 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47768 # Going to short mode and back again did indeed matter. Since short mode is 47769 # case insensitive, let's make it lowercase to improve readability. 47770 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47771 # Now convert it back to Unix-stile (cygpath) 47772 input_path=`$CYGPATH -u "$shortmode_path"` 47773 new_path="$input_path" 47774 fi 47775 fi 47776 47777 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47778 if test "x$test_cygdrive_prefix" = x; then 47779 # As a simple fix, exclude /usr/bin since it's not a real path. 47780 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47781 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47782 # a path prefixed by /cygdrive for fixpath to work. 47783 new_path="$CYGWIN_ROOT_PATH$input_path" 47784 fi 47785 fi 47786 47787 47788 if test "x$path" != "x$new_path"; then 47789 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47790 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47791 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47792 fi 47793 47794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47795 47796 path="$POTENTIAL_FREETYPE_LIB_PATH" 47797 has_colon=`$ECHO $path | $GREP ^.:` 47798 new_path="$path" 47799 if test "x$has_colon" = x; then 47800 # Not in mixed or Windows style, start by that. 47801 new_path=`cmd //c echo $path` 47802 fi 47803 47804 47805 input_path="$new_path" 47806 # Check if we need to convert this using DOS-style short mode. If the path 47807 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47808 # take no chances and rewrite it. 47809 # Note: m4 eats our [], so we need to use [ and ] instead. 47810 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47811 if test "x$has_forbidden_chars" != x; then 47812 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47813 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47814 fi 47815 47816 47817 windows_path="$new_path" 47818 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47819 unix_path=`$CYGPATH -u "$windows_path"` 47820 new_path="$unix_path" 47821 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47822 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47823 new_path="$unix_path" 47824 fi 47825 47826 if test "x$path" != "x$new_path"; then 47827 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47828 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47829 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47830 fi 47831 47832 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47833 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47834 47835 else 47836 # We're on a unix platform. Hooray! :) 47837 path="$POTENTIAL_FREETYPE_LIB_PATH" 47838 has_space=`$ECHO "$path" | $GREP " "` 47839 if test "x$has_space" != x; then 47840 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47841 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47842 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47843 fi 47844 47845 # Use eval to expand a potential ~ 47846 eval path="$path" 47847 if test ! -f "$path" && test ! -d "$path"; then 47848 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47849 fi 47850 47851 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47852 fi 47853 fi 47854 47855 47856 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47858 $as_echo_n "checking for freetype includes... " >&6; } 47859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47860 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47861 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47863 $as_echo_n "checking for freetype libraries... " >&6; } 47864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47865 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47866 fi 47867 47868 if test "x$FOUND_FREETYPE" != xyes; then 47869 47870 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47871 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47872 METHOD="well-known location" 47873 47874 # Let's start with an optimistic view of the world :-) 47875 FOUND_FREETYPE=yes 47876 47877 # First look for the canonical freetype main include file ft2build.h. 47878 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47879 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47880 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47881 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47882 # Fail. 47883 FOUND_FREETYPE=no 47884 fi 47885 fi 47886 47887 if test "x$FOUND_FREETYPE" = xyes; then 47888 # Include file found, let's continue the sanity check. 47889 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47890 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47891 47892 # Reset to default value 47893 FREETYPE_BASE_NAME=freetype 47894 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47895 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47896 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47897 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47898 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47899 # for the .6 version explicitly. 47900 FREETYPE_BASE_NAME=freetype.6 47901 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47902 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47903 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47904 else 47905 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47906 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47907 FOUND_FREETYPE=no 47908 fi 47909 else 47910 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47911 # On Windows, we will need both .lib and .dll file. 47912 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47913 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47914 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47915 FOUND_FREETYPE=no 47916 fi 47917 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47918 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47919 # Found lib in isa dir, use that instead. 47920 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47921 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47922 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47923 fi 47924 fi 47925 fi 47926 47927 if test "x$FOUND_FREETYPE" = xyes; then 47928 47929 # Only process if variable expands to non-empty 47930 47931 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47933 47934 # Input might be given as Windows format, start by converting to 47935 # unix format. 47936 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47937 new_path=`$CYGPATH -u "$path"` 47938 47939 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47940 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47941 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47942 # "foo.exe" is OK but "foo" is an error. 47943 # 47944 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47945 # It is also a way to make sure we got the proper file name for the real test later on. 47946 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47947 if test "x$test_shortpath" = x; then 47948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47949 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47950 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47951 fi 47952 47953 # Call helper function which possibly converts this using DOS-style short mode. 47954 # If so, the updated path is stored in $new_path. 47955 47956 input_path="$new_path" 47957 # Check if we need to convert this using DOS-style short mode. If the path 47958 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47959 # take no chances and rewrite it. 47960 # Note: m4 eats our [], so we need to use [ and ] instead. 47961 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47962 if test "x$has_forbidden_chars" != x; then 47963 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47964 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47965 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47966 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47967 # Going to short mode and back again did indeed matter. Since short mode is 47968 # case insensitive, let's make it lowercase to improve readability. 47969 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47970 # Now convert it back to Unix-stile (cygpath) 47971 input_path=`$CYGPATH -u "$shortmode_path"` 47972 new_path="$input_path" 47973 fi 47974 fi 47975 47976 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47977 if test "x$test_cygdrive_prefix" = x; then 47978 # As a simple fix, exclude /usr/bin since it's not a real path. 47979 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47980 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47981 # a path prefixed by /cygdrive for fixpath to work. 47982 new_path="$CYGWIN_ROOT_PATH$input_path" 47983 fi 47984 fi 47985 47986 47987 if test "x$path" != "x$new_path"; then 47988 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47989 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47990 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47991 fi 47992 47993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47994 47995 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47996 has_colon=`$ECHO $path | $GREP ^.:` 47997 new_path="$path" 47998 if test "x$has_colon" = x; then 47999 # Not in mixed or Windows style, start by that. 48000 new_path=`cmd //c echo $path` 48001 fi 48002 48003 48004 input_path="$new_path" 48005 # Check if we need to convert this using DOS-style short mode. If the path 48006 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48007 # take no chances and rewrite it. 48008 # Note: m4 eats our [], so we need to use [ and ] instead. 48009 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48010 if test "x$has_forbidden_chars" != x; then 48011 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48012 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48013 fi 48014 48015 48016 windows_path="$new_path" 48017 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48018 unix_path=`$CYGPATH -u "$windows_path"` 48019 new_path="$unix_path" 48020 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48021 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48022 new_path="$unix_path" 48023 fi 48024 48025 if test "x$path" != "x$new_path"; then 48026 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 48027 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48028 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48029 fi 48030 48031 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48032 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48033 48034 else 48035 # We're on a unix platform. Hooray! :) 48036 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48037 has_space=`$ECHO "$path" | $GREP " "` 48038 if test "x$has_space" != x; then 48039 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48040 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48041 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48042 fi 48043 48044 # Use eval to expand a potential ~ 48045 eval path="$path" 48046 if test ! -f "$path" && test ! -d "$path"; then 48047 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48048 fi 48049 48050 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48051 fi 48052 fi 48053 48054 48055 # Only process if variable expands to non-empty 48056 48057 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 48058 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48059 48060 # Input might be given as Windows format, start by converting to 48061 # unix format. 48062 path="$POTENTIAL_FREETYPE_LIB_PATH" 48063 new_path=`$CYGPATH -u "$path"` 48064 48065 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48066 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48067 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48068 # "foo.exe" is OK but "foo" is an error. 48069 # 48070 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48071 # It is also a way to make sure we got the proper file name for the real test later on. 48072 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48073 if test "x$test_shortpath" = x; then 48074 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48075 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48076 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 48077 fi 48078 48079 # Call helper function which possibly converts this using DOS-style short mode. 48080 # If so, the updated path is stored in $new_path. 48081 48082 input_path="$new_path" 48083 # Check if we need to convert this using DOS-style short mode. If the path 48084 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48085 # take no chances and rewrite it. 48086 # Note: m4 eats our [], so we need to use [ and ] instead. 48087 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48088 if test "x$has_forbidden_chars" != x; then 48089 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48090 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48091 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48092 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48093 # Going to short mode and back again did indeed matter. Since short mode is 48094 # case insensitive, let's make it lowercase to improve readability. 48095 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48096 # Now convert it back to Unix-stile (cygpath) 48097 input_path=`$CYGPATH -u "$shortmode_path"` 48098 new_path="$input_path" 48099 fi 48100 fi 48101 48102 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48103 if test "x$test_cygdrive_prefix" = x; then 48104 # As a simple fix, exclude /usr/bin since it's not a real path. 48105 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48106 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48107 # a path prefixed by /cygdrive for fixpath to work. 48108 new_path="$CYGWIN_ROOT_PATH$input_path" 48109 fi 48110 fi 48111 48112 48113 if test "x$path" != "x$new_path"; then 48114 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48115 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48116 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48117 fi 48118 48119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48120 48121 path="$POTENTIAL_FREETYPE_LIB_PATH" 48122 has_colon=`$ECHO $path | $GREP ^.:` 48123 new_path="$path" 48124 if test "x$has_colon" = x; then 48125 # Not in mixed or Windows style, start by that. 48126 new_path=`cmd //c echo $path` 48127 fi 48128 48129 48130 input_path="$new_path" 48131 # Check if we need to convert this using DOS-style short mode. If the path 48132 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48133 # take no chances and rewrite it. 48134 # Note: m4 eats our [], so we need to use [ and ] instead. 48135 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48136 if test "x$has_forbidden_chars" != x; then 48137 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48138 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48139 fi 48140 48141 48142 windows_path="$new_path" 48143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48144 unix_path=`$CYGPATH -u "$windows_path"` 48145 new_path="$unix_path" 48146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48147 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48148 new_path="$unix_path" 48149 fi 48150 48151 if test "x$path" != "x$new_path"; then 48152 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48153 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48154 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48155 fi 48156 48157 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48158 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48159 48160 else 48161 # We're on a unix platform. Hooray! :) 48162 path="$POTENTIAL_FREETYPE_LIB_PATH" 48163 has_space=`$ECHO "$path" | $GREP " "` 48164 if test "x$has_space" != x; then 48165 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48166 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48167 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48168 fi 48169 48170 # Use eval to expand a potential ~ 48171 eval path="$path" 48172 if test ! -f "$path" && test ! -d "$path"; then 48173 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48174 fi 48175 48176 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48177 fi 48178 fi 48179 48180 48181 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 48183 $as_echo_n "checking for freetype includes... " >&6; } 48184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 48185 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 48186 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 48187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 48188 $as_echo_n "checking for freetype libraries... " >&6; } 48189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 48190 $as_echo "$FREETYPE_LIB_PATH" >&6; } 48191 fi 48192 48193 fi 48194 fi 48195 fi 48196 fi 48197 fi # end check in well-known locations 48198 48199 if test "x$FOUND_FREETYPE" != xyes; then 48200 48201 # Print a helpful message on how to acquire the necessary build dependency. 48202 # freetype is the help tag: freetype, cups, pulse, alsa etc 48203 MISSING_DEPENDENCY=freetype 48204 48205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48206 cygwin_help $MISSING_DEPENDENCY 48207 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48208 msys_help $MISSING_DEPENDENCY 48209 else 48210 PKGHANDLER_COMMAND= 48211 48212 case $PKGHANDLER in 48213 apt-get) 48214 apt_help $MISSING_DEPENDENCY ;; 48215 yum) 48216 yum_help $MISSING_DEPENDENCY ;; 48217 port) 48218 port_help $MISSING_DEPENDENCY ;; 48219 pkgutil) 48220 pkgutil_help $MISSING_DEPENDENCY ;; 48221 pkgadd) 48222 pkgadd_help $MISSING_DEPENDENCY ;; 48223 esac 48224 48225 if test "x$PKGHANDLER_COMMAND" != x; then 48226 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48227 fi 48228 fi 48229 48230 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 48231 fi 48232 fi # end user specified settings 48233 48234 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 48235 if test "x$FREETYPE_CFLAGS" = x; then 48236 48237 # Only process if variable expands to non-empty 48238 48239 if test "x$FREETYPE_INCLUDE_PATH" != x; then 48240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48241 48242 # Input might be given as Windows format, start by converting to 48243 # unix format. 48244 path="$FREETYPE_INCLUDE_PATH" 48245 new_path=`$CYGPATH -u "$path"` 48246 48247 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48248 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48249 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48250 # "foo.exe" is OK but "foo" is an error. 48251 # 48252 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48253 # It is also a way to make sure we got the proper file name for the real test later on. 48254 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48255 if test "x$test_shortpath" = x; then 48256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48257 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48258 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 48259 fi 48260 48261 # Call helper function which possibly converts this using DOS-style short mode. 48262 # If so, the updated path is stored in $new_path. 48263 48264 input_path="$new_path" 48265 # Check if we need to convert this using DOS-style short mode. If the path 48266 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48267 # take no chances and rewrite it. 48268 # Note: m4 eats our [], so we need to use [ and ] instead. 48269 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48270 if test "x$has_forbidden_chars" != x; then 48271 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48272 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48273 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48274 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48275 # Going to short mode and back again did indeed matter. Since short mode is 48276 # case insensitive, let's make it lowercase to improve readability. 48277 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48278 # Now convert it back to Unix-stile (cygpath) 48279 input_path=`$CYGPATH -u "$shortmode_path"` 48280 new_path="$input_path" 48281 fi 48282 fi 48283 48284 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48285 if test "x$test_cygdrive_prefix" = x; then 48286 # As a simple fix, exclude /usr/bin since it's not a real path. 48287 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48288 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48289 # a path prefixed by /cygdrive for fixpath to work. 48290 new_path="$CYGWIN_ROOT_PATH$input_path" 48291 fi 48292 fi 48293 48294 48295 if test "x$path" != "x$new_path"; then 48296 FREETYPE_INCLUDE_PATH="$new_path" 48297 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48298 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48299 fi 48300 48301 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48302 48303 path="$FREETYPE_INCLUDE_PATH" 48304 has_colon=`$ECHO $path | $GREP ^.:` 48305 new_path="$path" 48306 if test "x$has_colon" = x; then 48307 # Not in mixed or Windows style, start by that. 48308 new_path=`cmd //c echo $path` 48309 fi 48310 48311 48312 input_path="$new_path" 48313 # Check if we need to convert this using DOS-style short mode. If the path 48314 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48315 # take no chances and rewrite it. 48316 # Note: m4 eats our [], so we need to use [ and ] instead. 48317 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48318 if test "x$has_forbidden_chars" != x; then 48319 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48320 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48321 fi 48322 48323 48324 windows_path="$new_path" 48325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48326 unix_path=`$CYGPATH -u "$windows_path"` 48327 new_path="$unix_path" 48328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48330 new_path="$unix_path" 48331 fi 48332 48333 if test "x$path" != "x$new_path"; then 48334 FREETYPE_INCLUDE_PATH="$new_path" 48335 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48336 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48337 fi 48338 48339 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48340 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48341 48342 else 48343 # We're on a unix platform. Hooray! :) 48344 path="$FREETYPE_INCLUDE_PATH" 48345 has_space=`$ECHO "$path" | $GREP " "` 48346 if test "x$has_space" != x; then 48347 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48348 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48349 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48350 fi 48351 48352 # Use eval to expand a potential ~ 48353 eval path="$path" 48354 if test ! -f "$path" && test ! -d "$path"; then 48355 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48356 fi 48357 48358 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48359 fi 48360 fi 48361 48362 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 48363 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 48364 else 48365 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 48366 fi 48367 fi 48368 48369 if test "x$FREETYPE_LIBS" = x; then 48370 48371 # Only process if variable expands to non-empty 48372 48373 if test "x$FREETYPE_LIB_PATH" != x; then 48374 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48375 48376 # Input might be given as Windows format, start by converting to 48377 # unix format. 48378 path="$FREETYPE_LIB_PATH" 48379 new_path=`$CYGPATH -u "$path"` 48380 48381 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48382 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48383 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48384 # "foo.exe" is OK but "foo" is an error. 48385 # 48386 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48387 # It is also a way to make sure we got the proper file name for the real test later on. 48388 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48389 if test "x$test_shortpath" = x; then 48390 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48391 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48392 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 48393 fi 48394 48395 # Call helper function which possibly converts this using DOS-style short mode. 48396 # If so, the updated path is stored in $new_path. 48397 48398 input_path="$new_path" 48399 # Check if we need to convert this using DOS-style short mode. If the path 48400 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48401 # take no chances and rewrite it. 48402 # Note: m4 eats our [], so we need to use [ and ] instead. 48403 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48404 if test "x$has_forbidden_chars" != x; then 48405 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48406 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48407 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48408 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48409 # Going to short mode and back again did indeed matter. Since short mode is 48410 # case insensitive, let's make it lowercase to improve readability. 48411 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48412 # Now convert it back to Unix-stile (cygpath) 48413 input_path=`$CYGPATH -u "$shortmode_path"` 48414 new_path="$input_path" 48415 fi 48416 fi 48417 48418 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48419 if test "x$test_cygdrive_prefix" = x; then 48420 # As a simple fix, exclude /usr/bin since it's not a real path. 48421 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48422 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48423 # a path prefixed by /cygdrive for fixpath to work. 48424 new_path="$CYGWIN_ROOT_PATH$input_path" 48425 fi 48426 fi 48427 48428 48429 if test "x$path" != "x$new_path"; then 48430 FREETYPE_LIB_PATH="$new_path" 48431 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48432 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48433 fi 48434 48435 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48436 48437 path="$FREETYPE_LIB_PATH" 48438 has_colon=`$ECHO $path | $GREP ^.:` 48439 new_path="$path" 48440 if test "x$has_colon" = x; then 48441 # Not in mixed or Windows style, start by that. 48442 new_path=`cmd //c echo $path` 48443 fi 48444 48445 48446 input_path="$new_path" 48447 # Check if we need to convert this using DOS-style short mode. If the path 48448 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48449 # take no chances and rewrite it. 48450 # Note: m4 eats our [], so we need to use [ and ] instead. 48451 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48452 if test "x$has_forbidden_chars" != x; then 48453 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48454 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48455 fi 48456 48457 48458 windows_path="$new_path" 48459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48460 unix_path=`$CYGPATH -u "$windows_path"` 48461 new_path="$unix_path" 48462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48463 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48464 new_path="$unix_path" 48465 fi 48466 48467 if test "x$path" != "x$new_path"; then 48468 FREETYPE_LIB_PATH="$new_path" 48469 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48470 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48471 fi 48472 48473 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48474 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48475 48476 else 48477 # We're on a unix platform. Hooray! :) 48478 path="$FREETYPE_LIB_PATH" 48479 has_space=`$ECHO "$path" | $GREP " "` 48480 if test "x$has_space" != x; then 48481 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48482 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48483 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48484 fi 48485 48486 # Use eval to expand a potential ~ 48487 eval path="$path" 48488 if test ! -f "$path" && test ! -d "$path"; then 48489 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48490 fi 48491 48492 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48493 fi 48494 fi 48495 48496 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48497 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 48498 else 48499 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 48500 fi 48501 fi 48502 48503 # Try to compile it 48504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 48505 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 48506 ac_ext=cpp 48507 ac_cpp='$CXXCPP $CPPFLAGS' 48508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48511 48512 PREV_CXXCFLAGS="$CXXFLAGS" 48513 PREV_LIBS="$LIBS" 48514 PREV_CXX="$CXX" 48515 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 48516 LIBS="$LIBS $FREETYPE_LIBS" 48517 CXX="$FIXPATH $CXX" 48518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48519 /* end confdefs.h. */ 48520 48521 #include<ft2build.h> 48522 #include FT_FREETYPE_H 48523 int main () { 48524 FT_Init_FreeType(NULL); 48525 return 0; 48526 } 48527 48528 _ACEOF 48529 if ac_fn_cxx_try_link "$LINENO"; then : 48530 48531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48532 $as_echo "yes" >&6; } 48533 48534 else 48535 48536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48537 $as_echo "no" >&6; } 48538 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 48539 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 48540 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 48541 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 48542 48543 48544 # Print a helpful message on how to acquire the necessary build dependency. 48545 # freetype is the help tag: freetype, cups, pulse, alsa etc 48546 MISSING_DEPENDENCY=freetype 48547 48548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48549 cygwin_help $MISSING_DEPENDENCY 48550 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48551 msys_help $MISSING_DEPENDENCY 48552 else 48553 PKGHANDLER_COMMAND= 48554 48555 case $PKGHANDLER in 48556 apt-get) 48557 apt_help $MISSING_DEPENDENCY ;; 48558 yum) 48559 yum_help $MISSING_DEPENDENCY ;; 48560 port) 48561 port_help $MISSING_DEPENDENCY ;; 48562 pkgutil) 48563 pkgutil_help $MISSING_DEPENDENCY ;; 48564 pkgadd) 48565 pkgadd_help $MISSING_DEPENDENCY ;; 48566 esac 48567 48568 if test "x$PKGHANDLER_COMMAND" != x; then 48569 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48570 fi 48571 fi 48572 48573 48574 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 48575 48576 48577 fi 48578 rm -f core conftest.err conftest.$ac_objext \ 48579 conftest$ac_exeext conftest.$ac_ext 48580 CXXCFLAGS="$PREV_CXXFLAGS" 48581 LIBS="$PREV_LIBS" 48582 CXX="$PREV_CXX" 48583 ac_ext=cpp 48584 ac_cpp='$CXXCPP $CPPFLAGS' 48585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48588 48589 48590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 48591 $as_echo_n "checking if we should bundle freetype... " >&6; } 48592 if test "x$BUNDLE_FREETYPE" = xyes; then 48593 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 48594 fi 48595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 48596 $as_echo "$BUNDLE_FREETYPE" >&6; } 48597 48598 fi # end freetype needed 48599 48600 48601 48602 48603 48604 48605 48606 ############################################################################### 48607 # 48608 # Check for alsa headers and libraries. Used on Linux/GNU systems. 48609 # 48610 48611 # Check whether --with-alsa was given. 48612 if test "${with_alsa+set}" = set; then : 48613 withval=$with_alsa; 48614 fi 48615 48616 48617 # Check whether --with-alsa-include was given. 48618 if test "${with_alsa_include+set}" = set; then : 48619 withval=$with_alsa_include; 48620 fi 48621 48622 48623 # Check whether --with-alsa-lib was given. 48624 if test "${with_alsa_lib+set}" = set; then : 48625 withval=$with_alsa_lib; 48626 fi 48627 48628 48629 if test "x$ALSA_NOT_NEEDED" = xyes; then 48630 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 48631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 48632 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 48633 fi 48634 ALSA_CFLAGS= 48635 ALSA_LIBS= 48636 else 48637 ALSA_FOUND=no 48638 48639 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 48640 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 48641 fi 48642 48643 if test "x${with_alsa}" != x; then 48644 ALSA_LIBS="-L${with_alsa}/lib -lasound" 48645 ALSA_CFLAGS="-I${with_alsa}/include" 48646 ALSA_FOUND=yes 48647 fi 48648 if test "x${with_alsa_include}" != x; then 48649 ALSA_CFLAGS="-I${with_alsa_include}" 48650 ALSA_FOUND=yes 48651 fi 48652 if test "x${with_alsa_lib}" != x; then 48653 ALSA_LIBS="-L${with_alsa_lib} -lasound" 48654 ALSA_FOUND=yes 48655 fi 48656 if test "x$ALSA_FOUND" = xno; then 48657 48658 48659 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 48660 # Source the builddeps file again, to make sure it uses the latest variables! 48661 . $builddepsfile 48662 # Look for a target and build machine specific resource! 48663 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 48664 if test "x$resource" = x; then 48665 # Ok, lets instead look for a target specific resource 48666 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 48667 fi 48668 if test "x$resource" = x; then 48669 # Ok, lets instead look for a build specific resource 48670 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 48671 fi 48672 if test "x$resource" = x; then 48673 # Ok, lets instead look for a generic resource 48674 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 48675 resource=${builddep_alsa} 48676 fi 48677 if test "x$resource" != x; then 48678 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 48679 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 48680 # If the resource in the builddeps.conf file is an existing directory, 48681 # for example /java/linux/cups 48682 if test -d ${resource}; then 48683 depdir=${resource} 48684 else 48685 48686 # alsa is for example mymodule 48687 # $resource is for example libs/general/libmymod_1_2_3.zip 48688 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 48689 # $with_builddeps_dir is for example /localhome/builddeps 48690 # depdir is the name of the variable into which we store the depdir, eg MYMOD 48691 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 48692 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 48693 filename=`basename $resource` 48694 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 48695 filebase=${filename%%.*} 48696 extension=${filename#*.} 48697 installdir=$with_builddeps_dir/$filebase 48698 if test ! -f $installdir/$filename.unpacked; then 48699 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 48700 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 48701 if test ! -d $installdir; then 48702 mkdir -p $installdir 48703 fi 48704 if test ! -d $installdir; then 48705 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 48706 fi 48707 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 48708 touch $tmpfile 48709 if test ! -f $tmpfile; then 48710 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 48711 fi 48712 48713 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 48714 # $tmpfile is the local file name for the downloaded file. 48715 VALID_TOOL=no 48716 if test "x$BDEPS_FTP" = xwget; then 48717 VALID_TOOL=yes 48718 wget -O $tmpfile $with_builddeps_server/$resource 48719 fi 48720 if test "x$BDEPS_FTP" = xlftp; then 48721 VALID_TOOL=yes 48722 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 48723 fi 48724 if test "x$BDEPS_FTP" = xftp; then 48725 VALID_TOOL=yes 48726 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 48727 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 48728 FTPUSERPWD=${FTPSERVER%%@*} 48729 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 48730 FTPUSER=${userpwd%%:*} 48731 FTPPWD=${userpwd#*@} 48732 FTPSERVER=${FTPSERVER#*@} 48733 else 48734 FTPUSER=ftp 48735 FTPPWD=ftp 48736 fi 48737 # the "pass" command does not work on some 48738 # ftp clients (read ftp.exe) but if it works, 48739 # passive mode is better! 48740 ( \ 48741 echo "user $FTPUSER $FTPPWD" ; \ 48742 echo "pass" ; \ 48743 echo "bin" ; \ 48744 echo "get $FTPPATH $tmpfile" ; \ 48745 ) | ftp -in $FTPSERVER 48746 fi 48747 if test "x$VALID_TOOL" != xyes; then 48748 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 48749 fi 48750 48751 mv $tmpfile $installdir/$filename 48752 if test ! -s $installdir/$filename; then 48753 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 48754 fi 48755 case "$extension" in 48756 zip) echo "Unzipping $installdir/$filename..." 48757 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 48758 ;; 48759 tar.gz) echo "Untaring $installdir/$filename..." 48760 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48761 ;; 48762 tgz) echo "Untaring $installdir/$filename..." 48763 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48764 ;; 48765 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 48766 ;; 48767 esac 48768 fi 48769 if test -f $installdir/$filename.unpacked; then 48770 depdir=$installdir 48771 fi 48772 48773 fi 48774 # Source the builddeps file again, because in the previous command, the depdir 48775 # was updated to point at the current build dependency install directory. 48776 . $builddepsfile 48777 # Now extract variables from the builddeps.conf files. 48778 theroot=${builddep_alsa_ROOT} 48779 thecflags=${builddep_alsa_CFLAGS} 48780 thelibs=${builddep_alsa_LIBS} 48781 if test "x$depdir" = x; then 48782 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 48783 fi 48784 ALSA=$depdir 48785 if test "x$theroot" != x; then 48786 ALSA="$theroot" 48787 fi 48788 if test "x$thecflags" != x; then 48789 ALSA_CFLAGS="$thecflags" 48790 fi 48791 if test "x$thelibs" != x; then 48792 ALSA_LIBS="$thelibs" 48793 fi 48794 ALSA_FOUND=yes 48795 else ALSA_FOUND=no 48796 48797 fi 48798 else ALSA_FOUND=no 48799 48800 fi 48801 48802 fi 48803 # Do not try pkg-config if we have a sysroot set. 48804 if test "x$SYSROOT" = x; then 48805 if test "x$ALSA_FOUND" = xno; then 48806 48807 pkg_failed=no 48808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 48809 $as_echo_n "checking for ALSA... " >&6; } 48810 48811 if test -n "$ALSA_CFLAGS"; then 48812 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 48813 elif test -n "$PKG_CONFIG"; then 48814 if test -n "$PKG_CONFIG" && \ 48815 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48816 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48817 ac_status=$? 48818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48819 test $ac_status = 0; }; then 48820 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 48821 else 48822 pkg_failed=yes 48823 fi 48824 else 48825 pkg_failed=untried 48826 fi 48827 if test -n "$ALSA_LIBS"; then 48828 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 48829 elif test -n "$PKG_CONFIG"; then 48830 if test -n "$PKG_CONFIG" && \ 48831 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48832 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48833 ac_status=$? 48834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48835 test $ac_status = 0; }; then 48836 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 48837 else 48838 pkg_failed=yes 48839 fi 48840 else 48841 pkg_failed=untried 48842 fi 48843 48844 48845 48846 if test $pkg_failed = yes; then 48847 48848 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48849 _pkg_short_errors_supported=yes 48850 else 48851 _pkg_short_errors_supported=no 48852 fi 48853 if test $_pkg_short_errors_supported = yes; then 48854 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 48855 else 48856 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 48857 fi 48858 # Put the nasty error message in config.log where it belongs 48859 echo "$ALSA_PKG_ERRORS" >&5 48860 48861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48862 $as_echo "no" >&6; } 48863 ALSA_FOUND=no 48864 elif test $pkg_failed = untried; then 48865 ALSA_FOUND=no 48866 else 48867 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 48868 ALSA_LIBS=$pkg_cv_ALSA_LIBS 48869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48870 $as_echo "yes" >&6; } 48871 ALSA_FOUND=yes 48872 fi 48873 fi 48874 fi 48875 if test "x$ALSA_FOUND" = xno; then 48876 for ac_header in alsa/asoundlib.h 48877 do : 48878 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 48879 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 48880 cat >>confdefs.h <<_ACEOF 48881 #define HAVE_ALSA_ASOUNDLIB_H 1 48882 _ACEOF 48883 48884 ALSA_FOUND=yes 48885 ALSA_CFLAGS=-Iignoreme 48886 ALSA_LIBS=-lasound 48887 DEFAULT_ALSA=yes 48888 48889 else 48890 ALSA_FOUND=no 48891 fi 48892 48893 done 48894 48895 fi 48896 if test "x$ALSA_FOUND" = xno; then 48897 48898 # Print a helpful message on how to acquire the necessary build dependency. 48899 # alsa is the help tag: freetype, cups, pulse, alsa etc 48900 MISSING_DEPENDENCY=alsa 48901 48902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48903 cygwin_help $MISSING_DEPENDENCY 48904 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48905 msys_help $MISSING_DEPENDENCY 48906 else 48907 PKGHANDLER_COMMAND= 48908 48909 case $PKGHANDLER in 48910 apt-get) 48911 apt_help $MISSING_DEPENDENCY ;; 48912 yum) 48913 yum_help $MISSING_DEPENDENCY ;; 48914 port) 48915 port_help $MISSING_DEPENDENCY ;; 48916 pkgutil) 48917 pkgutil_help $MISSING_DEPENDENCY ;; 48918 pkgadd) 48919 pkgadd_help $MISSING_DEPENDENCY ;; 48920 esac 48921 48922 if test "x$PKGHANDLER_COMMAND" != x; then 48923 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48924 fi 48925 fi 48926 48927 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 48928 fi 48929 fi 48930 48931 48932 48933 48934 48935 48936 ############################################################################### 48937 # 48938 # Check for the jpeg library 48939 # 48940 48941 48942 # Check whether --with-libjpeg was given. 48943 if test "${with_libjpeg+set}" = set; then : 48944 withval=$with_libjpeg; 48945 fi 48946 48947 48948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 48949 $as_echo_n "checking for which libjpeg to use... " >&6; } 48950 48951 # default is bundled 48952 DEFAULT_LIBJPEG=bundled 48953 48954 # 48955 # if user didn't specify, use DEFAULT_LIBJPEG 48956 # 48957 if test "x${with_libjpeg}" = "x"; then 48958 with_libjpeg=${DEFAULT_LIBJPEG} 48959 fi 48960 48961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 48962 $as_echo "${with_libjpeg}" >&6; } 48963 48964 if test "x${with_libjpeg}" = "xbundled"; then 48965 USE_EXTERNAL_LIBJPEG=false 48966 elif test "x${with_libjpeg}" = "xsystem"; then 48967 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 48968 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 48969 48970 else 48971 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 48972 fi 48973 48974 48975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 48976 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 48977 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 48978 $as_echo_n "(cached) " >&6 48979 else 48980 ac_check_lib_save_LIBS=$LIBS 48981 LIBS="-ljpeg $LIBS" 48982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48983 /* end confdefs.h. */ 48984 48985 /* Override any GCC internal prototype to avoid an error. 48986 Use char because int might match the return type of a GCC 48987 builtin and then its argument prototype would still apply. */ 48988 #ifdef __cplusplus 48989 extern "C" 48990 #endif 48991 char jpeg_CreateDecompress (); 48992 int 48993 main () 48994 { 48995 return jpeg_CreateDecompress (); 48996 ; 48997 return 0; 48998 } 48999 _ACEOF 49000 if ac_fn_cxx_try_link "$LINENO"; then : 49001 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 49002 else 49003 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 49004 fi 49005 rm -f core conftest.err conftest.$ac_objext \ 49006 conftest$ac_exeext conftest.$ac_ext 49007 LIBS=$ac_check_lib_save_LIBS 49008 fi 49009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 49010 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 49011 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 49012 cat >>confdefs.h <<_ACEOF 49013 #define HAVE_LIBJPEG 1 49014 _ACEOF 49015 49016 LIBS="-ljpeg $LIBS" 49017 49018 else 49019 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 49020 fi 49021 49022 49023 USE_EXTERNAL_LIBJPEG=true 49024 else 49025 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 49026 fi 49027 49028 49029 49030 ############################################################################### 49031 # 49032 # Check for the gif library 49033 # 49034 49035 49036 # Check whether --with-giflib was given. 49037 if test "${with_giflib+set}" = set; then : 49038 withval=$with_giflib; 49039 fi 49040 49041 49042 49043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 49044 $as_echo_n "checking for which giflib to use... " >&6; } 49045 49046 # default is bundled 49047 DEFAULT_GIFLIB=bundled 49048 49049 # 49050 # if user didn't specify, use DEFAULT_GIFLIB 49051 # 49052 if test "x${with_giflib}" = "x"; then 49053 with_giflib=${DEFAULT_GIFLIB} 49054 fi 49055 49056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 49057 $as_echo "${with_giflib}" >&6; } 49058 49059 if test "x${with_giflib}" = "xbundled"; then 49060 USE_EXTERNAL_LIBGIF=false 49061 elif test "x${with_giflib}" = "xsystem"; then 49062 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 49063 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 49064 49065 else 49066 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 49067 fi 49068 49069 49070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 49071 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 49072 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 49073 $as_echo_n "(cached) " >&6 49074 else 49075 ac_check_lib_save_LIBS=$LIBS 49076 LIBS="-lgif $LIBS" 49077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49078 /* end confdefs.h. */ 49079 49080 /* Override any GCC internal prototype to avoid an error. 49081 Use char because int might match the return type of a GCC 49082 builtin and then its argument prototype would still apply. */ 49083 #ifdef __cplusplus 49084 extern "C" 49085 #endif 49086 char DGifGetCode (); 49087 int 49088 main () 49089 { 49090 return DGifGetCode (); 49091 ; 49092 return 0; 49093 } 49094 _ACEOF 49095 if ac_fn_cxx_try_link "$LINENO"; then : 49096 ac_cv_lib_gif_DGifGetCode=yes 49097 else 49098 ac_cv_lib_gif_DGifGetCode=no 49099 fi 49100 rm -f core conftest.err conftest.$ac_objext \ 49101 conftest$ac_exeext conftest.$ac_ext 49102 LIBS=$ac_check_lib_save_LIBS 49103 fi 49104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 49105 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 49106 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 49107 cat >>confdefs.h <<_ACEOF 49108 #define HAVE_LIBGIF 1 49109 _ACEOF 49110 49111 LIBS="-lgif $LIBS" 49112 49113 else 49114 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 49115 fi 49116 49117 49118 USE_EXTERNAL_LIBGIF=true 49119 else 49120 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 49121 fi 49122 49123 49124 ############################################################################### 49125 # 49126 # Check for the lcms2 library 49127 # 49128 49129 49130 # Check whether --with-lcms was given. 49131 if test "${with_lcms+set}" = set; then : 49132 withval=$with_lcms; 49133 fi 49134 49135 49136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 49137 $as_echo_n "checking for which lcms to use... " >&6; } 49138 49139 DEFAULT_LCMS=bundled 49140 49141 # 49142 # If user didn't specify, use DEFAULT_LCMS 49143 # 49144 if test "x${with_lcms}" = "x"; then 49145 with_lcms=${DEFAULT_LCMS} 49146 fi 49147 49148 if test "x${with_lcms}" = "xbundled"; then 49149 USE_EXTERNAL_LCMS=false 49150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49151 $as_echo "bundled" >&6; } 49152 elif test "x${with_lcms}" = "xsystem"; then 49153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49154 $as_echo "system" >&6; } 49155 49156 pkg_failed=no 49157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 49158 $as_echo_n "checking for LCMS... " >&6; } 49159 49160 if test -n "$LCMS_CFLAGS"; then 49161 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 49162 elif test -n "$PKG_CONFIG"; then 49163 if test -n "$PKG_CONFIG" && \ 49164 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 49165 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 49166 ac_status=$? 49167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49168 test $ac_status = 0; }; then 49169 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 49170 else 49171 pkg_failed=yes 49172 fi 49173 else 49174 pkg_failed=untried 49175 fi 49176 if test -n "$LCMS_LIBS"; then 49177 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 49178 elif test -n "$PKG_CONFIG"; then 49179 if test -n "$PKG_CONFIG" && \ 49180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 49181 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 49182 ac_status=$? 49183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49184 test $ac_status = 0; }; then 49185 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 49186 else 49187 pkg_failed=yes 49188 fi 49189 else 49190 pkg_failed=untried 49191 fi 49192 49193 49194 49195 if test $pkg_failed = yes; then 49196 49197 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49198 _pkg_short_errors_supported=yes 49199 else 49200 _pkg_short_errors_supported=no 49201 fi 49202 if test $_pkg_short_errors_supported = yes; then 49203 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 49204 else 49205 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 49206 fi 49207 # Put the nasty error message in config.log where it belongs 49208 echo "$LCMS_PKG_ERRORS" >&5 49209 49210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49211 $as_echo "no" >&6; } 49212 LCMS_FOUND=no 49213 elif test $pkg_failed = untried; then 49214 LCMS_FOUND=no 49215 else 49216 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 49217 LCMS_LIBS=$pkg_cv_LCMS_LIBS 49218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49219 $as_echo "yes" >&6; } 49220 LCMS_FOUND=yes 49221 fi 49222 if test "x${LCMS_FOUND}" = "xyes"; then 49223 USE_EXTERNAL_LCMS=true 49224 else 49225 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 49226 fi 49227 else 49228 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 49229 fi 49230 49231 49232 49233 ############################################################################### 49234 # 49235 # Check for the png library 49236 # 49237 49238 49239 # Check whether --with-libpng was given. 49240 if test "${with_libpng+set}" = set; then : 49241 withval=$with_libpng; 49242 fi 49243 49244 49245 49246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 49247 $as_echo_n "checking for which libpng to use... " >&6; } 49248 49249 # default is bundled 49250 DEFAULT_LIBPNG=bundled 49251 49252 # 49253 # if user didn't specify, use DEFAULT_LIBPNG 49254 # 49255 if test "x${with_libpng}" = "x"; then 49256 with_libpng=${DEFAULT_LIBPNG} 49257 fi 49258 49259 if test "x${with_libpng}" = "xbundled"; then 49260 USE_EXTERNAL_LIBPNG=false 49261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49262 $as_echo "bundled" >&6; } 49263 elif test "x${with_libpng}" = "xsystem"; then 49264 49265 pkg_failed=no 49266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 49267 $as_echo_n "checking for PNG... " >&6; } 49268 49269 if test -n "$PNG_CFLAGS"; then 49270 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 49271 elif test -n "$PKG_CONFIG"; then 49272 if test -n "$PKG_CONFIG" && \ 49273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49274 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49275 ac_status=$? 49276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49277 test $ac_status = 0; }; then 49278 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 49279 else 49280 pkg_failed=yes 49281 fi 49282 else 49283 pkg_failed=untried 49284 fi 49285 if test -n "$PNG_LIBS"; then 49286 pkg_cv_PNG_LIBS="$PNG_LIBS" 49287 elif test -n "$PKG_CONFIG"; then 49288 if test -n "$PKG_CONFIG" && \ 49289 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49290 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49291 ac_status=$? 49292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49293 test $ac_status = 0; }; then 49294 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 49295 else 49296 pkg_failed=yes 49297 fi 49298 else 49299 pkg_failed=untried 49300 fi 49301 49302 49303 49304 if test $pkg_failed = yes; then 49305 49306 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49307 _pkg_short_errors_supported=yes 49308 else 49309 _pkg_short_errors_supported=no 49310 fi 49311 if test $_pkg_short_errors_supported = yes; then 49312 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 49313 else 49314 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 49315 fi 49316 # Put the nasty error message in config.log where it belongs 49317 echo "$PNG_PKG_ERRORS" >&5 49318 49319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49320 $as_echo "no" >&6; } 49321 LIBPNG_FOUND=no 49322 elif test $pkg_failed = untried; then 49323 LIBPNG_FOUND=no 49324 else 49325 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 49326 PNG_LIBS=$pkg_cv_PNG_LIBS 49327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49328 $as_echo "yes" >&6; } 49329 LIBPNG_FOUND=yes 49330 fi 49331 if test "x${LIBPNG_FOUND}" = "xyes"; then 49332 USE_EXTERNAL_LIBPNG=true 49333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49334 $as_echo "system" >&6; } 49335 else 49336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49337 $as_echo "system not found" >&6; } 49338 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 49339 fi 49340 else 49341 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 49342 fi 49343 49344 49345 ############################################################################### 49346 # 49347 # Check for the zlib library 49348 # 49349 49350 49351 # Check whether --with-zlib was given. 49352 if test "${with_zlib+set}" = set; then : 49353 withval=$with_zlib; 49354 fi 49355 49356 49357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 49358 $as_echo_n "checking for compress in -lz... " >&6; } 49359 if ${ac_cv_lib_z_compress+:} false; then : 49360 $as_echo_n "(cached) " >&6 49361 else 49362 ac_check_lib_save_LIBS=$LIBS 49363 LIBS="-lz $LIBS" 49364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49365 /* end confdefs.h. */ 49366 49367 /* Override any GCC internal prototype to avoid an error. 49368 Use char because int might match the return type of a GCC 49369 builtin and then its argument prototype would still apply. */ 49370 #ifdef __cplusplus 49371 extern "C" 49372 #endif 49373 char compress (); 49374 int 49375 main () 49376 { 49377 return compress (); 49378 ; 49379 return 0; 49380 } 49381 _ACEOF 49382 if ac_fn_cxx_try_link "$LINENO"; then : 49383 ac_cv_lib_z_compress=yes 49384 else 49385 ac_cv_lib_z_compress=no 49386 fi 49387 rm -f core conftest.err conftest.$ac_objext \ 49388 conftest$ac_exeext conftest.$ac_ext 49389 LIBS=$ac_check_lib_save_LIBS 49390 fi 49391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 49392 $as_echo "$ac_cv_lib_z_compress" >&6; } 49393 if test "x$ac_cv_lib_z_compress" = xyes; then : 49394 ZLIB_FOUND=yes 49395 else 49396 ZLIB_FOUND=no 49397 fi 49398 49399 49400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 49401 $as_echo_n "checking for which zlib to use... " >&6; } 49402 49403 DEFAULT_ZLIB=bundled 49404 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49405 # 49406 # On macosx default is system...on others default is 49407 # 49408 DEFAULT_ZLIB=system 49409 fi 49410 49411 if test "x${ZLIB_FOUND}" != "xyes"; then 49412 # 49413 # If we don't find any system...set default to bundled 49414 # 49415 DEFAULT_ZLIB=bundled 49416 fi 49417 49418 # 49419 # If user didn't specify, use DEFAULT_ZLIB 49420 # 49421 if test "x${with_zlib}" = "x"; then 49422 with_zlib=${DEFAULT_ZLIB} 49423 fi 49424 49425 if test "x${with_zlib}" = "xbundled"; then 49426 USE_EXTERNAL_LIBZ=false 49427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49428 $as_echo "bundled" >&6; } 49429 elif test "x${with_zlib}" = "xsystem"; then 49430 if test "x${ZLIB_FOUND}" = "xyes"; then 49431 USE_EXTERNAL_LIBZ=true 49432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49433 $as_echo "system" >&6; } 49434 else 49435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49436 $as_echo "system not found" >&6; } 49437 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 49438 fi 49439 else 49440 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 49441 fi 49442 49443 49444 49445 ############################################################################### 49446 LIBZIP_CAN_USE_MMAP=true 49447 49448 49449 49450 ############################################################################### 49451 # 49452 # Check if altzone exists in time.h 49453 # 49454 49455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49456 /* end confdefs.h. */ 49457 #include <time.h> 49458 int 49459 main () 49460 { 49461 return (int)altzone; 49462 ; 49463 return 0; 49464 } 49465 _ACEOF 49466 if ac_fn_cxx_try_link "$LINENO"; then : 49467 has_altzone=yes 49468 else 49469 has_altzone=no 49470 fi 49471 rm -f core conftest.err conftest.$ac_objext \ 49472 conftest$ac_exeext conftest.$ac_ext 49473 if test "x$has_altzone" = xyes; then 49474 49475 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 49476 49477 fi 49478 49479 ############################################################################### 49480 # 49481 # Check the maths library 49482 # 49483 49484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 49485 $as_echo_n "checking for cos in -lm... " >&6; } 49486 if ${ac_cv_lib_m_cos+:} false; then : 49487 $as_echo_n "(cached) " >&6 49488 else 49489 ac_check_lib_save_LIBS=$LIBS 49490 LIBS="-lm $LIBS" 49491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49492 /* end confdefs.h. */ 49493 49494 /* Override any GCC internal prototype to avoid an error. 49495 Use char because int might match the return type of a GCC 49496 builtin and then its argument prototype would still apply. */ 49497 #ifdef __cplusplus 49498 extern "C" 49499 #endif 49500 char cos (); 49501 int 49502 main () 49503 { 49504 return cos (); 49505 ; 49506 return 0; 49507 } 49508 _ACEOF 49509 if ac_fn_cxx_try_link "$LINENO"; then : 49510 ac_cv_lib_m_cos=yes 49511 else 49512 ac_cv_lib_m_cos=no 49513 fi 49514 rm -f core conftest.err conftest.$ac_objext \ 49515 conftest$ac_exeext conftest.$ac_ext 49516 LIBS=$ac_check_lib_save_LIBS 49517 fi 49518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 49519 $as_echo "$ac_cv_lib_m_cos" >&6; } 49520 if test "x$ac_cv_lib_m_cos" = xyes; then : 49521 cat >>confdefs.h <<_ACEOF 49522 #define HAVE_LIBM 1 49523 _ACEOF 49524 49525 LIBS="-lm $LIBS" 49526 49527 else 49528 49529 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 49530 $as_echo "$as_me: Maths library was not found" >&6;} 49531 49532 49533 fi 49534 49535 49536 49537 ############################################################################### 49538 # 49539 # Check for libdl.so 49540 49541 save_LIBS="$LIBS" 49542 LIBS="" 49543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 49544 $as_echo_n "checking for dlopen in -ldl... " >&6; } 49545 if ${ac_cv_lib_dl_dlopen+:} false; then : 49546 $as_echo_n "(cached) " >&6 49547 else 49548 ac_check_lib_save_LIBS=$LIBS 49549 LIBS="-ldl $LIBS" 49550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49551 /* end confdefs.h. */ 49552 49553 /* Override any GCC internal prototype to avoid an error. 49554 Use char because int might match the return type of a GCC 49555 builtin and then its argument prototype would still apply. */ 49556 #ifdef __cplusplus 49557 extern "C" 49558 #endif 49559 char dlopen (); 49560 int 49561 main () 49562 { 49563 return dlopen (); 49564 ; 49565 return 0; 49566 } 49567 _ACEOF 49568 if ac_fn_cxx_try_link "$LINENO"; then : 49569 ac_cv_lib_dl_dlopen=yes 49570 else 49571 ac_cv_lib_dl_dlopen=no 49572 fi 49573 rm -f core conftest.err conftest.$ac_objext \ 49574 conftest$ac_exeext conftest.$ac_ext 49575 LIBS=$ac_check_lib_save_LIBS 49576 fi 49577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 49578 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 49579 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 49580 cat >>confdefs.h <<_ACEOF 49581 #define HAVE_LIBDL 1 49582 _ACEOF 49583 49584 LIBS="-ldl $LIBS" 49585 49586 fi 49587 49588 LIBDL="$LIBS" 49589 49590 LIBS="$save_LIBS" 49591 49592 49593 ############################################################################### 49594 # 49595 # statically link libstdc++ before C++ ABI is stablized on Linux unless 49596 # dynamic build is configured on command line. 49597 # 49598 49599 # Check whether --with-stdc++lib was given. 49600 if test "${with_stdc__lib+set}" = set; then : 49601 withval=$with_stdc__lib; 49602 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 49603 && test "x$with_stdc__lib" != xdefault; then 49604 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 49605 fi 49606 49607 else 49608 with_stdc__lib=default 49609 49610 fi 49611 49612 49613 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49614 # Test if -lstdc++ works. 49615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 49616 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 49617 ac_ext=cpp 49618 ac_cpp='$CXXCPP $CPPFLAGS' 49619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49622 49623 OLD_CXXFLAGS="$CXXFLAGS" 49624 CXXFLAGS="$CXXFLAGS -lstdc++" 49625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49626 /* end confdefs.h. */ 49627 49628 int 49629 main () 49630 { 49631 return 0; 49632 ; 49633 return 0; 49634 } 49635 _ACEOF 49636 if ac_fn_cxx_try_link "$LINENO"; then : 49637 has_dynamic_libstdcxx=yes 49638 else 49639 has_dynamic_libstdcxx=no 49640 fi 49641 rm -f core conftest.err conftest.$ac_objext \ 49642 conftest$ac_exeext conftest.$ac_ext 49643 CXXFLAGS="$OLD_CXXFLAGS" 49644 ac_ext=cpp 49645 ac_cpp='$CXXCPP $CPPFLAGS' 49646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49649 49650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 49651 $as_echo "$has_dynamic_libstdcxx" >&6; } 49652 49653 # Test if stdc++ can be linked statically. 49654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 49655 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 49656 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 49657 ac_ext=cpp 49658 ac_cpp='$CXXCPP $CPPFLAGS' 49659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49662 49663 OLD_LIBS="$LIBS" 49664 OLD_CXX="$CXX" 49665 LIBS="$STATIC_STDCXX_FLAGS" 49666 CXX="$CC" 49667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49668 /* end confdefs.h. */ 49669 49670 int 49671 main () 49672 { 49673 return 0; 49674 ; 49675 return 0; 49676 } 49677 _ACEOF 49678 if ac_fn_cxx_try_link "$LINENO"; then : 49679 has_static_libstdcxx=yes 49680 else 49681 has_static_libstdcxx=no 49682 fi 49683 rm -f core conftest.err conftest.$ac_objext \ 49684 conftest$ac_exeext conftest.$ac_ext 49685 LIBS="$OLD_LIBS" 49686 CXX="$OLD_CXX" 49687 ac_ext=cpp 49688 ac_cpp='$CXXCPP $CPPFLAGS' 49689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49692 49693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 49694 $as_echo "$has_static_libstdcxx" >&6; } 49695 49696 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 49697 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 49698 fi 49699 49700 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 49701 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 49702 fi 49703 49704 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 49705 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 49706 fi 49707 49708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 49709 $as_echo_n "checking how to link with libstdc++... " >&6; } 49710 # If dynamic was requested, it's available since it would fail above otherwise. 49711 # If dynamic wasn't requested, go with static unless it isn't available. 49712 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49713 LIBCXX="$LIBCXX -lstdc++" 49714 LDCXX="$CXX" 49715 STATIC_CXX_SETTING="STATIC_CXX=false" 49716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 49717 $as_echo "dynamic" >&6; } 49718 else 49719 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 49720 LDCXX="$CC" 49721 STATIC_CXX_SETTING="STATIC_CXX=true" 49722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 49723 $as_echo "static" >&6; } 49724 fi 49725 fi 49726 49727 49728 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49729 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 49730 49731 pkg_failed=no 49732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 49733 $as_echo_n "checking for LIBFFI... " >&6; } 49734 49735 if test -n "$LIBFFI_CFLAGS"; then 49736 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 49737 elif test -n "$PKG_CONFIG"; then 49738 if test -n "$PKG_CONFIG" && \ 49739 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49740 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49741 ac_status=$? 49742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49743 test $ac_status = 0; }; then 49744 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 49745 else 49746 pkg_failed=yes 49747 fi 49748 else 49749 pkg_failed=untried 49750 fi 49751 if test -n "$LIBFFI_LIBS"; then 49752 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 49753 elif test -n "$PKG_CONFIG"; then 49754 if test -n "$PKG_CONFIG" && \ 49755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49756 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49757 ac_status=$? 49758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49759 test $ac_status = 0; }; then 49760 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 49761 else 49762 pkg_failed=yes 49763 fi 49764 else 49765 pkg_failed=untried 49766 fi 49767 49768 49769 49770 if test $pkg_failed = yes; then 49771 49772 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49773 _pkg_short_errors_supported=yes 49774 else 49775 _pkg_short_errors_supported=no 49776 fi 49777 if test $_pkg_short_errors_supported = yes; then 49778 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 49779 else 49780 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 49781 fi 49782 # Put the nasty error message in config.log where it belongs 49783 echo "$LIBFFI_PKG_ERRORS" >&5 49784 49785 as_fn_error $? "Package requirements (libffi) were not met: 49786 49787 $LIBFFI_PKG_ERRORS 49788 49789 Consider adjusting the PKG_CONFIG_PATH environment variable if you 49790 installed software in a non-standard prefix. 49791 49792 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49793 and LIBFFI_LIBS to avoid the need to call pkg-config. 49794 See the pkg-config man page for more details. 49795 " "$LINENO" 5 49796 elif test $pkg_failed = untried; then 49797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49799 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 49800 is in your PATH or set the PKG_CONFIG environment variable to the full 49801 path to pkg-config. 49802 49803 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49804 and LIBFFI_LIBS to avoid the need to call pkg-config. 49805 See the pkg-config man page for more details. 49806 49807 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 49808 See \`config.log' for more details" "$LINENO" 5; } 49809 else 49810 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 49811 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 49812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49813 $as_echo "yes" >&6; } 49814 : 49815 fi 49816 49817 fi 49818 49819 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49820 # Extract the first word of "llvm-config", so it can be a program name with args. 49821 set dummy llvm-config; ac_word=$2 49822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49823 $as_echo_n "checking for $ac_word... " >&6; } 49824 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 49825 $as_echo_n "(cached) " >&6 49826 else 49827 if test -n "$LLVM_CONFIG"; then 49828 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 49829 else 49830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49831 for as_dir in $PATH 49832 do 49833 IFS=$as_save_IFS 49834 test -z "$as_dir" && as_dir=. 49835 for ac_exec_ext in '' $ac_executable_extensions; do 49836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49837 ac_cv_prog_LLVM_CONFIG="llvm-config" 49838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49839 break 2 49840 fi 49841 done 49842 done 49843 IFS=$as_save_IFS 49844 49845 fi 49846 fi 49847 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 49848 if test -n "$LLVM_CONFIG"; then 49849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 49850 $as_echo "$LLVM_CONFIG" >&6; } 49851 else 49852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49853 $as_echo "no" >&6; } 49854 fi 49855 49856 49857 49858 if test "x$LLVM_CONFIG" != xllvm-config; then 49859 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 49860 fi 49861 49862 llvm_components="jit mcjit engine nativecodegen native" 49863 unset LLVM_CFLAGS 49864 for flag in $("$LLVM_CONFIG" --cxxflags); do 49865 if echo "${flag}" | grep -q '^-[ID]'; then 49866 if test "${flag}" != "-D_DEBUG" ; then 49867 if test "${LLVM_CFLAGS}" != "" ; then 49868 LLVM_CFLAGS="${LLVM_CFLAGS} " 49869 fi 49870 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 49871 fi 49872 fi 49873 done 49874 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 49875 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 49876 49877 unset LLVM_LDFLAGS 49878 for flag in $("${LLVM_CONFIG}" --ldflags); do 49879 if echo "${flag}" | grep -q '^-L'; then 49880 if test "${LLVM_LDFLAGS}" != ""; then 49881 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 49882 fi 49883 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 49884 fi 49885 done 49886 49887 unset LLVM_LIBS 49888 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 49889 if echo "${flag}" | grep -q '^-l'; then 49890 if test "${LLVM_LIBS}" != ""; then 49891 LLVM_LIBS="${LLVM_LIBS} " 49892 fi 49893 LLVM_LIBS="${LLVM_LIBS}${flag}" 49894 fi 49895 done 49896 49897 49898 49899 49900 fi 49901 49902 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 49903 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 49904 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 49905 fi 49906 49907 # TODO better (platform agnostic) test 49908 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 49909 LIBCXX="-lstdc++" 49910 fi 49911 49912 49913 49914 49915 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49916 49917 49918 # Check whether --with-msvcr-dll was given. 49919 if test "${with_msvcr_dll+set}" = set; then : 49920 withval=$with_msvcr_dll; 49921 fi 49922 49923 49924 if test "x$with_msvcr_dll" != x; then 49925 # If given explicitely by user, do not probe. If not present, fail directly. 49926 49927 DLL_NAME="$DLL_NAME" 49928 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 49929 METHOD="--with-msvcr-dll" 49930 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49931 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49932 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49933 49934 # Need to check if the found msvcr is correct architecture 49935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49936 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49937 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49939 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49940 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49941 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49942 CORRECT_MSVCR_ARCH="PE32 executable" 49943 else 49944 CORRECT_MSVCR_ARCH="PE32+ executable" 49945 fi 49946 else 49947 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49948 CORRECT_MSVCR_ARCH=386 49949 else 49950 CORRECT_MSVCR_ARCH=x86-64 49951 fi 49952 fi 49953 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49955 $as_echo "ok" >&6; } 49956 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49958 $as_echo_n "checking for $DLL_NAME... " >&6; } 49959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49960 $as_echo "$MSVC_DLL" >&6; } 49961 else 49962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49963 $as_echo "incorrect, ignoring" >&6; } 49964 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49965 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49966 fi 49967 fi 49968 49969 if test "x$MSVC_DLL" = x; then 49970 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 49971 fi 49972 else 49973 49974 VAR_NAME="MSVCR_DLL" 49975 DLL_NAME="${MSVCR_NAME}" 49976 MSVC_DLL= 49977 49978 if test "x$MSVC_DLL" = x; then 49979 # Probe: Using well-known location from Visual Studio 10.0 49980 if test "x$VCINSTALLDIR" != x; then 49981 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49982 49983 windows_path="$CYGWIN_VC_INSTALL_DIR" 49984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49985 unix_path=`$CYGPATH -u "$windows_path"` 49986 CYGWIN_VC_INSTALL_DIR="$unix_path" 49987 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49988 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49989 CYGWIN_VC_INSTALL_DIR="$unix_path" 49990 fi 49991 49992 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49993 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49994 else 49995 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49996 fi 49997 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 49998 49999 DLL_NAME="$DLL_NAME" 50000 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50001 METHOD="well-known location in VCINSTALLDIR" 50002 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50003 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50004 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50005 50006 # Need to check if the found msvcr is correct architecture 50007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50008 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50009 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50011 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50012 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50013 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50014 CORRECT_MSVCR_ARCH="PE32 executable" 50015 else 50016 CORRECT_MSVCR_ARCH="PE32+ executable" 50017 fi 50018 else 50019 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50020 CORRECT_MSVCR_ARCH=386 50021 else 50022 CORRECT_MSVCR_ARCH=x86-64 50023 fi 50024 fi 50025 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50027 $as_echo "ok" >&6; } 50028 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50030 $as_echo_n "checking for $DLL_NAME... " >&6; } 50031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50032 $as_echo "$MSVC_DLL" >&6; } 50033 else 50034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50035 $as_echo "incorrect, ignoring" >&6; } 50036 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50037 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50038 fi 50039 fi 50040 50041 fi 50042 fi 50043 50044 if test "x$MSVC_DLL" = x; then 50045 # Probe: Check in the Boot JDK directory. 50046 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 50047 50048 DLL_NAME="$DLL_NAME" 50049 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50050 METHOD="well-known location in Boot JDK" 50051 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50052 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50053 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50054 50055 # Need to check if the found msvcr is correct architecture 50056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50057 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50058 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50059 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50060 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50061 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50062 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50063 CORRECT_MSVCR_ARCH="PE32 executable" 50064 else 50065 CORRECT_MSVCR_ARCH="PE32+ executable" 50066 fi 50067 else 50068 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50069 CORRECT_MSVCR_ARCH=386 50070 else 50071 CORRECT_MSVCR_ARCH=x86-64 50072 fi 50073 fi 50074 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50076 $as_echo "ok" >&6; } 50077 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50079 $as_echo_n "checking for $DLL_NAME... " >&6; } 50080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50081 $as_echo "$MSVC_DLL" >&6; } 50082 else 50083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50084 $as_echo "incorrect, ignoring" >&6; } 50085 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50086 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50087 fi 50088 fi 50089 50090 fi 50091 50092 if test "x$MSVC_DLL" = x; then 50093 # Probe: Look in the Windows system32 directory 50094 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 50095 50096 windows_path="$CYGWIN_SYSTEMROOT" 50097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50098 unix_path=`$CYGPATH -u "$windows_path"` 50099 CYGWIN_SYSTEMROOT="$unix_path" 50100 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50101 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50102 CYGWIN_SYSTEMROOT="$unix_path" 50103 fi 50104 50105 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 50106 50107 DLL_NAME="$DLL_NAME" 50108 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50109 METHOD="well-known location in SYSTEMROOT" 50110 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50111 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50112 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50113 50114 # Need to check if the found msvcr is correct architecture 50115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50116 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50117 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50119 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50120 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50121 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50122 CORRECT_MSVCR_ARCH="PE32 executable" 50123 else 50124 CORRECT_MSVCR_ARCH="PE32+ executable" 50125 fi 50126 else 50127 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50128 CORRECT_MSVCR_ARCH=386 50129 else 50130 CORRECT_MSVCR_ARCH=x86-64 50131 fi 50132 fi 50133 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50135 $as_echo "ok" >&6; } 50136 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50138 $as_echo_n "checking for $DLL_NAME... " >&6; } 50139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50140 $as_echo "$MSVC_DLL" >&6; } 50141 else 50142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50143 $as_echo "incorrect, ignoring" >&6; } 50144 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50145 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50146 fi 50147 fi 50148 50149 fi 50150 50151 if test "x$MSVC_DLL" = x; then 50152 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50153 if test "x$VS100COMNTOOLS" != x; then 50154 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50155 50156 windows_path="$CYGWIN_VS_TOOLS_DIR" 50157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50158 unix_path=`$CYGPATH -u "$windows_path"` 50159 CYGWIN_VS_TOOLS_DIR="$unix_path" 50160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50162 CYGWIN_VS_TOOLS_DIR="$unix_path" 50163 fi 50164 50165 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50166 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50167 | $GREP -i /x64/ | $HEAD --lines 1` 50168 else 50169 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50170 | $GREP -i /x86/ | $HEAD --lines 1` 50171 fi 50172 50173 DLL_NAME="$DLL_NAME" 50174 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50175 METHOD="search of VS100COMNTOOLS" 50176 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50177 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50178 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50179 50180 # Need to check if the found msvcr is correct architecture 50181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50182 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50183 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50185 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50186 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50187 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50188 CORRECT_MSVCR_ARCH="PE32 executable" 50189 else 50190 CORRECT_MSVCR_ARCH="PE32+ executable" 50191 fi 50192 else 50193 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50194 CORRECT_MSVCR_ARCH=386 50195 else 50196 CORRECT_MSVCR_ARCH=x86-64 50197 fi 50198 fi 50199 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50201 $as_echo "ok" >&6; } 50202 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50204 $as_echo_n "checking for $DLL_NAME... " >&6; } 50205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50206 $as_echo "$MSVC_DLL" >&6; } 50207 else 50208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50209 $as_echo "incorrect, ignoring" >&6; } 50210 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50211 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50212 fi 50213 fi 50214 50215 fi 50216 fi 50217 50218 if test "x$MSVC_DLL" = x; then 50219 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50220 # (This was the original behaviour; kept since it might turn something up) 50221 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50222 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50223 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50224 | $GREP x64 | $HEAD --lines 1` 50225 else 50226 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50227 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50228 if test "x$POSSIBLE_MSVC_DLL" = x; then 50229 # We're grasping at straws now... 50230 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50231 | $HEAD --lines 1` 50232 fi 50233 fi 50234 50235 50236 DLL_NAME="$DLL_NAME" 50237 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50238 METHOD="search of VCINSTALLDIR" 50239 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50240 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50241 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50242 50243 # Need to check if the found msvcr is correct architecture 50244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50245 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50246 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50248 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50249 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50250 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50251 CORRECT_MSVCR_ARCH="PE32 executable" 50252 else 50253 CORRECT_MSVCR_ARCH="PE32+ executable" 50254 fi 50255 else 50256 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50257 CORRECT_MSVCR_ARCH=386 50258 else 50259 CORRECT_MSVCR_ARCH=x86-64 50260 fi 50261 fi 50262 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50264 $as_echo "ok" >&6; } 50265 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50267 $as_echo_n "checking for $DLL_NAME... " >&6; } 50268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50269 $as_echo "$MSVC_DLL" >&6; } 50270 else 50271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50272 $as_echo "incorrect, ignoring" >&6; } 50273 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50274 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50275 fi 50276 fi 50277 50278 fi 50279 fi 50280 50281 if test "x$MSVC_DLL" = x; then 50282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50283 $as_echo_n "checking for $DLL_NAME... " >&6; } 50284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50285 $as_echo "no" >&6; } 50286 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 50287 fi 50288 50289 MSVCR_DLL=$MSVC_DLL 50290 50291 # Only process if variable expands to non-empty 50292 50293 if test "x$MSVCR_DLL" != x; then 50294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50295 50296 # Input might be given as Windows format, start by converting to 50297 # unix format. 50298 path="$MSVCR_DLL" 50299 new_path=`$CYGPATH -u "$path"` 50300 50301 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50302 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50303 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50304 # "foo.exe" is OK but "foo" is an error. 50305 # 50306 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50307 # It is also a way to make sure we got the proper file name for the real test later on. 50308 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50309 if test "x$test_shortpath" = x; then 50310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50311 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50312 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 50313 fi 50314 50315 # Call helper function which possibly converts this using DOS-style short mode. 50316 # If so, the updated path is stored in $new_path. 50317 50318 input_path="$new_path" 50319 # Check if we need to convert this using DOS-style short mode. If the path 50320 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50321 # take no chances and rewrite it. 50322 # Note: m4 eats our [], so we need to use [ and ] instead. 50323 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50324 if test "x$has_forbidden_chars" != x; then 50325 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50326 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50327 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50328 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50329 # Going to short mode and back again did indeed matter. Since short mode is 50330 # case insensitive, let's make it lowercase to improve readability. 50331 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50332 # Now convert it back to Unix-stile (cygpath) 50333 input_path=`$CYGPATH -u "$shortmode_path"` 50334 new_path="$input_path" 50335 fi 50336 fi 50337 50338 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50339 if test "x$test_cygdrive_prefix" = x; then 50340 # As a simple fix, exclude /usr/bin since it's not a real path. 50341 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50342 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50343 # a path prefixed by /cygdrive for fixpath to work. 50344 new_path="$CYGWIN_ROOT_PATH$input_path" 50345 fi 50346 fi 50347 50348 50349 if test "x$path" != "x$new_path"; then 50350 MSVCR_DLL="$new_path" 50351 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50352 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50353 fi 50354 50355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50356 50357 path="$MSVCR_DLL" 50358 has_colon=`$ECHO $path | $GREP ^.:` 50359 new_path="$path" 50360 if test "x$has_colon" = x; then 50361 # Not in mixed or Windows style, start by that. 50362 new_path=`cmd //c echo $path` 50363 fi 50364 50365 50366 input_path="$new_path" 50367 # Check if we need to convert this using DOS-style short mode. If the path 50368 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50369 # take no chances and rewrite it. 50370 # Note: m4 eats our [], so we need to use [ and ] instead. 50371 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50372 if test "x$has_forbidden_chars" != x; then 50373 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50374 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50375 fi 50376 50377 50378 windows_path="$new_path" 50379 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50380 unix_path=`$CYGPATH -u "$windows_path"` 50381 new_path="$unix_path" 50382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50383 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50384 new_path="$unix_path" 50385 fi 50386 50387 if test "x$path" != "x$new_path"; then 50388 MSVCR_DLL="$new_path" 50389 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50390 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50391 fi 50392 50393 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50394 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50395 50396 else 50397 # We're on a unix platform. Hooray! :) 50398 path="$MSVCR_DLL" 50399 has_space=`$ECHO "$path" | $GREP " "` 50400 if test "x$has_space" != x; then 50401 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50402 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50403 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50404 fi 50405 50406 # Use eval to expand a potential ~ 50407 eval path="$path" 50408 if test ! -f "$path" && test ! -d "$path"; then 50409 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50410 fi 50411 50412 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 50413 fi 50414 fi 50415 50416 MSVCR_DLL=$MSVCR_DLL 50417 50418 50419 fi 50420 50421 50422 # Check whether --with-msvcp-dll was given. 50423 if test "${with_msvcp_dll+set}" = set; then : 50424 withval=$with_msvcp_dll; 50425 fi 50426 50427 50428 if test "x$MSVCP_NAME" != "x"; then 50429 if test "x$with_msvcp_dll" != x; then 50430 # If given explicitely by user, do not probe. If not present, fail directly. 50431 50432 DLL_NAME="$DLL_NAME" 50433 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 50434 METHOD="--with-msvcp-dll" 50435 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50436 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50437 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50438 50439 # Need to check if the found msvcr is correct architecture 50440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50441 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50442 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50444 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50445 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50446 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50447 CORRECT_MSVCR_ARCH="PE32 executable" 50448 else 50449 CORRECT_MSVCR_ARCH="PE32+ executable" 50450 fi 50451 else 50452 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50453 CORRECT_MSVCR_ARCH=386 50454 else 50455 CORRECT_MSVCR_ARCH=x86-64 50456 fi 50457 fi 50458 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50460 $as_echo "ok" >&6; } 50461 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50463 $as_echo_n "checking for $DLL_NAME... " >&6; } 50464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50465 $as_echo "$MSVC_DLL" >&6; } 50466 else 50467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50468 $as_echo "incorrect, ignoring" >&6; } 50469 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50470 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50471 fi 50472 fi 50473 50474 if test "x$MSVC_DLL" = x; then 50475 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 50476 fi 50477 else 50478 50479 VAR_NAME="MSVCP_DLL" 50480 DLL_NAME="${MSVCP_NAME}" 50481 MSVC_DLL= 50482 50483 if test "x$MSVC_DLL" = x; then 50484 # Probe: Using well-known location from Visual Studio 10.0 50485 if test "x$VCINSTALLDIR" != x; then 50486 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 50487 50488 windows_path="$CYGWIN_VC_INSTALL_DIR" 50489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50490 unix_path=`$CYGPATH -u "$windows_path"` 50491 CYGWIN_VC_INSTALL_DIR="$unix_path" 50492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50493 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50494 CYGWIN_VC_INSTALL_DIR="$unix_path" 50495 fi 50496 50497 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50498 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50499 else 50500 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50501 fi 50502 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 50503 50504 DLL_NAME="$DLL_NAME" 50505 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50506 METHOD="well-known location in VCINSTALLDIR" 50507 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50508 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50509 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50510 50511 # Need to check if the found msvcr is correct architecture 50512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50513 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50514 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50515 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50516 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50517 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50518 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50519 CORRECT_MSVCR_ARCH="PE32 executable" 50520 else 50521 CORRECT_MSVCR_ARCH="PE32+ executable" 50522 fi 50523 else 50524 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50525 CORRECT_MSVCR_ARCH=386 50526 else 50527 CORRECT_MSVCR_ARCH=x86-64 50528 fi 50529 fi 50530 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50532 $as_echo "ok" >&6; } 50533 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50535 $as_echo_n "checking for $DLL_NAME... " >&6; } 50536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50537 $as_echo "$MSVC_DLL" >&6; } 50538 else 50539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50540 $as_echo "incorrect, ignoring" >&6; } 50541 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50542 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50543 fi 50544 fi 50545 50546 fi 50547 fi 50548 50549 if test "x$MSVC_DLL" = x; then 50550 # Probe: Check in the Boot JDK directory. 50551 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 50552 50553 DLL_NAME="$DLL_NAME" 50554 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50555 METHOD="well-known location in Boot JDK" 50556 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50557 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50558 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50559 50560 # Need to check if the found msvcr is correct architecture 50561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50562 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50563 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50565 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50566 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50567 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50568 CORRECT_MSVCR_ARCH="PE32 executable" 50569 else 50570 CORRECT_MSVCR_ARCH="PE32+ executable" 50571 fi 50572 else 50573 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50574 CORRECT_MSVCR_ARCH=386 50575 else 50576 CORRECT_MSVCR_ARCH=x86-64 50577 fi 50578 fi 50579 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50581 $as_echo "ok" >&6; } 50582 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50584 $as_echo_n "checking for $DLL_NAME... " >&6; } 50585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50586 $as_echo "$MSVC_DLL" >&6; } 50587 else 50588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50589 $as_echo "incorrect, ignoring" >&6; } 50590 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50591 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50592 fi 50593 fi 50594 50595 fi 50596 50597 if test "x$MSVC_DLL" = x; then 50598 # Probe: Look in the Windows system32 directory 50599 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 50600 50601 windows_path="$CYGWIN_SYSTEMROOT" 50602 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50603 unix_path=`$CYGPATH -u "$windows_path"` 50604 CYGWIN_SYSTEMROOT="$unix_path" 50605 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50606 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50607 CYGWIN_SYSTEMROOT="$unix_path" 50608 fi 50609 50610 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 50611 50612 DLL_NAME="$DLL_NAME" 50613 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50614 METHOD="well-known location in SYSTEMROOT" 50615 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50616 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50617 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50618 50619 # Need to check if the found msvcr is correct architecture 50620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50621 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50622 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50624 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50625 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50626 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50627 CORRECT_MSVCR_ARCH="PE32 executable" 50628 else 50629 CORRECT_MSVCR_ARCH="PE32+ executable" 50630 fi 50631 else 50632 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50633 CORRECT_MSVCR_ARCH=386 50634 else 50635 CORRECT_MSVCR_ARCH=x86-64 50636 fi 50637 fi 50638 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50640 $as_echo "ok" >&6; } 50641 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50643 $as_echo_n "checking for $DLL_NAME... " >&6; } 50644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50645 $as_echo "$MSVC_DLL" >&6; } 50646 else 50647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50648 $as_echo "incorrect, ignoring" >&6; } 50649 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50650 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50651 fi 50652 fi 50653 50654 fi 50655 50656 if test "x$MSVC_DLL" = x; then 50657 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50658 if test "x$VS100COMNTOOLS" != x; then 50659 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50660 50661 windows_path="$CYGWIN_VS_TOOLS_DIR" 50662 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50663 unix_path=`$CYGPATH -u "$windows_path"` 50664 CYGWIN_VS_TOOLS_DIR="$unix_path" 50665 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50666 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50667 CYGWIN_VS_TOOLS_DIR="$unix_path" 50668 fi 50669 50670 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50671 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50672 | $GREP -i /x64/ | $HEAD --lines 1` 50673 else 50674 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50675 | $GREP -i /x86/ | $HEAD --lines 1` 50676 fi 50677 50678 DLL_NAME="$DLL_NAME" 50679 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50680 METHOD="search of VS100COMNTOOLS" 50681 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50682 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50683 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50684 50685 # Need to check if the found msvcr is correct architecture 50686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50687 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50688 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50689 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50690 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50691 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50692 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50693 CORRECT_MSVCR_ARCH="PE32 executable" 50694 else 50695 CORRECT_MSVCR_ARCH="PE32+ executable" 50696 fi 50697 else 50698 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50699 CORRECT_MSVCR_ARCH=386 50700 else 50701 CORRECT_MSVCR_ARCH=x86-64 50702 fi 50703 fi 50704 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50706 $as_echo "ok" >&6; } 50707 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50709 $as_echo_n "checking for $DLL_NAME... " >&6; } 50710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50711 $as_echo "$MSVC_DLL" >&6; } 50712 else 50713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50714 $as_echo "incorrect, ignoring" >&6; } 50715 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50716 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50717 fi 50718 fi 50719 50720 fi 50721 fi 50722 50723 if test "x$MSVC_DLL" = x; then 50724 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50725 # (This was the original behaviour; kept since it might turn something up) 50726 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50727 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50728 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50729 | $GREP x64 | $HEAD --lines 1` 50730 else 50731 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50732 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50733 if test "x$POSSIBLE_MSVC_DLL" = x; then 50734 # We're grasping at straws now... 50735 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50736 | $HEAD --lines 1` 50737 fi 50738 fi 50739 50740 50741 DLL_NAME="$DLL_NAME" 50742 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50743 METHOD="search of VCINSTALLDIR" 50744 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50745 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50746 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50747 50748 # Need to check if the found msvcr is correct architecture 50749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50750 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50751 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50752 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50753 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50754 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50755 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50756 CORRECT_MSVCR_ARCH="PE32 executable" 50757 else 50758 CORRECT_MSVCR_ARCH="PE32+ executable" 50759 fi 50760 else 50761 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50762 CORRECT_MSVCR_ARCH=386 50763 else 50764 CORRECT_MSVCR_ARCH=x86-64 50765 fi 50766 fi 50767 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50769 $as_echo "ok" >&6; } 50770 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50772 $as_echo_n "checking for $DLL_NAME... " >&6; } 50773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50774 $as_echo "$MSVC_DLL" >&6; } 50775 else 50776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50777 $as_echo "incorrect, ignoring" >&6; } 50778 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50779 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50780 fi 50781 fi 50782 50783 fi 50784 fi 50785 50786 if test "x$MSVC_DLL" = x; then 50787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50788 $as_echo_n "checking for $DLL_NAME... " >&6; } 50789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50790 $as_echo "no" >&6; } 50791 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 50792 fi 50793 50794 MSVCP_DLL=$MSVC_DLL 50795 50796 # Only process if variable expands to non-empty 50797 50798 if test "x$MSVCP_DLL" != x; then 50799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50800 50801 # Input might be given as Windows format, start by converting to 50802 # unix format. 50803 path="$MSVCP_DLL" 50804 new_path=`$CYGPATH -u "$path"` 50805 50806 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50807 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50808 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50809 # "foo.exe" is OK but "foo" is an error. 50810 # 50811 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50812 # It is also a way to make sure we got the proper file name for the real test later on. 50813 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50814 if test "x$test_shortpath" = x; then 50815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&5 50816 $as_echo "$as_me: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&6;} 50817 as_fn_error $? "Cannot locate the the path of MSVCP_DLL" "$LINENO" 5 50818 fi 50819 50820 # Call helper function which possibly converts this using DOS-style short mode. 50821 # If so, the updated path is stored in $new_path. 50822 50823 input_path="$new_path" 50824 # Check if we need to convert this using DOS-style short mode. If the path 50825 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50826 # take no chances and rewrite it. 50827 # Note: m4 eats our [], so we need to use [ and ] instead. 50828 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50829 if test "x$has_forbidden_chars" != x; then 50830 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50831 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50832 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50833 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50834 # Going to short mode and back again did indeed matter. Since short mode is 50835 # case insensitive, let's make it lowercase to improve readability. 50836 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50837 # Now convert it back to Unix-stile (cygpath) 50838 input_path=`$CYGPATH -u "$shortmode_path"` 50839 new_path="$input_path" 50840 fi 50841 fi 50842 50843 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50844 if test "x$test_cygdrive_prefix" = x; then 50845 # As a simple fix, exclude /usr/bin since it's not a real path. 50846 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50847 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50848 # a path prefixed by /cygdrive for fixpath to work. 50849 new_path="$CYGWIN_ROOT_PATH$input_path" 50850 fi 50851 fi 50852 50853 50854 if test "x$path" != "x$new_path"; then 50855 MSVCP_DLL="$new_path" 50856 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCP_DLL to \"$new_path\"" >&5 50857 $as_echo "$as_me: Rewriting MSVCP_DLL to \"$new_path\"" >&6;} 50858 fi 50859 50860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50861 50862 path="$MSVCP_DLL" 50863 has_colon=`$ECHO $path | $GREP ^.:` 50864 new_path="$path" 50865 if test "x$has_colon" = x; then 50866 # Not in mixed or Windows style, start by that. 50867 new_path=`cmd //c echo $path` 50868 fi 50869 50870 50871 input_path="$new_path" 50872 # Check if we need to convert this using DOS-style short mode. If the path 50873 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50874 # take no chances and rewrite it. 50875 # Note: m4 eats our [], so we need to use [ and ] instead. 50876 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50877 if test "x$has_forbidden_chars" != x; then 50878 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50879 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50880 fi 50881 50882 50883 windows_path="$new_path" 50884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50885 unix_path=`$CYGPATH -u "$windows_path"` 50886 new_path="$unix_path" 50887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50888 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50889 new_path="$unix_path" 50890 fi 50891 50892 if test "x$path" != "x$new_path"; then 50893 MSVCP_DLL="$new_path" 50894 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCP_DLL to \"$new_path\"" >&5 50895 $as_echo "$as_me: Rewriting MSVCP_DLL to \"$new_path\"" >&6;} 50896 fi 50897 50898 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50899 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50900 50901 else 50902 # We're on a unix platform. Hooray! :) 50903 path="$MSVCP_DLL" 50904 has_space=`$ECHO "$path" | $GREP " "` 50905 if test "x$has_space" != x; then 50906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&5 50907 $as_echo "$as_me: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&6;} 50908 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50909 fi 50910 50911 # Use eval to expand a potential ~ 50912 eval path="$path" 50913 if test ! -f "$path" && test ! -d "$path"; then 50914 as_fn_error $? "The path of MSVCP_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50915 fi 50916 50917 MSVCP_DLL="`cd "$path"; $THEPWDCMD -L`" 50918 fi 50919 fi 50920 50921 MSVCP_DLL=$MSVCP_DLL 50922 50923 50924 fi 50925 fi 50926 50927 50928 50929 # Check whether --with-dxsdk was given. 50930 if test "${with_dxsdk+set}" = set; then : 50931 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 50932 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 50933 fi 50934 50935 50936 50937 50938 # Check whether --with-dxsdk-lib was given. 50939 if test "${with_dxsdk_lib+set}" = set; then : 50940 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 50941 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 50942 fi 50943 50944 50945 50946 50947 # Check whether --with-dxsdk-include was given. 50948 if test "${with_dxsdk_include+set}" = set; then : 50949 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 50950 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 50951 fi 50952 50953 50954 fi 50955 50956 50957 ############################################################################### 50958 # 50959 # We need to do some final tweaking, when everything else is done. 50960 # 50961 ############################################################################### 50962 50963 50964 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 50965 50966 50967 # The name of the Service Agent jar. 50968 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 50969 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 50970 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 50971 fi 50972 50973 50974 50975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 50976 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 50977 50978 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 50979 ENABLE_INTREE_EC=yes 50980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50981 $as_echo "yes" >&6; } 50982 else 50983 ENABLE_INTREE_EC=no 50984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50985 $as_echo "no" >&6; } 50986 fi 50987 50988 50989 50990 50991 ############################################################################### 50992 # 50993 # Configure parts of the build that only affect the build performance, 50994 # not the result. 50995 # 50996 ############################################################################### 50997 50998 50999 # How many cores do we have on this build system? 51000 51001 # Check whether --with-num-cores was given. 51002 if test "${with_num_cores+set}" = set; then : 51003 withval=$with_num_cores; 51004 fi 51005 51006 if test "x$with_num_cores" = x; then 51007 # The number of cores were not specified, try to probe them. 51008 51009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 51010 $as_echo_n "checking for number of cores... " >&6; } 51011 NUM_CORES=1 51012 FOUND_CORES=no 51013 51014 if test -f /proc/cpuinfo; then 51015 # Looks like a Linux (or cygwin) system 51016 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 51017 FOUND_CORES=yes 51018 elif test -x /usr/sbin/psrinfo; then 51019 # Looks like a Solaris system 51020 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 51021 FOUND_CORES=yes 51022 elif test -x /usr/sbin/system_profiler; then 51023 # Looks like a MacOSX system 51024 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 51025 FOUND_CORES=yes 51026 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 51027 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 51028 FOUND_CORES=yes 51029 elif test -n "$NUMBER_OF_PROCESSORS"; then 51030 # On windows, look in the env 51031 NUM_CORES=$NUMBER_OF_PROCESSORS 51032 FOUND_CORES=yes 51033 fi 51034 51035 if test "x$FOUND_CORES" = xyes; then 51036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 51037 $as_echo "$NUM_CORES" >&6; } 51038 else 51039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 51040 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 51041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 51042 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 51043 fi 51044 51045 else 51046 NUM_CORES=$with_num_cores 51047 fi 51048 51049 51050 51051 # How much memory do we have on this build system? 51052 51053 # Check whether --with-memory-size was given. 51054 if test "${with_memory_size+set}" = set; then : 51055 withval=$with_memory_size; 51056 fi 51057 51058 if test "x$with_memory_size" = x; then 51059 # The memory size was not specified, try to probe it. 51060 51061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 51062 $as_echo_n "checking for memory size... " >&6; } 51063 # Default to 1024 MB 51064 MEMORY_SIZE=1024 51065 FOUND_MEM=no 51066 51067 if test -f /proc/meminfo; then 51068 # Looks like a Linux (or cygwin) system 51069 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 51070 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 51071 FOUND_MEM=yes 51072 elif test -x /usr/sbin/prtconf; then 51073 # Looks like a Solaris or AIX system 51074 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 51075 FOUND_MEM=yes 51076 elif test -x /usr/sbin/system_profiler; then 51077 # Looks like a MacOSX system 51078 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 51079 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 51080 FOUND_MEM=yes 51081 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 51082 # Windows, but without cygwin 51083 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 51084 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 51085 FOUND_MEM=yes 51086 fi 51087 51088 if test "x$FOUND_MEM" = xyes; then 51089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 51090 $as_echo "$MEMORY_SIZE MB" >&6; } 51091 else 51092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 51093 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 51094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 51095 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 51096 fi 51097 51098 else 51099 MEMORY_SIZE=$with_memory_size 51100 fi 51101 51102 51103 51104 # Provide a decent default number of parallel jobs for make depending on 51105 # number of cores, amount of memory and machine architecture. 51106 51107 # Check whether --with-jobs was given. 51108 if test "${with_jobs+set}" = set; then : 51109 withval=$with_jobs; 51110 fi 51111 51112 if test "x$with_jobs" = x; then 51113 # Number of jobs was not specified, calculate. 51114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 51115 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 51116 # Approximate memory in GB. 51117 memory_gb=`expr $MEMORY_SIZE / 1024` 51118 # Pick the lowest of memory in gb and number of cores. 51119 if test "$memory_gb" -lt "$NUM_CORES"; then 51120 JOBS="$memory_gb" 51121 else 51122 JOBS="$NUM_CORES" 51123 # On bigger machines, leave some room for other processes to run 51124 if test "$JOBS" -gt "4"; then 51125 JOBS=`expr $JOBS '*' 90 / 100` 51126 fi 51127 fi 51128 # Cap number of jobs to 16 51129 if test "$JOBS" -gt "16"; then 51130 JOBS=16 51131 fi 51132 if test "$JOBS" -eq "0"; then 51133 JOBS=1 51134 fi 51135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 51136 $as_echo "$JOBS" >&6; } 51137 else 51138 JOBS=$with_jobs 51139 fi 51140 51141 51142 51143 # Setup arguments for the boot jdk (after cores and memory have been setup) 51144 51145 ############################################################################## 51146 # 51147 # Specify jvm options for anything that is run with the Boot JDK. 51148 # Not all JVM:s accept the same arguments on the command line. 51149 # 51150 51151 # Check whether --with-boot-jdk-jvmargs was given. 51152 if test "${with_boot_jdk_jvmargs+set}" = set; then : 51153 withval=$with_boot_jdk_jvmargs; 51154 fi 51155 51156 51157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 51158 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 51159 51160 # Disable special log output when a debug build is used as Boot JDK... 51161 51162 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 51163 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 51164 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 51165 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51166 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51167 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51168 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 51169 JVM_ARG_OK=true 51170 else 51171 $ECHO "Arg failed:" >&5 51172 $ECHO "$OUTPUT" >&5 51173 JVM_ARG_OK=false 51174 fi 51175 51176 51177 # Apply user provided options. 51178 51179 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 51180 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 51181 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 51182 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51183 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51184 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51185 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 51186 JVM_ARG_OK=true 51187 else 51188 $ECHO "Arg failed:" >&5 51189 $ECHO "$OUTPUT" >&5 51190 JVM_ARG_OK=false 51191 fi 51192 51193 51194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 51195 $as_echo "$boot_jdk_jvmargs" >&6; } 51196 51197 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 51198 JAVA_FLAGS=$boot_jdk_jvmargs 51199 51200 51201 51202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 51203 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 51204 51205 # Starting amount of heap memory. 51206 51207 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 51208 $ECHO "Command: $JAVA -Xms64M -version" >&5 51209 OUTPUT=`$JAVA -Xms64M -version 2>&1` 51210 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51211 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51212 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51213 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 51214 JVM_ARG_OK=true 51215 else 51216 $ECHO "Arg failed:" >&5 51217 $ECHO "$OUTPUT" >&5 51218 JVM_ARG_OK=false 51219 fi 51220 51221 51222 # Maximum amount of heap memory. 51223 # Maximum stack size. 51224 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 51225 if test "x$BUILD_NUM_BITS" = x32; then 51226 if test "$JVM_MAX_HEAP" -gt "1100"; then 51227 JVM_MAX_HEAP=1100 51228 elif test "$JVM_MAX_HEAP" -lt "512"; then 51229 JVM_MAX_HEAP=512 51230 fi 51231 STACK_SIZE=768 51232 else 51233 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 51234 # pointers are used. Apparently, we need to increase the heap and stack 51235 # space for the jvm. More specifically, when running javac to build huge 51236 # jdk batch 51237 if test "$JVM_MAX_HEAP" -gt "1600"; then 51238 JVM_MAX_HEAP=1600 51239 elif test "$JVM_MAX_HEAP" -lt "512"; then 51240 JVM_MAX_HEAP=512 51241 fi 51242 STACK_SIZE=1536 51243 fi 51244 51245 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 51246 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 51247 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 51248 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51249 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51250 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51251 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 51252 JVM_ARG_OK=true 51253 else 51254 $ECHO "Arg failed:" >&5 51255 $ECHO "$OUTPUT" >&5 51256 JVM_ARG_OK=false 51257 fi 51258 51259 51260 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 51261 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 51262 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 51263 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51264 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51265 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51266 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 51267 JVM_ARG_OK=true 51268 else 51269 $ECHO "Arg failed:" >&5 51270 $ECHO "$OUTPUT" >&5 51271 JVM_ARG_OK=false 51272 fi 51273 51274 51275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 51276 $as_echo "$boot_jdk_jvmargs_big" >&6; } 51277 51278 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 51279 51280 51281 51282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 51283 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 51284 51285 # Use serial gc for small short lived tools if possible 51286 51287 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 51288 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 51289 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 51290 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51291 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51292 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51293 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 51294 JVM_ARG_OK=true 51295 else 51296 $ECHO "Arg failed:" >&5 51297 $ECHO "$OUTPUT" >&5 51298 JVM_ARG_OK=false 51299 fi 51300 51301 51302 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 51303 $ECHO "Command: $JAVA -Xms32M -version" >&5 51304 OUTPUT=`$JAVA -Xms32M -version 2>&1` 51305 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51306 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51307 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51308 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 51309 JVM_ARG_OK=true 51310 else 51311 $ECHO "Arg failed:" >&5 51312 $ECHO "$OUTPUT" >&5 51313 JVM_ARG_OK=false 51314 fi 51315 51316 51317 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 51318 $ECHO "Command: $JAVA -Xmx512M -version" >&5 51319 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 51320 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51321 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51322 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51323 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 51324 JVM_ARG_OK=true 51325 else 51326 $ECHO "Arg failed:" >&5 51327 $ECHO "$OUTPUT" >&5 51328 JVM_ARG_OK=false 51329 fi 51330 51331 51332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 51333 $as_echo "$boot_jdk_jvmargs_small" >&6; } 51334 51335 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 51336 51337 51338 JAVA_TOOL_FLAGS_SMALL="" 51339 for f in $JAVA_FLAGS_SMALL; do 51340 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 51341 done 51342 51343 51344 51345 # Setup smart javac (after cores and memory have been setup) 51346 51347 51348 # Check whether --with-sjavac-server-java was given. 51349 if test "${with_sjavac_server_java+set}" = set; then : 51350 withval=$with_sjavac_server_java; 51351 fi 51352 51353 51354 if test "x$with_sjavac_server_java" != x; then 51355 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 51356 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 51357 if test "x$FOUND_VERSION" = x; then 51358 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 51359 fi 51360 else 51361 SJAVAC_SERVER_JAVA="$JAVA" 51362 fi 51363 51364 51365 if test "$MEMORY_SIZE" -gt "3000"; then 51366 51367 $ECHO "Check if jvm arg is ok: -d64" >&5 51368 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 51369 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 51370 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51371 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51372 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51373 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 51374 JVM_ARG_OK=true 51375 else 51376 $ECHO "Arg failed:" >&5 51377 $ECHO "$OUTPUT" >&5 51378 JVM_ARG_OK=false 51379 fi 51380 51381 if test "$JVM_ARG_OK" = true; then 51382 JVM_64BIT=true 51383 JVM_ARG_OK=false 51384 fi 51385 fi 51386 51387 MX_VALUE=`expr $MEMORY_SIZE / 2` 51388 if test "$JVM_64BIT" = true; then 51389 # Set ms lower than mx since more than one instance of the server might 51390 # get launched at the same time before they figure out which instance won. 51391 MS_VALUE=512 51392 if test "$MX_VALUE" -gt "2048"; then 51393 MX_VALUE=2048 51394 fi 51395 else 51396 MS_VALUE=256 51397 if test "$MX_VALUE" -gt "1500"; then 51398 MX_VALUE=1500 51399 fi 51400 fi 51401 if test "$MX_VALUE" -lt "512"; then 51402 MX_VALUE=512 51403 fi 51404 51405 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 51406 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 51407 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 51408 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51409 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51410 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51411 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 51412 JVM_ARG_OK=true 51413 else 51414 $ECHO "Arg failed:" >&5 51415 $ECHO "$OUTPUT" >&5 51416 JVM_ARG_OK=false 51417 fi 51418 51419 51420 51421 # Check whether --enable-sjavac was given. 51422 if test "${enable_sjavac+set}" = set; then : 51423 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 51424 else 51425 ENABLE_SJAVAC='no' 51426 fi 51427 51428 if test "x$JVM_ARG_OK" = "xfalse"; then 51429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 51430 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 51431 ENABLE_SJAVAC=no; 51432 fi 51433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 51434 $as_echo_n "checking whether to use sjavac... " >&6; } 51435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 51436 $as_echo "$ENABLE_SJAVAC" >&6; } 51437 51438 51439 if test "x$ENABLE_SJAVAC" = xyes; then 51440 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/make-support/javacservers" 51441 else 51442 SJAVAC_SERVER_DIR= 51443 fi 51444 51445 51446 51447 # Can the C/C++ compiler use precompiled headers? 51448 51449 51450 ############################################################################### 51451 # 51452 # Can the C/C++ compiler use precompiled headers? 51453 # 51454 # Check whether --enable-precompiled-headers was given. 51455 if test "${enable_precompiled_headers+set}" = set; then : 51456 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 51457 else 51458 ENABLE_PRECOMPH=yes 51459 fi 51460 51461 51462 USE_PRECOMPILED_HEADER=1 51463 if test "x$ENABLE_PRECOMPH" = xno; then 51464 USE_PRECOMPILED_HEADER=0 51465 fi 51466 51467 if test "x$ENABLE_PRECOMPH" = xyes; then 51468 # Check that the compiler actually supports precomp headers. 51469 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 51471 $as_echo_n "checking that precompiled headers work... " >&6; } 51472 echo "int alfa();" > conftest.h 51473 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 51474 if test ! -f conftest.hpp.gch; then 51475 USE_PRECOMPILED_HEADER=0 51476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51477 $as_echo "no" >&6; } 51478 else 51479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51480 $as_echo "yes" >&6; } 51481 fi 51482 rm -f conftest.h conftest.hpp.gch 51483 fi 51484 fi 51485 51486 51487 51488 51489 # Setup use of ccache, if available 51490 51491 # Check whether --enable-ccache was given. 51492 if test "${enable_ccache+set}" = set; then : 51493 enableval=$enable_ccache; 51494 fi 51495 51496 51497 CCACHE= 51498 CCACHE_STATUS= 51499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 51500 $as_echo_n "checking is ccache enabled... " >&6; } 51501 if test "x$enable_ccache" = xyes; then 51502 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 51503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51504 $as_echo "yes" >&6; } 51505 OLD_PATH="$PATH" 51506 if test "x$TOOLCHAIN_PATH" != x; then 51507 PATH=$TOOLCHAIN_PATH:$PATH 51508 fi 51509 51510 51511 51512 # Publish this variable in the help. 51513 51514 51515 if test "x$CCACHE" = x; then 51516 # The variable is not set by user, try to locate tool using the code snippet 51517 for ac_prog in ccache 51518 do 51519 # Extract the first word of "$ac_prog", so it can be a program name with args. 51520 set dummy $ac_prog; ac_word=$2 51521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 51522 $as_echo_n "checking for $ac_word... " >&6; } 51523 if ${ac_cv_path_CCACHE+:} false; then : 51524 $as_echo_n "(cached) " >&6 51525 else 51526 case $CCACHE in 51527 [\\/]* | ?:[\\/]*) 51528 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51529 ;; 51530 *) 51531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51532 for as_dir in $PATH 51533 do 51534 IFS=$as_save_IFS 51535 test -z "$as_dir" && as_dir=. 51536 for ac_exec_ext in '' $ac_executable_extensions; do 51537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51538 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51540 break 2 51541 fi 51542 done 51543 done 51544 IFS=$as_save_IFS 51545 51546 ;; 51547 esac 51548 fi 51549 CCACHE=$ac_cv_path_CCACHE 51550 if test -n "$CCACHE"; then 51551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51552 $as_echo "$CCACHE" >&6; } 51553 else 51554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51555 $as_echo "no" >&6; } 51556 fi 51557 51558 51559 test -n "$CCACHE" && break 51560 done 51561 51562 else 51563 # The variable is set, but is it from the command line or the environment? 51564 51565 # Try to remove the string !CCACHE! from our list. 51566 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 51567 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 51568 # If it failed, the variable was not from the command line. Ignore it, 51569 # but warn the user (except for BASH, which is always set by the calling BASH). 51570 if test "xCCACHE" != xBASH; then 51571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 51572 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 51573 fi 51574 # Try to locate tool using the code snippet 51575 for ac_prog in ccache 51576 do 51577 # Extract the first word of "$ac_prog", so it can be a program name with args. 51578 set dummy $ac_prog; ac_word=$2 51579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 51580 $as_echo_n "checking for $ac_word... " >&6; } 51581 if ${ac_cv_path_CCACHE+:} false; then : 51582 $as_echo_n "(cached) " >&6 51583 else 51584 case $CCACHE in 51585 [\\/]* | ?:[\\/]*) 51586 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51587 ;; 51588 *) 51589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51590 for as_dir in $PATH 51591 do 51592 IFS=$as_save_IFS 51593 test -z "$as_dir" && as_dir=. 51594 for ac_exec_ext in '' $ac_executable_extensions; do 51595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51596 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51598 break 2 51599 fi 51600 done 51601 done 51602 IFS=$as_save_IFS 51603 51604 ;; 51605 esac 51606 fi 51607 CCACHE=$ac_cv_path_CCACHE 51608 if test -n "$CCACHE"; then 51609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51610 $as_echo "$CCACHE" >&6; } 51611 else 51612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51613 $as_echo "no" >&6; } 51614 fi 51615 51616 51617 test -n "$CCACHE" && break 51618 done 51619 51620 else 51621 # If it succeeded, then it was overridden by the user. We will use it 51622 # for the tool. 51623 51624 # First remove it from the list of overridden variables, so we can test 51625 # for unknown variables in the end. 51626 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 51627 51628 # Check if the provided tool contains a complete path. 51629 tool_specified="$CCACHE" 51630 tool_basename="${tool_specified##*/}" 51631 if test "x$tool_basename" = "x$tool_specified"; then 51632 # A command without a complete path is provided, search $PATH. 51633 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 51634 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 51635 # Extract the first word of "$tool_basename", so it can be a program name with args. 51636 set dummy $tool_basename; ac_word=$2 51637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 51638 $as_echo_n "checking for $ac_word... " >&6; } 51639 if ${ac_cv_path_CCACHE+:} false; then : 51640 $as_echo_n "(cached) " >&6 51641 else 51642 case $CCACHE in 51643 [\\/]* | ?:[\\/]*) 51644 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51645 ;; 51646 *) 51647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51648 for as_dir in $PATH 51649 do 51650 IFS=$as_save_IFS 51651 test -z "$as_dir" && as_dir=. 51652 for ac_exec_ext in '' $ac_executable_extensions; do 51653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51654 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51656 break 2 51657 fi 51658 done 51659 done 51660 IFS=$as_save_IFS 51661 51662 ;; 51663 esac 51664 fi 51665 CCACHE=$ac_cv_path_CCACHE 51666 if test -n "$CCACHE"; then 51667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51668 $as_echo "$CCACHE" >&6; } 51669 else 51670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51671 $as_echo "no" >&6; } 51672 fi 51673 51674 51675 if test "x$CCACHE" = x; then 51676 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 51677 fi 51678 else 51679 # Otherwise we believe it is a complete path. Use it as it is. 51680 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 51681 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 51682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 51683 $as_echo_n "checking for CCACHE... " >&6; } 51684 if test ! -x "$tool_specified"; then 51685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 51686 $as_echo "not found" >&6; } 51687 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 51688 fi 51689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 51690 $as_echo "$tool_specified" >&6; } 51691 fi 51692 fi 51693 fi 51694 51695 51696 51697 if test "x$CCACHE" = x; then 51698 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 51699 fi 51700 51701 51702 PATH="$OLD_PATH" 51703 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 51704 CCACHE_STATUS="Active ($CCACHE_VERSION)" 51705 else 51706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51707 $as_echo "no" >&6; } 51708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 51709 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 51710 fi 51711 elif test "x$enable_ccache" = xno; then 51712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 51713 $as_echo "no, explicitly disabled" >&6; } 51714 CCACHE_STATUS="Disabled" 51715 elif test "x$enable_ccache" = x; then 51716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51717 $as_echo "no" >&6; } 51718 else 51719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 51720 $as_echo "unknown" >&6; } 51721 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 51722 fi 51723 51724 51725 51726 # Check whether --with-ccache-dir was given. 51727 if test "${with_ccache_dir+set}" = set; then : 51728 withval=$with_ccache_dir; 51729 fi 51730 51731 51732 if test "x$with_ccache_dir" != x; then 51733 # When using a non home ccache directory, assume the use is to share ccache files 51734 # with other users. Thus change the umask. 51735 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 51736 if test "x$CCACHE" = x; then 51737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 51738 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 51739 fi 51740 fi 51741 51742 if test "x$CCACHE" != x; then 51743 51744 if test "x$CCACHE" != x; then 51745 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 51746 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 51747 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 51748 if test "x$HAS_BAD_CCACHE" != "x"; then 51749 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 51750 fi 51751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 51752 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 51753 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 51754 PUSHED_FLAGS="$CXXFLAGS" 51755 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 51756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51757 /* end confdefs.h. */ 51758 51759 int 51760 main () 51761 { 51762 51763 ; 51764 return 0; 51765 } 51766 _ACEOF 51767 if ac_fn_cxx_try_compile "$LINENO"; then : 51768 CC_KNOWS_CCACHE_TRICK=yes 51769 else 51770 CC_KNOWS_CCACHE_TRICK=no 51771 fi 51772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51773 CXXFLAGS="$PUSHED_FLAGS" 51774 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 51775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51776 $as_echo "yes" >&6; } 51777 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 51778 51779 CCACHE_SLOPPINESS=pch_defines,time_macros 51780 else 51781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51782 $as_echo "no" >&6; } 51783 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 51784 fi 51785 fi 51786 51787 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 51788 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 51789 51790 if test "x$SET_CCACHE_DIR" != x; then 51791 mkdir -p $CCACHE_DIR > /dev/null 2>&1 51792 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 51793 fi 51794 fi 51795 51796 fi 51797 51798 51799 ############################################################################### 51800 # 51801 # And now the finish... 51802 # 51803 ############################################################################### 51804 51805 # Check for some common pitfalls 51806 51807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51808 file_to_test="$SRC_ROOT/LICENSE" 51809 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 51810 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 51811 fi 51812 fi 51813 51814 51815 # Did user specify any unknown variables? 51816 51817 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 51818 # Replace the separating ! with spaces before presenting for end user. 51819 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 51820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 51821 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 51822 fi 51823 51824 51825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 51826 $as_echo_n "checking if build directory is on local disk... " >&6; } 51827 51828 # df -l lists only local disks; if the given directory is not found then 51829 # a non-zero exit code is given 51830 if test "x$DF" = x; then 51831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51832 # msys does not have df; use Windows "net use" instead. 51833 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 51834 if test "x$IS_NETWORK_DISK" = x; then 51835 OUTPUT_DIR_IS_LOCAL="yes" 51836 else 51837 OUTPUT_DIR_IS_LOCAL="no" 51838 fi 51839 else 51840 # No df here, say it's local 51841 OUTPUT_DIR_IS_LOCAL="yes" 51842 fi 51843 else 51844 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 51845 OUTPUT_DIR_IS_LOCAL="yes" 51846 else 51847 OUTPUT_DIR_IS_LOCAL="no" 51848 fi 51849 fi 51850 51851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 51852 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 51853 51854 51855 51856 # Check if the user has any old-style ALT_ variables set. 51857 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 51858 51859 # Before generating output files, test if they exist. If they do, this is a reconfigure. 51860 # Since we can't properly handle the dependencies for this, warn the user about the situation 51861 if test -e $OUTPUT_ROOT/spec.gmk; then 51862 IS_RECONFIGURE=yes 51863 else 51864 IS_RECONFIGURE=no 51865 fi 51866 51867 51868 # At the end, call the custom hook. (Dummy macro if no custom sources available) 51869 51870 51871 # We're messing a bit with internal autoconf variables to put the config.status 51872 # in the output directory instead of the current directory. 51873 CONFIG_STATUS="$CONFIGURE_SUPPORT/config.status" 51874 51875 # Create the actual output files. Now the main work of configure is done. 51876 cat >confcache <<\_ACEOF 51877 # This file is a shell script that caches the results of configure 51878 # tests run on this system so they can be shared between configure 51879 # scripts and configure runs, see configure's option --config-cache. 51880 # It is not useful on other systems. If it contains results you don't 51881 # want to keep, you may remove or edit it. 51882 # 51883 # config.status only pays attention to the cache file if you give it 51884 # the --recheck option to rerun configure. 51885 # 51886 # `ac_cv_env_foo' variables (set or unset) will be overridden when 51887 # loading this file, other *unset* `ac_cv_foo' will be assigned the 51888 # following values. 51889 51890 _ACEOF 51891 51892 # The following way of writing the cache mishandles newlines in values, 51893 # but we know of no workaround that is simple, portable, and efficient. 51894 # So, we kill variables containing newlines. 51895 # Ultrix sh set writes to stderr and can't be redirected directly, 51896 # and sets the high bit in the cache file unless we assign to the vars. 51897 ( 51898 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 51899 eval ac_val=\$$ac_var 51900 case $ac_val in #( 51901 *${as_nl}*) 51902 case $ac_var in #( 51903 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 51904 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 51905 esac 51906 case $ac_var in #( 51907 _ | IFS | as_nl) ;; #( 51908 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 51909 *) { eval $ac_var=; unset $ac_var;} ;; 51910 esac ;; 51911 esac 51912 done 51913 51914 (set) 2>&1 | 51915 case $as_nl`(ac_space=' '; set) 2>&1` in #( 51916 *${as_nl}ac_space=\ *) 51917 # `set' does not quote correctly, so add quotes: double-quote 51918 # substitution turns \\\\ into \\, and sed turns \\ into \. 51919 sed -n \ 51920 "s/'/'\\\\''/g; 51921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 51922 ;; #( 51923 *) 51924 # `set' quotes correctly as required by POSIX, so do not add quotes. 51925 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 51926 ;; 51927 esac | 51928 sort 51929 ) | 51930 sed ' 51931 /^ac_cv_env_/b end 51932 t clear 51933 :clear 51934 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 51935 t end 51936 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 51937 :end' >>confcache 51938 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 51939 if test -w "$cache_file"; then 51940 if test "x$cache_file" != "x/dev/null"; then 51941 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 51942 $as_echo "$as_me: updating cache $cache_file" >&6;} 51943 if test ! -f "$cache_file" || test -h "$cache_file"; then 51944 cat confcache >"$cache_file" 51945 else 51946 case $cache_file in #( 51947 */* | ?:*) 51948 mv -f confcache "$cache_file"$$ && 51949 mv -f "$cache_file"$$ "$cache_file" ;; #( 51950 *) 51951 mv -f confcache "$cache_file" ;; 51952 esac 51953 fi 51954 fi 51955 else 51956 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 51957 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 51958 fi 51959 fi 51960 rm -f confcache 51961 51962 test "x$prefix" = xNONE && prefix=$ac_default_prefix 51963 # Let make expand exec_prefix. 51964 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 51965 51966 # Transform confdefs.h into DEFS. 51967 # Protect against shell expansion while executing Makefile rules. 51968 # Protect against Makefile macro expansion. 51969 # 51970 # If the first sed substitution is executed (which looks for macros that 51971 # take arguments), then branch to the quote section. Otherwise, 51972 # look for a macro that doesn't take arguments. 51973 ac_script=' 51974 :mline 51975 /\\$/{ 51976 N 51977 s,\\\n,, 51978 b mline 51979 } 51980 t clear 51981 :clear 51982 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 51983 t quote 51984 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 51985 t quote 51986 b any 51987 :quote 51988 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 51989 s/\[/\\&/g 51990 s/\]/\\&/g 51991 s/\$/$$/g 51992 H 51993 :any 51994 ${ 51995 g 51996 s/^\n// 51997 s/\n/ /g 51998 p 51999 } 52000 ' 52001 DEFS=`sed -n "$ac_script" confdefs.h` 52002 52003 52004 ac_libobjs= 52005 ac_ltlibobjs= 52006 U= 52007 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 52008 # 1. Remove the extension, and $U if already installed. 52009 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 52010 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 52011 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 52012 # will be set to the directory where LIBOBJS objects are built. 52013 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 52014 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 52015 done 52016 LIBOBJS=$ac_libobjs 52017 52018 LTLIBOBJS=$ac_ltlibobjs 52019 52020 52021 52022 : "${CONFIG_STATUS=./config.status}" 52023 ac_write_fail=0 52024 ac_clean_files_save=$ac_clean_files 52025 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 52026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 52027 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 52028 as_write_fail=0 52029 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 52030 #! $SHELL 52031 # Generated by $as_me. 52032 # Run this file to recreate the current configuration. 52033 # Compiler output produced by configure, useful for debugging 52034 # configure, is in config.log if it exists. 52035 52036 debug=false 52037 ac_cs_recheck=false 52038 ac_cs_silent=false 52039 52040 SHELL=\${CONFIG_SHELL-$SHELL} 52041 export SHELL 52042 _ASEOF 52043 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 52044 ## -------------------- ## 52045 ## M4sh Initialization. ## 52046 ## -------------------- ## 52047 52048 # Be more Bourne compatible 52049 DUALCASE=1; export DUALCASE # for MKS sh 52050 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 52051 emulate sh 52052 NULLCMD=: 52053 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 52054 # is contrary to our usage. Disable this feature. 52055 alias -g '${1+"$@"}'='"$@"' 52056 setopt NO_GLOB_SUBST 52057 else 52058 case `(set -o) 2>/dev/null` in #( 52059 *posix*) : 52060 set -o posix ;; #( 52061 *) : 52062 ;; 52063 esac 52064 fi 52065 52066 52067 as_nl=' 52068 ' 52069 export as_nl 52070 # Printing a long string crashes Solaris 7 /usr/bin/printf. 52071 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 52072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 52073 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 52074 # Prefer a ksh shell builtin over an external printf program on Solaris, 52075 # but without wasting forks for bash or zsh. 52076 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52077 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 52078 as_echo='print -r --' 52079 as_echo_n='print -rn --' 52080 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52081 as_echo='printf %s\n' 52082 as_echo_n='printf %s' 52083 else 52084 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52085 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 52086 as_echo_n='/usr/ucb/echo -n' 52087 else 52088 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 52089 as_echo_n_body='eval 52090 arg=$1; 52091 case $arg in #( 52092 *"$as_nl"*) 52093 expr "X$arg" : "X\\(.*\\)$as_nl"; 52094 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 52095 esac; 52096 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 52097 ' 52098 export as_echo_n_body 52099 as_echo_n='sh -c $as_echo_n_body as_echo' 52100 fi 52101 export as_echo_body 52102 as_echo='sh -c $as_echo_body as_echo' 52103 fi 52104 52105 # The user is always right. 52106 if test "${PATH_SEPARATOR+set}" != set; then 52107 PATH_SEPARATOR=: 52108 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 52109 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 52110 PATH_SEPARATOR=';' 52111 } 52112 fi 52113 52114 52115 # IFS 52116 # We need space, tab and new line, in precisely that order. Quoting is 52117 # there to prevent editors from complaining about space-tab. 52118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 52119 # splitting by setting IFS to empty value.) 52120 IFS=" "" $as_nl" 52121 52122 # Find who we are. Look in the path if we contain no directory separator. 52123 as_myself= 52124 case $0 in #(( 52125 *[\\/]* ) as_myself=$0 ;; 52126 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52127 for as_dir in $PATH 52128 do 52129 IFS=$as_save_IFS 52130 test -z "$as_dir" && as_dir=. 52131 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 52132 done 52133 IFS=$as_save_IFS 52134 52135 ;; 52136 esac 52137 # We did not find ourselves, most probably we were run as `sh COMMAND' 52138 # in which case we are not to be found in the path. 52139 if test "x$as_myself" = x; then 52140 as_myself=$0 52141 fi 52142 if test ! -f "$as_myself"; then 52143 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 52144 exit 1 52145 fi 52146 52147 # Unset variables that we do not need and which cause bugs (e.g. in 52148 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 52149 # suppresses any "Segmentation fault" message there. '((' could 52150 # trigger a bug in pdksh 5.2.14. 52151 for as_var in BASH_ENV ENV MAIL MAILPATH 52152 do eval test x\${$as_var+set} = xset \ 52153 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 52154 done 52155 PS1='$ ' 52156 PS2='> ' 52157 PS4='+ ' 52158 52159 # NLS nuisances. 52160 LC_ALL=C 52161 export LC_ALL 52162 LANGUAGE=C 52163 export LANGUAGE 52164 52165 # CDPATH. 52166 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 52167 52168 52169 # as_fn_error STATUS ERROR [LINENO LOG_FD] 52170 # ---------------------------------------- 52171 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 52172 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 52173 # script with STATUS, using 1 if that was 0. 52174 as_fn_error () 52175 { 52176 as_status=$1; test $as_status -eq 0 && as_status=1 52177 if test "$4"; then 52178 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 52179 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 52180 fi 52181 $as_echo "$as_me: error: $2" >&2 52182 as_fn_exit $as_status 52183 } # as_fn_error 52184 52185 52186 # as_fn_set_status STATUS 52187 # ----------------------- 52188 # Set $? to STATUS, without forking. 52189 as_fn_set_status () 52190 { 52191 return $1 52192 } # as_fn_set_status 52193 52194 # as_fn_exit STATUS 52195 # ----------------- 52196 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 52197 as_fn_exit () 52198 { 52199 set +e 52200 as_fn_set_status $1 52201 exit $1 52202 } # as_fn_exit 52203 52204 # as_fn_unset VAR 52205 # --------------- 52206 # Portably unset VAR. 52207 as_fn_unset () 52208 { 52209 { eval $1=; unset $1;} 52210 } 52211 as_unset=as_fn_unset 52212 # as_fn_append VAR VALUE 52213 # ---------------------- 52214 # Append the text in VALUE to the end of the definition contained in VAR. Take 52215 # advantage of any shell optimizations that allow amortized linear growth over 52216 # repeated appends, instead of the typical quadratic growth present in naive 52217 # implementations. 52218 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 52219 eval 'as_fn_append () 52220 { 52221 eval $1+=\$2 52222 }' 52223 else 52224 as_fn_append () 52225 { 52226 eval $1=\$$1\$2 52227 } 52228 fi # as_fn_append 52229 52230 # as_fn_arith ARG... 52231 # ------------------ 52232 # Perform arithmetic evaluation on the ARGs, and store the result in the 52233 # global $as_val. Take advantage of shells that can avoid forks. The arguments 52234 # must be portable across $(()) and expr. 52235 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 52236 eval 'as_fn_arith () 52237 { 52238 as_val=$(( $* )) 52239 }' 52240 else 52241 as_fn_arith () 52242 { 52243 as_val=`expr "$@" || test $? -eq 1` 52244 } 52245 fi # as_fn_arith 52246 52247 52248 if expr a : '\(a\)' >/dev/null 2>&1 && 52249 test "X`expr 00001 : '.*\(...\)'`" = X001; then 52250 as_expr=expr 52251 else 52252 as_expr=false 52253 fi 52254 52255 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 52256 as_basename=basename 52257 else 52258 as_basename=false 52259 fi 52260 52261 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 52262 as_dirname=dirname 52263 else 52264 as_dirname=false 52265 fi 52266 52267 as_me=`$as_basename -- "$0" || 52268 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 52269 X"$0" : 'X\(//\)$' \| \ 52270 X"$0" : 'X\(/\)' \| . 2>/dev/null || 52271 $as_echo X/"$0" | 52272 sed '/^.*\/\([^/][^/]*\)\/*$/{ 52273 s//\1/ 52274 q 52275 } 52276 /^X\/\(\/\/\)$/{ 52277 s//\1/ 52278 q 52279 } 52280 /^X\/\(\/\).*/{ 52281 s//\1/ 52282 q 52283 } 52284 s/.*/./; q'` 52285 52286 # Avoid depending upon Character Ranges. 52287 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 52288 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 52289 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 52290 as_cr_digits='0123456789' 52291 as_cr_alnum=$as_cr_Letters$as_cr_digits 52292 52293 ECHO_C= ECHO_N= ECHO_T= 52294 case `echo -n x` in #((((( 52295 -n*) 52296 case `echo 'xy\c'` in 52297 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 52298 xy) ECHO_C='\c';; 52299 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 52300 ECHO_T=' ';; 52301 esac;; 52302 *) 52303 ECHO_N='-n';; 52304 esac 52305 52306 rm -f conf$$ conf$$.exe conf$$.file 52307 if test -d conf$$.dir; then 52308 rm -f conf$$.dir/conf$$.file 52309 else 52310 rm -f conf$$.dir 52311 mkdir conf$$.dir 2>/dev/null 52312 fi 52313 if (echo >conf$$.file) 2>/dev/null; then 52314 if ln -s conf$$.file conf$$ 2>/dev/null; then 52315 as_ln_s='ln -s' 52316 # ... but there are two gotchas: 52317 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 52318 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 52319 # In both cases, we have to default to `cp -pR'. 52320 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 52321 as_ln_s='cp -pR' 52322 elif ln conf$$.file conf$$ 2>/dev/null; then 52323 as_ln_s=ln 52324 else 52325 as_ln_s='cp -pR' 52326 fi 52327 else 52328 as_ln_s='cp -pR' 52329 fi 52330 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 52331 rmdir conf$$.dir 2>/dev/null 52332 52333 52334 # as_fn_mkdir_p 52335 # ------------- 52336 # Create "$as_dir" as a directory, including parents if necessary. 52337 as_fn_mkdir_p () 52338 { 52339 52340 case $as_dir in #( 52341 -*) as_dir=./$as_dir;; 52342 esac 52343 test -d "$as_dir" || eval $as_mkdir_p || { 52344 as_dirs= 52345 while :; do 52346 case $as_dir in #( 52347 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 52348 *) as_qdir=$as_dir;; 52349 esac 52350 as_dirs="'$as_qdir' $as_dirs" 52351 as_dir=`$as_dirname -- "$as_dir" || 52352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52353 X"$as_dir" : 'X\(//\)[^/]' \| \ 52354 X"$as_dir" : 'X\(//\)$' \| \ 52355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 52356 $as_echo X"$as_dir" | 52357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52358 s//\1/ 52359 q 52360 } 52361 /^X\(\/\/\)[^/].*/{ 52362 s//\1/ 52363 q 52364 } 52365 /^X\(\/\/\)$/{ 52366 s//\1/ 52367 q 52368 } 52369 /^X\(\/\).*/{ 52370 s//\1/ 52371 q 52372 } 52373 s/.*/./; q'` 52374 test -d "$as_dir" && break 52375 done 52376 test -z "$as_dirs" || eval "mkdir $as_dirs" 52377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 52378 52379 52380 } # as_fn_mkdir_p 52381 if mkdir -p . 2>/dev/null; then 52382 as_mkdir_p='mkdir -p "$as_dir"' 52383 else 52384 test -d ./-p && rmdir ./-p 52385 as_mkdir_p=false 52386 fi 52387 52388 52389 # as_fn_executable_p FILE 52390 # ----------------------- 52391 # Test if FILE is an executable regular file. 52392 as_fn_executable_p () 52393 { 52394 test -f "$1" && test -x "$1" 52395 } # as_fn_executable_p 52396 as_test_x='test -x' 52397 as_executable_p=as_fn_executable_p 52398 52399 # Sed expression to map a string onto a valid CPP name. 52400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 52401 52402 # Sed expression to map a string onto a valid variable name. 52403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 52404 52405 52406 exec 6>&1 52407 ## ----------------------------------- ## 52408 ## Main body of $CONFIG_STATUS script. ## 52409 ## ----------------------------------- ## 52410 _ASEOF 52411 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 52412 52413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52414 # Save the log message, to keep $0 and so on meaningful, and to 52415 # report actual input values of CONFIG_FILES etc. instead of their 52416 # values after options handling. 52417 ac_log=" 52418 This file was extended by OpenJDK $as_me jdk9, which was 52419 generated by GNU Autoconf 2.69. Invocation command line was 52420 52421 CONFIG_FILES = $CONFIG_FILES 52422 CONFIG_HEADERS = $CONFIG_HEADERS 52423 CONFIG_LINKS = $CONFIG_LINKS 52424 CONFIG_COMMANDS = $CONFIG_COMMANDS 52425 $ $0 $@ 52426 52427 on `(hostname || uname -n) 2>/dev/null | sed 1q` 52428 " 52429 52430 _ACEOF 52431 52432 case $ac_config_files in *" 52433 "*) set x $ac_config_files; shift; ac_config_files=$*;; 52434 esac 52435 52436 52437 52438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52439 # Files that config.status was made for. 52440 config_files="$ac_config_files" 52441 52442 _ACEOF 52443 52444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52445 ac_cs_usage="\ 52446 \`$as_me' instantiates files and other configuration actions 52447 from templates according to the current configuration. Unless the files 52448 and actions are specified as TAGs, all are instantiated by default. 52449 52450 Usage: $0 [OPTION]... [TAG]... 52451 52452 -h, --help print this help, then exit 52453 -V, --version print version number and configuration settings, then exit 52454 --config print configuration, then exit 52455 -q, --quiet, --silent 52456 do not print progress messages 52457 -d, --debug don't remove temporary files 52458 --recheck update $as_me by reconfiguring in the same conditions 52459 --file=FILE[:TEMPLATE] 52460 instantiate the configuration file FILE 52461 52462 Configuration files: 52463 $config_files 52464 52465 Report bugs to <build-dev@openjdk.java.net>. 52466 OpenJDK home page: <http://openjdk.java.net>." 52467 52468 _ACEOF 52469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52470 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 52471 ac_cs_version="\\ 52472 OpenJDK config.status jdk9 52473 configured by $0, generated by GNU Autoconf 2.69, 52474 with options \\"\$ac_cs_config\\" 52475 52476 Copyright (C) 2012 Free Software Foundation, Inc. 52477 This config.status script is free software; the Free Software Foundation 52478 gives unlimited permission to copy, distribute and modify it." 52479 52480 ac_pwd='$ac_pwd' 52481 srcdir='$srcdir' 52482 AWK='$AWK' 52483 test -n "\$AWK" || AWK=awk 52484 _ACEOF 52485 52486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52487 # The default lists apply if the user does not specify any file. 52488 ac_need_defaults=: 52489 while test $# != 0 52490 do 52491 case $1 in 52492 --*=?*) 52493 ac_option=`expr "X$1" : 'X\([^=]*\)='` 52494 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 52495 ac_shift=: 52496 ;; 52497 --*=) 52498 ac_option=`expr "X$1" : 'X\([^=]*\)='` 52499 ac_optarg= 52500 ac_shift=: 52501 ;; 52502 *) 52503 ac_option=$1 52504 ac_optarg=$2 52505 ac_shift=shift 52506 ;; 52507 esac 52508 52509 case $ac_option in 52510 # Handling of the options. 52511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 52512 ac_cs_recheck=: ;; 52513 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 52514 $as_echo "$ac_cs_version"; exit ;; 52515 --config | --confi | --conf | --con | --co | --c ) 52516 $as_echo "$ac_cs_config"; exit ;; 52517 --debug | --debu | --deb | --de | --d | -d ) 52518 debug=: ;; 52519 --file | --fil | --fi | --f ) 52520 $ac_shift 52521 case $ac_optarg in 52522 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 52523 '') as_fn_error $? "missing file argument" ;; 52524 esac 52525 as_fn_append CONFIG_FILES " '$ac_optarg'" 52526 ac_need_defaults=false;; 52527 --he | --h | --help | --hel | -h ) 52528 $as_echo "$ac_cs_usage"; exit ;; 52529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 52530 | -silent | --silent | --silen | --sile | --sil | --si | --s) 52531 ac_cs_silent=: ;; 52532 52533 # This is an error. 52534 -*) as_fn_error $? "unrecognized option: \`$1' 52535 Try \`$0 --help' for more information." ;; 52536 52537 *) as_fn_append ac_config_targets " $1" 52538 ac_need_defaults=false ;; 52539 52540 esac 52541 shift 52542 done 52543 52544 ac_configure_extra_args= 52545 52546 if $ac_cs_silent; then 52547 exec 6>/dev/null 52548 ac_configure_extra_args="$ac_configure_extra_args --silent" 52549 fi 52550 52551 _ACEOF 52552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52553 if \$ac_cs_recheck; then 52554 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 52555 shift 52556 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 52557 CONFIG_SHELL='$SHELL' 52558 export CONFIG_SHELL 52559 exec "\$@" 52560 fi 52561 52562 _ACEOF 52563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52564 exec 5>>config.log 52565 { 52566 echo 52567 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 52568 ## Running $as_me. ## 52569 _ASBOX 52570 $as_echo "$ac_log" 52571 } >&5 52572 52573 _ACEOF 52574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52575 _ACEOF 52576 52577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52578 52579 # Handling of arguments. 52580 for ac_config_target in $ac_config_targets 52581 do 52582 case $ac_config_target in 52583 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 52584 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 52585 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 52586 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 52587 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 52588 52589 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 52590 esac 52591 done 52592 52593 52594 # If the user did not use the arguments to specify the items to instantiate, 52595 # then the envvar interface is used. Set only those that are not. 52596 # We use the long form for the default assignment because of an extremely 52597 # bizarre bug on SunOS 4.1.3. 52598 if $ac_need_defaults; then 52599 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 52600 fi 52601 52602 # Have a temporary directory for convenience. Make it in the build tree 52603 # simply because there is no reason against having it here, and in addition, 52604 # creating and moving files from /tmp can sometimes cause problems. 52605 # Hook for its removal unless debugging. 52606 # Note that there is a small window in which the directory will not be cleaned: 52607 # after its creation but before its name has been assigned to `$tmp'. 52608 $debug || 52609 { 52610 tmp= ac_tmp= 52611 trap 'exit_status=$? 52612 : "${ac_tmp:=$tmp}" 52613 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 52614 ' 0 52615 trap 'as_fn_exit 1' 1 2 13 15 52616 } 52617 # Create a (secure) tmp directory for tmp files. 52618 52619 { 52620 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 52621 test -d "$tmp" 52622 } || 52623 { 52624 tmp=./conf$$-$RANDOM 52625 (umask 077 && mkdir "$tmp") 52626 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 52627 ac_tmp=$tmp 52628 52629 # Set up the scripts for CONFIG_FILES section. 52630 # No need to generate them if there are no CONFIG_FILES. 52631 # This happens for instance with `./config.status config.h'. 52632 if test -n "$CONFIG_FILES"; then 52633 52634 52635 ac_cr=`echo X | tr X '\015'` 52636 # On cygwin, bash can eat \r inside `` if the user requested igncr. 52637 # But we know of no other shell where ac_cr would be empty at this 52638 # point, so we can use a bashism as a fallback. 52639 if test "x$ac_cr" = x; then 52640 eval ac_cr=\$\'\\r\' 52641 fi 52642 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 52643 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 52644 ac_cs_awk_cr='\\r' 52645 else 52646 ac_cs_awk_cr=$ac_cr 52647 fi 52648 52649 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 52650 _ACEOF 52651 52652 52653 { 52654 echo "cat >conf$$subs.awk <<_ACEOF" && 52655 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 52656 echo "_ACEOF" 52657 } >conf$$subs.sh || 52658 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52659 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 52660 ac_delim='%!_!# ' 52661 for ac_last_try in false false false false false :; do 52662 . ./conf$$subs.sh || 52663 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52664 52665 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 52666 if test $ac_delim_n = $ac_delim_num; then 52667 break 52668 elif $ac_last_try; then 52669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52670 else 52671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 52672 fi 52673 done 52674 rm -f conf$$subs.sh 52675 52676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52677 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 52678 _ACEOF 52679 sed -n ' 52680 h 52681 s/^/S["/; s/!.*/"]=/ 52682 p 52683 g 52684 s/^[^!]*!// 52685 :repl 52686 t repl 52687 s/'"$ac_delim"'$// 52688 t delim 52689 :nl 52690 h 52691 s/\(.\{148\}\)..*/\1/ 52692 t more1 52693 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 52694 p 52695 n 52696 b repl 52697 :more1 52698 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 52699 p 52700 g 52701 s/.\{148\}// 52702 t nl 52703 :delim 52704 h 52705 s/\(.\{148\}\)..*/\1/ 52706 t more2 52707 s/["\\]/\\&/g; s/^/"/; s/$/"/ 52708 p 52709 b 52710 :more2 52711 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 52712 p 52713 g 52714 s/.\{148\}// 52715 t delim 52716 ' <conf$$subs.awk | sed ' 52717 /^[^""]/{ 52718 N 52719 s/\n// 52720 } 52721 ' >>$CONFIG_STATUS || ac_write_fail=1 52722 rm -f conf$$subs.awk 52723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52724 _ACAWK 52725 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 52726 for (key in S) S_is_set[key] = 1 52727 FS = "" 52728 52729 } 52730 { 52731 line = $ 0 52732 nfields = split(line, field, "@") 52733 substed = 0 52734 len = length(field[1]) 52735 for (i = 2; i < nfields; i++) { 52736 key = field[i] 52737 keylen = length(key) 52738 if (S_is_set[key]) { 52739 value = S[key] 52740 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 52741 len += length(value) + length(field[++i]) 52742 substed = 1 52743 } else 52744 len += 1 + keylen 52745 } 52746 52747 print line 52748 } 52749 52750 _ACAWK 52751 _ACEOF 52752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52753 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 52754 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 52755 else 52756 cat 52757 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 52758 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 52759 _ACEOF 52760 52761 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 52762 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 52763 # trailing colons and then remove the whole line if VPATH becomes empty 52764 # (actually we leave an empty line to preserve line numbers). 52765 if test "x$srcdir" = x.; then 52766 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 52767 h 52768 s/// 52769 s/^/:/ 52770 s/[ ]*$/:/ 52771 s/:\$(srcdir):/:/g 52772 s/:\${srcdir}:/:/g 52773 s/:@srcdir@:/:/g 52774 s/^:*// 52775 s/:*$// 52776 x 52777 s/\(=[ ]*\).*/\1/ 52778 G 52779 s/\n// 52780 s/^[^=]*=[ ]*$// 52781 }' 52782 fi 52783 52784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52785 fi # test -n "$CONFIG_FILES" 52786 52787 52788 eval set X " :F $CONFIG_FILES " 52789 shift 52790 for ac_tag 52791 do 52792 case $ac_tag in 52793 :[FHLC]) ac_mode=$ac_tag; continue;; 52794 esac 52795 case $ac_mode$ac_tag in 52796 :[FHL]*:*);; 52797 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 52798 :[FH]-) ac_tag=-:-;; 52799 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 52800 esac 52801 ac_save_IFS=$IFS 52802 IFS=: 52803 set x $ac_tag 52804 IFS=$ac_save_IFS 52805 shift 52806 ac_file=$1 52807 shift 52808 52809 case $ac_mode in 52810 :L) ac_source=$1;; 52811 :[FH]) 52812 ac_file_inputs= 52813 for ac_f 52814 do 52815 case $ac_f in 52816 -) ac_f="$ac_tmp/stdin";; 52817 *) # Look for the file first in the build tree, then in the source tree 52818 # (if the path is not absolute). The absolute path cannot be DOS-style, 52819 # because $ac_f cannot contain `:'. 52820 test -f "$ac_f" || 52821 case $ac_f in 52822 [\\/$]*) false;; 52823 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 52824 esac || 52825 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 52826 esac 52827 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 52828 as_fn_append ac_file_inputs " '$ac_f'" 52829 done 52830 52831 # Let's still pretend it is `configure' which instantiates (i.e., don't 52832 # use $as_me), people would be surprised to read: 52833 # /* config.h. Generated by config.status. */ 52834 configure_input='Generated from '` 52835 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 52836 `' by configure.' 52837 if test x"$ac_file" != x-; then 52838 configure_input="$ac_file. $configure_input" 52839 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 52840 $as_echo "$as_me: creating $ac_file" >&6;} 52841 fi 52842 # Neutralize special characters interpreted by sed in replacement strings. 52843 case $configure_input in #( 52844 *\&* | *\|* | *\\* ) 52845 ac_sed_conf_input=`$as_echo "$configure_input" | 52846 sed 's/[\\\\&|]/\\\\&/g'`;; #( 52847 *) ac_sed_conf_input=$configure_input;; 52848 esac 52849 52850 case $ac_tag in 52851 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 52852 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 52853 esac 52854 ;; 52855 esac 52856 52857 ac_dir=`$as_dirname -- "$ac_file" || 52858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52859 X"$ac_file" : 'X\(//\)[^/]' \| \ 52860 X"$ac_file" : 'X\(//\)$' \| \ 52861 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 52862 $as_echo X"$ac_file" | 52863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52864 s//\1/ 52865 q 52866 } 52867 /^X\(\/\/\)[^/].*/{ 52868 s//\1/ 52869 q 52870 } 52871 /^X\(\/\/\)$/{ 52872 s//\1/ 52873 q 52874 } 52875 /^X\(\/\).*/{ 52876 s//\1/ 52877 q 52878 } 52879 s/.*/./; q'` 52880 as_dir="$ac_dir"; as_fn_mkdir_p 52881 ac_builddir=. 52882 52883 case "$ac_dir" in 52884 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 52885 *) 52886 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 52887 # A ".." for each directory in $ac_dir_suffix. 52888 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 52889 case $ac_top_builddir_sub in 52890 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 52891 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 52892 esac ;; 52893 esac 52894 ac_abs_top_builddir=$ac_pwd 52895 ac_abs_builddir=$ac_pwd$ac_dir_suffix 52896 # for backward compatibility: 52897 ac_top_builddir=$ac_top_build_prefix 52898 52899 case $srcdir in 52900 .) # We are building in place. 52901 ac_srcdir=. 52902 ac_top_srcdir=$ac_top_builddir_sub 52903 ac_abs_top_srcdir=$ac_pwd ;; 52904 [\\/]* | ?:[\\/]* ) # Absolute name. 52905 ac_srcdir=$srcdir$ac_dir_suffix; 52906 ac_top_srcdir=$srcdir 52907 ac_abs_top_srcdir=$srcdir ;; 52908 *) # Relative name. 52909 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 52910 ac_top_srcdir=$ac_top_build_prefix$srcdir 52911 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 52912 esac 52913 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 52914 52915 52916 case $ac_mode in 52917 :F) 52918 # 52919 # CONFIG_FILE 52920 # 52921 52922 _ACEOF 52923 52924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52925 # If the template does not know about datarootdir, expand it. 52926 # FIXME: This hack should be removed a few years after 2.60. 52927 ac_datarootdir_hack=; ac_datarootdir_seen= 52928 ac_sed_dataroot=' 52929 /datarootdir/ { 52930 p 52931 q 52932 } 52933 /@datadir@/p 52934 /@docdir@/p 52935 /@infodir@/p 52936 /@localedir@/p 52937 /@mandir@/p' 52938 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 52939 *datarootdir*) ac_datarootdir_seen=yes;; 52940 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 52941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 52942 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 52943 _ACEOF 52944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52945 ac_datarootdir_hack=' 52946 s&@datadir@&$datadir&g 52947 s&@docdir@&$docdir&g 52948 s&@infodir@&$infodir&g 52949 s&@localedir@&$localedir&g 52950 s&@mandir@&$mandir&g 52951 s&\\\${datarootdir}&$datarootdir&g' ;; 52952 esac 52953 _ACEOF 52954 52955 # Neutralize VPATH when `$srcdir' = `.'. 52956 # Shell code in configure.ac might set extrasub. 52957 # FIXME: do we really want to maintain this feature? 52958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52959 ac_sed_extra="$ac_vpsub 52960 $extrasub 52961 _ACEOF 52962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52963 :t 52964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 52965 s|@configure_input@|$ac_sed_conf_input|;t t 52966 s&@top_builddir@&$ac_top_builddir_sub&;t t 52967 s&@top_build_prefix@&$ac_top_build_prefix&;t t 52968 s&@srcdir@&$ac_srcdir&;t t 52969 s&@abs_srcdir@&$ac_abs_srcdir&;t t 52970 s&@top_srcdir@&$ac_top_srcdir&;t t 52971 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 52972 s&@builddir@&$ac_builddir&;t t 52973 s&@abs_builddir@&$ac_abs_builddir&;t t 52974 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 52975 $ac_datarootdir_hack 52976 " 52977 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 52978 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52979 52980 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 52981 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 52982 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 52983 "$ac_tmp/out"`; test -z "$ac_out"; } && 52984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52985 which seems to be undefined. Please make sure it is defined" >&5 52986 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52987 which seems to be undefined. Please make sure it is defined" >&2;} 52988 52989 rm -f "$ac_tmp/stdin" 52990 case $ac_file in 52991 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 52992 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 52993 esac \ 52994 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52995 ;; 52996 52997 52998 52999 esac 53000 53001 done # for ac_tag 53002 53003 53004 as_fn_exit 0 53005 _ACEOF 53006 ac_clean_files=$ac_clean_files_save 53007 53008 test $ac_write_fail = 0 || 53009 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 53010 53011 53012 # configure is writing to config.log, and then calls config.status. 53013 # config.status does its own redirection, appending to config.log. 53014 # Unfortunately, on DOS this fails, as config.log is still kept open 53015 # by configure, so config.status won't be able to write to it; its 53016 # output is simply discarded. So we exec the FD to /dev/null, 53017 # effectively closing config.log, so it can be properly (re)opened and 53018 # appended to by config.status. When coming back to configure, we 53019 # need to make the FD available again. 53020 if test "$no_create" != yes; then 53021 ac_cs_success=: 53022 ac_config_status_args= 53023 test "$silent" = yes && 53024 ac_config_status_args="$ac_config_status_args --quiet" 53025 exec 5>/dev/null 53026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 53027 exec 5>>config.log 53028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 53029 # would make configure fail if this is the last instruction. 53030 $ac_cs_success || as_fn_exit 1 53031 fi 53032 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 53033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 53034 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 53035 fi 53036 53037 53038 53039 # Try to move the config.log file to the output directory. 53040 if test -e ./config.log; then 53041 $MV -f ./config.log "$CONFIGURE_SUPPORT/config.log" 2> /dev/null 53042 fi 53043 53044 # Make the compare script executable 53045 $CHMOD +x $OUTPUT_ROOT/compare.sh 53046 53047 # Finally output some useful information to the user 53048 53049 # Finally output some useful information to the user 53050 53051 printf "\n" 53052 printf "====================================================\n" 53053 if test "x$no_create" != "xyes"; then 53054 if test "x$IS_RECONFIGURE" != "xyes"; then 53055 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 53056 else 53057 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 53058 fi 53059 else 53060 if test "x$IS_RECONFIGURE" != "xyes"; then 53061 printf "A configuration has been successfully checked but not created\n" 53062 else 53063 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 53064 fi 53065 fi 53066 if test "x$CONFIGURE_COMMAND_LINE" != x; then 53067 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 53068 else 53069 printf "using default settings.\n" 53070 fi 53071 53072 printf "\n" 53073 printf "Configuration summary:\n" 53074 printf "* Debug level: $DEBUG_LEVEL\n" 53075 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 53076 printf "* JDK variant: $JDK_VARIANT\n" 53077 printf "* JVM variants: $with_jvm_variants\n" 53078 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 53079 53080 printf "\n" 53081 printf "Tools summary:\n" 53082 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 53083 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 53084 fi 53085 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 53086 if test "x$TOOLCHAIN_VERSION" != "x"; then 53087 print_version=" $TOOLCHAIN_VERSION" 53088 fi 53089 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 53090 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 53091 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 53092 53093 printf "\n" 53094 printf "Build performance summary:\n" 53095 printf "* Cores to use: $JOBS\n" 53096 printf "* Memory limit: $MEMORY_SIZE MB\n" 53097 if test "x$CCACHE_STATUS" != "x"; then 53098 printf "* ccache status: $CCACHE_STATUS\n" 53099 fi 53100 printf "\n" 53101 53102 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 53103 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 53104 printf "will result in longer build times.\n" 53105 printf "\n" 53106 fi 53107 53108 if test "x$FOUND_ALT_VARIABLES" != "x"; then 53109 printf "WARNING: You have old-style ALT_ environment variables set.\n" 53110 printf "These are not respected, and will be ignored. It is recommended\n" 53111 printf "that you clean your environment. The following variables are set:\n" 53112 printf "$FOUND_ALT_VARIABLES\n" 53113 printf "\n" 53114 fi 53115 53116 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 53117 printf "WARNING: Your build output directory is not on a local disk.\n" 53118 printf "This will severely degrade build performance!\n" 53119 printf "It is recommended that you create an output directory on a local disk,\n" 53120 printf "and run the configure script again from that directory.\n" 53121 printf "\n" 53122 fi 53123 53124 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 53125 printf "WARNING: The result of this configuration has overridden an older\n" 53126 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 53127 printf "proper build. Failure to do so might result in strange build problems.\n" 53128 printf "\n" 53129 fi 53130 53131 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 53132 printf "WARNING: The result of this configuration was not saved.\n" 53133 printf "You should run without '--no-create | -n' to create the configuration.\n" 53134 printf "\n" 53135 fi 53136 53137 53138 53139 if test -e "$OUTPUT_ROOT/config.log"; then 53140 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" > /dev/null 2>&1 53141 if test $? -eq 0; then 53142 printf "The following warnings were produced. Repeated here for convenience:\n" 53143 # We must quote sed expression (using []) to stop m4 from eating the []. 53144 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" | $SED -e 's/^configure:[0-9]*: //' 53145 printf "\n" 53146 fi 53147 fi 53148 53149